1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2024-12-22 17:00:26 +01:00

when milking cow take bucket from stack in hand only

This commit is contained in:
TenPlus1 2018-09-14 16:35:17 +01:00
parent 9bc3494389
commit 04d6a3636b

View File

@ -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")