-- Namespace: test
--
-- the higher it is the more it's "eaten"
+
+minetest.register_food("cake:cake_item_placeholder",{
+ description = "",
+ texture = "nothing.png",
+ satiation=10,
+ hunger=6,
+})
+
+
for i = 0,13 do
local missing_slice
if i == 0 then
end
end,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
- minetest.eat_food(clicker,node)
+ minetest.eat_food(clicker,"cake:cake_item_placeholder")
--clicker:set_hp(clicker:get_hp()+5)
if i == 13 then
minetest.sound_play("eat_finish",{pos=pos,gain=0.2,pitch=math.random(90,100)/100})
timer:start(0.2)
end,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
+ minetest.eat_food(clicker,"cake:cake_item_placeholder")
clicker:set_hp(clicker:get_hp()-5)
end,
on_timer = function(pos, elapsed)