Eat on rightclick
This commit is contained in:
parent
bbf7efc338
commit
96521433f5
11 changed files with 81 additions and 39 deletions
|
@ -216,7 +216,8 @@ minetest.register_craftitem("mcl_farming:melon_item", {
|
|||
description = "Melon",
|
||||
stack_max = 64,
|
||||
inventory_image = "farming_melon.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
on_place = minetest.item_eat(2),
|
||||
on_secondary_use = minetest.item_eat(2),
|
||||
groups = { food = 2, eatable = 2 },
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue