change texture names to begin with ethereal_

This commit is contained in:
tenplus1 2021-04-02 21:06:43 +01:00
parent ebfeb42159
commit 026d59bedd
119 changed files with 529 additions and 529 deletions

View File

@ -21,6 +21,7 @@ Ethereal Mapgen mod for Minetest (works on all except v6)
- Added new Fishing mechanics (inspired by Rootyjr's on mineclone2) - Added new Fishing mechanics (inspired by Rootyjr's on mineclone2)
- Added fishing api to add new items (read API.txt file) - Added fishing api to add new items (read API.txt file)
- Certain fish can only be found in specific biomes - Certain fish can only be found in specific biomes
- Rename textures so they begin with ethereal_ (sorry texture pack folks)
### 1.27 ### 1.27

View File

@ -1,13 +1,14 @@
local S = ethereal.intllib local S = ethereal.intllib
-- Crystal Spike (Hurts if you touch it - thanks to ZonerDarkRevention for his DokuCraft DeviantArt crystal texture) -- Crystal Spike (Hurts if you touch it)
-- thanks to ZonerDarkRevention for his DokuCraft DeviantArt crystal texture
minetest.register_node("ethereal:crystal_spike", { minetest.register_node("ethereal:crystal_spike", {
description = S("Crystal Spike"), description = S("Crystal Spike"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = { "crystal_spike.png" }, tiles = {"ethereal_crystal_spike.png"},
inventory_image = "crystal_spike.png", inventory_image = "ethereal_crystal_spike.png",
wield_image = "crystal_spike.png", wield_image = "ethereal_crystal_spike.png",
paramtype = "light", paramtype = "light",
light_source = 7, light_source = 7,
sunlight_propagates = true, sunlight_propagates = true,
@ -22,14 +23,14 @@ minetest.register_node("ethereal:crystal_spike", {
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 0, 5 / 16}, fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 0, 5 / 16},
}, }
}) })
-- Crystal Ingot -- Crystal Ingot
minetest.register_craftitem("ethereal:crystal_ingot", { minetest.register_craftitem("ethereal:crystal_ingot", {
description = S("Crystal Ingot"), description = S("Crystal Ingot"),
inventory_image = "crystal_ingot.png", inventory_image = "ethereal_crystal_ingot.png",
wield_image = "crystal_ingot.png", wield_image = "ethereal_crystal_ingot.png"
}) })
if minetest.get_modpath("builtin_item") then if minetest.get_modpath("builtin_item") then
@ -98,11 +99,11 @@ minetest.register_craft({
-- Crystal Block -- Crystal Block
minetest.register_node("ethereal:crystal_block", { minetest.register_node("ethereal:crystal_block", {
description = S("Crystal Block"), description = S("Crystal Block"),
tiles = {"crystal_block.png"}, tiles = {"ethereal_crystal_block.png"},
light_source = 9, light_source = 9,
is_ground_content = false, is_ground_content = false,
groups = {cracky = 1, level = 2, puts_out_fire = 1, cools_lava = 1}, groups = {cracky = 1, level = 2, puts_out_fire = 1, cools_lava = 1},
sounds = default.node_sound_glass_defaults(), sounds = default.node_sound_glass_defaults()
}) })
minetest.register_craft({ minetest.register_craft({
@ -124,8 +125,8 @@ minetest.register_craft({
-- Crystal Sword (Powerful wee beastie) -- Crystal Sword (Powerful wee beastie)
minetest.register_tool("ethereal:sword_crystal", { minetest.register_tool("ethereal:sword_crystal", {
description = S("Crystal Sword"), description = S("Crystal Sword"),
inventory_image = "crystal_sword.png", inventory_image = "ethereal_crystal_sword.png",
wield_image = "crystal_sword.png", wield_image = "ethereal_crystal_sword.png",
tool_capabilities = { tool_capabilities = {
full_punch_interval = 0.6, full_punch_interval = 0.6,
max_drop_level = 1, max_drop_level = 1,
@ -139,7 +140,7 @@ minetest.register_tool("ethereal:sword_crystal", {
damage_groups = {fleshy = 10}, damage_groups = {fleshy = 10},
}, },
groups = {sword = 1}, groups = {sword = 1},
sound = {breaks = "default_tool_breaks"}, sound = {breaks = "default_tool_breaks"}
}) })
minetest.register_craft({ minetest.register_craft({
@ -147,15 +148,15 @@ minetest.register_craft({
recipe = { recipe = {
{"ethereal:crystal_ingot"}, {"ethereal:crystal_ingot"},
{"ethereal:crystal_ingot"}, {"ethereal:crystal_ingot"},
{"default:steel_ingot"}, {"default:steel_ingot"}
} }
}) })
-- Crystal Axe -- Crystal Axe
minetest.register_tool("ethereal:axe_crystal", { minetest.register_tool("ethereal:axe_crystal", {
description = S("Crystal Axe"), description = S("Crystal Axe"),
inventory_image = "crystal_axe.png", inventory_image = "ethereal_crystal_axe.png",
wield_image = "crystal_axe.png", wield_image = "ethereal_crystal_axe.png",
tool_capabilities = { tool_capabilities = {
full_punch_interval = 0.8, full_punch_interval = 0.8,
max_drop_level = 1, max_drop_level = 1,
@ -164,12 +165,12 @@ minetest.register_tool("ethereal:axe_crystal", {
times = {[1] = 2.00, [2] = 0.80, [3] = 0.40}, times = {[1] = 2.00, [2] = 0.80, [3] = 0.40},
uses = 40, uses = 40,
maxlevel = 3 maxlevel = 3
}, }
}, },
damage_groups = {fleshy = 7}, damage_groups = {fleshy = 7},
}, },
groups = {axe = 1}, groups = {axe = 1},
sound = {breaks = "default_tool_breaks"}, sound = {breaks = "default_tool_breaks"}
}) })
minetest.register_craft({ minetest.register_craft({
@ -177,7 +178,7 @@ minetest.register_craft({
recipe = { recipe = {
{"ethereal:crystal_ingot", "ethereal:crystal_ingot"}, {"ethereal:crystal_ingot", "ethereal:crystal_ingot"},
{"ethereal:crystal_ingot", "default:steel_ingot"}, {"ethereal:crystal_ingot", "default:steel_ingot"},
{"", "default:steel_ingot"}, {"", "default:steel_ingot"}
} }
}) })
@ -186,15 +187,15 @@ minetest.register_craft({
recipe = { recipe = {
{"ethereal:crystal_ingot", "ethereal:crystal_ingot"}, {"ethereal:crystal_ingot", "ethereal:crystal_ingot"},
{"default:steel_ingot", "ethereal:crystal_ingot"}, {"default:steel_ingot", "ethereal:crystal_ingot"},
{"default:steel_ingot", ""}, {"default:steel_ingot", ""}
} }
}) })
-- Crystal Pick (This will last a while) -- Crystal Pick (This will last a while)
minetest.register_tool("ethereal:pick_crystal", { minetest.register_tool("ethereal:pick_crystal", {
description = S("Crystal Pickaxe"), description = S("Crystal Pickaxe"),
inventory_image = "crystal_pick.png", inventory_image = "ethereal_crystal_pick.png",
wield_image = "crystal_pick.png", wield_image = "ethereal_crystal_pick.png",
tool_capabilities = { tool_capabilities = {
full_punch_interval = 0.7, full_punch_interval = 0.7,
max_drop_level = 3, max_drop_level = 3,
@ -203,12 +204,12 @@ minetest.register_tool("ethereal:pick_crystal", {
times = {[1] = 1.8, [2] = 0.8, [3] = 0.40}, times = {[1] = 1.8, [2] = 0.8, [3] = 0.40},
uses = 40, uses = 40,
maxlevel = 3 maxlevel = 3
}, }
}, },
damage_groups = {fleshy = 6}, damage_groups = {fleshy = 6},
}, },
groups = {pickaxe = 1}, groups = {pickaxe = 1},
sound = {breaks = "default_tool_breaks"}, sound = {breaks = "default_tool_breaks"}
}) })
minetest.register_craft({ minetest.register_craft({
@ -216,7 +217,7 @@ minetest.register_craft({
recipe = { recipe = {
{"ethereal:crystal_ingot", "ethereal:crystal_ingot", "ethereal:crystal_ingot"}, {"ethereal:crystal_ingot", "ethereal:crystal_ingot", "ethereal:crystal_ingot"},
{"", "default:steel_ingot", ""}, {"", "default:steel_ingot", ""},
{"", "default:steel_ingot", ""}, {"", "default:steel_ingot", ""}
} }
}) })
@ -242,8 +243,8 @@ end
minetest.register_tool("ethereal:shovel_crystal", { minetest.register_tool("ethereal:shovel_crystal", {
description = "Crystal Shovel", description = "Crystal Shovel",
inventory_image = "crystal_shovel.png", inventory_image = "ethereal_crystal_shovel.png",
wield_image = "crystal_shovel.png^[transformR90", wield_image = "ethereal_crystal_shovel.png^[transformR90",
tool_capabilities = { tool_capabilities = {
full_punch_interval = 1.0, full_punch_interval = 1.0,
max_drop_level = 1, max_drop_level = 1,
@ -252,12 +253,12 @@ minetest.register_tool("ethereal:shovel_crystal", {
times = {[1] = 1.10, [2] = 0.50, [3] = 0.30}, times = {[1] = 1.10, [2] = 0.50, [3] = 0.30},
uses = 30, uses = 30,
maxlevel = 3 maxlevel = 3
}, }
}, },
damage_groups = {fleshy = 4}, damage_groups = {fleshy = 4},
}, },
groups = {shovel = 1}, groups = {shovel = 1},
sound = {breaks = "default_tool_breaks"}, sound = {breaks = "default_tool_breaks"}
}) })
minetest.register_craft({ minetest.register_craft({
@ -265,21 +266,21 @@ minetest.register_craft({
recipe = { recipe = {
{"ethereal:crystal_ingot"}, {"ethereal:crystal_ingot"},
{"default:steel_ingot"}, {"default:steel_ingot"},
{"default:steel_ingot"}, {"default:steel_ingot"}
} }
}) })
-- Crystal Gilly Staff (replenishes air supply when used) -- Crystal Gilly Staff (replenishes air supply when used)
minetest.register_tool("ethereal:crystal_gilly_staff", { minetest.register_tool("ethereal:crystal_gilly_staff", {
description = S("Crystal Gilly Staff"), description = S("Crystal Gilly Staff"),
inventory_image = "crystal_gilly_staff.png", inventory_image = "ethereal_crystal_gilly_staff.png",
wield_image = "crystal_gilly_staff.png", wield_image = "ethereal_crystal_gilly_staff.png",
on_use = function(itemstack, user, pointed_thing) on_use = function(itemstack, user, pointed_thing)
if user:get_breath() < 10 then if user:get_breath() < 10 then
user:set_breath(10) user:set_breath(10)
end end
end, end
}) })
minetest.register_craft({ minetest.register_craft({

View File

@ -237,7 +237,7 @@ if not minetest.get_modpath("bakedclay") then
tiles = {"baked_clay_red.png"}, tiles = {"baked_clay_red.png"},
groups = {cracky = 3}, groups = {cracky = 3},
is_ground_content = ethereal.cavedirt, is_ground_content = ethereal.cavedirt,
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults()
}) })
minetest.register_node(":bakedclay:orange", { minetest.register_node(":bakedclay:orange", {
@ -245,7 +245,7 @@ if not minetest.get_modpath("bakedclay") then
tiles = {"baked_clay_orange.png"}, tiles = {"baked_clay_orange.png"},
groups = {cracky = 3}, groups = {cracky = 3},
is_ground_content = ethereal.cavedirt, is_ground_content = ethereal.cavedirt,
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults()
}) })
minetest.register_node(":bakedclay:grey", { minetest.register_node(":bakedclay:grey", {
@ -253,7 +253,7 @@ if not minetest.get_modpath("bakedclay") then
tiles = {"baked_clay_grey.png"}, tiles = {"baked_clay_grey.png"},
groups = {cracky = 3}, groups = {cracky = 3},
is_ground_content = ethereal.cavedirt, is_ground_content = ethereal.cavedirt,
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults()
}) })
end end
@ -275,7 +275,7 @@ minetest.register_node("ethereal:quicksand", {
climbable = false, climbable = false,
post_effect_color = {r = 230, g = 210, b = 160, a = 245}, post_effect_color = {r = 230, g = 210, b = 160, a = 245},
groups = {crumbly = 3, sand = 1, liquid = 3, disable_jump = 1}, groups = {crumbly = 3, sand = 1, liquid = 3, disable_jump = 1},
sounds = default.node_sound_sand_defaults(), sounds = default.node_sound_sand_defaults()
}) })
-- Quicksand (new style, sinking inside shows yellow effect with or without noclip, -- Quicksand (new style, sinking inside shows yellow effect with or without noclip,
@ -297,7 +297,7 @@ minetest.register_node("ethereal:quicksand2", {
climbable = false, climbable = false,
post_effect_color = {r = 230, g = 210, b = 160, a = 245}, post_effect_color = {r = 230, g = 210, b = 160, a = 245},
groups = {crumbly = 3, sand = 1, liquid = 3, disable_jump = 1}, groups = {crumbly = 3, sand = 1, liquid = 3, disable_jump = 1},
sounds = default.node_sound_sand_defaults(), sounds = default.node_sound_sand_defaults()
}) })
-- craft quicksand -- craft quicksand
@ -306,7 +306,7 @@ minetest.register_craft({
recipe = { recipe = {
{"group:sand", "group:sand", "group:sand"}, {"group:sand", "group:sand", "group:sand"},
{"group:sand", "bucket:bucket_water", "group:sand"}, {"group:sand", "bucket:bucket_water", "group:sand"},
{"group:sand", "group:sand", "group:sand"}, {"group:sand", "group:sand", "group:sand"}
}, },
replacements = { replacements = {
{"bucket:bucket_water", "bucket:bucket_empty"} {"bucket:bucket_water", "bucket:bucket_empty"}

View File

@ -21,9 +21,9 @@ minetest.register_node("ethereal:etherium_ore", {
minetest.register_node("ethereal:bamboo_floor", { minetest.register_node("ethereal:bamboo_floor", {
description = S("Bamboo Floor"), description = S("Bamboo Floor"),
drawtype = "nodebox", drawtype = "nodebox",
tiles = { "bamboo_floor.png" }, tiles = {"ethereal_bamboo_floor.png"},
wield_image = "bamboo_floor.png", wield_image = "ethereal_bamboo_floor.png",
inventory_image = "bamboo_floor.png", inventory_image = "ethereal_bamboo_floor.png",
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
walkable = true, walkable = true,
@ -31,11 +31,11 @@ minetest.register_node("ethereal:bamboo_floor", {
type = "wallmounted", type = "wallmounted",
wall_top = {-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5}, wall_top = {-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
wall_bottom = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, wall_bottom = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
wall_side = {-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5}, wall_side = {-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5}
}, },
selection_box = {type = "wallmounted"}, selection_box = {type = "wallmounted"},
groups = {snappy = 3, choppy = 3 , flammable = 2}, groups = {snappy = 3, choppy = 3 , flammable = 2},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults()
}) })
-- Craft Bamboo into Bamboo Flooring -- Craft Bamboo into Bamboo Flooring
@ -43,7 +43,7 @@ minetest.register_craft({
output = "ethereal:bamboo_floor 2", output = "ethereal:bamboo_floor 2",
recipe = { recipe = {
{"ethereal:bamboo", "ethereal:bamboo"}, {"ethereal:bamboo", "ethereal:bamboo"},
{"ethereal:bamboo", "ethereal:bamboo"}, {"ethereal:bamboo", "ethereal:bamboo"}
} }
}) })
@ -58,10 +58,10 @@ minetest.register_craft({
-- Bamboo Block -- Bamboo Block
minetest.register_node("ethereal:bamboo_block", { minetest.register_node("ethereal:bamboo_block", {
description = S("Bamboo Block"), description = S("Bamboo Block"),
tiles = { "bamboo_floor.png" }, tiles = {"ethereal_bamboo_floor.png"},
paramtype = "light", paramtype = "light",
groups = {snappy = 3, choppy = 3 , flammable = 2, wood = 1}, groups = {snappy = 3, choppy = 3 , flammable = 2, wood = 1},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults()
}) })
minetest.register_craft({ minetest.register_craft({
@ -69,7 +69,7 @@ minetest.register_craft({
recipe = { recipe = {
{"ethereal:bamboo", "ethereal:bamboo", "ethereal:bamboo"}, {"ethereal:bamboo", "ethereal:bamboo", "ethereal:bamboo"},
{"ethereal:bamboo", "ethereal:bamboo", "ethereal:bamboo"}, {"ethereal:bamboo", "ethereal:bamboo", "ethereal:bamboo"},
{"ethereal:bamboo", "ethereal:bamboo", "ethereal:bamboo"}, {"ethereal:bamboo", "ethereal:bamboo", "ethereal:bamboo"}
} }
}) })
@ -79,7 +79,7 @@ minetest.register_craft({
recipe = { recipe = {
{"ethereal:bamboo", "ethereal:bamboo"}, {"ethereal:bamboo", "ethereal:bamboo"},
{"ethereal:bamboo", "ethereal:bamboo"}, {"ethereal:bamboo", "ethereal:bamboo"},
{"ethereal:bamboo", "ethereal:bamboo"}, {"ethereal:bamboo", "ethereal:bamboo"}
} }
}) })
@ -102,7 +102,7 @@ for n = 1, #cheat do
recipe = { recipe = {
{cheat[n][1], "", cheat[n][1]}, {cheat[n][1], "", cheat[n][1]},
{"", cheat[n][1], ""}, {"", cheat[n][1], ""},
{cheat[n][1], "", cheat[n][1]}, {cheat[n][1], "", cheat[n][1]}
} }
}) })
end end
@ -120,8 +120,8 @@ minetest.register_craft({
-- Palm Wax -- Palm Wax
minetest.register_craftitem("ethereal:palm_wax", { minetest.register_craftitem("ethereal:palm_wax", {
description = S("Palm Wax"), description = S("Palm Wax"),
inventory_image = "palm_wax.png", inventory_image = "ethereal_palm_wax.png",
wield_image = "palm_wax.png", wield_image = "ethereal_palm_wax.png"
}) })
minetest.register_craft({ minetest.register_craft({
@ -135,18 +135,18 @@ minetest.register_craft({
minetest.register_node("ethereal:candle", { minetest.register_node("ethereal:candle", {
description = S("Candle"), description = S("Candle"),
drawtype = "plantlike", drawtype = "plantlike",
inventory_image = "candle_static.png", inventory_image = "ethereal_candle_static.png",
wield_image = "candle_static.png", wield_image = "ethereal_candle_static.png",
tiles = { tiles = {
{ {
name = "candle.png", name = "ethereal_candle.png",
animation={ animation = {
type="vertical_frames", type="vertical_frames",
aspect_w = 32, aspect_w = 32,
aspect_h = 32, aspect_h = 32,
length = 1.0 length = 1.0
} }
}, }
}, },
paramtype = "light", paramtype = "light",
light_source = 11, light_source = 11,
@ -157,7 +157,7 @@ minetest.register_node("ethereal:candle", {
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0, 0.15 } fixed = { -0.15, -0.5, -0.15, 0.15, 0, 0.15 }
}, }
}) })
minetest.register_craft({ minetest.register_craft({
@ -165,15 +165,15 @@ minetest.register_craft({
recipe = { recipe = {
{"farming:string"}, {"farming:string"},
{"ethereal:palm_wax"}, {"ethereal:palm_wax"},
{"ethereal:palm_wax"}, {"ethereal:palm_wax"}
} }
}) })
-- Wooden Bowl -- Wooden Bowl
minetest.register_craftitem("ethereal:bowl", { minetest.register_craftitem("ethereal:bowl", {
description = S("Bowl"), description = S("Bowl"),
inventory_image = "bowl.png", inventory_image = "ethereal_bowl.png",
groups = {food_bowl = 1, flammable = 2}, groups = {food_bowl = 1, flammable = 2}
}) })
-- use farming redo's recipe if found -- use farming redo's recipe if found
@ -183,7 +183,7 @@ if not minetest.registered_items["farming:bowl"] then
output = "ethereal:bowl 4", output = "ethereal:bowl 4",
recipe = { recipe = {
{"group:wood", "", "group:wood"}, {"group:wood", "", "group:wood"},
{"", "group:wood", ""}, {"", "group:wood", ""}
} }
}) })
end end
@ -192,9 +192,9 @@ end
minetest.register_node("ethereal:stone_ladder", { minetest.register_node("ethereal:stone_ladder", {
description = S("Stone Ladder"), description = S("Stone Ladder"),
drawtype = "signlike", drawtype = "signlike",
tiles = {"stone_ladder.png"}, tiles = {"ethereal_stone_ladder.png"},
inventory_image = "stone_ladder.png", inventory_image = "ethereal_stone_ladder.png",
wield_image = "stone_ladder.png", wield_image = "ethereal_stone_ladder.png",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
@ -202,11 +202,11 @@ minetest.register_node("ethereal:stone_ladder", {
climbable = true, climbable = true,
is_ground_content = false, is_ground_content = false,
selection_box = { selection_box = {
type = "wallmounted", type = "wallmounted"
}, },
groups = {cracky = 3, oddly_breakable_by_hand = 1}, groups = {cracky = 3, oddly_breakable_by_hand = 1},
legacy_wallmounted = true, legacy_wallmounted = true,
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults()
}) })
minetest.register_craft({ minetest.register_craft({
@ -214,7 +214,7 @@ minetest.register_craft({
recipe = { recipe = {
{"group:stone", "", "group:stone"}, {"group:stone", "", "group:stone"},
{"group:stone", "group:stone", "group:stone"}, {"group:stone", "group:stone", "group:stone"},
{"group:stone", "", "group:stone"}, {"group:stone", "", "group:stone"}
} }
}) })
@ -222,9 +222,9 @@ minetest.register_craft({
minetest.register_node("ethereal:paper_wall", { minetest.register_node("ethereal:paper_wall", {
drawtype = "nodebox", drawtype = "nodebox",
description = S("Paper Wall"), description = S("Paper Wall"),
tiles = {"paper_wall.png"}, tiles = {"ethereal_paper_wall.png"},
inventory_image_image = "paper_wall.png", inventory_image_image = "ethereal_paper_wall.png",
wield_image = "paper_wall.png", wield_image = "ethereal_paper_wall.png",
paramtype = "light", paramtype = "light",
groups = {snappy = 3}, groups = {snappy = 3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
@ -241,7 +241,7 @@ minetest.register_node("ethereal:paper_wall", {
fixed = { fixed = {
{ -0.5, -0.5, 5/11, 0.5, 0.5, 8/16 } { -0.5, -0.5, 5/11, 0.5, 0.5, 8/16 }
} }
}, }
}) })
minetest.register_craft({ minetest.register_craft({
@ -249,18 +249,18 @@ minetest.register_craft({
recipe = { recipe = {
{"group:stick", "default:paper", "group:stick"}, {"group:stick", "default:paper", "group:stick"},
{"group:stick", "default:paper", "group:stick"}, {"group:stick", "default:paper", "group:stick"},
{"group:stick", "default:paper", "group:stick"}, {"group:stick", "default:paper", "group:stick"}
} }
}) })
-- Glostone (A little bit of light decoration) -- Glostone (A little bit of light decoration)
minetest.register_node("ethereal:glostone", { minetest.register_node("ethereal:glostone", {
description = S("Glo Stone"), description = S("Glo Stone"),
tiles = {"glostone.png"}, tiles = {"ethereal_glostone.png"},
groups = {cracky = 3}, groups = {cracky = 3},
light_source = 13, light_source = 13,
drop = "ethereal:glostone", drop = "ethereal:glostone",
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults()
}) })
minetest.register_craft({ minetest.register_craft({
@ -272,7 +272,7 @@ minetest.register_craft({
-- Charcoal Lump -- Charcoal Lump
minetest.register_craftitem("ethereal:charcoal_lump", { minetest.register_craftitem("ethereal:charcoal_lump", {
description = S("Lump of Charcoal"), description = S("Lump of Charcoal"),
inventory_image = "charcoal_lump.png", inventory_image = "ethereal_charcoal_lump.png"
}) })
minetest.register_craft({ minetest.register_craft({
@ -292,7 +292,7 @@ minetest.register_craft({
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "ethereal:charcoal_lump", recipe = "ethereal:charcoal_lump",
burntime = 10, burntime = 10
}) })
-- Make Torch from Charcoal Lump -- Make Torch from Charcoal Lump
@ -300,15 +300,15 @@ minetest.register_craft({
output = "default:torch 4", output = "default:torch 4",
recipe = { recipe = {
{"ethereal:charcoal_lump"}, {"ethereal:charcoal_lump"},
{"default:stick"}, {"default:stick"}
} }
}) })
-- Staff of Light (by Xanthin) -- Staff of Light (by Xanthin)
minetest.register_tool("ethereal:light_staff", { minetest.register_tool("ethereal:light_staff", {
description = S("Staff of Light"), description = S("Staff of Light"),
inventory_image = "light_staff.png", inventory_image = "ethereal_light_staff.png",
wield_image = "light_staff.png", wield_image = "ethereal_light_staff.png",
sound = {breaks = "default_tool_breaks"}, sound = {breaks = "default_tool_breaks"},
stack_max = 1, stack_max = 1,
on_use = function(itemstack, user, pointed_thing) on_use = function(itemstack, user, pointed_thing)
@ -339,8 +339,7 @@ minetest.register_tool("ethereal:light_staff", {
return itemstack return itemstack
end end
end
end,
}) })
minetest.register_craft({ minetest.register_craft({

View File

@ -3,7 +3,7 @@ local S = ethereal.intllib
default.register_fence("ethereal:fence_scorched", { default.register_fence("ethereal:fence_scorched", {
description = S("Scorched Fence"), description = S("Scorched Fence"),
texture = "scorched_tree.png", texture = "ethereal_scorched_tree.png",
material = "ethereal:scorched_tree", material = "ethereal:scorched_tree",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
@ -12,7 +12,7 @@ default.register_fence("ethereal:fence_scorched", {
default.register_fence("ethereal:fence_frostwood", { default.register_fence("ethereal:fence_frostwood", {
description = S("Frost Fence"), description = S("Frost Fence"),
texture = "frost_wood.png", texture = "ethereal_frost_wood.png",
material = "ethereal:frost_wood", material = "ethereal:frost_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
@ -21,7 +21,7 @@ default.register_fence("ethereal:fence_frostwood", {
default.register_fence("ethereal:fence_redwood", { default.register_fence("ethereal:fence_redwood", {
description = S("Redwood Fence"), description = S("Redwood Fence"),
texture = "redwood_wood.png", texture = "ethereal_redwood_wood.png",
material = "ethereal:redwood_wood", material = "ethereal:redwood_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
@ -30,7 +30,7 @@ default.register_fence("ethereal:fence_redwood", {
default.register_fence("ethereal:fence_willow", { default.register_fence("ethereal:fence_willow", {
description = S("Willow Fence"), description = S("Willow Fence"),
texture = "willow_wood.png", texture = "ethereal_willow_wood.png",
material = "ethereal:willow_wood", material = "ethereal:willow_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
@ -39,7 +39,7 @@ default.register_fence("ethereal:fence_willow", {
default.register_fence("ethereal:fence_yellowwood", { default.register_fence("ethereal:fence_yellowwood", {
description = S("Healing Wood Fence"), description = S("Healing Wood Fence"),
texture = "yellow_wood.png", texture = "ethereal_yellow_wood.png",
material = "ethereal:yellow_wood", material = "ethereal:yellow_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
@ -57,7 +57,7 @@ default.register_fence("ethereal:fence_palm", {
default.register_fence("ethereal:fence_banana", { default.register_fence("ethereal:fence_banana", {
description = S("Banana Wood Fence"), description = S("Banana Wood Fence"),
texture = "banana_wood.png", texture = "ethereal_banana_wood.png",
material = "ethereal:banana_wood", material = "ethereal:banana_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
@ -66,7 +66,7 @@ default.register_fence("ethereal:fence_banana", {
default.register_fence("ethereal:fence_mushroom", { default.register_fence("ethereal:fence_mushroom", {
description = S("Mushroom Fence"), description = S("Mushroom Fence"),
texture = "mushroom_trunk.png", texture = "ethereal_mushroom_trunk.png",
material = "ethereal:mushroom_trunk", material = "ethereal:mushroom_trunk",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
@ -97,7 +97,7 @@ if default.register_fence_rail then
default.register_fence_rail("ethereal:fence_rail_scorched", { default.register_fence_rail("ethereal:fence_rail_scorched", {
description = S("Scorched Fence Rail"), description = S("Scorched Fence Rail"),
texture = "scorched_tree.png", texture = "ethereal_scorched_tree.png",
material = "ethereal:scorched_tree", material = "ethereal:scorched_tree",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults() sounds = default.node_sound_wood_defaults()
@ -105,7 +105,7 @@ default.register_fence_rail("ethereal:fence_rail_scorched", {
default.register_fence_rail("ethereal:fence_rail_frostwood", { default.register_fence_rail("ethereal:fence_rail_frostwood", {
description = S("Frost Fence Rail"), description = S("Frost Fence Rail"),
texture = "frost_wood.png", texture = "ethereal_frost_wood.png",
material = "ethereal:frost_wood", material = "ethereal:frost_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults() sounds = default.node_sound_wood_defaults()
@ -113,7 +113,7 @@ default.register_fence_rail("ethereal:fence_rail_frostwood", {
default.register_fence_rail("ethereal:fence_rail_redwood", { default.register_fence_rail("ethereal:fence_rail_redwood", {
description = S("Redwood Fence Rail"), description = S("Redwood Fence Rail"),
texture = "redwood_wood.png", texture = "ethereal_redwood_wood.png",
material = "ethereal:redwood_wood", material = "ethereal:redwood_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults() sounds = default.node_sound_wood_defaults()
@ -121,7 +121,7 @@ default.register_fence_rail("ethereal:fence_rail_redwood", {
default.register_fence_rail("ethereal:fence_rail_willow", { default.register_fence_rail("ethereal:fence_rail_willow", {
description = S("Willow Fence Rail"), description = S("Willow Fence Rail"),
texture = "willow_wood.png", texture = "ethereal_willow_wood.png",
material = "ethereal:willow_wood", material = "ethereal:willow_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults() sounds = default.node_sound_wood_defaults()
@ -129,7 +129,7 @@ default.register_fence_rail("ethereal:fence_rail_willow", {
default.register_fence_rail("ethereal:fence_rail_yellowwood", { default.register_fence_rail("ethereal:fence_rail_yellowwood", {
description = S("Healing Wood Fence Rail"), description = S("Healing Wood Fence Rail"),
texture = "yellow_wood.png", texture = "ethereal_yellow_wood.png",
material = "ethereal:yellow_wood", material = "ethereal:yellow_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults() sounds = default.node_sound_wood_defaults()
@ -145,7 +145,7 @@ default.register_fence_rail("ethereal:fence_rail_palm", {
default.register_fence_rail("ethereal:fence_rail_banana", { default.register_fence_rail("ethereal:fence_rail_banana", {
description = S("Banana Wood Fence Rail"), description = S("Banana Wood Fence Rail"),
texture = "banana_wood.png", texture = "ethereal_banana_wood.png",
material = "ethereal:banana_wood", material = "ethereal:banana_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults() sounds = default.node_sound_wood_defaults()
@ -153,7 +153,7 @@ default.register_fence_rail("ethereal:fence_rail_banana", {
default.register_fence_rail("ethereal:fence_rail_mushroom", { default.register_fence_rail("ethereal:fence_rail_mushroom", {
description = S("Mushroom Fence Rail"), description = S("Mushroom Fence Rail"),
texture = "mushroom_trunk.png", texture = "ethereal_mushroom_trunk.png",
material = "ethereal:mushroom_trunk", material = "ethereal:mushroom_trunk",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults() sounds = default.node_sound_wood_defaults()

View File

@ -530,8 +530,8 @@ minetest.register_craft({
-- Sashimi (Thanks to Natalia Grosner for letting me use the sashimi image) -- Sashimi (Thanks to Natalia Grosner for letting me use the sashimi image)
minetest.register_craftitem("ethereal:sashimi", { minetest.register_craftitem("ethereal:sashimi", {
description = S("Sashimi"), description = S("Sashimi"),
inventory_image = "sashimi.png", inventory_image = "ethereal_sashimi.png",
wield_image = "sashimi.png", wield_image = "ethereal_sashimi.png",
on_use = minetest.item_eat(4) on_use = minetest.item_eat(4)
}) })
@ -545,14 +545,14 @@ minetest.register_craft({
-- Worm -- Worm
minetest.register_craftitem("ethereal:worm", { minetest.register_craftitem("ethereal:worm", {
description = S("Worm"), description = S("Worm"),
inventory_image = "worm.png", inventory_image = "ethereal_worm.png",
wield_image = "worm.png", wield_image = "ethereal_worm.png"
}) })
minetest.register_craft({ minetest.register_craft({
output = "ethereal:worm", output = "ethereal:worm",
recipe = { recipe = {
{"default:dirt","default:dirt"}, {"default:dirt","default:dirt"}
} }
}) })

View File

@ -5,9 +5,9 @@ local S = ethereal.intllib
minetest.register_node("ethereal:banana", { minetest.register_node("ethereal:banana", {
description = S("Banana"), description = S("Banana"),
drawtype = "torchlike", drawtype = "torchlike",
tiles = {"banana_single.png"}, tiles = {"ethereal_banana_single.png"},
inventory_image = "banana_single.png", inventory_image = "ethereal_banana_single.png",
wield_image = "banana_single.png", wield_image = "ethereal_banana_single.png",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
walkable = false, walkable = false,
@ -26,16 +26,16 @@ minetest.register_node("ethereal:banana", {
if placer:is_player() then if placer:is_player() then
minetest.set_node(pos, {name = "ethereal:banana", param2 = 1}) minetest.set_node(pos, {name = "ethereal:banana", param2 = 1})
end end
end, end
}) })
-- Banana Bunch -- Banana Bunch
minetest.register_node("ethereal:banana_bunch", { minetest.register_node("ethereal:banana_bunch", {
description = S("Banana Bunch"), description = S("Banana Bunch"),
drawtype = "torchlike", drawtype = "torchlike",
tiles = {"banana_bunch.png"}, tiles = {"ethereal_banana_bunch.png"},
inventory_image = "banana_bunch.png", inventory_image = "ethereal_banana_bunch.png",
wield_image = "banana_bunch.png", wield_image = "ethereal_banana_bunch.png",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
walkable = false, walkable = false,
@ -54,7 +54,7 @@ minetest.register_node("ethereal:banana_bunch", {
if placer:is_player() then if placer:is_player() then
minetest.set_node(pos, {name = "ethereal:banana_bunch", param2 = 1}) minetest.set_node(pos, {name = "ethereal:banana_bunch", param2 = 1})
end end
end, end
}) })
-- Bunch to Single -- Bunch to Single
@ -73,7 +73,7 @@ minetest.register_craft({
-- Banana Dough -- Banana Dough
minetest.register_craftitem("ethereal:banana_dough", { minetest.register_craftitem("ethereal:banana_dough", {
description = S("Banana Dough"), description = S("Banana Dough"),
inventory_image = "banana_dough.png", inventory_image = "ethereal_banana_dough.png"
}) })
minetest.register_craft({ minetest.register_craft({
@ -120,19 +120,19 @@ minetest.register_node("ethereal:orange", {
-- Pine Nuts (Heals 1/2 heart when eaten) -- Pine Nuts (Heals 1/2 heart when eaten)
minetest.register_craftitem("ethereal:pine_nuts", { minetest.register_craftitem("ethereal:pine_nuts", {
description = S("Pine Nuts"), description = S("Pine Nuts"),
inventory_image = "pine_nuts.png", inventory_image = "ethereal_pine_nuts.png",
wield_image = "pine_nuts.png", wield_image = "ethereal_pine_nuts.png",
groups = {food_pine_nuts = 1, flammable = 2}, groups = {food_pine_nuts = 1, flammable = 2},
on_use = minetest.item_eat(1), on_use = minetest.item_eat(1)
}) })
-- Banana Loaf (Heals 3 hearts when eaten) -- Banana Loaf (Heals 3 hearts when eaten)
minetest.register_craftitem("ethereal:banana_bread", { minetest.register_craftitem("ethereal:banana_bread", {
description = S("Banana Loaf"), description = S("Banana Loaf"),
inventory_image = "banana_bread.png", inventory_image = "ethereal_banana_bread.png",
wield_image = "banana_bread.png", wield_image = "ethereal_banana_bread.png",
groups = {food_bread = 1, flammable = 3}, groups = {food_bread = 1, flammable = 3},
on_use = minetest.item_eat(6), on_use = minetest.item_eat(6)
}) })
-- Coconut (Gives 4 coconut slices, each heal 1/2 heart) -- Coconut (Gives 4 coconut slices, each heal 1/2 heart)
@ -154,7 +154,7 @@ minetest.register_node("ethereal:coconut", {
choppy = 1, flammable = 1, leafdecay = 3, leafdecay_drop = 1 choppy = 1, flammable = 1, leafdecay = 3, leafdecay_drop = 1
}, },
drop = "ethereal:coconut_slice 4", drop = "ethereal:coconut_slice 4",
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults()
}) })
-- Coconut Slice (Heals half heart when eaten) -- Coconut Slice (Heals half heart when eaten)
@ -163,7 +163,7 @@ minetest.register_craftitem("ethereal:coconut_slice", {
inventory_image = "moretrees_coconut_slice.png", inventory_image = "moretrees_coconut_slice.png",
wield_image = "moretrees_coconut_slice.png", wield_image = "moretrees_coconut_slice.png",
groups = {food_coconut_slice = 1, flammable = 1}, groups = {food_coconut_slice = 1, flammable = 1},
on_use = minetest.item_eat(1), on_use = minetest.item_eat(1)
}) })
-- Golden Apple (Found on Healing Tree, heals all 10 hearts) -- Golden Apple (Found on Healing Tree, heals all 10 hearts)
@ -197,15 +197,15 @@ minetest.register_node("ethereal:golden_apple", {
if placer:is_player() then if placer:is_player() then
minetest.set_node(pos, {name = "ethereal:golden_apple", param2 = 1}) minetest.set_node(pos, {name = "ethereal:golden_apple", param2 = 1})
end end
end, end
}) })
-- Hearty Stew (Heals 5 hearts - thanks to ZonerDarkRevention for his DokuCraft DeviantArt bowl texture) -- Hearty Stew (Heals 5 hearts - thanks to ZonerDarkRevention for his DokuCraft DeviantArt bowl texture)
minetest.register_craftitem("ethereal:hearty_stew", { minetest.register_craftitem("ethereal:hearty_stew", {
description = S("Hearty Stew"), description = S("Hearty Stew"),
inventory_image = "hearty_stew.png", inventory_image = "ethereal_hearty_stew.png",
wield_image = "hearty_stew.png", wield_image = "ethereal_hearty_stew.png",
on_use = minetest.item_eat(10, "ethereal:bowl"), on_use = minetest.item_eat(10, "ethereal:bowl")
}) })
minetest.register_craft({ minetest.register_craft({
@ -213,7 +213,7 @@ minetest.register_craft({
recipe = { recipe = {
{"group:food_onion","flowers:mushroom_brown", "group:food_tuber"}, {"group:food_onion","flowers:mushroom_brown", "group:food_tuber"},
{"","flowers:mushroom_brown", ""}, {"","flowers:mushroom_brown", ""},
{"","group:food_bowl", ""}, {"","group:food_bowl", ""}
} }
}) })
@ -224,7 +224,7 @@ minetest.register_craft({
recipe = { recipe = {
{"group:food_onion","flowers:mushroom_brown", "group:food_beans"}, {"group:food_onion","flowers:mushroom_brown", "group:food_beans"},
{"","flowers:mushroom_brown", ""}, {"","flowers:mushroom_brown", ""},
{"","group:food_bowl", ""}, {"","group:food_bowl", ""}
} }
}) })
end end
@ -253,7 +253,7 @@ minetest.register_craftitem("ethereal:firethorn_jelly", {
inventory_image = "ethereal_firethorn_jelly.png", inventory_image = "ethereal_firethorn_jelly.png",
wield_image = "ethereal_firethorn_jelly.png", wield_image = "ethereal_firethorn_jelly.png",
on_use = minetest.item_eat(2, "vessels:glass_bottle"), on_use = minetest.item_eat(2, "vessels:glass_bottle"),
groups = {vessel = 1}, groups = {vessel = 1}
}) })
if minetest.registered_items["farming:bowl"] then if minetest.registered_items["farming:bowl"] then
@ -264,12 +264,12 @@ minetest.register_craft({
recipe = { recipe = {
"farming:mortar_pestle","vessels:glass_bottle", "farming:mortar_pestle","vessels:glass_bottle",
"ethereal:firethorn", "ethereal:firethorn", "ethereal:firethorn", "ethereal:firethorn", "ethereal:firethorn", "ethereal:firethorn",
"bucket:bucket_water", "bucket:bucket_water", "bucket:bucket_water", "bucket:bucket_water", "bucket:bucket_water", "bucket:bucket_water"
}, },
replacements = { replacements = {
{"bucket:bucket_water", "bucket:bucket_empty 3"}, {"bucket:bucket_water", "bucket:bucket_empty 3"},
{"farming:mortar_pestle", "farming:mortar_pestle"}, {"farming:mortar_pestle", "farming:mortar_pestle"}
}, }
}) })
end end
@ -278,9 +278,9 @@ end
minetest.register_node("ethereal:lemon", { minetest.register_node("ethereal:lemon", {
description = S("Lemon"), description = S("Lemon"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"lemon.png"}, tiles = {"ethereal_lemon.png"},
inventory_image = "lemon_fruit.png", inventory_image = "ethereal_lemon_fruit.png",
wield_image = "lemon_fruit.png", wield_image = "ethereal_lemon_fruit.png",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
walkable = false, walkable = false,
@ -299,7 +299,7 @@ minetest.register_node("ethereal:lemon", {
if placer:is_player() then if placer:is_player() then
minetest.set_node(pos, {name = "ethereal:lemon", param2 = 1}) minetest.set_node(pos, {name = "ethereal:lemon", param2 = 1})
end end
end, end
}) })
-- Candied Lemon -- Candied Lemon
@ -308,7 +308,7 @@ minetest.register_craftitem("ethereal:candied_lemon", {
inventory_image = "ethereal_candied_lemon.png", inventory_image = "ethereal_candied_lemon.png",
wield_image = "ethereal_candied_lemon.png", wield_image = "ethereal_candied_lemon.png",
groups = {food_candied_lemon = 1}, groups = {food_candied_lemon = 1},
on_use = minetest.item_eat(5), on_use = minetest.item_eat(5)
}) })
minetest.register_craft({ minetest.register_craft({
@ -319,7 +319,7 @@ minetest.register_craft({
}, },
replacements = { replacements = {
{"farming:baking_tray", "farming:baking_tray"} {"farming:baking_tray", "farming:baking_tray"}
}, }
}) })
-- Lemonade -- Lemonade
@ -356,9 +356,9 @@ minetest.register_craft({
minetest.register_node("ethereal:olive", { minetest.register_node("ethereal:olive", {
description = S("Olive"), description = S("Olive"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"olive.png"}, tiles = {"ethereal_olive.png"},
inventory_image = "olive_fruit.png", inventory_image = "ethereal_olive_fruit.png",
wield_image = "olive_fruit.png", wield_image = "ethereal_olive_fruit.png",
visual_scale = 0.2, visual_scale = 0.2,
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
@ -378,7 +378,7 @@ minetest.register_node("ethereal:olive", {
if placer:is_player() then if placer:is_player() then
minetest.set_node(pos, {name = "ethereal:olive", param2 = 1}) minetest.set_node(pos, {name = "ethereal:olive", param2 = 1})
end end
end, end
}) })
-- Olive Oil -- Olive Oil
@ -386,7 +386,7 @@ minetest.register_craftitem("ethereal:olive_oil", {
description = S("Olive Oil"), description = S("Olive Oil"),
inventory_image = "ethereal_olive_oil.png", inventory_image = "ethereal_olive_oil.png",
wield_image = "ethereal_olive_oil.png", wield_image = "ethereal_olive_oil.png",
groups = {food_oil = 1, food_olive_oil = 1, vessel = 1}, groups = {food_oil = 1, food_olive_oil = 1, vessel = 1}
}) })
minetest.register_craft({ minetest.register_craft({
@ -399,14 +399,14 @@ minetest.register_craft({
}, },
replacements = { replacements = {
{"farming:juicer", "farming:juicer"} {"farming:juicer", "farming:juicer"}
}, }
}) })
-- Kappa Maki (sushi with cucumber) -- Kappa Maki (sushi with cucumber)
minetest.register_craftitem("ethereal:sushi_kappamaki", { minetest.register_craftitem("ethereal:sushi_kappamaki", {
description = S("Kappa Maki Sushi"), description = S("Kappa Maki Sushi"),
inventory_image = "ethereal_sushi_kappa_maki.png", inventory_image = "ethereal_sushi_kappa_maki.png",
on_use = minetest.item_eat(3), on_use = minetest.item_eat(3)
}) })
minetest.register_craft({ minetest.register_craft({
@ -420,7 +420,7 @@ minetest.register_craft({
minetest.register_craftitem("ethereal:sushi_nigiri", { minetest.register_craftitem("ethereal:sushi_nigiri", {
description = S("Nigiri Sushi"), description = S("Nigiri Sushi"),
inventory_image = "ethereal_sushi_nigiri.png", inventory_image = "ethereal_sushi_nigiri.png",
on_use = minetest.item_eat(2), on_use = minetest.item_eat(2)
}) })
minetest.register_craft({ minetest.register_craft({
@ -434,7 +434,7 @@ minetest.register_craft({
minetest.register_craftitem("ethereal:sushi_tamago", { minetest.register_craftitem("ethereal:sushi_tamago", {
description = S("Tamago Sushi"), description = S("Tamago Sushi"),
inventory_image = "ethereal_sushi_tamago.png", inventory_image = "ethereal_sushi_tamago.png",
on_use = minetest.item_eat(2), on_use = minetest.item_eat(2)
}) })
minetest.register_craft({ minetest.register_craft({

View File

@ -5,35 +5,35 @@ local S = ethereal.intllib
doors.register_fencegate("ethereal:fencegate_scorched", { doors.register_fencegate("ethereal:fencegate_scorched", {
description = S("Scorched Wood Fence Gate"), description = S("Scorched Wood Fence Gate"),
texture = "scorched_tree.png", texture = "ethereal_scorched_tree.png",
material = "ethereal:scorched_tree", material = "ethereal:scorched_tree",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2} groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
}) })
doors.register_fencegate("ethereal:fencegate_frostwood", { doors.register_fencegate("ethereal:fencegate_frostwood", {
description = S("Frost Wood Fence Gate"), description = S("Frost Wood Fence Gate"),
texture = "frost_wood.png", texture = "ethereal_frost_wood.png",
material = "ethereal:frost_wood", material = "ethereal:frost_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2} groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
}) })
doors.register_fencegate("ethereal:fencegate_redwood", { doors.register_fencegate("ethereal:fencegate_redwood", {
description = S("Redwood Fence Gate"), description = S("Redwood Fence Gate"),
texture = "redwood_wood.png", texture = "ethereal_redwood_wood.png",
material = "ethereal:redwood_wood", material = "ethereal:redwood_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2} groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
}) })
doors.register_fencegate("ethereal:fencegate_willow", { doors.register_fencegate("ethereal:fencegate_willow", {
description = S("Willow Wood Fence Gate"), description = S("Willow Wood Fence Gate"),
texture = "willow_wood.png", texture = "ethereal_willow_wood.png",
material = "ethereal:willow_wood", material = "ethereal:willow_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2} groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
}) })
doors.register_fencegate("ethereal:fencegate_yellowwood", { doors.register_fencegate("ethereal:fencegate_yellowwood", {
description = S("Healing Wood Fence Gate"), description = S("Healing Wood Fence Gate"),
texture = "yellow_wood.png", texture = "ethereal_yellow_wood.png",
material = "ethereal:yellow_wood", material = "ethereal:yellow_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2} groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
}) })
@ -47,14 +47,14 @@ doors.register_fencegate("ethereal:fencegate_palm", {
doors.register_fencegate("ethereal:fencegate_banana", { doors.register_fencegate("ethereal:fencegate_banana", {
description = S("Banana Wood Fence Gate"), description = S("Banana Wood Fence Gate"),
texture = "banana_wood.png", texture = "ethereal_banana_wood.png",
material = "ethereal:banana_wood", material = "ethereal:banana_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2} groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
}) })
doors.register_fencegate("ethereal:fencegate_mushroom", { doors.register_fencegate("ethereal:fencegate_mushroom", {
description = S("Mushroom Trunk Fence Gate"), description = S("Mushroom Trunk Fence Gate"),
texture = "mushroom_trunk.png", texture = "ethereal_mushroom_trunk.png",
material = "ethereal:mushroom_trunk", material = "ethereal:mushroom_trunk",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2} groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
}) })
@ -88,22 +88,22 @@ minetest.register_alias("ethereal:fencegate_pine_closed", "doors:gate_pine_wood_
-- sakura door -- sakura door
doors.register_door("ethereal:door_sakura", { doors.register_door("ethereal:door_sakura", {
tiles = { tiles = {
{name = "ethereal_sakura_door.png", backface_culling = true} {name = "ethereal_sakura_door.png", backface_culling = true}
}, },
description = S("Sakura Wood Door"), description = S("Sakura Wood Door"),
inventory_image = "ethereal_sakura_door_inv.png", inventory_image = "ethereal_sakura_door_inv.png",
groups = { groups = {
snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2,
flammable = 2 flammable = 2
}, },
sound_open = "doors_glass_door_open", sound_open = "doors_glass_door_open",
sound_close = "doors_glass_door_close", sound_close = "doors_glass_door_close",
recipe = { recipe = {
{"group:stick", "default:paper"}, {"group:stick", "default:paper"},
{"default:paper", "group:stick"}, {"default:paper", "group:stick"},
{"ethereal:sakura_wood", "ethereal:sakura_wood"} {"ethereal:sakura_wood", "ethereal:sakura_wood"}
} }
}) })
minetest.register_alias("ethereal:sakura_door", "ethereal:door_sakura") minetest.register_alias("ethereal:sakura_door", "ethereal:door_sakura")

View File

@ -73,9 +73,9 @@ minetest.override_item("default:aspen_leaves", {
minetest.register_node("ethereal:willow_twig", { minetest.register_node("ethereal:willow_twig", {
description = S("Willow Twig"), description = S("Willow Twig"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"willow_twig.png"}, tiles = {"ethereal_willow_twig.png"},
inventory_image = "willow_twig.png", inventory_image = "ethereal_willow_twig.png",
wield_image = "willow_twig.png", wield_image = "ethereal_willow_twig.png",
paramtype = "light", paramtype = "light",
walkable = ethereal.leafwalk, walkable = ethereal.leafwalk,
visual_scale = leafscale, visual_scale = leafscale,
@ -89,7 +89,7 @@ minetest.register_node("ethereal:willow_twig", {
} }
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves, after_place_node = default.after_place_leaves
}) })
-- redwood leaves -- redwood leaves
@ -97,9 +97,9 @@ minetest.register_node("ethereal:redwood_leaves", {
description = S("Redwood Leaves"), description = S("Redwood Leaves"),
drawtype = leaftype, drawtype = leaftype,
visual_scale = leafscale, visual_scale = leafscale,
tiles = {"redwood_leaves.png"}, tiles = {"ethereal_redwood_leaves.png"},
inventory_image = "redwood_leaves.png", inventory_image = "ethereal_redwood_leaves.png",
wield_image = "redwood_leaves.png", wield_image = "ethereal_redwood_leaves.png",
paramtype = "light", paramtype = "light",
walkable = ethereal.leafwalk, walkable = ethereal.leafwalk,
waving = 1, waving = 1,
@ -112,7 +112,7 @@ minetest.register_node("ethereal:redwood_leaves", {
} }
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves, after_place_node = default.after_place_leaves
}) })
-- orange tree leaves -- orange tree leaves
@ -120,9 +120,9 @@ minetest.register_node("ethereal:orange_leaves", {
description = S("Orange Leaves"), description = S("Orange Leaves"),
drawtype = leaftype, drawtype = leaftype,
visual_scale = leafscale, visual_scale = leafscale,
tiles = {"orange_leaves.png"}, tiles = {"ethereal_orange_leaves.png"},
inventory_image = "orange_leaves.png", inventory_image = "ethereal_orange_leaves.png",
wield_image = "orange_leaves.png", wield_image = "ethereal_orange_leaves.png",
paramtype = "light", paramtype = "light",
walkable = ethereal.leafwalk, walkable = ethereal.leafwalk,
waving = 1, waving = 1,
@ -135,7 +135,7 @@ minetest.register_node("ethereal:orange_leaves", {
} }
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves, after_place_node = default.after_place_leaves
}) })
-- banana tree leaves -- banana tree leaves
@ -143,9 +143,9 @@ minetest.register_node("ethereal:bananaleaves", {
description = S("Banana Leaves"), description = S("Banana Leaves"),
drawtype = leaftype, drawtype = leaftype,
visual_scale = leafscale, visual_scale = leafscale,
tiles = {"banana_leaf.png"}, tiles = {"ethereal_banana_leaf.png"},
inventory_image = "banana_leaf.png", inventory_image = "ethereal_banana_leaf.png",
wield_image = "banana_leaf.png", wield_image = "ethereal_banana_leaf.png",
paramtype = "light", paramtype = "light",
walkable = ethereal.leafwalk, walkable = ethereal.leafwalk,
waving = 1, waving = 1,
@ -158,7 +158,7 @@ minetest.register_node("ethereal:bananaleaves", {
} }
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves, after_place_node = default.after_place_leaves
}) })
-- healing tree leaves -- healing tree leaves
@ -166,9 +166,9 @@ minetest.register_node("ethereal:yellowleaves", {
description = S("Healing Tree Leaves"), description = S("Healing Tree Leaves"),
drawtype = leaftype, drawtype = leaftype,
visual_scale = leafscale, visual_scale = leafscale,
tiles = {"yellow_leaves.png"}, tiles = {"ethereal_yellow_leaves.png"},
inventory_image = "yellow_leaves.png", inventory_image = "ethereal_yellow_leaves.png",
wield_image = "yellow_leaves.png", wield_image = "ethereal_yellow_leaves.png",
paramtype = "light", paramtype = "light",
walkable = ethereal.leafwalk, walkable = ethereal.leafwalk,
waving = 1, waving = 1,
@ -184,7 +184,7 @@ minetest.register_node("ethereal:yellowleaves", {
on_use = minetest.item_eat(1), on_use = minetest.item_eat(1),
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves, after_place_node = default.after_place_leaves,
light_source = 9, light_source = 9
}) })
-- palm tree leaves -- palm tree leaves
@ -207,7 +207,7 @@ minetest.register_node("ethereal:palmleaves", {
} }
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves, after_place_node = default.after_place_leaves
}) })
-- birch tree leaves -- birch tree leaves
@ -230,7 +230,7 @@ minetest.register_node("ethereal:birch_leaves", {
} }
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves, after_place_node = default.after_place_leaves
}) })
-- frost tree leaves -- frost tree leaves
@ -254,7 +254,7 @@ minetest.register_node("ethereal:frost_leaves", {
}, },
light_source = 9, light_source = 9,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves, after_place_node = default.after_place_leaves
}) })
-- bamboo stalk leaves -- bamboo stalk leaves
@ -262,9 +262,9 @@ minetest.register_node("ethereal:bamboo_leaves", {
description = S("Bamboo Leaves"), description = S("Bamboo Leaves"),
drawtype = leaftype, drawtype = leaftype,
visual_scale = leafscale, visual_scale = leafscale,
tiles = {"bamboo_leaves.png"}, tiles = {"ethereal_bamboo_leaves.png"},
inventory_image = "bamboo_leaves.png", inventory_image = "ethereal_bamboo_leaves.png",
wield_image = "bamboo_leaves.png", wield_image = "ethereal_bamboo_leaves.png",
paramtype = "light", paramtype = "light",
walkable = ethereal.leafwalk, walkable = ethereal.leafwalk,
waving = 1, waving = 1,
@ -277,7 +277,7 @@ minetest.register_node("ethereal:bamboo_leaves", {
} }
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves, after_place_node = default.after_place_leaves
}) })
-- sakura leaves -- sakura leaves
@ -300,7 +300,7 @@ minetest.register_node("ethereal:sakura_leaves", {
} }
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves, after_place_node = default.after_place_leaves
}) })
minetest.register_node("ethereal:sakura_leaves2", { minetest.register_node("ethereal:sakura_leaves2", {
@ -322,7 +322,7 @@ minetest.register_node("ethereal:sakura_leaves2", {
} }
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves, after_place_node = default.after_place_leaves
}) })
-- lemon tree leaves -- lemon tree leaves
@ -330,9 +330,9 @@ minetest.register_node("ethereal:lemon_leaves", {
description = S("Lemon Tree Leaves"), description = S("Lemon Tree Leaves"),
drawtype = leaftype, drawtype = leaftype,
visual_scale = leafscale, visual_scale = leafscale,
tiles = {"lemon_leaves.png"}, tiles = {"ethereal_lemon_leaves.png"},
inventory_image = "lemon_leaves.png", inventory_image = "ethereal_lemon_leaves.png",
wield_image = "lemon_leaves.png", wield_image = "ethereal_lemon_leaves.png",
paramtype = "light", paramtype = "light",
walkable = ethereal.leafwalk, walkable = ethereal.leafwalk,
waving = 1, waving = 1,
@ -345,7 +345,7 @@ minetest.register_node("ethereal:lemon_leaves", {
} }
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves, after_place_node = default.after_place_leaves
}) })
-- olive tree leaves -- olive tree leaves
@ -353,9 +353,9 @@ minetest.register_node("ethereal:olive_leaves", {
description = S("Olive Tree Leaves"), description = S("Olive Tree Leaves"),
drawtype = leaftype, drawtype = leaftype,
visual_scale = leafscale, visual_scale = leafscale,
tiles = {"olive_leaves.png"}, tiles = {"ethereal_olive_leaves.png"},
inventory_image = "olive_leaves.png", inventory_image = "ethereal_olive_leaves.png",
wield_image = "olive_leaves.png", wield_image = "ethereal_olive_leaves.png",
paramtype = "light", paramtype = "light",
walkable = ethereal.leafwalk, walkable = ethereal.leafwalk,
waving = 1, waving = 1,
@ -368,13 +368,13 @@ minetest.register_node("ethereal:olive_leaves", {
} }
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves, after_place_node = default.after_place_leaves
}) })
-- mushroom tops -- mushroom tops
minetest.register_node("ethereal:mushroom", { minetest.register_node("ethereal:mushroom", {
description = S("Mushroom Cap"), description = S("Mushroom Cap"),
tiles = {"mushroom_block.png"}, tiles = {"ethereal_mushroom_block.png"},
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, leafdecay = 3}, groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, leafdecay = 3},
drop = { drop = {
max_items = 1, max_items = 1,
@ -383,31 +383,31 @@ minetest.register_node("ethereal:mushroom", {
{items = {"ethereal:mushroom"}} {items = {"ethereal:mushroom"}}
} }
}, },
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults()
}) })
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "ethereal:mushroom", recipe = "ethereal:mushroom",
burntime = 10, burntime = 10
}) })
-- mushroom pore (spongelike material found inside giant shrooms) -- mushroom pore (spongelike material found inside giant shrooms)
minetest.register_node("ethereal:mushroom_pore", { minetest.register_node("ethereal:mushroom_pore", {
description = S("Mushroom Pore"), description = S("Mushroom Pore"),
tiles = {"mushroom_pore.png"}, tiles = {"ethereal_mushroom_pore.png"},
groups = { groups = {
snappy = 3, cracky = 3, choppy = 3, oddly_breakable_by_hand = 3, snappy = 3, cracky = 3, choppy = 3, oddly_breakable_by_hand = 3,
flammable = 2, disable_jump = 1, fall_damage_add_percent = -100, flammable = 2, disable_jump = 1, fall_damage_add_percent = -100,
leafdecay = 3 leafdecay = 3
}, },
sounds = default.node_sound_dirt_defaults(), sounds = default.node_sound_dirt_defaults()
}) })
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "ethereal:mushroom_pore", recipe = "ethereal:mushroom_pore",
burntime = 3, burntime = 3
}) })
-- hedge block -- hedge block
@ -416,7 +416,7 @@ minetest.register_node("ethereal:bush", {
tiles = {"ethereal_bush.png"}, tiles = {"ethereal_bush.png"},
walkable = true, walkable = true,
groups = {snappy = 3, flammable = 2}, groups = {snappy = 3, flammable = 2},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults()
}) })
minetest.register_craft({ minetest.register_craft({
@ -424,14 +424,14 @@ minetest.register_craft({
recipe = { recipe = {
{"group:leaves", "group:leaves", "group:leaves"}, {"group:leaves", "group:leaves", "group:leaves"},
{"group:leaves", "ethereal:bamboo_leaves", "group:leaves"}, {"group:leaves", "ethereal:bamboo_leaves", "group:leaves"},
{"group:leaves", "group:leaves", "group:leaves"}, {"group:leaves", "group:leaves", "group:leaves"}
} }
}) })
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "ethereal:bush", recipe = "ethereal:bush",
burntime = 1, burntime = 1
}) })
-- bush block #2 -- bush block #2
@ -442,7 +442,7 @@ minetest.register_node("ethereal:bush2", {
paramtype = "light", paramtype = "light",
walkable = true, walkable = true,
groups = {snappy = 3, flammable = 2}, groups = {snappy = 3, flammable = 2},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults()
}) })
minetest.register_craft({ minetest.register_craft({
@ -450,14 +450,14 @@ minetest.register_craft({
recipe = { recipe = {
{"group:leaves", "group:leaves", "group:leaves"}, {"group:leaves", "group:leaves", "group:leaves"},
{"group:leaves", "default:aspen_leaves", "group:leaves"}, {"group:leaves", "default:aspen_leaves", "group:leaves"},
{"group:leaves", "group:leaves", "group:leaves"}, {"group:leaves", "group:leaves", "group:leaves"}
} }
}) })
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "ethereal:bush2", recipe = "ethereal:bush2",
burntime = 1, burntime = 1
}) })
-- bush block #3 -- bush block #3
@ -468,7 +468,7 @@ minetest.register_node("ethereal:bush3", {
paramtype = "light", paramtype = "light",
walkable = true, walkable = true,
groups = {snappy = 3, flammable = 2}, groups = {snappy = 3, flammable = 2},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults()
}) })
minetest.register_craft({ minetest.register_craft({
@ -476,14 +476,14 @@ minetest.register_craft({
recipe = { recipe = {
{"group:leaves", "group:leaves", "group:leaves"}, {"group:leaves", "group:leaves", "group:leaves"},
{"group:leaves", "default:pine_needles", "group:leaves"}, {"group:leaves", "default:pine_needles", "group:leaves"},
{"group:leaves", "group:leaves", "group:leaves"}, {"group:leaves", "group:leaves", "group:leaves"}
} }
}) })
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "ethereal:bush3", recipe = "ethereal:bush3",
burntime = 1, burntime = 1
}) })
-- compatibility check for new mt version with leafdecay function -- compatibility check for new mt version with leafdecay function

View File

@ -4,9 +4,9 @@ local S = ethereal.intllib
-- mushroom soup (Heals 1 heart) -- mushroom soup (Heals 1 heart)
minetest.register_craftitem("ethereal:mushroom_soup", { minetest.register_craftitem("ethereal:mushroom_soup", {
description = S("Mushroom Soup"), description = S("Mushroom Soup"),
inventory_image = "mushroom_soup.png", inventory_image = "ethereal_mushroom_soup.png",
groups = {drink = 1}, groups = {drink = 1},
on_use = minetest.item_eat(5, "ethereal:bowl"), on_use = minetest.item_eat(5, "ethereal:bowl")
}) })
minetest.register_craft({ minetest.register_craft({
@ -14,7 +14,7 @@ minetest.register_craft({
recipe = { recipe = {
{"flowers:mushroom_brown"}, {"flowers:mushroom_brown"},
{"flowers:mushroom_brown"}, {"flowers:mushroom_brown"},
{"group:food_bowl"}, {"group:food_bowl"}
} }
}) })
@ -23,6 +23,6 @@ minetest.register_craft({
output = "ethereal:mushroom", output = "ethereal:mushroom",
recipe = { recipe = {
{"flowers:mushroom_red", "flowers:mushroom_red"}, {"flowers:mushroom_red", "flowers:mushroom_red"},
{"flowers:mushroom_red", "flowers:mushroom_red"}, {"flowers:mushroom_red", "flowers:mushroom_red"}
} }
}) })

208
onion.lua
View File

@ -1,104 +1,104 @@
local S = ethereal.intllib local S = ethereal.intllib
-- wild onion -- wild onion
minetest.register_craftitem("ethereal:wild_onion_plant", { minetest.register_craftitem("ethereal:wild_onion_plant", {
description = S("Wild Onion"), description = S("Wild Onion"),
inventory_image = "wild_onion.png", inventory_image = "ethereal_wild_onion.png",
wield_image = "wild_onion.png", wield_image = "ethereal_wild_onion.png",
groups = {food_onion = 1, flammable = 2}, groups = {food_onion = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:wild_onion_1") return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:wild_onion_1")
end, end,
on_use = minetest.item_eat(2), on_use = minetest.item_eat(2),
}) })
-- Define Onion growth stages -- Define Onion growth stages
local crop_def = { local crop_def = {
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"ethereal_wild_onion_1.png"}, tiles = {"ethereal_wild_onion_1.png"},
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
walkable = false, walkable = false,
buildable_to = true, buildable_to = true,
drop = "", drop = "",
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5} fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
}, },
groups = { groups = {
snappy = 3, flammable = 2, plant = 1, attached_node = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1,
growing = 1, not_in_creative_inventory = 1 growing = 1, not_in_creative_inventory = 1
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
} }
--stage 1 --stage 1
minetest.register_node("ethereal:onion_1", table.copy(crop_def)) minetest.register_node("ethereal:onion_1", table.copy(crop_def))
--stage 2 --stage 2
crop_def.tiles = {"ethereal_wild_onion_2.png"} crop_def.tiles = {"ethereal_wild_onion_2.png"}
minetest.register_node("ethereal:onion_2", table.copy(crop_def)) minetest.register_node("ethereal:onion_2", table.copy(crop_def))
--stage 3 --stage 3
crop_def.tiles = {"ethereal_wild_onion_3.png"} crop_def.tiles = {"ethereal_wild_onion_3.png"}
minetest.register_node("ethereal:onion_3", table.copy(crop_def)) minetest.register_node("ethereal:onion_3", table.copy(crop_def))
--stage 4 --stage 4
crop_def.tiles = {"ethereal_wild_onion_4.png"} crop_def.tiles = {"ethereal_wild_onion_4.png"}
crop_def.drop = { crop_def.drop = {
items = { items = {
{items = {"ethereal:wild_onion_plant"}, rarity = 1}, {items = {"ethereal:wild_onion_plant"}, rarity = 1},
{items = {"ethereal:wild_onion_plant 2"}, rarity = 3}, {items = {"ethereal:wild_onion_plant 2"}, rarity = 3},
} }
} }
minetest.register_node("ethereal:onion_4", table.copy(crop_def)) minetest.register_node("ethereal:onion_4", table.copy(crop_def))
--stage 5 --stage 5
crop_def.tiles = {"ethereal_wild_onion_5.png"} crop_def.tiles = {"ethereal_wild_onion_5.png"}
crop_def.groups.growing = 0 crop_def.groups.growing = nil
crop_def.drop = { crop_def.drop = {
items = { items = {
{items = {"ethereal:wild_onion_plant 2"}, rarity = 1}, {items = {"ethereal:wild_onion_plant 2"}, rarity = 1},
{items = {"ethereal:wild_onion_plant 3"}, rarity = 2}, {items = {"ethereal:wild_onion_plant 3"}, rarity = 2},
} }
} }
minetest.register_node("ethereal:onion_5", table.copy(crop_def)) minetest.register_node("ethereal:onion_5", table.copy(crop_def))
-- growing routine if farming redo isn't present -- growing routine if farming redo isn't present
if not farming or not farming.mod or farming.mod ~= "redo" then if not farming or not farming.mod or farming.mod ~= "redo" then
minetest.register_abm({ minetest.register_abm({
label = "Ethereal grow onion", label = "Ethereal grow onion",
nodenames = {"ethereal:onion_1", "ethereal:onion_2", "ethereal:onion_3", "ethereal:onion_4"}, nodenames = {"ethereal:onion_1", "ethereal:onion_2", "ethereal:onion_3", "ethereal:onion_4"},
neighbors = {"farming:soil_wet"}, neighbors = {"farming:soil_wet"},
interval = 9, interval = 9,
chance = 20, chance = 20,
catch_up = false, catch_up = false,
action = function(pos, node) action = function(pos, node)
-- are we on wet soil? -- are we on wet soil?
pos.y = pos.y - 1 pos.y = pos.y - 1
if minetest.get_item_group(minetest.get_node(pos).name, "soil") < 3 then if minetest.get_item_group(minetest.get_node(pos).name, "soil") < 3 then
return return
end end
pos.y = pos.y + 1 pos.y = pos.y + 1
-- do we have enough light? -- do we have enough light?
local light = minetest.get_node_light(pos) local light = minetest.get_node_light(pos)
if not light if not light
or light < 13 then or light < 13 then
return return
end end
-- grow to next stage -- grow to next stage
local num = node.name:split("_")[2] local num = node.name:split("_")[2]
node.name = "ethereal:onion_" .. tonumber(num + 1) node.name = "ethereal:onion_" .. tonumber(num + 1)
minetest.swap_node(pos, node) minetest.swap_node(pos, node)
end end
}) })
end -- END IF end -- END IF

View File

@ -17,8 +17,8 @@ minetest.register_node("ethereal:firethorn", {
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 4 / 16, 5 / 16}, fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 4 / 16, 5 / 16}
}, }
}) })
-- Fire Flower -- Fire Flower
@ -38,7 +38,7 @@ minetest.register_node("ethereal:fire_flower", {
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 1 / 2, 5 / 16}, fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 1 / 2, 5 / 16}
}, },
on_punch = function(pos, node, puncher) on_punch = function(pos, node, puncher)
@ -47,52 +47,52 @@ minetest.register_node("ethereal:fire_flower", {
full_punch_interval = 1.0, full_punch_interval = 1.0,
damage_groups = {fleshy = 2} damage_groups = {fleshy = 2}
}, nil) }, nil)
end, end
}) })
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "ethereal:fire_flower", recipe = "ethereal:fire_flower",
burntime = 20, burntime = 20
}) })
-- Fire Dust -- Fire Dust
minetest.register_craftitem("ethereal:fire_dust", { minetest.register_craftitem("ethereal:fire_dust", {
description = S("Fire Dust"), description = S("Fire Dust"),
inventory_image = "fire_dust.png", inventory_image = "ethereal_fire_dust.png"
}) })
minetest.register_craft({ minetest.register_craft({
output = "ethereal:fire_dust 2", output = "ethereal:fire_dust 2",
recipe = { recipe = {
{"ethereal:fire_flower"}, {"ethereal:fire_flower"}
} }
}) })
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "ethereal:fire_dust", recipe = "ethereal:fire_dust",
burntime = 10, burntime = 10
}) })
-- vines -- vines
minetest.register_node("ethereal:vine", { minetest.register_node("ethereal:vine", {
description = S("Vine"), description = S("Vine"),
drawtype = "signlike", drawtype = "signlike",
tiles = {"vine.png"}, tiles = {"ethereal_vine.png"},
inventory_image = "vine.png", inventory_image = "ethereal_vine.png",
wield_image = "vine.png", wield_image = "ethereal_vine.png",
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
walkable = false, walkable = false,
climbable = true, climbable = true,
is_ground_content = false, is_ground_content = false,
selection_box = { selection_box = {
type = "wallmounted", type = "wallmounted"
}, },
groups = {choppy = 3, oddly_breakable_by_hand = 1, flammable = 2}, groups = {choppy = 3, oddly_breakable_by_hand = 1, flammable = 2},
legacy_wallmounted = true, legacy_wallmounted = true,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults()
}) })
minetest.register_craft({ minetest.register_craft({
@ -100,7 +100,7 @@ minetest.register_craft({
recipe = { recipe = {
{"group:leaves", "", "group:leaves"}, {"group:leaves", "", "group:leaves"},
{"", "group:leaves", ""}, {"", "group:leaves", ""},
{"group:leaves", "", "group:leaves"}, {"group:leaves", "", "group:leaves"}
} }
}) })
@ -108,9 +108,9 @@ minetest.register_craft({
minetest.register_node("ethereal:lightstring", { minetest.register_node("ethereal:lightstring", {
description = S("Light String Vine"), description = S("Light String Vine"),
drawtype = "signlike", drawtype = "signlike",
tiles = {"lightstring.png"}, tiles = {"ethereal_lightstring.png"},
inventory_image = "lightstring.png", inventory_image = "ethereal_lightstring.png",
wield_image = "lightstring.png", wield_image = "ethereal_lightstring.png",
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
light_source = 10, light_source = 10,
@ -118,11 +118,11 @@ minetest.register_node("ethereal:lightstring", {
climbable = true, climbable = true,
is_ground_content = false, is_ground_content = false,
selection_box = { selection_box = {
type = "wallmounted", type = "wallmounted"
}, },
groups = {choppy = 3, oddly_breakable_by_hand = 1, flammable = 2}, groups = {choppy = 3, oddly_breakable_by_hand = 1, flammable = 2},
legacy_wallmounted = true, legacy_wallmounted = true,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults()
}) })
minetest.register_craft({ minetest.register_craft({
@ -130,8 +130,8 @@ minetest.register_craft({
recipe = { recipe = {
{"ethereal:vine", "ethereal:vine", "ethereal:vine"}, {"ethereal:vine", "ethereal:vine", "ethereal:vine"},
{"ethereal:vine", "ethereal:fire_dust", "ethereal:vine"}, {"ethereal:vine", "ethereal:fire_dust", "ethereal:vine"},
{"ethereal:vine", "ethereal:vine", "ethereal:vine"}, {"ethereal:vine", "ethereal:vine", "ethereal:vine"}
}, }
}) })
-- Fern (boston) -- Fern (boston)
@ -139,9 +139,9 @@ minetest.register_node("ethereal:fern", {
description = S("Fern"), description = S("Fern"),
drawtype = "plantlike", drawtype = "plantlike",
visual_scale = 1.4, visual_scale = 1.4,
tiles = {"fern.png"}, tiles = {"ethereal_fern.png"},
inventory_image = "fern.png", inventory_image = "ethereal_fern.png",
wield_image = "fern.png", wield_image = "ethereal_fern.png",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
waving = 1, waving = 1,
@ -158,16 +158,16 @@ minetest.register_node("ethereal:fern", {
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 0.67, 5 / 16}, fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 0.67, 5 / 16}
}, }
}) })
-- Boston Ferns sometimes drop edible Tubers (heals 1/2 heart when eaten) -- Boston Ferns sometimes drop edible Tubers (heals 1/2 heart when eaten)
minetest.register_craftitem("ethereal:fern_tubers", { minetest.register_craftitem("ethereal:fern_tubers", {
description = S("Fern Tubers"), description = S("Fern Tubers"),
inventory_image = "fern_tubers.png", inventory_image = "ethereal_fern_tubers.png",
groups = {food_tuber = 1, flammable = 2}, groups = {food_tuber = 1, flammable = 2},
on_use = minetest.item_eat(1), on_use = minetest.item_eat(1)
}) })
-- Red Shrub (not flammable) -- Red Shrub (not flammable)
@ -186,8 +186,8 @@ minetest.register_node("ethereal:dry_shrub", {
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 4 / 16, 5 / 16}, fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 4 / 16, 5 / 16}
}, }
}) })
-- Grey Shrub (not Flammable - too cold to burn) -- Grey Shrub (not Flammable - too cold to burn)
@ -207,8 +207,8 @@ minetest.register_node("ethereal:snowygrass", {
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 5 / 16, 5 / 16}, fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 5 / 16, 5 / 16}
}, }
}) })
-- Crystal Shrub (not Flammable - too cold to burn) -- Crystal Shrub (not Flammable - too cold to burn)
@ -228,8 +228,8 @@ minetest.register_node("ethereal:crystalgrass", {
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 5 / 16, 5 / 16}, fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 5 / 16, 5 / 16}
}, }
}) })
-- Define Moss Types (Has grass textures on all sides) -- Define Moss Types (Has grass textures on all sides)
@ -245,8 +245,8 @@ local add_moss = function(typ, descr, texture, receipe_item)
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "ethereal:"..typ.."_moss", output = "ethereal:" .. typ .. "_moss",
recipe = {"default:dirt", receipe_item } recipe = {"default:dirt", receipe_item}
}) })
end end
@ -260,9 +260,9 @@ add_moss( "green", "Green", "default_grass.png", "default:jungleleaves")
minetest.register_node("ethereal:illumishroom", { minetest.register_node("ethereal:illumishroom", {
description = S("Red Illumishroom"), description = S("Red Illumishroom"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = { "illumishroom.png" }, tiles = {"ethereal_illumishroom_red.png"},
inventory_image = "illumishroom.png", inventory_image = "ethereal_illumishroom_red.png",
wield_image = "illumishroom.png", wield_image = "ethereal_illumishroom_red.png",
paramtype = "light", paramtype = "light",
light_source = 5, light_source = 5,
sunlight_propagates = true, sunlight_propagates = true,
@ -271,16 +271,16 @@ minetest.register_node("ethereal:illumishroom", {
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.47, 6 / 16}, fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.47, 6 / 16}
}, }
}) })
minetest.register_node("ethereal:illumishroom2", { minetest.register_node("ethereal:illumishroom2", {
description = S("Green Illumishroom"), description = S("Green Illumishroom"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = { "illumishroom2.png" }, tiles = {"ethereal_illumishroom_green.png"},
inventory_image = "illumishroom2.png", inventory_image = "ethereal_illumishroom_green.png",
wield_image = "illumishroom2.png", wield_image = "ethereal_illumishroom_green.png",
paramtype = "light", paramtype = "light",
light_source = 5, light_source = 5,
sunlight_propagates = true, sunlight_propagates = true,
@ -289,16 +289,16 @@ minetest.register_node("ethereal:illumishroom2", {
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.47, 6 / 16}, fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.47, 6 / 16}
}, }
}) })
minetest.register_node("ethereal:illumishroom3", { minetest.register_node("ethereal:illumishroom3", {
description = S("Cyan Illumishroom"), description = S("Cyan Illumishroom"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = { "illumishroom3.png" }, tiles = {"ethereal_illumishroom_cyan.png"},
inventory_image = "illumishroom3.png", inventory_image = "ethereal_illumishroom_cyan.png",
wield_image = "illumishroom3.png", wield_image = "ethereal_illumishroom_cyan.png",
paramtype = "light", paramtype = "light",
light_source = 5, light_source = 5,
sunlight_propagates = true, sunlight_propagates = true,
@ -307,6 +307,6 @@ minetest.register_node("ethereal:illumishroom3", {
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.47, 6 / 16}, fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.47, 6 / 16}
}, }
}) })

View File

@ -13,7 +13,7 @@ minetest.register_decoration({
decoration = { decoration = {
"xanadu:cactus_echinocereus", "xanadu:cactus_matucana", "xanadu:cactus_echinocereus", "xanadu:cactus_matucana",
"xanadu:cactus_baseball", "xanadu:cactus_golden" "xanadu:cactus_baseball", "xanadu:cactus_golden"
}, }
}) })
-- Desert Plants -- Desert Plants
@ -26,7 +26,7 @@ minetest.register_decoration({
decoration = { decoration = {
"xanadu:desert_kangaroo", "xanadu:desert_brittle", "xanadu:desert_kangaroo", "xanadu:desert_brittle",
"xanadu:desert_ocotillo", "xanadu:desert_whitesage" "xanadu:desert_ocotillo", "xanadu:desert_whitesage"
}, }
}) })
--= Prairie Biome --= Prairie Biome
@ -41,7 +41,7 @@ minetest.register_decoration({
decoration = { decoration = {
"xanadu:grass_prairie", "xanadu:grass_cord", "xanadu:grass_prairie", "xanadu:grass_cord",
"xanadu:grass_wheatgrass", "xanadu:desert_whitesage" "xanadu:grass_wheatgrass", "xanadu:desert_whitesage"
}, }
}) })
-- Flowers -- Flowers
@ -57,7 +57,7 @@ minetest.register_decoration({
decoration = { decoration = {
"xanadu:flower_jacobsladder", "xanadu:flower_thistle", "xanadu:flower_jacobsladder", "xanadu:flower_thistle",
"xanadu:flower_wildcarrot" "xanadu:flower_wildcarrot"
}, }
}) })
minetest.register_decoration({ minetest.register_decoration({
@ -72,7 +72,7 @@ minetest.register_decoration({
decoration = { decoration = {
"xanadu:flower_delphinium", "xanadu:flower_celosia", "xanadu:flower_delphinium", "xanadu:flower_celosia",
"xanadu:flower_daisy", "xanadu:flower_bluerose" "xanadu:flower_daisy", "xanadu:flower_bluerose"
}, }
}) })
-- Shrubs -- Shrubs
@ -89,7 +89,7 @@ minetest.register_decoration({
"prairie", "grassy", "grassytwo", "grove", "junglee", "prairie", "grassy", "grassytwo", "grove", "junglee",
"grayness", "jumble" "grayness", "jumble"
}, },
decoration = {"xanadu:shrub_kerria", "xanadu:shrub_spicebush"}, decoration = {"xanadu:shrub_kerria", "xanadu:shrub_spicebush"}
}) })
--= Jungle Biome --= Jungle Biome
@ -104,7 +104,7 @@ minetest.register_decoration({
"xanadu:rainforest_guzmania", "xanadu:rainforest_devil", "xanadu:rainforest_guzmania", "xanadu:rainforest_devil",
"xanadu:rainforest_lazarus", "xanadu:rainforest_lollipop", "xanadu:rainforest_lazarus", "xanadu:rainforest_lollipop",
"xanadu:mushroom_woolly" "xanadu:mushroom_woolly"
}, }
}) })
--= Cold Biomes --= Cold Biomes
@ -122,8 +122,7 @@ minetest.register_decoration({
"xanadu:mountain_edelweiss", "xanadu:mountain_armeria", "xanadu:mountain_edelweiss", "xanadu:mountain_armeria",
"xanadu:mountain_bellflower", "xanadu:mountain_willowherb", "xanadu:mountain_bellflower", "xanadu:mountain_willowherb",
"xanadu:mountain_bistort" "xanadu:mountain_bistort"
}, }
}) })
--= Mushroom Biome --= Mushroom Biome
@ -137,7 +136,7 @@ minetest.register_decoration({
decoration = { decoration = {
"xanadu:mushroom_powderpuff", "xanadu:mushroom_chanterelle", "xanadu:mushroom_powderpuff", "xanadu:mushroom_chanterelle",
"xanadu:mushroom_parasol" "xanadu:mushroom_parasol"
}, }
}) })
--= Lakeside --= Lakeside
@ -153,7 +152,7 @@ minetest.register_decoration({
"xanadu:wetlands_mannagrass", "xanadu:wetlands_turtle" "xanadu:wetlands_mannagrass", "xanadu:wetlands_turtle"
}, },
spawn_by = "default:water_source", spawn_by = "default:water_source",
num_spawn_by = 1, num_spawn_by = 1
}) })
--= Harsh Biomes --= Harsh Biomes
@ -176,7 +175,7 @@ minetest.register_decoration({
"junglee", "grassy", "grassytwo", "jumble", "snowy", "alpine", "junglee", "grassy", "grassytwo", "jumble", "snowy", "alpine",
"fiery", "mesa", "bamboo" "fiery", "mesa", "bamboo"
}, },
decoration = {"xanadu:spooky_thornbush", "xanadu:spooky_baneberry"}, decoration = {"xanadu:spooky_thornbush", "xanadu:spooky_baneberry"}
}) })
--= Poppy's growing in Clearing Biome in memory of RealBadAngel --= Poppy's growing in Clearing Biome in memory of RealBadAngel
@ -189,5 +188,5 @@ minetest.register_decoration({
sidelen = 16, sidelen = 16,
fill_ratio = 0.004, fill_ratio = 0.004,
biomes = {"clearing"}, biomes = {"clearing"},
decoration = {"xanadu:poppy"}, decoration = {"xanadu:poppy"}
}) })

View File

@ -5,9 +5,9 @@ local S = ethereal.intllib
minetest.register_node("ethereal:bamboo_sprout", { minetest.register_node("ethereal:bamboo_sprout", {
description = S("Bamboo Sprout"), description = S("Bamboo Sprout"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"bamboo_sprout.png"}, tiles = {"ethereal_bamboo_sprout.png"},
inventory_image = "bamboo_sprout.png", inventory_image = "ethereal_bamboo_sprout.png",
wield_image = "bamboo_sprout.png", wield_image = "ethereal_bamboo_sprout.png",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
walkable = false, walkable = false,
@ -21,7 +21,7 @@ minetest.register_node("ethereal:bamboo_sprout", {
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 0, 4 / 16} fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 0, 4 / 16}
}, },
on_use = minetest.item_eat(2), on_use = minetest.item_eat(2),
grown_height = 11, grown_height = 11
}) })
-- Register Saplings -- Register Saplings
@ -46,23 +46,23 @@ local register_sapling = function(name, desc, texture, height)
ethereal_sapling = 1, attached_node = 1, sapling = 1 ethereal_sapling = 1, attached_node = 1, sapling = 1
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
grown_height = height, grown_height = height
}) })
end end
register_sapling("ethereal:willow", "Willow", "willow_sapling", 14) register_sapling("ethereal:willow", "Willow", "ethereal_willow_sapling", 14)
register_sapling("ethereal:yellow_tree", "Healing", "yellow_tree_sapling", 19) register_sapling("ethereal:yellow_tree", "Healing", "ethereal_yellow_tree_sapling", 19)
register_sapling("ethereal:big_tree", "Big", "ethereal_big_tree_sapling", 7) register_sapling("ethereal:big_tree", "Big", "ethereal_big_tree_sapling", 7)
register_sapling("ethereal:banana_tree", "Banana", "banana_tree_sapling", 8) register_sapling("ethereal:banana_tree", "Banana", "ethereal_banana_tree_sapling", 8)
register_sapling("ethereal:frost_tree", "Frost", "ethereal_frost_tree_sapling", 19) register_sapling("ethereal:frost_tree", "Frost", "ethereal_frost_tree_sapling", 19)
register_sapling("ethereal:mushroom", "Mushroom", "ethereal_mushroom_sapling", 11) register_sapling("ethereal:mushroom", "Mushroom", "ethereal_mushroom_sapling", 11)
register_sapling("ethereal:palm", "Palm", "moretrees_palm_sapling", 9) register_sapling("ethereal:palm", "Palm", "moretrees_palm_sapling", 9)
register_sapling("ethereal:redwood", "Redwood", "redwood_sapling", 31) register_sapling("ethereal:redwood", "Redwood", "ethereal_redwood_sapling", 31)
register_sapling("ethereal:orange_tree", "Orange", "orange_tree_sapling", 6) register_sapling("ethereal:orange_tree", "Orange", "ethereal_orange_tree_sapling", 6)
register_sapling("ethereal:birch", "Birch", "moretrees_birch_sapling", 7) register_sapling("ethereal:birch", "Birch", "moretrees_birch_sapling", 7)
register_sapling("ethereal:sakura", "Sakura", "ethereal_sakura_sapling", 10) register_sapling("ethereal:sakura", "Sakura", "ethereal_sakura_sapling", 10)
register_sapling("ethereal:lemon_tree", "Lemon", "lemon_tree_sapling", 7) register_sapling("ethereal:lemon_tree", "Lemon", "ethereal_lemon_tree_sapling", 7)
register_sapling("ethereal:olive_tree", "Olive", "olive_tree_sapling", 10) register_sapling("ethereal:olive_tree", "Olive", "ethereal_olive_tree_sapling", 10)
local add_tree = function (pos, ofx, ofy, ofz, schem, replace) local add_tree = function (pos, ofx, ofy, ofz, schem, replace)
@ -260,5 +260,5 @@ minetest.register_abm({
end end
grow_sapling(pos, node) grow_sapling(pos, node)
end, end
}) })

View File

@ -5,9 +5,9 @@ local S = ethereal.intllib
minetest.register_node("ethereal:seaweed", { minetest.register_node("ethereal:seaweed", {
description = S("Seaweed"), description = S("Seaweed"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"seaweed.png"}, tiles = {"ethereal_seaweed.png"},
inventory_image = "seaweed.png", inventory_image = "ethereal_seaweed.png",
wield_image = "seaweed.png", wield_image = "ethereal_seaweed.png",
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
climbable = true, climbable = true,
@ -22,20 +22,20 @@ minetest.register_node("ethereal:seaweed", {
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_dig_node = function(pos, node, metadata, digger) after_dig_node = function(pos, node, metadata, digger)
default.dig_up(pos, node, digger) default.dig_up(pos, node, digger)
end, end
}) })
minetest.register_craft( { minetest.register_craft( {
type = "shapeless", type = "shapeless",
output = "dye:dark_green 3", output = "dye:dark_green 3",
recipe = {"ethereal:seaweed",}, recipe = {"ethereal:seaweed"}
}) })
-- agar powder -- agar powder
minetest.register_craftitem("ethereal:agar_powder", { minetest.register_craftitem("ethereal:agar_powder", {
description = S("Agar Powder"), description = S("Agar Powder"),
inventory_image = "ethereal_agar_powder.png", inventory_image = "ethereal_agar_powder.png",
groups = {food_gelatin = 1, flammable = 2}, groups = {food_gelatin = 1, flammable = 2}
}) })
minetest.register_craft({ minetest.register_craft({
@ -43,103 +43,103 @@ minetest.register_craft({
recipe = { recipe = {
{"group:food_seaweed", "group:food_seaweed", "group:food_seaweed"}, {"group:food_seaweed", "group:food_seaweed", "group:food_seaweed"},
{"bucket:bucket_water", "bucket:bucket_water", "default:torch"}, {"bucket:bucket_water", "bucket:bucket_water", "default:torch"},
{"bucket:bucket_water", "bucket:bucket_water", "default:torch"}, {"bucket:bucket_water", "bucket:bucket_water", "default:torch"}
}, },
replacements = { replacements = {
{"bucket:bucket_water", "bucket:bucket_empty 4"}, {"bucket:bucket_water", "bucket:bucket_empty 4"}
}, }
}) })
-- Blue Coral -- Blue Coral
minetest.register_node("ethereal:coral2", { minetest.register_node("ethereal:coral2", {
description = S("Blue Glow Coral"), description = S("Blue Glow Coral"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"coral2.png"}, tiles = {"ethereal_coral_blue.png"},
inventory_image = "coral2.png", inventory_image = "ethereal_coral_blue.png",
wield_image = "coral2.png", wield_image = "ethereal_coral_blue.png",
paramtype = "light", paramtype = "light",
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 1 / 4, 6 / 16}, fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 1 / 4, 6 / 16}
}, },
light_source = 3, light_source = 3,
groups = {snappy = 3}, groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults()
}) })
minetest.register_craft( { minetest.register_craft( {
type = "shapeless", type = "shapeless",
output = "dye:cyan 3", output = "dye:cyan 3",
recipe = {"ethereal:coral2",}, recipe = {"ethereal:coral2"}
}) })
-- Orange Coral -- Orange Coral
minetest.register_node("ethereal:coral3", { minetest.register_node("ethereal:coral3", {
description = S("Orange Glow Coral"), description = S("Orange Glow Coral"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"coral3.png"}, tiles = {"ethereal_coral_orange.png"},
inventory_image = "coral3.png", inventory_image = "ethereal_coral_orange.png",
wield_image = "coral3.png", wield_image = "ethereal_coral_orange.png",
paramtype = "light", paramtype = "light",
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 1 / 4, 6 / 16}, fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 1 / 4, 6 / 16}
}, },
light_source = 3, light_source = 3,
groups = {snappy = 3}, groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults()
}) })
minetest.register_craft( { minetest.register_craft( {
type = "shapeless", type = "shapeless",
output = "dye:orange 3", output = "dye:orange 3",
recipe = {"ethereal:coral3",}, recipe = {"ethereal:coral3"}
}) })
-- Pink Coral -- Pink Coral
minetest.register_node("ethereal:coral4", { minetest.register_node("ethereal:coral4", {
description = S("Pink Glow Coral"), description = S("Pink Glow Coral"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"coral4.png"}, tiles = {"ethereal_coral_pink.png"},
inventory_image = "coral4.png", inventory_image = "ethereal_coral_pink.png",
wield_image = "coral4.png", wield_image = "ethereal_coral_pink.png",
paramtype = "light", paramtype = "light",
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 8 / 16, 6 / 16}, fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 8 / 16, 6 / 16}
}, },
light_source = 3, light_source = 3,
groups = {snappy = 3}, groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults()
}) })
minetest.register_craft( { minetest.register_craft( {
type = "shapeless", type = "shapeless",
output = "dye:pink 3", output = "dye:pink 3",
recipe = {"ethereal:coral4",}, recipe = {"ethereal:coral4"}
}) })
-- Green Coral -- Green Coral
minetest.register_node("ethereal:coral5", { minetest.register_node("ethereal:coral5", {
description = S("Green Glow Coral"), description = S("Green Glow Coral"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"coral5.png"}, tiles = {"ethereal_coral_green.png"},
inventory_image = "coral5.png", inventory_image = "ethereal_coral_green.png",
wield_image = "coral5.png", wield_image = "ethereal_coral_green.png",
paramtype = "light", paramtype = "light",
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 3 / 16, 6 / 16}, fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 3 / 16, 6 / 16}
}, },
light_source = 3, light_source = 3,
groups = {snappy = 3}, groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults()
}) })
minetest.register_craft( { minetest.register_craft( {
type = "shapeless", type = "shapeless",
output = "dye:green 3", output = "dye:green 3",
recipe = {"ethereal:coral5",}, recipe = {"ethereal:coral5"}
}) })
-- Undersea Sand -- Undersea Sand
@ -151,7 +151,7 @@ minetest.register_node("ethereal:sandy", {
crumbly = 3, falling_node = 1, sand = 1, not_in_creative_inventory = 1 crumbly = 3, falling_node = 1, sand = 1, not_in_creative_inventory = 1
}, },
drop = "default:sand", drop = "default:sand",
sounds = default.node_sound_sand_defaults(), sounds = default.node_sound_sand_defaults()
}) })
-- randomly generate coral or seaweed and have seaweed grow up to 14 high -- randomly generate coral or seaweed and have seaweed grow up to 14 high
@ -220,7 +220,7 @@ minetest.register_node("ethereal:sponge_air", {
sunlight_propagates = true, sunlight_propagates = true,
pointable = false, pointable = false,
drop = "", drop = "",
groups = {not_in_creative_inventory = 1}, groups = {not_in_creative_inventory = 1}
}) })
@ -267,7 +267,7 @@ minetest.register_node("ethereal:sponge_wet", {
description = S("Wet sponge"), description = S("Wet sponge"),
tiles = {"ethereal_sponge_wet.png"}, tiles = {"ethereal_sponge_wet.png"},
groups = {crumbly = 3}, groups = {crumbly = 3},
sounds = default.node_sound_sand_defaults(), sounds = default.node_sound_sand_defaults()
}) })
-- cook wet sponge into dry sponge -- cook wet sponge into dry sponge
@ -275,7 +275,7 @@ minetest.register_craft({
type = "cooking", type = "cooking",
recipe = "ethereal:sponge_wet", recipe = "ethereal:sponge_wet",
output = "ethereal:sponge", output = "ethereal:sponge",
cooktime = 3, cooktime = 3
}) })
-- use leaf decay to remove sponge air nodes -- use leaf decay to remove sponge air nodes
@ -289,5 +289,5 @@ default.register_leafdecay({
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "ethereal:sponge", recipe = "ethereal:sponge",
burntime = 5, burntime = 5
}) })

View File

@ -53,7 +53,7 @@ do_stair(
"crystal_block", "crystal_block",
"ethereal:crystal_block", "ethereal:crystal_block",
{cracky = 1, level = 2, puts_out_fire = 1, cools_lava = 1}, {cracky = 1, level = 2, puts_out_fire = 1, cools_lava = 1},
{"crystal_block.png"}, {"ethereal_crystal_block.png"},
default.node_sound_glass_defaults()) default.node_sound_glass_defaults())
do_stair( do_stair(
@ -61,7 +61,7 @@ do_stair(
"icebrick", "icebrick",
"ethereal:icebrick", "ethereal:icebrick",
{cracky = 3, puts_out_fire = 1, cools_lava = 1}, {cracky = 3, puts_out_fire = 1, cools_lava = 1},
{"brick_ice.png"}, {"ethereal_brick_ice.png"},
default.node_sound_glass_defaults()) default.node_sound_glass_defaults())
do_stair( do_stair(
@ -69,7 +69,7 @@ do_stair(
"snowbrick", "snowbrick",
"ethereal:snowbrick", "ethereal:snowbrick",
{crumbly = 3, puts_out_fire = 1, cools_lava = 1}, {crumbly = 3, puts_out_fire = 1, cools_lava = 1},
{"brick_snow.png"}, {"ethereal_brick_snow.png"},
default.node_sound_dirt_defaults({ default.node_sound_dirt_defaults({
footstep = {name = "default_snow_footstep", gain = 0.25}, footstep = {name = "default_snow_footstep", gain = 0.25},
dug = {name = "default_snow_footstep", gain = 0.75}, dug = {name = "default_snow_footstep", gain = 0.75},
@ -88,7 +88,7 @@ do_stair(
"mushroom_trunk", "mushroom_trunk",
"ethereal:mushroom_trunk", "ethereal:mushroom_trunk",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 2}, {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
{"mushroom_trunk.png"}, {"ethereal_mushroom_trunk.png"},
default.node_sound_wood_defaults()) default.node_sound_wood_defaults())
do_stair( do_stair(
@ -96,7 +96,7 @@ do_stair(
"mushroom", "mushroom",
"ethereal:mushroom", "ethereal:mushroom",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 2}, {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
{"mushroom_block.png"}, {"ethereal_mushroom_block.png"},
default.node_sound_wood_defaults()) default.node_sound_wood_defaults())
do_stair( do_stair(
@ -104,7 +104,7 @@ do_stair(
"frost_wood", "frost_wood",
"ethereal:frost_wood", "ethereal:frost_wood",
{choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1}, {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
{"frost_wood.png"}, {"ethereal_frost_wood.png"},
default.node_sound_wood_defaults()) default.node_sound_wood_defaults())
do_stair( do_stair(
@ -112,7 +112,7 @@ do_stair(
"yellow_wood", "yellow_wood",
"ethereal:yellow_wood", "ethereal:yellow_wood",
{choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1}, {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
{"yellow_wood.png"}, {"ethereal_yellow_wood.png"},
default.node_sound_wood_defaults()) default.node_sound_wood_defaults())
do_stair( do_stair(
@ -136,7 +136,7 @@ do_stair(
"banana_wood", "banana_wood",
"ethereal:banana_wood", "ethereal:banana_wood",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"banana_wood.png"}, {"ethereal_banana_wood.png"},
default.node_sound_wood_defaults()) default.node_sound_wood_defaults())
do_stair( do_stair(
@ -144,7 +144,7 @@ do_stair(
"willow_wood", "willow_wood",
"ethereal:willow_wood", "ethereal:willow_wood",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"willow_wood.png"}, {"ethereal_willow_wood.png"},
default.node_sound_wood_defaults()) default.node_sound_wood_defaults())
do_stair( do_stair(
@ -152,7 +152,7 @@ do_stair(
"redwood_wood", "redwood_wood",
"ethereal:redwood_wood", "ethereal:redwood_wood",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"redwood_wood.png"}, {"ethereal_redwood_wood.png"},
default.node_sound_wood_defaults()) default.node_sound_wood_defaults())
do_stair( do_stair(
@ -160,7 +160,7 @@ do_stair(
"bamboo_wood", "bamboo_wood",
"ethereal:bamboo_block", "ethereal:bamboo_block",
{snappy = 3, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, {snappy = 3, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"bamboo_floor.png"}, {"ethereal_bamboo_floor.png"},
default.node_sound_wood_defaults()) default.node_sound_wood_defaults())
do_stair( do_stair(
@ -176,5 +176,5 @@ do_stair(
"olive_wood", "olive_wood",
"ethereal:olive_wood", "ethereal:olive_wood",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"olive_wood.png"}, {"ethereal_olive_wood.png"},
default.node_sound_wood_defaults()) default.node_sound_wood_defaults())

View File

@ -4,19 +4,19 @@ local S = ethereal.intllib
-- Strawberry (can also be planted as seed) -- Strawberry (can also be planted as seed)
minetest.register_craftitem("ethereal:strawberry", { minetest.register_craftitem("ethereal:strawberry", {
description = S("Strawberry"), description = S("Strawberry"),
inventory_image = "strawberry.png", inventory_image = "ethereal_strawberry.png",
wield_image = "strawberry.png", wield_image = "ethereal_strawberry.png",
groups = {food_strawberry = 1, food_berry = 1, flammable = 2}, groups = {food_strawberry = 1, food_berry = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:strawberry_1") return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:strawberry_1")
end, end,
on_use = minetest.item_eat(1), on_use = minetest.item_eat(1)
}) })
-- Define Strawberry Bush growth stages -- Define Strawberry Bush growth stages
local crop_def = { local crop_def = {
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"strawberry_1.png"}, tiles = {"ethereal_strawberry_1.png"},
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
waving = 1, waving = 1,
@ -31,55 +31,55 @@ local crop_def = {
snappy = 3, flammable = 2, plant = 1, attached_node = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1,
not_in_creative_inventory = 1, growing = 1 not_in_creative_inventory = 1, growing = 1
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults()
} }
--stage 1 --stage 1
minetest.register_node("ethereal:strawberry_1", table.copy(crop_def)) minetest.register_node("ethereal:strawberry_1", table.copy(crop_def))
-- stage 2 -- stage 2
crop_def.tiles = {"strawberry_2.png"} crop_def.tiles = {"ethereal_strawberry_2.png"}
minetest.register_node("ethereal:strawberry_2", table.copy(crop_def)) minetest.register_node("ethereal:strawberry_2", table.copy(crop_def))
-- stage 3 -- stage 3
crop_def.tiles = {"strawberry_3.png"} crop_def.tiles = {"ethereal_strawberry_3.png"}
minetest.register_node("ethereal:strawberry_3", table.copy(crop_def)) minetest.register_node("ethereal:strawberry_3", table.copy(crop_def))
-- stage 4 -- stage 4
crop_def.tiles = {"strawberry_4.png"} crop_def.tiles = {"ethereal_strawberry_4.png"}
minetest.register_node("ethereal:strawberry_4", table.copy(crop_def)) minetest.register_node("ethereal:strawberry_4", table.copy(crop_def))
-- stage 5 -- stage 5
crop_def.tiles = {"strawberry_5.png"} crop_def.tiles = {"ethereal_strawberry_5.png"}
minetest.register_node("ethereal:strawberry_5", table.copy(crop_def)) minetest.register_node("ethereal:strawberry_5", table.copy(crop_def))
-- stage 6 -- stage 6
crop_def.tiles = {"strawberry_6.png"} crop_def.tiles = {"ethereal_strawberry_6.png"}
crop_def.drop = { crop_def.drop = {
items = { items = {
{items = {"ethereal:strawberry 1"},rarity = 2}, {items = {"ethereal:strawberry 1"},rarity = 2},
{items = {"ethereal:strawberry 2"},rarity = 3}, {items = {"ethereal:strawberry 2"},rarity = 3}
} }
} }
minetest.register_node("ethereal:strawberry_6", table.copy(crop_def)) minetest.register_node("ethereal:strawberry_6", table.copy(crop_def))
-- stage 7 -- stage 7
crop_def.tiles = {"strawberry_7.png"} crop_def.tiles = {"ethereal_strawberry_7.png"}
crop_def.drop = { crop_def.drop = {
items = { items = {
{items = {"ethereal:strawberry 1"},rarity = 1}, {items = {"ethereal:strawberry 1"},rarity = 1},
{items = {"ethereal:strawberry 2"},rarity = 3}, {items = {"ethereal:strawberry 2"},rarity = 3}
} }
} }
minetest.register_node("ethereal:strawberry_7", table.copy(crop_def)) minetest.register_node("ethereal:strawberry_7", table.copy(crop_def))
-- stage 8 -- stage 8
crop_def.tiles = {"strawberry_8.png"} crop_def.tiles = {"ethereal_strawberry_8.png"}
crop_def.groups.growing = 0 crop_def.groups.growing = nil
crop_def.drop = { crop_def.drop = {
items = { items = {
{items = {"ethereal:strawberry 2"},rarity = 1}, {items = {"ethereal:strawberry 2"},rarity = 1},
{items = {"ethereal:strawberry 3"},rarity = 3}, {items = {"ethereal:strawberry 3"},rarity = 3}
} }
} }
minetest.register_node("ethereal:strawberry_8", table.copy(crop_def)) minetest.register_node("ethereal:strawberry_8", table.copy(crop_def))
@ -106,7 +106,7 @@ minetest.register_abm({
return return
end end
pos.y = pos.y + 1 pos.y = pos.y + 1
-- do we have enough light? -- do we have enough light?
local light = minetest.get_node_light(pos) local light = minetest.get_node_light(pos)
@ -114,7 +114,7 @@ minetest.register_abm({
or light < 13 then or light < 13 then
return return
end end
-- grow to next stage -- grow to next stage
local num = node.name:split("_")[2] local num = node.name:split("_")[2]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 B

View File

Before

Width:  |  Height:  |  Size: 564 B

After

Width:  |  Height:  |  Size: 564 B

View File

Before

Width:  |  Height:  |  Size: 219 B

After

Width:  |  Height:  |  Size: 219 B

View File

Before

Width:  |  Height:  |  Size: 367 B

After

Width:  |  Height:  |  Size: 367 B

View File

Before

Width:  |  Height:  |  Size: 207 B

After

Width:  |  Height:  |  Size: 207 B

View File

Before

Width:  |  Height:  |  Size: 385 B

After

Width:  |  Height:  |  Size: 385 B

View File

Before

Width:  |  Height:  |  Size: 251 B

After

Width:  |  Height:  |  Size: 251 B

View File

Before

Width:  |  Height:  |  Size: 193 B

After

Width:  |  Height:  |  Size: 193 B

View File

Before

Width:  |  Height:  |  Size: 421 B

After

Width:  |  Height:  |  Size: 421 B

View File

Before

Width:  |  Height:  |  Size: 200 B

After

Width:  |  Height:  |  Size: 200 B

View File

Before

Width:  |  Height:  |  Size: 177 B

After

Width:  |  Height:  |  Size: 177 B

View File

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 218 B

View File

Before

Width:  |  Height:  |  Size: 208 B

After

Width:  |  Height:  |  Size: 208 B

View File

Before

Width:  |  Height:  |  Size: 210 B

After

Width:  |  Height:  |  Size: 210 B

View File

Before

Width:  |  Height:  |  Size: 314 B

After

Width:  |  Height:  |  Size: 314 B

View File

Before

Width:  |  Height:  |  Size: 272 B

After

Width:  |  Height:  |  Size: 272 B

View File

Before

Width:  |  Height:  |  Size: 166 B

After

Width:  |  Height:  |  Size: 166 B

View File

Before

Width:  |  Height:  |  Size: 229 B

After

Width:  |  Height:  |  Size: 229 B

View File

Before

Width:  |  Height:  |  Size: 187 B

After

Width:  |  Height:  |  Size: 187 B

View File

Before

Width:  |  Height:  |  Size: 186 B

After

Width:  |  Height:  |  Size: 186 B

View File

Before

Width:  |  Height:  |  Size: 257 B

After

Width:  |  Height:  |  Size: 257 B

View File

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 348 B

View File

Before

Width:  |  Height:  |  Size: 209 B

After

Width:  |  Height:  |  Size: 209 B

View File

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 216 B

View File

Before

Width:  |  Height:  |  Size: 181 B

After

Width:  |  Height:  |  Size: 181 B

View File

Before

Width:  |  Height:  |  Size: 306 B

After

Width:  |  Height:  |  Size: 306 B

View File

Before

Width:  |  Height:  |  Size: 179 B

After

Width:  |  Height:  |  Size: 179 B

View File

Before

Width:  |  Height:  |  Size: 232 B

After

Width:  |  Height:  |  Size: 232 B

View File

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 204 B

View File

Before

Width:  |  Height:  |  Size: 184 B

After

Width:  |  Height:  |  Size: 184 B

View File

Before

Width:  |  Height:  |  Size: 380 B

After

Width:  |  Height:  |  Size: 380 B

View File

Before

Width:  |  Height:  |  Size: 183 B

After

Width:  |  Height:  |  Size: 183 B

View File

Before

Width:  |  Height:  |  Size: 214 B

After

Width:  |  Height:  |  Size: 214 B

View File

Before

Width:  |  Height:  |  Size: 187 B

After

Width:  |  Height:  |  Size: 187 B

View File

Before

Width:  |  Height:  |  Size: 161 B

After

Width:  |  Height:  |  Size: 161 B

View File

Before

Width:  |  Height:  |  Size: 269 B

After

Width:  |  Height:  |  Size: 269 B

View File

Before

Width:  |  Height:  |  Size: 524 B

After

Width:  |  Height:  |  Size: 524 B

View File

Before

Width:  |  Height:  |  Size: 334 B

After

Width:  |  Height:  |  Size: 334 B

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 382 B

After

Width:  |  Height:  |  Size: 382 B

View File

Before

Width:  |  Height:  |  Size: 407 B

After

Width:  |  Height:  |  Size: 407 B

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 206 B

After

Width:  |  Height:  |  Size: 206 B

View File

Before

Width:  |  Height:  |  Size: 361 B

After

Width:  |  Height:  |  Size: 361 B

View File

Before

Width:  |  Height:  |  Size: 201 B

After

Width:  |  Height:  |  Size: 201 B

View File

Before

Width:  |  Height:  |  Size: 232 B

After

Width:  |  Height:  |  Size: 232 B

View File

Before

Width:  |  Height:  |  Size: 247 B

After

Width:  |  Height:  |  Size: 247 B

View File

Before

Width:  |  Height:  |  Size: 312 B

After

Width:  |  Height:  |  Size: 312 B

View File

Before

Width:  |  Height:  |  Size: 209 B

After

Width:  |  Height:  |  Size: 209 B

View File

Before

Width:  |  Height:  |  Size: 277 B

After

Width:  |  Height:  |  Size: 277 B

View File

Before

Width:  |  Height:  |  Size: 465 B

After

Width:  |  Height:  |  Size: 465 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 262 B

After

Width:  |  Height:  |  Size: 262 B

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 884 B

After

Width:  |  Height:  |  Size: 884 B

View File

Before

Width:  |  Height:  |  Size: 550 B

After

Width:  |  Height:  |  Size: 550 B

View File

Before

Width:  |  Height:  |  Size: 622 B

After

Width:  |  Height:  |  Size: 622 B

View File

Before

Width:  |  Height:  |  Size: 190 B

After

Width:  |  Height:  |  Size: 190 B

View File

Before

Width:  |  Height:  |  Size: 165 B

After

Width:  |  Height:  |  Size: 165 B

View File

Before

Width:  |  Height:  |  Size: 325 B

After

Width:  |  Height:  |  Size: 325 B

View File

Before

Width:  |  Height:  |  Size: 140 B

After

Width:  |  Height:  |  Size: 140 B

View File

Before

Width:  |  Height:  |  Size: 969 B

After

Width:  |  Height:  |  Size: 969 B

View File

Before

Width:  |  Height:  |  Size: 226 B

After

Width:  |  Height:  |  Size: 226 B

View File

Before

Width:  |  Height:  |  Size: 867 B

After

Width:  |  Height:  |  Size: 867 B

View File

Before

Width:  |  Height:  |  Size: 822 B

After

Width:  |  Height:  |  Size: 822 B

View File

Before

Width:  |  Height:  |  Size: 654 B

After

Width:  |  Height:  |  Size: 654 B

View File

Before

Width:  |  Height:  |  Size: 485 B

After

Width:  |  Height:  |  Size: 485 B

View File

Before

Width:  |  Height:  |  Size: 272 B

After

Width:  |  Height:  |  Size: 272 B

View File

Before

Width:  |  Height:  |  Size: 272 B

After

Width:  |  Height:  |  Size: 272 B

View File

Before

Width:  |  Height:  |  Size: 506 B

After

Width:  |  Height:  |  Size: 506 B

View File

Before

Width:  |  Height:  |  Size: 181 B

After

Width:  |  Height:  |  Size: 181 B

View File

Before

Width:  |  Height:  |  Size: 382 B

After

Width:  |  Height:  |  Size: 382 B

View File

Before

Width:  |  Height:  |  Size: 116 B

After

Width:  |  Height:  |  Size: 116 B

View File

Before

Width:  |  Height:  |  Size: 137 B

After

Width:  |  Height:  |  Size: 137 B

View File

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 157 B

View File

Before

Width:  |  Height:  |  Size: 209 B

After

Width:  |  Height:  |  Size: 209 B

View File

Before

Width:  |  Height:  |  Size: 234 B

After

Width:  |  Height:  |  Size: 234 B

View File

Before

Width:  |  Height:  |  Size: 240 B

After

Width:  |  Height:  |  Size: 240 B

Some files were not shown because too many files have changed in this diff Show More