Eat on rightclick
This commit is contained in:
parent
bbf7efc338
commit
96521433f5
11 changed files with 81 additions and 39 deletions
|
@ -149,7 +149,8 @@ minetest.register_craftitem("mcl_farming:cookie", {
|
|||
description = "Cookie",
|
||||
inventory_image = "farming_cookie.png",
|
||||
groups = {food=2, eatable=2},
|
||||
on_use = minetest.item_eat(2)
|
||||
on_place = minetest.item_eat(2),
|
||||
on_secondary_use = minetest.item_eat(2),
|
||||
})
|
||||
|
||||
|
||||
|
@ -157,6 +158,7 @@ minetest.register_craftitem("mcl_farming:bread", {
|
|||
description = "Bread",
|
||||
inventory_image = "farming_bread.png",
|
||||
groups = {food=2, eatable=5},
|
||||
on_use = minetest.item_eat(5)
|
||||
on_place = minetest.item_eat(5),
|
||||
on_secondary_use = minetest.item_eat(5),
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue