mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-23 01:10:25 +01:00
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()
|
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
|
if inv:room_for_item("main", {name = "mobs:bucket_milk"}) then
|
||||||
clicker:get_inventory():add_item("main", "mobs:bucket_milk")
|
clicker:get_inventory():add_item("main", "mobs:bucket_milk")
|
||||||
|
Loading…
Reference in New Issue
Block a user