2016-05-17 23:40:05 +03:00
|
|
|
|
2016-06-09 17:08:34 +03:00
|
|
|
local S = ethereal.intllib
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- Banana (Heals one heart when eaten)
|
|
|
|
minetest.register_node("ethereal:banana", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Banana"),
|
2016-05-17 23:40:05 +03:00
|
|
|
drawtype = "torchlike",
|
|
|
|
tiles = {"banana_single.png"},
|
|
|
|
inventory_image = "banana_single.png",
|
|
|
|
wield_image = "banana_single.png",
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
2016-12-22 00:23:13 +03:00
|
|
|
fixed = {-0.31, -0.5, -0.31, 0.31, 0.5, 0.31}
|
2016-05-17 23:40:05 +03:00
|
|
|
},
|
|
|
|
groups = {
|
2018-03-12 19:53:25 +03:00
|
|
|
food_banana = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
|
2016-05-17 23:40:05 +03:00
|
|
|
leafdecay = 1, leafdecay_drop = 1
|
|
|
|
},
|
|
|
|
drop = "ethereal:banana",
|
|
|
|
on_use = minetest.item_eat(2),
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_place_node = function(pos, placer)
|
|
|
|
if placer:is_player() then
|
|
|
|
minetest.set_node(pos, {name = "ethereal:banana", param2 = 1})
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
2020-08-11 14:14:52 +03:00
|
|
|
-- Banana Bunch
|
|
|
|
minetest.register_node("ethereal:banana_bunch", {
|
|
|
|
description = S("Banana Bunch"),
|
|
|
|
drawtype = "torchlike",
|
|
|
|
tiles = {"banana_bunch.png"},
|
|
|
|
inventory_image = "banana_bunch.png",
|
|
|
|
wield_image = "banana_bunch.png",
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.31, -0.5, -0.31, 0.31, 0.5, 0.31}
|
|
|
|
},
|
|
|
|
groups = {
|
|
|
|
fleshy = 3, dig_immediate = 3, flammable = 2,
|
|
|
|
leafdecay = 1, leafdecay_drop = 1
|
|
|
|
},
|
|
|
|
drop = "ethereal:banana_bunch",
|
|
|
|
on_use = minetest.item_eat(6),
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_place_node = function(pos, placer)
|
|
|
|
if placer:is_player() then
|
|
|
|
minetest.set_node(pos, {name = "ethereal:banana_bunch", param2 = 1})
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Bunch to Single
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "ethereal:banana 3",
|
|
|
|
recipe = {"ethereal:banana_bunch"}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "ethereal:banana_bunch",
|
|
|
|
recipe = {"ethereal:banana", "ethereal:banana", "ethereal:banana"}
|
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- Banana Dough
|
|
|
|
minetest.register_craftitem("ethereal:banana_dough", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Banana Dough"),
|
2016-05-17 23:40:05 +03:00
|
|
|
inventory_image = "banana_dough.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "ethereal:banana_dough",
|
2018-03-12 21:40:36 +03:00
|
|
|
recipe = {"group:food_flour", "group:food_banana"}
|
2016-05-17 23:40:05 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
cooktime = 14,
|
|
|
|
output = "ethereal:banana_bread",
|
|
|
|
recipe = "ethereal:banana_dough"
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Orange (Heals 2 hearts when eaten)
|
|
|
|
minetest.register_node("ethereal:orange", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Orange"),
|
2016-05-17 23:40:05 +03:00
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = {"farming_orange.png"},
|
|
|
|
inventory_image = "farming_orange.png",
|
|
|
|
wield_image = "farming_orange.png",
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
2016-12-22 00:23:13 +03:00
|
|
|
fixed = {-0.27, -0.37, -0.27, 0.27, 0.44, 0.27}
|
2016-05-17 23:40:05 +03:00
|
|
|
},
|
|
|
|
groups = {
|
2018-03-12 19:53:25 +03:00
|
|
|
food_orange = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
|
2016-05-17 23:40:05 +03:00
|
|
|
leafdecay = 3, leafdecay_drop = 1
|
|
|
|
},
|
|
|
|
drop = "ethereal:orange",
|
|
|
|
on_use = minetest.item_eat(4),
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_place_node = function(pos, placer)
|
|
|
|
if placer:is_player() then
|
|
|
|
minetest.set_node(pos, {name = "ethereal:orange", param2 = 1})
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Pine Nuts (Heals 1/2 heart when eaten)
|
|
|
|
minetest.register_craftitem("ethereal:pine_nuts", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Pine Nuts"),
|
2016-05-17 23:40:05 +03:00
|
|
|
inventory_image = "pine_nuts.png",
|
|
|
|
wield_image = "pine_nuts.png",
|
2018-03-12 19:53:25 +03:00
|
|
|
groups = {food_pine_nuts = 1, flammable = 2},
|
2016-05-17 23:40:05 +03:00
|
|
|
on_use = minetest.item_eat(1),
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Banana Loaf (Heals 3 hearts when eaten)
|
|
|
|
minetest.register_craftitem("ethereal:banana_bread", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Banana Loaf"),
|
2016-05-17 23:40:05 +03:00
|
|
|
inventory_image = "banana_bread.png",
|
|
|
|
wield_image = "banana_bread.png",
|
2018-03-12 19:53:25 +03:00
|
|
|
groups = {food_bread = 1, flammable = 3},
|
2016-05-17 23:40:05 +03:00
|
|
|
on_use = minetest.item_eat(6),
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Coconut (Gives 4 coconut slices, each heal 1/2 heart)
|
|
|
|
minetest.register_node("ethereal:coconut", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Coconut"),
|
2016-05-17 23:40:05 +03:00
|
|
|
drawtype = "plantlike",
|
|
|
|
walkable = false,
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
tiles = {"moretrees_coconut.png"},
|
|
|
|
inventory_image = "moretrees_coconut.png",
|
|
|
|
wield_image = "moretrees_coconut.png",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
2016-12-22 00:23:13 +03:00
|
|
|
fixed = {-0.31, -0.43, -0.31, 0.31, 0.44, 0.31}
|
2016-05-17 23:40:05 +03:00
|
|
|
},
|
|
|
|
groups = {
|
2018-03-12 19:53:25 +03:00
|
|
|
food_coconut = 1, snappy = 1, oddly_breakable_by_hand = 1, cracky = 1,
|
2016-05-17 23:40:05 +03:00
|
|
|
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", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Coconut Slice"),
|
2016-05-17 23:40:05 +03:00
|
|
|
inventory_image = "moretrees_coconut_slice.png",
|
|
|
|
wield_image = "moretrees_coconut_slice.png",
|
2018-03-12 19:53:25 +03:00
|
|
|
groups = {food_coconut_slice = 1, flammable = 1},
|
2016-05-17 23:40:05 +03:00
|
|
|
on_use = minetest.item_eat(1),
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Golden Apple (Found on Healing Tree, heals all 10 hearts)
|
|
|
|
minetest.register_node("ethereal:golden_apple", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Golden Apple"),
|
2016-05-17 23:40:05 +03:00
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = {"default_apple_gold.png"},
|
|
|
|
inventory_image = "default_apple_gold.png",
|
|
|
|
wield_image = "default_apple_gold.png",
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
2016-12-22 00:23:13 +03:00
|
|
|
fixed = {-0.2, -0.37, -0.2, 0.2, 0.31, 0.2}
|
2016-05-17 23:40:05 +03:00
|
|
|
},
|
|
|
|
groups = {
|
|
|
|
fleshy = 3, dig_immediate = 3,
|
|
|
|
leafdecay = 3,leafdecay_drop = 1
|
|
|
|
},
|
|
|
|
drop = "ethereal:golden_apple",
|
2018-09-29 22:06:02 +03:00
|
|
|
-- on_use = minetest.item_eat(20),
|
|
|
|
on_use = function(itemstack, user, pointed_thing)
|
|
|
|
if user then
|
|
|
|
user:set_hp(20)
|
|
|
|
return minetest.do_item_eat(2, nil, itemstack, user, pointed_thing)
|
|
|
|
end
|
|
|
|
end,
|
2016-05-17 23:40:05 +03:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_place_node = function(pos, placer, itemstack)
|
|
|
|
if placer:is_player() then
|
|
|
|
minetest.set_node(pos, {name = "ethereal:golden_apple", param2 = 1})
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Hearty Stew (Heals 5 hearts - thanks to ZonerDarkRevention for his DokuCraft DeviantArt bowl texture)
|
|
|
|
minetest.register_craftitem("ethereal:hearty_stew", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Hearty Stew"),
|
2016-05-17 23:40:05 +03:00
|
|
|
inventory_image = "hearty_stew.png",
|
|
|
|
wield_image = "hearty_stew.png",
|
|
|
|
on_use = minetest.item_eat(10, "ethereal:bowl"),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "ethereal:hearty_stew",
|
|
|
|
recipe = {
|
2018-03-12 21:40:36 +03:00
|
|
|
{"group:food_onion","flowers:mushroom_brown", "group:food_tuber"},
|
|
|
|
{"","flowers:mushroom_brown", ""},
|
|
|
|
{"","group:food_bowl", ""},
|
2016-05-17 23:40:05 +03:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Extra recipe for hearty stew
|
|
|
|
if farming and farming.mod and farming.mod == "redo" then
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "ethereal:hearty_stew",
|
|
|
|
recipe = {
|
2018-03-12 21:40:36 +03:00
|
|
|
{"group:food_onion","flowers:mushroom_brown", "group:food_beans"},
|
|
|
|
{"","flowers:mushroom_brown", ""},
|
|
|
|
{"","group:food_bowl", ""},
|
2016-05-17 23:40:05 +03:00
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Bucket of Cactus Pulp
|
|
|
|
minetest.register_craftitem("ethereal:bucket_cactus", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Bucket of Cactus Pulp"),
|
2016-05-17 23:40:05 +03:00
|
|
|
inventory_image = "bucket_cactus.png",
|
|
|
|
wield_image = "bucket_cactus.png",
|
|
|
|
stack_max = 1,
|
2020-06-30 22:12:18 +03:00
|
|
|
groups = {vessel = 1, drink = 1},
|
2016-05-17 23:40:05 +03:00
|
|
|
on_use = minetest.item_eat(2, "bucket:bucket_empty"),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "ethereal:bucket_cactus",
|
|
|
|
recipe = {
|
|
|
|
{"bucket:bucket_empty","default:cactus"},
|
|
|
|
}
|
|
|
|
})
|
2018-09-03 22:43:00 +03:00
|
|
|
|
|
|
|
|
|
|
|
-- firethorn jelly
|
|
|
|
minetest.register_craftitem("ethereal:firethorn_jelly", {
|
|
|
|
description = S("Firethorn Jelly"),
|
|
|
|
inventory_image = "ethereal_firethorn_jelly.png",
|
|
|
|
wield_image = "ethereal_firethorn_jelly.png",
|
|
|
|
on_use = minetest.item_eat(2, "vessels:glass_bottle"),
|
2019-01-30 12:11:49 +03:00
|
|
|
groups = {vessel = 1},
|
2018-09-03 22:43:00 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
if minetest.registered_items["farming:bowl"] then
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "ethereal:firethorn_jelly",
|
|
|
|
recipe = {
|
|
|
|
"farming:mortar_pestle","vessels:glass_bottle",
|
|
|
|
"ethereal:firethorn", "ethereal:firethorn", "ethereal:firethorn",
|
|
|
|
"bucket:bucket_water", "bucket:bucket_water", "bucket:bucket_water",
|
|
|
|
},
|
|
|
|
replacements = {
|
|
|
|
{"bucket:bucket_water", "bucket:bucket_empty 3"},
|
|
|
|
{"farming:mortar_pestle", "farming:mortar_pestle"},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|