forked from mtcontrib/mobs_animal
when milking cow take bucket from stack in hand only
This commit is contained in:
parent
9bc3494389
commit
04d6a3636b
3
cow.lua
3
cow.lua
@ -84,7 +84,8 @@ mobs:register_mob("mobs_animal:cow", {
|
||||
|
||||
local inv = clicker:get_inventory()
|
||||
|
||||
inv:remove_item("main", "bucket:bucket_empty")
|
||||
tool:take_item()
|
||||
clicker:set_wielded_item(tool)
|
||||
|
||||
if inv:room_for_item("main", {name = "mobs:bucket_milk"}) then
|
||||
clicker:get_inventory():add_item("main", "mobs:bucket_milk")
|
||||
|
Loading…
Reference in New Issue
Block a user