local S = ethereal.intllib -- Pine Nuts (Heals 1/2 heart when eaten) minetest.register_craftitem("ethereal:pine_nuts", { description = S("Pine Nuts"), inventory_image = "pine_nuts.png", wield_image = "pine_nuts.png", groups = {food_pine_nuts = 1, flammable = 2}, on_use = minetest.item_eat(1), }) -- Coconut (Gives 4 coconut slices, each heal 1/2 heart) minetest.register_node("ethereal:coconut", { description = S("Coconut"), drawtype = "plantlike", walkable = false, paramtype = "light", sunlight_propagates = true, tiles = {"coconut.png"}, inventory_image = "coconut.png", wield_image = "coconut.png", selection_box = { type = "fixed", fixed = {-0.31, -0.43, -0.31, 0.31, 0.44, 0.31} }, groups = { food_coconut = 1, snappy = 1, oddly_breakable_by_hand = 1, cracky = 1, choppy = 1, flammable = 1, leafdecay = 3, leafdecay_drop = 1 }, drop = "ethereal:coconut_slice 4", sounds = default.node_sound_wood_defaults(), }) -- Coconut Slice (Heals half heart when eaten) minetest.register_craftitem("ethereal:coconut_slice", { description = S("Coconut Slice"), inventory_image = "coconut_slice.png", wield_image = "coconut_slice.png", groups = {food_coconut_slice = 1, flammable = 1}, on_use = minetest.item_eat(1), })