Eat on rightclick

This commit is contained in:
Wuzzy 2017-02-16 17:45:33 +01:00
parent bbf7efc338
commit 96521433f5
11 changed files with 81 additions and 39 deletions

View file

@ -193,7 +193,8 @@ minetest.register_craftitem("mcl_end:chorus_fruit", {
wield_image = "mcl_end_chorus_fruit.png",
inventory_image = "mcl_end_chorus_fruit.png",
-- TODO: Teleport player
on_use = minetest.item_eat(4),
on_place = minetest.item_eat(4),
on_secondary_use = minetest.item_eat(4),
groups = { food = 2, eatable = 4 },
stack_max = 64,
})