groups = {not_in_creative_inventory = 1},
stack_max = 1,
on_use = function(itemstack, user, _)
- local inv = user:get_inventory()
itemstack:replace("xdecor:bowl 1")
- user:set_hp(20)
+ if minetest.get_modpath("hunger") then
+ minetest.item_eat(20)
+ else
+ user:set_hp(20)
+ end
return itemstack
end
})
button[4.6,0.2;0.7,0.5;clearfilter;X]
button[0,0;1.5,1;backcraft;< Back]
tooltip[search;Search]
- tooltip[clearfilter;Reset] ]]..
+ tooltip[clearfilter;Reset]
+ label[3,5.8;Input] ]]..
"list[context;inv_items_list;0,1;8,4;"..tostring(start_i).."]"..
"table[6.1,0.2;1.1,0.5;pagenum;#FFFF00,"..tostring(math.floor(pagenum))..
",#FFFFFF,/ "..tostring(pagemax).."]"..