This commit is contained in:
Lizzy Fleckenstein 2022-01-27 16:37:00 +01:00
parent 3c4035ac38
commit a5c6a0d4d0
Signed by untrusted user: LizzyFleckenstein03
GPG Key ID: 06927A5199D6C9B2
2 changed files with 46 additions and 1 deletions

View File

@ -514,6 +514,7 @@ mobs:register_mob("mobs_mc:enderman", {
if telepos then
telesound(self.object:get_pos(), false)
self.object:set_pos(telepos)
minetest.add_item(telepos, "mcl_mobitems:gender_fluid_bucket")
telesound(telepos, true)
end
end

View File

@ -138,7 +138,7 @@ minetest.register_craftitem("mcl_mobitems:cooked_rabbit", {
local function drink_milk(itemstack, player, pointed_thing)
local bucket = minetest.do_item_eat(0, "mcl_buckets:bucket_empty", itemstack, player, pointed_thing)
-- Check if we were allowed to drink this (eat delay check)
if mcl_hunger.active and (bucket:get_name() ~= "mcl_mobitems:milk_bucket" or minetest.is_creative_enabled(player:get_player_name())) then
if mcl_hunger.active and (bucket:get_name() ~= "mcl_mobitems:milk_bucket" or bucket:get_name() ~= "mcl_mobitems:gender_fluid_bucket" or minetest.is_creative_enabled(player:get_player_name())) then
mcl_hunger.stop_poison(player)
end
mcl_potions._reset_player_effects(player)
@ -158,6 +158,50 @@ minetest.register_craftitem("mcl_mobitems:milk_bucket", {
groups = { food = 3, can_eat_when_full = 1 },
})
minetest.register_craftitem("mcl_mobitems:gender_fluid_bucket", {
description = S("Gender fluid"),
_tt_help = minetest.colorize(mcl_colors.GREEN, S("Removes all heterosexuality")),
_doc_items_longdesc = S("Gender fluid is very refreshing and is obtained from Gendermen. Drinking it will remove all heterosexuality, but restores no hunger points."),
_doc_items_usagehelp = S("Use the placement key to drink the gender fluid."),
inventory_image = "mcl_mobitems_bucket_milk.png",
wield_image = "mcl_mobitems_bucket_milk.png",
on_place = drink_milk,
on_secondary_use = drink_milk,
stack_max = 1,
groups = { food = 3, can_eat_when_full = 1 },
})
minetest.register_craftitem("mcl_mobitems:cum_bucket", {
description = S("Cum"),
_tt_help = minetest.colorize(mcl_colors.GREEN, S("Removes all heterosexuality")),
_doc_items_longdesc = S("Cum is very refreshing and can be obtained by using a bucket on a player. Drinking it will remove all heterosexuality, but restores no hunger points."),
_doc_items_usagehelp = S("Use the placement key to drink the cum."),
inventory_image = "mcl_mobitems_bucket_milk.png",
wield_image = "mcl_mobitems_bucket_milk.png",
on_place = drink_milk,
on_secondary_use = drink_milk,
stack_max = 1,
groups = { food = 3, can_eat_when_full = 1 },
})
minetest.register_on_rightclickplayer(function(player, clicker)
local item = clicker:get_wielded_item()
if item:get_name() == "mcl_buckets:bucket_empty" and clicker:get_inventory() then
local inv = clicker:get_inventory()
inv:remove_item("main", "mcl_buckets:bucket_empty")
minetest.sound_play("mobs_mc_cow_milk", {pos=player:get_pos(), gain=0.6})
-- if room add bucket of cum to inventory, otherwise drop as item
if inv:room_for_item("main", {name="mcl_mobitems:cum_bucket"}) then
clicker:get_inventory():add_item("main", "mcl_mobitems:cum_bucket")
else
local pos = player:get_pos()
pos.y = pos.y + 0.5
minetest.add_item(pos, {name = "mcl_mobitems:cum_bucket"})
end
return
end
end)
minetest.register_craftitem("mcl_mobitems:spider_eye", {
description = S("Spider Eye"),
_tt_help = minetest.colorize(mcl_colors.YELLOW, S("Poisonous")),