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

@ -36,7 +36,8 @@ minetest.register_node("mcl_farming:mushroom_red", {
minetest.register_craftitem("mcl_farming:mushroom_stew", {
description = "Mushroom Stew",
inventory_image = "farming_mushroom_stew.png",
on_use = minetest.item_eat(6, "mcl_core:bowl"),
on_place = minetest.item_eat(6, "mcl_core:bowl"),
on_secondary_use = minetest.item_eat(6, "mcl_core:bowl"),
groups = { food = 3, eatable = 6 },
stack_max = 1,
})