diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-09-14 16:35:17 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-09-14 16:35:17 +0100 |
commit | 04d6a3636b175f65b3d35a18353d508bcc26e123 (patch) | |
tree | 0377361dd464405c38ef432dffe18b293b73de10 | |
parent | 9bc349438970f602d0a5ef9c6bc345444cf3e292 (diff) |
when milking cow take bucket from stack in hand only
-rw-r--r-- | cow.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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") |