This commit is contained in:
Wuzzy 2017-01-17 01:09:11 +01:00
parent 4fdfe8d60e
commit 38cda7566e
4 changed files with 20 additions and 14 deletions

View file

@ -107,12 +107,12 @@ mobs:register_mob("mobs_mc:cow", {
inv:remove_item("main", "bucket:bucket_empty")
if inv:room_for_item("main", {name = "mcl_mobitems:milk"}) then
clicker:get_inventory():add_item("main", "mcl_mobitems:milk")
if inv:room_for_item("main", {name = "mcl_mobitems:milk_bucket"}) then
clicker:get_inventory():add_item("main", "mcl_mobitems:milk_bucket")
else
local pos = self.object:getpos()
pos.y = pos.y + 0.5
minetest.add_item(pos, {name = "mcl_mobitems:milk"})
minetest.add_item(pos, {name = "mcl_mobitems:milk_bucket"})
end
self.gotten = true -- milked