Code tidy and fixed fruit not dropping
This commit is contained in:
parent
2bc7406c9a
commit
023d0303c1
31
crystal.lua
31
crystal.lua
@ -7,6 +7,7 @@ minetest.register_node("ethereal:crystal_spike", {
|
|||||||
wield_image = "crystal_spike.png",
|
wield_image = "crystal_spike.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
light_source = default.LIGHT_MAX - 7,
|
light_source = default.LIGHT_MAX - 7,
|
||||||
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
damage_per_second = 1,
|
damage_per_second = 1,
|
||||||
groups = {cracky = 1, falling_node = 1, puts_out_fire = 1},
|
groups = {cracky = 1, falling_node = 1, puts_out_fire = 1},
|
||||||
@ -66,7 +67,11 @@ minetest.register_tool("ethereal:sword_crystal", {
|
|||||||
full_punch_interval = 0.6,
|
full_punch_interval = 0.6,
|
||||||
max_drop_level = 1,
|
max_drop_level = 1,
|
||||||
groupcaps = {
|
groupcaps = {
|
||||||
snappy={times={[1]=1.70, [2]=0.70, [3]=0.25}, uses=50, maxlevel=3},
|
snappy = {
|
||||||
|
times = {[1] = 1.70, [2] = 0.70, [3] = 0.25},
|
||||||
|
uses = 50,
|
||||||
|
maxlevel = 3
|
||||||
|
},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy = 10},
|
damage_groups = {fleshy = 10},
|
||||||
}
|
}
|
||||||
@ -89,7 +94,11 @@ minetest.register_tool("ethereal:axe_crystal", {
|
|||||||
full_punch_interval = 0.8,
|
full_punch_interval = 0.8,
|
||||||
max_drop_level = 1,
|
max_drop_level = 1,
|
||||||
groupcaps = {
|
groupcaps = {
|
||||||
choppy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=30, maxlevel=2},
|
choppy = {
|
||||||
|
times = {[1] = 2.00, [2] = 0.80, [3] = 0.40},
|
||||||
|
uses = 30,
|
||||||
|
maxlevel = 2
|
||||||
|
},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy = 7},
|
damage_groups = {fleshy = 7},
|
||||||
},
|
},
|
||||||
@ -112,7 +121,11 @@ minetest.register_tool("ethereal:pick_crystal", {
|
|||||||
full_punch_interval = 0.7,
|
full_punch_interval = 0.7,
|
||||||
max_drop_level = 3,
|
max_drop_level = 3,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
cracky = {times={[1]=1.8, [2]=0.8, [3]=0.40}, uses=40, maxlevel=3},
|
cracky = {
|
||||||
|
times = {[1] = 1.8, [2] = 0.8, [3] = 0.40},
|
||||||
|
uses = 40,
|
||||||
|
maxlevel = 3
|
||||||
|
},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy = 7},
|
damage_groups = {fleshy = 7},
|
||||||
},
|
},
|
||||||
@ -141,11 +154,11 @@ minetest.register_tool("ethereal:shovel_crystal", {
|
|||||||
if not minetest.is_protected(pointed_thing.under, user:get_player_name()) then
|
if not minetest.is_protected(pointed_thing.under, user:get_player_name()) then
|
||||||
|
|
||||||
local pos = pointed_thing.under
|
local pos = pointed_thing.under
|
||||||
local nn = minetest.get_node(pos).name
|
local nn = minetest.get_node_or_nil(pos)
|
||||||
local is_crumbly = minetest.get_item_group(nn, "crumbly")
|
if nn then nn = nn.name else return end
|
||||||
|
|
||||||
-- Is node dirt, sand or gravel
|
-- Is node dirt, sand or gravel
|
||||||
if is_crumbly == 1 or is_crumbly == 2 or is_crumbly == 3 then
|
if minetest.get_item_group(nn, "crumbly") > 0 then
|
||||||
|
|
||||||
local inv = user:get_inventory()
|
local inv = user:get_inventory()
|
||||||
|
|
||||||
@ -157,9 +170,7 @@ minetest.register_tool("ethereal:shovel_crystal", {
|
|||||||
minetest.sound_play("default_dirt_footstep", {pos = pos, gain = 0.35})
|
minetest.sound_play("default_dirt_footstep", {pos = pos, gain = 0.35})
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -172,18 +183,16 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Crystal Gilly Staff (replenishes air supply when used, great for exploring underwater)
|
-- Crystal Gilly Staff (replenishes air supply when used)
|
||||||
minetest.register_tool("ethereal:crystal_gilly_staff", {
|
minetest.register_tool("ethereal:crystal_gilly_staff", {
|
||||||
description = "Crystal Gilly Staff",
|
description = "Crystal Gilly Staff",
|
||||||
inventory_image = "crystal_gilly_staff.png",
|
inventory_image = "crystal_gilly_staff.png",
|
||||||
wield_image = "crystal_gilly_staff.png",
|
wield_image = "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,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
7
dirt.lua
7
dirt.lua
@ -29,7 +29,8 @@ minetest.register_craft({
|
|||||||
|
|
||||||
local dirt = {}
|
local dirt = {}
|
||||||
dirt.type = {
|
dirt.type = {
|
||||||
{"Bamboo"}, {"Jungle"}, {"Grove"}, {"Prairie"}, {"Cold"}, {"Crystal"}, {"Mushroom"}, {"Fiery"}, {"Gray"},
|
{"Bamboo"}, {"Jungle"}, {"Grove"}, {"Prairie"}, {"Cold"},
|
||||||
|
{"Crystal"}, {"Mushroom"}, {"Fiery"}, {"Gray"},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, row in ipairs(dirt.type) do
|
for _, row in ipairs(dirt.type) do
|
||||||
@ -65,8 +66,8 @@ minetest.register_abm({
|
|||||||
local curr_max = 0
|
local curr_max = 0
|
||||||
local curr_type = "ethereal:green_dirt" -- fallback
|
local curr_type = "ethereal:green_dirt" -- fallback
|
||||||
local positions = minetest.find_nodes_in_area(
|
local positions = minetest.find_nodes_in_area(
|
||||||
{x=(pos.x-2), y=(pos.y-2), z=(pos.z-2)},
|
{x = (pos.x - 2), y = (pos.y - 1), z = (pos.z - 2)},
|
||||||
{x=(pos.x+2), y=(pos.y+2), z=(pos.z+2)},
|
{x = (pos.x + 2), y = (pos.y + 1), z = (pos.z + 2)},
|
||||||
"group:ethereal_grass")
|
"group:ethereal_grass")
|
||||||
local n
|
local n
|
||||||
-- count new grass nodes
|
-- count new grass nodes
|
||||||
|
@ -35,6 +35,7 @@ minetest.register_node("ethereal:stone_ladder", {
|
|||||||
inventory_image = "stone_ladder.png",
|
inventory_image = "stone_ladder.png",
|
||||||
wield_image = "stone_ladder.png",
|
wield_image = "stone_ladder.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
sunlight_propagates = true,
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
climbable = true,
|
climbable = true,
|
||||||
@ -278,7 +279,8 @@ minetest.register_tool("ethereal:light_staff", {
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local node = minetest.get_node(pos).name
|
local node = minetest.get_node_or_nil(pos)
|
||||||
|
if node then node = node.name else return end
|
||||||
|
|
||||||
if node == "default:stone" then
|
if node == "default:stone" then
|
||||||
minetest.add_node(pos, {name="ethereal:glostone"})
|
minetest.add_node(pos, {name="ethereal:glostone"})
|
||||||
@ -302,8 +304,7 @@ minetest.register_craft({
|
|||||||
|
|
||||||
-- Generate Illumishroom in caves next to coal
|
-- Generate Illumishroom in caves next to coal
|
||||||
minetest.register_on_generated(function(minp, maxp)
|
minetest.register_on_generated(function(minp, maxp)
|
||||||
if minp.y > -30
|
if minp.y > -30 or maxp.y < -3000 then
|
||||||
or maxp.y < -3000 then
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local bpos
|
local bpos
|
||||||
|
29
fences.lua
29
fences.lua
@ -1,6 +1,4 @@
|
|||||||
local fence = {}
|
local fences = {
|
||||||
|
|
||||||
fence.type = {
|
|
||||||
{"junglewood", "Jungle Wood", "default_junglewood.png", "default:junglewood"},
|
{"junglewood", "Jungle Wood", "default_junglewood.png", "default:junglewood"},
|
||||||
{"scorched", "Scorched", "scorched_tree.png", "ethereal:scorched_tree"},
|
{"scorched", "Scorched", "scorched_tree.png", "ethereal:scorched_tree"},
|
||||||
{"frostwood", "Frost Wood", "frost_wood.png", "ethereal:frost_wood"},
|
{"frostwood", "Frost Wood", "frost_wood.png", "ethereal:frost_wood"},
|
||||||
@ -14,33 +12,30 @@ fence.type = {
|
|||||||
{"pine", "Pine Wood", "default_pinewood.png", "default:pinewood"},
|
{"pine", "Pine Wood", "default_pinewood.png", "default:pinewood"},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, row in ipairs(fence.type) do
|
for _, row in ipairs(fences) do
|
||||||
local name = row[1]
|
|
||||||
local desc = row[2]
|
|
||||||
local texture = row[3]
|
|
||||||
local nod = row[4]
|
|
||||||
|
|
||||||
minetest.register_node("ethereal:fence_"..name, {
|
minetest.register_node("ethereal:fence_"..row[1], {
|
||||||
description = desc.." Fence",
|
description = row[2].." Fence",
|
||||||
drawtype = "fencelike",
|
drawtype = "fencelike",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
tiles = {texture},
|
tiles = {row[3]},
|
||||||
inventory_image = "default_fence_overlay.png^"..texture.."^default_fence_overlay.png^[makealpha:255,126,126",
|
inventory_image = "default_fence_overlay.png^"..row[3].."^default_fence_overlay.png^[makealpha:255,126,126",
|
||||||
wield_image = "default_fence_overlay.png^"..texture.."^default_fence_overlay.png^[makealpha:255,126,126",
|
wield_image = "default_fence_overlay.png^"..row[3].."^default_fence_overlay.png^[makealpha:255,126,126",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
sunlight_propagates = true,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
||||||
},
|
},
|
||||||
groups = {snappy = 2, 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(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "ethereal:fence_"..name.." 4",
|
output = "ethereal:fence_"..row[1].." 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
{nod, "group:stick", nod},
|
{row[4], "group:stick", row[4]},
|
||||||
{nod, "group:stick", nod},
|
{row[4], "group:stick", row[4]},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
70
fishing.lua
70
fishing.lua
@ -12,6 +12,13 @@ minetest.register_craftitem("ethereal:fish_cooked", {
|
|||||||
on_use = minetest.item_eat(5),
|
on_use = minetest.item_eat(5),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = "ethereal:fish_cooked",
|
||||||
|
recipe = "ethereal:fish_raw",
|
||||||
|
cooktime = 2,
|
||||||
|
})
|
||||||
|
|
||||||
-- 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 = "Sashimi",
|
description = "Sashimi",
|
||||||
@ -36,38 +43,8 @@ minetest.register_craftitem("ethereal:worm", {
|
|||||||
minetest.register_craftitem("ethereal:fishing_rod", {
|
minetest.register_craftitem("ethereal:fishing_rod", {
|
||||||
description = "Fishing Rod",
|
description = "Fishing Rod",
|
||||||
inventory_image = "fishing_rod.png",
|
inventory_image = "fishing_rod.png",
|
||||||
-- stack_max = 1,
|
|
||||||
liquids_pointable = true,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Fishing Rod (Baited)
|
|
||||||
minetest.register_craftitem("ethereal:fishing_rod_baited", {
|
|
||||||
description = "Baited Fishing Rod",
|
|
||||||
inventory_image = "fishing_rod_baited.png",
|
|
||||||
wield_image = "fishing_rod_wield.png",
|
|
||||||
stack_max = 1,
|
|
||||||
liquids_pointable = true,
|
|
||||||
on_use = function (itemstack, user, pointed_thing)
|
|
||||||
|
|
||||||
if pointed_thing.type ~= "node" then return end
|
|
||||||
|
|
||||||
local node = minetest.get_node(pointed_thing.under)
|
|
||||||
if (node.name == "default:water_source"
|
|
||||||
or node.name == "default:river_water_source")
|
|
||||||
and math.random(1, 100) < 5 then
|
|
||||||
local inv = user:get_inventory()
|
|
||||||
if inv:room_for_item("main", {name="ethereal:fish_raw"}) then
|
|
||||||
inv:add_item("main", {name="ethereal:fish_raw"})
|
|
||||||
return {name="ethereal:fishing_rod"}
|
|
||||||
else
|
|
||||||
minetest.chat_send_player(user:get_player_name(), "Inventory full, your Fish Got Away!")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Fishing Rod
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "ethereal:fishing_rod",
|
output = "ethereal:fishing_rod",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -85,15 +62,34 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Cooking Fish
|
-- Fishing Rod (Baited)
|
||||||
minetest.register_craft({
|
minetest.register_craftitem("ethereal:fishing_rod_baited", {
|
||||||
type = "cooking",
|
description = "Baited Fishing Rod",
|
||||||
output = "ethereal:fish_cooked",
|
inventory_image = "fishing_rod_baited.png",
|
||||||
recipe = "ethereal:fish_raw",
|
wield_image = "fishing_rod_wield.png",
|
||||||
cooktime = 2,
|
stack_max = 1,
|
||||||
|
liquids_pointable = true,
|
||||||
|
on_use = function (itemstack, user, pointed_thing)
|
||||||
|
|
||||||
|
if pointed_thing.type ~= "node" then return end
|
||||||
|
|
||||||
|
local node = minetest.get_node_or_nil(pointed_thing.under)
|
||||||
|
if node then node = node.name else return end
|
||||||
|
|
||||||
|
if (node == "default:water_source"
|
||||||
|
or node == "default:river_water_source")
|
||||||
|
and math.random(1, 100) < 5 then
|
||||||
|
local inv = user:get_inventory()
|
||||||
|
if inv:room_for_item("main", {name = "ethereal:fish_raw"}) then
|
||||||
|
inv:add_item("main", {name = "ethereal:fish_raw"})
|
||||||
|
return {name = "ethereal:fishing_rod"}
|
||||||
|
else
|
||||||
|
minetest.chat_send_player(user:get_player_name(), "Inventory full, Fish Got Away!")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Baiting Fishing Rod
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "ethereal:fishing_rod_baited",
|
output = "ethereal:fishing_rod_baited",
|
||||||
|
37
gates.lua
37
gates.lua
@ -17,7 +17,6 @@ local nb_pil = {
|
|||||||
function gate_rightclick(pos, node)
|
function gate_rightclick(pos, node)
|
||||||
local gate, open = unpack(string.split(node.name, "_", 2))
|
local gate, open = unpack(string.split(node.name, "_", 2))
|
||||||
local gate = gate.."_"
|
local gate = gate.."_"
|
||||||
|
|
||||||
local sound, name
|
local sound, name
|
||||||
if open == "open" then
|
if open == "open" then
|
||||||
sound = "close"
|
sound = "close"
|
||||||
@ -28,12 +27,14 @@ function gate_rightclick(pos, node)
|
|||||||
end
|
end
|
||||||
node.name = gate..name
|
node.name = gate..name
|
||||||
minetest.set_node(pos, node)
|
minetest.set_node(pos, node)
|
||||||
minetest.sound_play("doors_door_"..sound, {pos=pos, gain = 0.3, max_hear_distance = 10})
|
minetest.sound_play("doors_door_"..sound, {
|
||||||
|
pos = pos,
|
||||||
|
gain = 0.3,
|
||||||
|
max_hear_distance = 10
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
local gate = {}
|
local gates = {
|
||||||
|
|
||||||
gate.type = {
|
|
||||||
{"wood", "Wood", "default_wood.png", "default:wood"},
|
{"wood", "Wood", "default_wood.png", "default:wood"},
|
||||||
{"junglewood", "Jungle Wood", "default_junglewood.png", "default:junglewood"},
|
{"junglewood", "Jungle Wood", "default_junglewood.png", "default:junglewood"},
|
||||||
{"scorched", "Scorched", "scorched_tree.png", "ethereal:scorched_tree"},
|
{"scorched", "Scorched", "scorched_tree.png", "ethereal:scorched_tree"},
|
||||||
@ -48,18 +49,17 @@ gate.type = {
|
|||||||
{"pine", "Pine Wood", "default_pinewood.png", "default:pinewood"},
|
{"pine", "Pine Wood", "default_pinewood.png", "default:pinewood"},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, row in pairs(gate.type) do
|
for _, row in pairs(gates) do
|
||||||
local name, desc, texture, nod = unpack(row)
|
|
||||||
|
|
||||||
minetest.register_node("ethereal:"..name.."gate_open", {
|
minetest.register_node("ethereal:"..row[1].."gate_open", {
|
||||||
tiles = {texture},
|
tiles = {row[3]},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, not_in_inventory = 1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, not_in_inventory = 1},
|
||||||
drop = "ethereal:"..name.."gate_closed",
|
drop = "ethereal:"..row[1].."gate_closed",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -86,11 +86,11 @@ minetest.register_node("ethereal:"..name.."gate_open", {
|
|||||||
on_rightclick = gate_rightclick,
|
on_rightclick = gate_rightclick,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:"..name.."gate_closed", {
|
minetest.register_node("ethereal:"..row[1].."gate_closed", {
|
||||||
description = desc.." Gate",
|
description = row[2].." Gate",
|
||||||
tiles = {texture},
|
tiles = {row[3]},
|
||||||
inventory_image = "default_gate_overlay.png^"..texture.."^default_gate_overlay.png^[makealpha:255,126,126",
|
inventory_image = "default_gate_overlay.png^"..row[3].."^default_gate_overlay.png^[makealpha:255,126,126",
|
||||||
wield_image = "default_gate_overlay.png^"..texture.."^default_gate_overlay.png^[makealpha:255,126,126",
|
wield_image = "default_gate_overlay.png^"..row[3].."^default_gate_overlay.png^[makealpha:255,126,126",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
@ -114,12 +114,11 @@ minetest.register_node("ethereal:"..name.."gate_closed", {
|
|||||||
on_rightclick = gate_rightclick,
|
on_rightclick = gate_rightclick,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Fencegate Recipe
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "ethereal:"..name.."gate_closed",
|
output = "ethereal:"..row[1].."gate_closed",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"group:stick", nod, "group:stick"},
|
{"group:stick", row[4], "group:stick"},
|
||||||
{"group:stick", nod, "group:stick"},
|
{"group:stick", row[4], "group:stick"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
2
init.lua
2
init.lua
@ -1,6 +1,6 @@
|
|||||||
--[[
|
--[[
|
||||||
|
|
||||||
Minetest Ethereal Mod 1.16 (24th June 2015)
|
Minetest Ethereal Mod 1.16 (4th July 2015)
|
||||||
|
|
||||||
Created by ChinChow
|
Created by ChinChow
|
||||||
|
|
||||||
|
@ -265,6 +265,9 @@ minetest.register_craft({
|
|||||||
minetest.register_node("ethereal:mushroom_pore", {
|
minetest.register_node("ethereal:mushroom_pore", {
|
||||||
description = "Mushroom Pore",
|
description = "Mushroom Pore",
|
||||||
tiles = {"mushroom_pore.png"},
|
tiles = {"mushroom_pore.png"},
|
||||||
groups = {snappy=3,cracky=3,choppy=3,oddly_breakable_by_hand=3,disable_jump=1, fall_damage_add_percent=-100},
|
groups = {
|
||||||
|
snappy = 3, cracky = 3, choppy = 3, oddly_breakable_by_hand = 3,
|
||||||
|
disable_jump = 1, fall_damage_add_percent = -100
|
||||||
|
},
|
||||||
sounds = default.node_sound_dirt_defaults(),
|
sounds = default.node_sound_dirt_defaults(),
|
||||||
})
|
})
|
@ -2,10 +2,12 @@
|
|||||||
minetest.clear_registered_biomes()
|
minetest.clear_registered_biomes()
|
||||||
minetest.clear_registered_decorations()
|
minetest.clear_registered_decorations()
|
||||||
|
|
||||||
|
local path = minetest.get_modpath("ethereal").."/schematics/"
|
||||||
|
|
||||||
-- tree schematics
|
-- tree schematics
|
||||||
dofile(minetest.get_modpath("ethereal").."/schematics/apple_tree.lua")
|
dofile(path.."apple_tree.lua")
|
||||||
dofile(minetest.get_modpath("ethereal").."/schematics/orange_tree.lua")
|
dofile(path.."orange_tree.lua")
|
||||||
dofile(minetest.get_modpath("ethereal").."/schematics/banana_tree.lua")
|
dofile(path.."banana_tree.lua")
|
||||||
|
|
||||||
--= Biomes (Minetest 0.4.12 and above)
|
--= Biomes (Minetest 0.4.12 and above)
|
||||||
|
|
||||||
@ -323,8 +325,6 @@ end
|
|||||||
|
|
||||||
--= schematic decorations
|
--= schematic decorations
|
||||||
|
|
||||||
local path = minetest.get_modpath("ethereal").."/schematics/"
|
|
||||||
|
|
||||||
-- redwood tree
|
-- redwood tree
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
@ -402,7 +402,6 @@ minetest.register_decoration({
|
|||||||
biomes = {"fiery"},
|
biomes = {"fiery"},
|
||||||
schematic = path.."volcanol.mts",
|
schematic = path.."volcanol.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
-- replacements = {{"default:stone", "default:desert_stone"}},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- jungle tree
|
-- jungle tree
|
||||||
@ -529,7 +528,10 @@ minetest.register_decoration({
|
|||||||
-- dry shrub
|
-- dry shrub
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {"ethereal:dry_dirt", "default:sand", "default:desert_sand", "sandstone", "bakedclay:red"},
|
place_on = {
|
||||||
|
"ethereal:dry_dirt", "default:sand", "default:desert_sand",
|
||||||
|
"sandstone", "bakedclay:red"
|
||||||
|
},
|
||||||
sidelen = 80,
|
sidelen = 80,
|
||||||
fill_ratio = 0.015,
|
fill_ratio = 0.015,
|
||||||
biomes = {"plains", "lake", "desert", "desertstone", "mesa"},
|
biomes = {"plains", "lake", "desert", "desertstone", "mesa"},
|
||||||
@ -543,7 +545,11 @@ minetest.register_decoration({
|
|||||||
sidelen = 80,
|
sidelen = 80,
|
||||||
fill_ratio = 0.03,
|
fill_ratio = 0.03,
|
||||||
biomes = {"grassy", "grassy", "grassytwo"},
|
biomes = {"grassy", "grassy", "grassytwo"},
|
||||||
decoration = {"flowers:dandelion_white", "flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip", "flowers:viola", "ethereal:strawberry_7"},
|
decoration = {
|
||||||
|
"flowers:dandelion_white", "flowers:dandelion_yellow",
|
||||||
|
"flowers:geranium", "flowers:rose", "flowers:tulip",
|
||||||
|
"flowers:viola", "ethereal:strawberry_7"
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- prairie flowers & strawberry
|
-- prairie flowers & strawberry
|
||||||
@ -553,7 +559,11 @@ minetest.register_decoration({
|
|||||||
sidelen = 80,
|
sidelen = 80,
|
||||||
fill_ratio = 0.05,
|
fill_ratio = 0.05,
|
||||||
biomes = {"prairie"},
|
biomes = {"prairie"},
|
||||||
decoration = {"flowers:dandelion_white", "flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip", "flowers:viola", "ethereal:strawberry_7"},
|
decoration = {
|
||||||
|
"flowers:dandelion_white", "flowers:dandelion_yellow",
|
||||||
|
"flowers:geranium", "flowers:rose", "flowers:tulip",
|
||||||
|
"flowers:viola", "ethereal:strawberry_7"
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- crystal spike & crystal grass
|
-- crystal spike & crystal grass
|
||||||
@ -630,11 +640,17 @@ minetest.register_decoration({
|
|||||||
-- grass
|
-- grass
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {"ethereal:green_dirt_top", "ethereal:jungle_dirt", "ethereal:prairie_dirt", "ethereal:grove_dirt"},
|
place_on = {
|
||||||
|
"ethereal:green_dirt_top", "ethereal:jungle_dirt",
|
||||||
|
"ethereal:prairie_dirt", "ethereal:grove_dirt"
|
||||||
|
},
|
||||||
sidelen = 80,
|
sidelen = 80,
|
||||||
fill_ratio = 0.4,
|
fill_ratio = 0.4,
|
||||||
biomes = {"grassy", "grassytwo", "jumble", "junglee", "prairie", "grove"},
|
biomes = {"grassy", "grassytwo", "jumble", "junglee", "prairie", "grove"},
|
||||||
decoration = "default:grass_2", "default:grass_3", "default:grass_4", "default:grass_5",
|
decoration = {
|
||||||
|
"default:grass_2", "default:grass_3",
|
||||||
|
"default:grass_4", "default:grass_5"
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- ferns
|
-- ferns
|
||||||
@ -682,6 +698,7 @@ minetest.register_decoration({
|
|||||||
|
|
||||||
-- palm tree on sand next to water
|
-- palm tree on sand next to water
|
||||||
minetest.register_on_generated(function(minp, maxp, seed)
|
minetest.register_on_generated(function(minp, maxp, seed)
|
||||||
|
local nn
|
||||||
if maxp.y > 1 and minp.y < 1 then
|
if maxp.y > 1 and minp.y < 1 then
|
||||||
local perlin1 = minetest.get_perlin(354, 3, 0.7, 100)
|
local perlin1 = minetest.get_perlin(354, 3, 0.7, 100)
|
||||||
local divlen = 8
|
local divlen = 8
|
||||||
@ -693,7 +710,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
pr = PseudoRandom(seed + 1)
|
pr = PseudoRandom(seed + 1)
|
||||||
x = pr:next(minp.x + math.floor((divx + 0) * divlen), minp.x + math.floor((divx + 1) * divlen))
|
x = pr:next(minp.x + math.floor((divx + 0) * divlen), minp.x + math.floor((divx + 1) * divlen))
|
||||||
z = pr:next(minp.z + math.floor((divz + 0) * divlen), minp.z + math.floor((divz + 1) * divlen))
|
z = pr:next(minp.z + math.floor((divz + 0) * divlen), minp.z + math.floor((divz + 1) * divlen))
|
||||||
if minetest.get_node({x=x,y=1,z=z}).name == "default:sand"
|
nn = minetest.get_node_or_nil({x = x, y = 1, z = z})
|
||||||
|
if nn and nn.name == "default:sand"
|
||||||
and minetest.find_node_near({x = x, y = 1,z = z}, 1, "default:water_source") then
|
and minetest.find_node_near({x = x, y = 1,z = z}, 1, "default:water_source") then
|
||||||
minetest.place_schematic({x = x - 4, y = 2, z = z - 4}, path.."palmtree.mts", 0, '', 0)
|
minetest.place_schematic({x = x - 4, y = 2, z = z - 4}, path.."palmtree.mts", 0, '', 0)
|
||||||
end
|
end
|
||||||
@ -706,7 +724,7 @@ end)
|
|||||||
|
|
||||||
if farming.mod and farming.mod == "redo" then
|
if farming.mod and farming.mod == "redo" then
|
||||||
|
|
||||||
print ("[MOD] Ethereal - Detected and using Farming Redo mod")
|
print ("[MOD] Ethereal - Farming Redo detected and in use")
|
||||||
|
|
||||||
-- potato
|
-- potato
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
@ -725,7 +743,11 @@ minetest.register_decoration({
|
|||||||
sidelen = 80,
|
sidelen = 80,
|
||||||
fill_ratio = 0.05,
|
fill_ratio = 0.05,
|
||||||
biomes = {"grassy", "grassytwo", "prairie", "jumble"},
|
biomes = {"grassy", "grassytwo", "prairie", "jumble"},
|
||||||
decoration = {"farming:carrot_7", "farming:cucumber_4", "farming:potato_3", "farming:tomato_7", "farming:corn_8", "farming:coffee_5", "farming:raspberry_4", "farming:rhubarb_3", "farming:blueberry_4"},
|
decoration = {
|
||||||
|
"farming:carrot_7", "farming:cucumber_4", "farming:potato_3",
|
||||||
|
"farming:tomato_7", "farming:corn_8", "farming:coffee_5",
|
||||||
|
"farming:raspberry_4", "farming:rhubarb_3", "farming:blueberry_4"
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- melon and pumpkin
|
-- melon and pumpkin
|
||||||
@ -749,4 +771,5 @@ minetest.register_decoration({
|
|||||||
biomes = {"grassytwo"},
|
biomes = {"grassytwo"},
|
||||||
decoration = "farming:beanbush",
|
decoration = "farming:beanbush",
|
||||||
})
|
})
|
||||||
|
|
||||||
end
|
end
|
17
mushroom.lua
17
mushroom.lua
@ -14,7 +14,10 @@ minetest.register_node("ethereal:mushroom_plant", {
|
|||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"mushroom.png"},
|
tiles = {"mushroom.png"},
|
||||||
inventory_image = "mushroom.png",
|
inventory_image = "mushroom.png",
|
||||||
selection_box = {type = "fixed",fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}},
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
|
||||||
|
},
|
||||||
drop = "ethereal:mushroom_craftingitem",
|
drop = "ethereal:mushroom_craftingitem",
|
||||||
wield_image = "mushroom.png",
|
wield_image = "mushroom.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
@ -69,8 +72,14 @@ local ndef = {
|
|||||||
{items = {"ethereal:mushroom_plant"},rarity = 14},
|
{items = {"ethereal:mushroom_plant"},rarity = 14},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},},
|
selection_box = {
|
||||||
groups = {snappy=3,flammable=2,plant=1,mushroom=1,attached_node=1,growing=1,not_in_creative_inventory=1},
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
|
groups = {
|
||||||
|
snappy = 3, flammable = 2, plant = 1, mushroom = 1,
|
||||||
|
attached_node = 1, growing = 1, not_in_creative_inventory = 1
|
||||||
|
},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
}
|
}
|
||||||
minetest.register_node("ethereal:mushroom_1", table.copy(ndef))
|
minetest.register_node("ethereal:mushroom_1", table.copy(ndef))
|
||||||
@ -128,9 +137,7 @@ minetest.register_abm({
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- legacy
|
-- legacy
|
||||||
|
|
||||||
for i = 1, 4 do
|
for i = 1, 4 do
|
||||||
minetest.register_alias("ethereal:mushroom_garden_"..i, "ethereal:mushroom_"..i)
|
minetest.register_alias("ethereal:mushroom_garden_"..i, "ethereal:mushroom_"..i)
|
||||||
end
|
end
|
||||||
|
12
onion.lua
12
onion.lua
@ -8,7 +8,6 @@ minetest.register_craftitem("ethereal:wild_onion_plant", {
|
|||||||
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
|
||||||
})
|
})
|
||||||
minetest.register_alias("ethereal:wild_onion_craftingitem", "ethereal:wild_onion_plant")
|
|
||||||
|
|
||||||
-- Define Onion growth stages
|
-- Define Onion growth stages
|
||||||
local onion_def = {
|
local onion_def = {
|
||||||
@ -23,8 +22,14 @@ local onion_def = {
|
|||||||
{items = {"ethereal:wild_onion_plant"}, rarity = 1},
|
{items = {"ethereal:wild_onion_plant"}, rarity = 1},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},},
|
selection_box = {
|
||||||
groups = {snappy=3,flammable=2,plant=1,attached_node=1,onion=1,growing=1,not_in_creative_inventory=1},
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
|
groups = {
|
||||||
|
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||||
|
onion = 1, growing = 1, not_in_creative_inventory = 1
|
||||||
|
},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
}
|
}
|
||||||
minetest.register_node("ethereal:onion_1", table.copy(onion_def))
|
minetest.register_node("ethereal:onion_1", table.copy(onion_def))
|
||||||
@ -97,6 +102,7 @@ end
|
|||||||
-- Legacy
|
-- Legacy
|
||||||
|
|
||||||
minetest.register_alias("ethereal:wild_onion_craftingitem", "ethereal:wild_onion_plant")
|
minetest.register_alias("ethereal:wild_onion_craftingitem", "ethereal:wild_onion_plant")
|
||||||
|
|
||||||
for i = 1, 5 do
|
for i = 1, 5 do
|
||||||
minetest.register_alias("ethereal:wild_onion_"..i, "ethereal:onion_"..i)
|
minetest.register_alias("ethereal:wild_onion_"..i, "ethereal:onion_"..i)
|
||||||
end
|
end
|
||||||
|
@ -15,14 +15,14 @@ minetest.register_node("ethereal:fern", {
|
|||||||
max_items = 1,
|
max_items = 1,
|
||||||
items = {
|
items = {
|
||||||
{items = {"ethereal:fern_tubers"}, rarity = 6},
|
{items = {"ethereal:fern_tubers"}, rarity = 6},
|
||||||
{items = {"ethereal:fern"}},
|
{items = {"ethereal:fern"}}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 2},
|
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 2},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
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}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ 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 = {-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}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ 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 = {-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}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ 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 = {-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}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -117,6 +117,11 @@ ethereal.add_moss( "fiery", "Fiery", "ethereal_grass_fiery_top.png", "ethereal
|
|||||||
ethereal.add_moss( "gray", "Gray", "ethereal_grass_gray_top.png", "ethereal:snowygrass")
|
ethereal.add_moss( "gray", "Gray", "ethereal_grass_gray_top.png", "ethereal:snowygrass")
|
||||||
ethereal.add_moss( "green", "Green", "default_grass.png", "default:jungleleaves")
|
ethereal.add_moss( "green", "Green", "default_grass.png", "default:jungleleaves")
|
||||||
|
|
||||||
|
-- apple
|
||||||
|
minetest.override_item("default:apple", {
|
||||||
|
drop = "default:apple",
|
||||||
|
})
|
||||||
|
|
||||||
-- Banana (Heals one heart when eaten)
|
-- Banana (Heals one heart when eaten)
|
||||||
minetest.register_node("ethereal:banana", {
|
minetest.register_node("ethereal:banana", {
|
||||||
description = "Banana",
|
description = "Banana",
|
||||||
@ -131,7 +136,11 @@ minetest.register_node("ethereal:banana", {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.2, -0.5, -0.2, 0.2, 0.2, 0.2}
|
fixed = {-0.2, -0.5, -0.2, 0.2, 0.2, 0.2}
|
||||||
},
|
},
|
||||||
groups = {fleshy=3,dig_immediate=3,flammable=2,leafdecay=1,leafdecay_drop=1},
|
groups = {
|
||||||
|
fleshy = 3, dig_immediate = 3, flammable = 2,
|
||||||
|
leafdecay = 1, leafdecay_drop = 1
|
||||||
|
},
|
||||||
|
drop = "ethereal:banana",
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
after_place_node = function(pos, placer)
|
after_place_node = function(pos, placer)
|
||||||
@ -174,7 +183,11 @@ minetest.register_node("ethereal:orange", {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.2, -0.3, -0.2, 0.2, 0.2, 0.2}
|
fixed = {-0.2, -0.3, -0.2, 0.2, 0.2, 0.2}
|
||||||
},
|
},
|
||||||
groups = {fleshy=3,dig_immediate=3,flammable=2,leafdecay=3,leafdecay_drop=1},
|
groups = {
|
||||||
|
fleshy = 3, dig_immediate = 3, flammable = 2,
|
||||||
|
leafdecay = 3, leafdecay_drop = 1
|
||||||
|
},
|
||||||
|
drop = "ethereal:orange",
|
||||||
on_use = minetest.item_eat(4),
|
on_use = minetest.item_eat(4),
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
after_place_node = function(pos, placer)
|
after_place_node = function(pos, placer)
|
||||||
@ -210,7 +223,10 @@ minetest.register_node("ethereal:coconut", {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.35, -0.35, -0.35, 0.35, 0.35, 0.35}
|
fixed = {-0.35, -0.35, -0.35, 0.35, 0.35, 0.35}
|
||||||
},
|
},
|
||||||
groups = {snappy=1,oddly_breakable_by_hand=1,cracky=1,choppy=1,flammable=1,leafdecay=3,leafdecay_drop=1},
|
groups = {
|
||||||
|
snappy = 1, oddly_breakable_by_hand = 1, cracky = 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(),
|
||||||
})
|
})
|
||||||
@ -236,7 +252,11 @@ minetest.register_node("ethereal:golden_apple", {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.2, -0.3, -0.2, 0.2, 0.2, 0.2}
|
fixed = {-0.2, -0.3, -0.2, 0.2, 0.2, 0.2}
|
||||||
},
|
},
|
||||||
groups = {fleshy=3,dig_immediate=3,leafdecay=3,leafdecay_drop=1},
|
groups = {
|
||||||
|
fleshy = 3, dig_immediate = 3,
|
||||||
|
leafdecay = 3,leafdecay_drop = 1
|
||||||
|
},
|
||||||
|
drop = "ethereal:golden_apple",
|
||||||
on_use = minetest.item_eat(20),
|
on_use = minetest.item_eat(20),
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
after_place_node = function(pos, placer, itemstack)
|
after_place_node = function(pos, placer, itemstack)
|
||||||
@ -260,7 +280,7 @@ minetest.register_node("ethereal:bamboo", {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
|
||||||
},
|
},
|
||||||
groups = {choppy=3, oddly_breakable_by_hand=1, flammable=2},--, attached_node=1},
|
groups = {choppy = 3, oddly_breakable_by_hand = 1, flammable = 2},
|
||||||
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)
|
||||||
@ -284,7 +304,6 @@ minetest.register_node("ethereal:bamboo_sprout", {
|
|||||||
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},
|
||||||
},
|
},
|
||||||
-- sprouts are edible if cooked in stew
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Wooden Bowl (for Mushroom Soup)
|
-- Wooden Bowl (for Mushroom Soup)
|
||||||
@ -455,7 +474,15 @@ minetest.register_node("ethereal:candle", {
|
|||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
inventory_image = "candle_static.png",
|
inventory_image = "candle_static.png",
|
||||||
tiles = {
|
tiles = {
|
||||||
{name="candle.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.0}},
|
{
|
||||||
|
name = "candle.png",
|
||||||
|
animation={
|
||||||
|
type="vertical_frames",
|
||||||
|
aspect_w = 32,
|
||||||
|
aspect_h = 32,
|
||||||
|
length = 1.0
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
light_source = default.LIGHT_MAX - 3,
|
light_source = default.LIGHT_MAX - 3,
|
||||||
@ -465,7 +492,7 @@ minetest.register_node("ethereal:candle", {
|
|||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
|
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -10,7 +10,10 @@ minetest.register_decoration({
|
|||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.005,
|
fill_ratio = 0.005,
|
||||||
biomes = {"desert", "desertstone"},
|
biomes = {"desert", "desertstone"},
|
||||||
decoration = {"bakedclay:cactus_echinocereus", "bakedclay:cactus_matucana", "bakedclay:cactus_baseball", "bakedclay:cactus_golden"},
|
decoration = {
|
||||||
|
"bakedclay:cactus_echinocereus", "bakedclay:cactus_matucana",
|
||||||
|
"bakedclay:cactus_baseball", "bakedclay:cactus_golden"
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Desert Plants
|
-- Desert Plants
|
||||||
@ -20,7 +23,10 @@ minetest.register_decoration({
|
|||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.004,
|
fill_ratio = 0.004,
|
||||||
biomes = {"desert", "desertstone"},
|
biomes = {"desert", "desertstone"},
|
||||||
decoration = {"bakedclay:desert_kangaroo", "bakedclay:desert_brittle", "bakedclay:desert_ocotillo", "bakedclay:desert_whitesage"},
|
decoration = {
|
||||||
|
"bakedclay:desert_kangaroo", "bakedclay:desert_brittle",
|
||||||
|
"bakedclay:desert_ocotillo", "bakedclay:desert_whitesage"
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
--= Prairie Biome
|
--= Prairie Biome
|
||||||
@ -32,35 +38,57 @@ minetest.register_decoration({
|
|||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.005,
|
fill_ratio = 0.005,
|
||||||
biomes = {"prairie", "grassy", "grassytwo"},
|
biomes = {"prairie", "grassy", "grassytwo"},
|
||||||
decoration = {"bakedclay:grass_prairie", "bakedclay:grass_cord", "bakedclay:grass_wheatgrass", "bakedclay:desert_whitesage"},
|
decoration = {
|
||||||
|
"bakedclay:grass_prairie", "bakedclay:grass_cord",
|
||||||
|
"bakedclay:grass_wheatgrass", "bakedclay:desert_whitesage"
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Flowers
|
-- Flowers
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {"ethereal:prairie_grass", "ethereal:green_dirt", "ethereal:grove_dirt", "ethereal:bamboo_dirt"},
|
place_on = {
|
||||||
|
"ethereal:prairie_grass", "ethereal:green_dirt",
|
||||||
|
"ethereal:grove_dirt", "ethereal:bamboo_dirt"
|
||||||
|
},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.005,
|
fill_ratio = 0.005,
|
||||||
biomes = {"prairie", "grassy", "grassytwo", "bamboo"},
|
biomes = {"prairie", "grassy", "grassytwo", "bamboo"},
|
||||||
decoration = {"bakedclay:flower_jacobsladder", "bakedclay:flower_thistle", "bakedclay:flower_wildcarrot"},
|
decoration = {
|
||||||
|
"bakedclay:flower_jacobsladder", "bakedclay:flower_thistle",
|
||||||
|
"bakedclay:flower_wildcarrot"
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {"ethereal:prairie_grass", "ethereal:green_dirt", "ethereal:grove_dirt"},
|
place_on = {
|
||||||
|
"ethereal:prairie_grass", "ethereal:green_dirt",
|
||||||
|
"ethereal:grove_dirt"
|
||||||
|
},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.005,
|
fill_ratio = 0.005,
|
||||||
biomes = {"prairie", "grassy", "grassytwo", "grove"},
|
biomes = {"prairie", "grassy", "grassytwo", "grove"},
|
||||||
decoration = {"bakedclay:flower_delphinium", "bakedclay:flower_celosia", "bakedclay:flower_daisy", "bakedclay:flower_bluerose"},
|
decoration = {
|
||||||
|
"bakedclay:flower_delphinium", "bakedclay:flower_celosia",
|
||||||
|
"bakedclay:flower_daisy", "bakedclay:flower_bluerose"
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Shrubs
|
-- Shrubs
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {"ethereal:prairie_grass", "ethereal:green_dirt", "ethereal:grove_dirt", "ethereal:jungle_grass", "ethereal:gray_dirt"},
|
place_on = {
|
||||||
|
"ethereal:prairie_grass", "ethereal:green_dirt",
|
||||||
|
"ethereal:grove_dirt", "ethereal:jungle_grass",
|
||||||
|
"ethereal:gray_dirt"
|
||||||
|
},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.005,
|
fill_ratio = 0.005,
|
||||||
biomes = {"prairie", "grassy", "grassytwo", "grove", "junglee", "grayness", "jumble"},
|
biomes = {
|
||||||
|
"prairie", "grassy", "grassytwo", "grove", "junglee",
|
||||||
|
"grayness", "jumble"
|
||||||
|
},
|
||||||
decoration = {"bakedclay:shrub_kerria", "bakedclay:shrub_spicebush"},
|
decoration = {"bakedclay:shrub_kerria", "bakedclay:shrub_spicebush"},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -72,18 +100,29 @@ minetest.register_decoration({
|
|||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.007,
|
fill_ratio = 0.007,
|
||||||
biomes = {"junglee", "jumble"},
|
biomes = {"junglee", "jumble"},
|
||||||
decoration = {"bakedclay:rainforest_guzmania", "bakedclay:rainforest_devil", "bakedclay:rainforest_lazarus", "bakedclay:rainforest_lollipop", "bakedclay:mushroom_woolly"},
|
decoration = {
|
||||||
|
"bakedclay:rainforest_guzmania", "bakedclay:rainforest_devil",
|
||||||
|
"bakedclay:rainforest_lazarus", "bakedclay:rainforest_lollipop",
|
||||||
|
"bakedclay:mushroom_woolly"
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
--= Cold Biomes
|
--= Cold Biomes
|
||||||
|
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {"default:dirt_with_snow", "ethereal:cold_dirt", "ethereal:gray_dirt"},
|
place_on = {
|
||||||
|
"default:dirt_with_snow", "ethereal:cold_dirt",
|
||||||
|
"ethereal:gray_dirt"
|
||||||
|
},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.005,
|
fill_ratio = 0.005,
|
||||||
biomes = {"snowy", "alpine", "grayness"},
|
biomes = {"snowy", "alpine", "grayness"},
|
||||||
decoration = {"bakedclay:mountain_edelweiss", "bakedclay:mountain_armeria", "bakedclay:mountain_bellflower", "bakedclay:mountain_willowherb", "bakedclay:mountain_bistort"},
|
decoration = {
|
||||||
|
"bakedclay:mountain_edelweiss", "bakedclay:mountain_armeria",
|
||||||
|
"bakedclay:mountain_bellflower", "bakedclay:mountain_willowherb",
|
||||||
|
"bakedclay:mountain_bistort"
|
||||||
|
},
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -95,7 +134,10 @@ minetest.register_decoration({
|
|||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.005,
|
fill_ratio = 0.005,
|
||||||
biomes = {"mushroom"},
|
biomes = {"mushroom"},
|
||||||
decoration = {"bakedclay:mushroom_powderpuff", "bakedclay:mushroom_chanterelle", "bakedclay:mushroom_parasol"},
|
decoration = {
|
||||||
|
"bakedclay:mushroom_powderpuff", "bakedclay:mushroom_chanterelle",
|
||||||
|
"bakedclay:mushroom_parasol"
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
--= Lakeside
|
--= Lakeside
|
||||||
@ -106,7 +148,10 @@ minetest.register_decoration({
|
|||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.015,
|
fill_ratio = 0.015,
|
||||||
biomes = {"sandclay", "lake", "grassy", "grassytwo", "jumble"},
|
biomes = {"sandclay", "lake", "grassy", "grassytwo", "jumble"},
|
||||||
decoration = {"bakedclay:wetlands_cattails", "bakedclay:wetlands_pickerel", "bakedclay:wetlands_mannagrass", "bakedclay:wetlands_turtle"},
|
decoration = {
|
||||||
|
"bakedclay:wetlands_cattails", "bakedclay:wetlands_pickerel",
|
||||||
|
"bakedclay:wetlands_mannagrass", "bakedclay:wetlands_turtle"
|
||||||
|
},
|
||||||
spawn_by = "default:water_source",
|
spawn_by = "default:water_source",
|
||||||
num_spawn_by = 1,
|
num_spawn_by = 1,
|
||||||
})
|
})
|
||||||
@ -115,9 +160,31 @@ minetest.register_decoration({
|
|||||||
|
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {"ethereal:mushroom_dirt", "ethereal:green_dirt", "ethereal:gray_dirt", "ethereal:cold_dirt", "ethereal:dirt_with_snow", "ethereal:jungle_dirt", "ethereal:prairie_dirt", "ethereal:grove_dirt", "ethereal:dry_dirt", "ethereal:fiery_dirt", "default:sand", "default:desert_sand", "bakedclay:red", "ethereal:bamboo_dirt"},
|
place_on = {
|
||||||
|
"ethereal:mushroom_dirt", "ethereal:green_dirt",
|
||||||
|
"ethereal:gray_dirt", "ethereal:cold_dirt",
|
||||||
|
"ethereal:dirt_with_snow", "ethereal:jungle_dirt",
|
||||||
|
"ethereal:prairie_dirt", "ethereal:grove_dirt",
|
||||||
|
"ethereal:dry_dirt", "ethereal:fiery_dirt", "default:sand",
|
||||||
|
"default:desert_sand", "bakedclay:red", "ethereal:bamboo_dirt"
|
||||||
|
},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.004,
|
fill_ratio = 0.004,
|
||||||
biomes = {"mushroom", "prairie", "grayness", "plains", "desert", "lake", "junglee", "grassy", "grassytwo", "jumble", "snowy", "alpine", "fiery", "mesa", "bamboo"},
|
biomes = {
|
||||||
|
"mushroom", "prairie", "grayness", "plains", "desert", "lake",
|
||||||
|
"junglee", "grassy", "grassytwo", "jumble", "snowy", "alpine",
|
||||||
|
"fiery", "mesa", "bamboo"
|
||||||
|
},
|
||||||
decoration = {"bakedclay:spooky_thornbush", "bakedclay:spooky_baneberry"},
|
decoration = {"bakedclay:spooky_thornbush", "bakedclay:spooky_baneberry"},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Extra recipe for hearty stew
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "ethereal:hearty_stew",
|
||||||
|
recipe = {
|
||||||
|
{"ethereal:wild_onion_plant","ethereal:mushroom_plant", "farming:beans"},
|
||||||
|
{"","ethereal:mushroom_plant", ""},
|
||||||
|
{"","ethereal:bowl", ""},
|
||||||
|
}
|
||||||
|
})
|
23
sapling.lua
23
sapling.lua
@ -1,6 +1,5 @@
|
|||||||
-- Function to Register Saplings
|
-- Function to Register Saplings
|
||||||
ethereal.register_sapling = function(sapling_node_name, sapling_descr, sapling_texture)
|
ethereal.register_sapling = function(sapling_node_name, sapling_descr, sapling_texture)
|
||||||
|
|
||||||
-- if the sapling does not exist yet, create a node for it
|
-- if the sapling does not exist yet, create a node for it
|
||||||
if not minetest.registered_nodes[sapling_node_name] then
|
if not minetest.registered_nodes[sapling_node_name] then
|
||||||
minetest.register_node( sapling_node_name, {
|
minetest.register_node( sapling_node_name, {
|
||||||
@ -14,12 +13,17 @@ ethereal.register_sapling = function( sapling_node_name, sapling_descr, sapling_
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},},
|
selection_box = {
|
||||||
groups = {snappy=2,dig_immediate=3,flammable=2,ethereal_sapling=1,attached_node=1},
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
|
groups = {
|
||||||
|
snappy = 2, dig_immediate = 3, flammable = 2,
|
||||||
|
ethereal_sapling = 1, attached_node = 1
|
||||||
|
},
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Register Saplings
|
-- Register Saplings
|
||||||
@ -44,7 +48,11 @@ ethereal.place_tree = function (pos, ofx, ofz, schem)
|
|||||||
minetest.set_node(pos, {name = "air"})
|
minetest.set_node(pos, {name = "air"})
|
||||||
pos.x = pos.x - ofx
|
pos.x = pos.x - ofx
|
||||||
pos.z = pos.z - ofz
|
pos.z = pos.z - ofz
|
||||||
minetest.place_schematic(pos, minetest.get_modpath("ethereal").."/schematics/"..schem..".mts", "0", {}, false )
|
minetest.place_schematic(
|
||||||
|
pos,
|
||||||
|
minetest.get_modpath("ethereal").."/schematics/"..schem..".mts",
|
||||||
|
"0", {}, false
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- new routine
|
-- new routine
|
||||||
@ -56,7 +64,10 @@ ethereal.add_tree = function (pos, ofx, ofz, schem)
|
|||||||
end
|
end
|
||||||
-- remove sapling and place schematic
|
-- remove sapling and place schematic
|
||||||
minetest.set_node(pos, {name = "air"})
|
minetest.set_node(pos, {name = "air"})
|
||||||
minetest.place_schematic({x=pos.x - ofx, y=pos.y, z=pos.z - ofz}, schem, "random", {}, false)
|
minetest.place_schematic(
|
||||||
|
{x = pos.x - ofx, y = pos.y, z =pos.z - ofz},
|
||||||
|
schem, "random", {}, false
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Grow saplings
|
-- Grow saplings
|
||||||
|
30
sealife.lua
30
sealife.lua
@ -9,7 +9,10 @@ minetest.register_node("ethereal:seaweed", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
climbable = true,
|
climbable = true,
|
||||||
drowning = 1,
|
drowning = 1,
|
||||||
selection_box = {type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}},
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
|
||||||
|
},
|
||||||
post_effect_color = {a = 64, r = 100, g = 100, b = 200},
|
post_effect_color = {a = 64, r = 100, g = 100, b = 200},
|
||||||
groups = {snappy = 3},
|
groups = {snappy = 3},
|
||||||
on_use = minetest.item_eat(1),
|
on_use = minetest.item_eat(1),
|
||||||
@ -29,7 +32,10 @@ minetest.register_node("ethereal:coral2", {
|
|||||||
tiles = {"coral2.png"},
|
tiles = {"coral2.png"},
|
||||||
inventory_image = "coral2.png",
|
inventory_image = "coral2.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
selection_box = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}},
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
light_source = 3,
|
light_source = 3,
|
||||||
groups = {snappy = 3},
|
groups = {snappy = 3},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
@ -48,7 +54,10 @@ minetest.register_node("ethereal:coral3", {
|
|||||||
tiles = {"coral3.png"},
|
tiles = {"coral3.png"},
|
||||||
inventory_image = "coral3.png",
|
inventory_image = "coral3.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
selection_box = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}},
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
light_source = 3,
|
light_source = 3,
|
||||||
groups = {snappy = 3},
|
groups = {snappy = 3},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
@ -67,7 +76,10 @@ minetest.register_node("ethereal:coral4", {
|
|||||||
tiles = {"coral4.png"},
|
tiles = {"coral4.png"},
|
||||||
inventory_image = "coral4.png",
|
inventory_image = "coral4.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
selection_box = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}},
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
light_source = 3,
|
light_source = 3,
|
||||||
groups = {snappy = 3},
|
groups = {snappy = 3},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
@ -86,7 +98,10 @@ minetest.register_node("ethereal:coral5", {
|
|||||||
tiles = {"coral5.png"},
|
tiles = {"coral5.png"},
|
||||||
inventory_image = "coral5.png",
|
inventory_image = "coral5.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
selection_box = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}},
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
light_source = 3,
|
light_source = 3,
|
||||||
groups = {snappy = 3},
|
groups = {snappy = 3},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
@ -103,7 +118,10 @@ minetest.register_node("ethereal:sandy", {
|
|||||||
description = "Sandy",
|
description = "Sandy",
|
||||||
tiles = {"default_sand.png"},
|
tiles = {"default_sand.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {crumbly=3, falling_node=1, sand=1, soil=1, not_in_creative_inventory=1},
|
groups = {
|
||||||
|
crumbly = 3, falling_node = 1, sand = 1, soil = 1,
|
||||||
|
not_in_creative_inventory = 1
|
||||||
|
},
|
||||||
drop = "default:sand",
|
drop = "default:sand",
|
||||||
sounds = default.node_sound_sand_defaults(),
|
sounds = default.node_sound_sand_defaults(),
|
||||||
})
|
})
|
||||||
|
@ -18,8 +18,14 @@ minetest.register_node("ethereal:strawberry_1", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
drop = "",
|
drop = "",
|
||||||
selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},},
|
selection_box = {
|
||||||
groups = {snappy=3,flammable=2,plant=1,not_in_creative_inventory=1,attached_node=1,strawberry=1,growing=1},
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
|
groups = {
|
||||||
|
snappy = 3, flammable =2, plant = 1, attached_node = 1,
|
||||||
|
not_in_creative_inventory = 1, strawberry = 1, growing = 1
|
||||||
|
},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -32,8 +38,14 @@ minetest.register_node("ethereal:strawberry_2", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
drop = "",
|
drop = "",
|
||||||
selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},},
|
selection_box = {
|
||||||
groups = {snappy=3,flammable=2,plant=1,not_in_creative_inventory=1,attached_node=1,strawberry=2,growing=1},
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
|
groups = {
|
||||||
|
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||||
|
not_in_creative_inventory = 1, strawberry = 2, growing = 1
|
||||||
|
},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -46,8 +58,14 @@ minetest.register_node("ethereal:strawberry_3", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
drop = "",
|
drop = "",
|
||||||
selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},},
|
selection_box = {
|
||||||
groups = {snappy=3,flammable=2,plant=1,not_in_creative_inventory=1,attached_node=1,strawberry=3,growing=1},
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
|
groups = {
|
||||||
|
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||||
|
not_in_creative_inventory = 1, strawberry = 3, growing = 1
|
||||||
|
},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -60,8 +78,14 @@ minetest.register_node("ethereal:strawberry_4", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
drop = "",
|
drop = "",
|
||||||
selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},},
|
selection_box = {
|
||||||
groups = {snappy=3,flammable=2,plant=1,not_in_creative_inventory=1,attached_node=1,strawberry=4,growing=1},
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
|
groups = {
|
||||||
|
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||||
|
not_in_creative_inventory = 1, strawberry = 4, growing=1
|
||||||
|
},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -74,8 +98,14 @@ minetest.register_node("ethereal:strawberry_5", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
drop = "",
|
drop = "",
|
||||||
selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},},
|
selection_box = {
|
||||||
groups = {snappy=3,flammable=2,plant=1,not_in_creative_inventory=1,attached_node=1,strawberry=5,growing=1},
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
|
groups = {
|
||||||
|
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||||
|
not_in_creative_inventory = 1, strawberry = 5, growing = 1
|
||||||
|
},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -93,8 +123,14 @@ minetest.register_node("ethereal:strawberry_6", {
|
|||||||
{items = {"ethereal:strawberry 2"},rarity = 3},
|
{items = {"ethereal:strawberry 2"},rarity = 3},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},},
|
selection_box = {
|
||||||
groups = {snappy=3,flammable=2,plant=1,not_in_creative_inventory=1,attached_node=1,strawberry=6,growing=1},
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
|
groups = {
|
||||||
|
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||||
|
not_in_creative_inventory = 1, strawberry = 6, growing = 1
|
||||||
|
},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -113,8 +149,14 @@ minetest.register_node("ethereal:strawberry_7", {
|
|||||||
{items = {"ethereal:strawberry 2"},rarity = 3},
|
{items = {"ethereal:strawberry 2"},rarity = 3},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},},
|
selection_box = {
|
||||||
groups = {snappy=3,flammable=2,plant=1,not_in_creative_inventory=1,attached_node=1,strawberry=7,growing=1},
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
|
groups = {
|
||||||
|
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||||
|
not_in_creative_inventory = 1, strawberry = 7, growing = 1
|
||||||
|
},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -132,8 +174,14 @@ minetest.register_node("ethereal:strawberry_8", {
|
|||||||
{items = {"ethereal:strawberry 3"},rarity = 3},
|
{items = {"ethereal:strawberry 3"},rarity = 3},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},},
|
selection_box = {
|
||||||
groups = {snappy=3,flammable=2,plant=1,not_in_creative_inventory=1,attached_node=1,strawberry=8},
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||||
|
},
|
||||||
|
groups = {
|
||||||
|
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||||
|
not_in_creative_inventory = 1, strawberry = 8
|
||||||
|
},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
36
water.lua
36
water.lua
@ -52,7 +52,10 @@ minetest.register_abm({
|
|||||||
|
|
||||||
-- If Crystal Spike, Crystal Dirt, Snow near Water, change Water to Ice
|
-- If Crystal Spike, Crystal Dirt, Snow near Water, change Water to Ice
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"ethereal:crystal_spike", "default:snow", "default:snowblock", "ethereal:snowbrick"},
|
nodenames = {
|
||||||
|
"ethereal:crystal_spike", "default:snow", "default:snowblock",
|
||||||
|
"ethereal:snowbrick"
|
||||||
|
},
|
||||||
neighbors = {"default:water_source"},
|
neighbors = {"default:water_source"},
|
||||||
interval = 15,
|
interval = 15,
|
||||||
chance = 2,
|
chance = 2,
|
||||||
@ -69,13 +72,21 @@ minetest.register_abm({
|
|||||||
|
|
||||||
-- If Heat Source near Ice or Snow then melt
|
-- If Heat Source near Ice or Snow then melt
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"default:ice", "default:snowblock", "default:snow", "default:dirt_with_snow", "ethereal:snowbrick", "ethereal:icebrick"},
|
nodenames = {
|
||||||
neighbors = {"fire:basic_fire", "default:lava_source", "default:lava_flowing", "default:furnace_active", "default:torch"},
|
"default:ice", "default:snowblock", "default:snow",
|
||||||
|
"default:dirt_with_snow", "ethereal:snowbrick", "ethereal:icebrick"
|
||||||
|
},
|
||||||
|
neighbors = {
|
||||||
|
"fire:basic_fire", "default:lava_source", "default:lava_flowing",
|
||||||
|
"default:furnace_active", "default:torch"
|
||||||
|
},
|
||||||
interval = 5,
|
interval = 5,
|
||||||
chance = 2,
|
chance = 2,
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
if node.name == "default:ice" or node.name == "default:snowblock"
|
if node.name == "default:ice"
|
||||||
or node.name == "ethereal:icebrick" or node.name == "ethereal:snowbrick" then
|
or node.name == "default:snowblock"
|
||||||
|
or node.name == "ethereal:icebrick"
|
||||||
|
or node.name == "ethereal:snowbrick" then
|
||||||
minetest.add_node(pos, {name = "default:water_source"})
|
minetest.add_node(pos, {name = "default:water_source"})
|
||||||
elseif node.name == "default:snow" then
|
elseif node.name == "default:snow" then
|
||||||
minetest.add_node(pos, {name = "default:water_flowing"})
|
minetest.add_node(pos, {name = "default:water_flowing"})
|
||||||
@ -104,9 +115,18 @@ minetest.register_abm({
|
|||||||
interval = 5,
|
interval = 5,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
local num = #minetest.find_nodes_in_area({x=pos.x-1, y=pos.y, z=pos.z}, {x=pos.x+1, y=pos.y, z=pos.z}, {"group:water"})
|
local num = #minetest.find_nodes_in_area(
|
||||||
num = num + #minetest.find_nodes_in_area({x=pos.x, y=pos.y, z=pos.z-1}, {x=pos.x, y=pos.y, z=pos.z+1}, {"group:water"})
|
{x = pos.x - 1, y = pos.y, z = pos.z},
|
||||||
num = num + #minetest.find_nodes_in_area({x=pos.x, y=pos.y+1, z=pos.z}, {x=pos.x, y=pos.y+1, z=pos.z}, {"group:water"})
|
{x = pos.x + 1, y = pos.y, z = pos.z},
|
||||||
|
{"group:water"})
|
||||||
|
num = num + #minetest.find_nodes_in_area(
|
||||||
|
{x = pos.x, y = pos.y, z = pos.z - 1},
|
||||||
|
{x = pos.x, y = pos.y, z = pos.z + 1},
|
||||||
|
{"group:water"})
|
||||||
|
num = num + #minetest.find_nodes_in_area(
|
||||||
|
{x = pos.x, y = pos.y + 1, z = pos.z},
|
||||||
|
{x = pos.x, y = pos.y + 1, z = pos.z},
|
||||||
|
{"group:water"})
|
||||||
if num > 0 then
|
if num > 0 then
|
||||||
minetest.set_node(pos, {name = "default:water_flowing"})
|
minetest.set_node(pos, {name = "default:water_flowing"})
|
||||||
minetest.add_item(pos, {name = node.name})
|
minetest.add_item(pos, {name = node.name})
|
||||||
|
105
wood.lua
105
wood.lua
@ -1,13 +1,20 @@
|
|||||||
-- Define Trunks and Wood
|
--= Define Trunks and Wood
|
||||||
minetest.register_node("ethereal:acacia_trunk", { -- Acacia Trunk (thanks to VanessaE for acacia textures)
|
|
||||||
|
-- Acacia Trunk (thanks to VanessaE for acacia textures)
|
||||||
|
minetest.register_node("ethereal:acacia_trunk", {
|
||||||
description = "Acacia Trunk",
|
description = "Acacia Trunk",
|
||||||
tiles = {"moretrees_acacia_trunk_top.png", "moretrees_acacia_trunk_top.png", "moretrees_acacia_trunk.png"},
|
tiles = {
|
||||||
|
"moretrees_acacia_trunk_top.png",
|
||||||
|
"moretrees_acacia_trunk_top.png",
|
||||||
|
"moretrees_acacia_trunk.png"
|
||||||
|
},
|
||||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:acacia_wood", { -- Acacia Wood
|
-- Acacia Wood
|
||||||
|
minetest.register_node("ethereal:acacia_wood", {
|
||||||
description = "Acacia Wood",
|
description = "Acacia Wood",
|
||||||
tiles = {"moretrees_acacia_wood.png"},
|
tiles = {"moretrees_acacia_wood.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
@ -20,15 +27,21 @@ minetest.register_craft({
|
|||||||
recipe = {{"ethereal:acacia_trunk"}}
|
recipe = {{"ethereal:acacia_trunk"}}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:willow_trunk", { -- Willow Trunk
|
-- Willow Trunk
|
||||||
|
minetest.register_node("ethereal:willow_trunk", {
|
||||||
description = "Willow Trunk",
|
description = "Willow Trunk",
|
||||||
tiles = {"willow_trunk_top.png", "willow_trunk_top.png", "willow_trunk.png"},
|
tiles = {
|
||||||
|
"willow_trunk_top.png",
|
||||||
|
"willow_trunk_top.png",
|
||||||
|
"willow_trunk.png"
|
||||||
|
},
|
||||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:willow_wood", { -- Willow Wood
|
-- Willow Wood
|
||||||
|
minetest.register_node("ethereal:willow_wood", {
|
||||||
description = "Willow Wood",
|
description = "Willow Wood",
|
||||||
tiles = {"willow_wood.png"},
|
tiles = {"willow_wood.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
@ -41,15 +54,21 @@ minetest.register_craft({
|
|||||||
recipe = {{"ethereal:willow_trunk"}}
|
recipe = {{"ethereal:willow_trunk"}}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:redwood_trunk", { -- Redwood Trunk
|
-- Redwood Trunk
|
||||||
|
minetest.register_node("ethereal:redwood_trunk", {
|
||||||
description = "Redwood Trunk",
|
description = "Redwood Trunk",
|
||||||
tiles = {"redwood_trunk_top.png", "redwood_trunk_top.png", "redwood_trunk.png"},
|
tiles = {
|
||||||
|
"redwood_trunk_top.png",
|
||||||
|
"redwood_trunk_top.png",
|
||||||
|
"redwood_trunk.png"
|
||||||
|
},
|
||||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:redwood_wood", { -- Redwood Wood
|
-- Redwood Wood
|
||||||
|
minetest.register_node("ethereal:redwood_wood", {
|
||||||
description = "Redwood Wood",
|
description = "Redwood Wood",
|
||||||
tiles = {"redwood_wood.png"},
|
tiles = {"redwood_wood.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
@ -62,15 +81,21 @@ minetest.register_craft({
|
|||||||
recipe = {{"ethereal:redwood_trunk"}},
|
recipe = {{"ethereal:redwood_trunk"}},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:frost_tree", { -- Frost Trunk
|
-- Frost Trunk
|
||||||
|
minetest.register_node("ethereal:frost_tree", {
|
||||||
description = "Frost Tree",
|
description = "Frost Tree",
|
||||||
tiles = {"ethereal_frost_tree_top.png", "ethereal_frost_tree_top.png", "ethereal_frost_tree.png"},
|
tiles = {
|
||||||
|
"ethereal_frost_tree_top.png",
|
||||||
|
"ethereal_frost_tree_top.png",
|
||||||
|
"ethereal_frost_tree.png"
|
||||||
|
},
|
||||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:frost_wood", { -- Frost Wood
|
-- Frost Wood
|
||||||
|
minetest.register_node("ethereal:frost_wood", {
|
||||||
description = "Frost Wood",
|
description = "Frost Wood",
|
||||||
tiles = {"frost_wood.png"},
|
tiles = {"frost_wood.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
@ -83,15 +108,21 @@ minetest.register_craft({
|
|||||||
recipe = {{"ethereal:frost_tree"}}
|
recipe = {{"ethereal:frost_tree"}}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:yellow_trunk", { -- Healing Trunk
|
-- Healing Trunk
|
||||||
|
minetest.register_node("ethereal:yellow_trunk", {
|
||||||
description = "Healing Tree Trunk",
|
description = "Healing Tree Trunk",
|
||||||
tiles = {"yellow_tree_top.png", "yellow_tree_top.png", "yellow_tree.png"},
|
tiles = {
|
||||||
|
"yellow_tree_top.png",
|
||||||
|
"yellow_tree_top.png",
|
||||||
|
"yellow_tree.png"
|
||||||
|
},
|
||||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:yellow_wood", { -- Healing Wood
|
-- Healing Wood
|
||||||
|
minetest.register_node("ethereal:yellow_wood", {
|
||||||
description = "Healing Tree Wood",
|
description = "Healing Tree Wood",
|
||||||
tiles = {"yellow_wood.png"},
|
tiles = {"yellow_wood.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
@ -104,15 +135,21 @@ minetest.register_craft({
|
|||||||
recipe = {{"ethereal:yellow_trunk"}}
|
recipe = {{"ethereal:yellow_trunk"}}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:palm_trunk", { -- Palm Trunk
|
-- Palm Trunk (thanks to VanessaE for palm textures)
|
||||||
|
minetest.register_node("ethereal:palm_trunk", {
|
||||||
description = "Palm Trunk",
|
description = "Palm Trunk",
|
||||||
tiles = {"moretrees_palm_trunk_top.png", "moretrees_palm_trunk_top.png", "moretrees_palm_trunk.png"},
|
tiles = {
|
||||||
|
"moretrees_palm_trunk_top.png",
|
||||||
|
"moretrees_palm_trunk_top.png",
|
||||||
|
"moretrees_palm_trunk.png"
|
||||||
|
},
|
||||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:palm_wood", { -- Palm Wood
|
-- Palm Wood
|
||||||
|
minetest.register_node("ethereal:palm_wood", {
|
||||||
description = "Palm Wood",
|
description = "Palm Wood",
|
||||||
tiles = {"moretrees_palm_wood.png"},
|
tiles = {"moretrees_palm_wood.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
@ -125,15 +162,21 @@ minetest.register_craft({
|
|||||||
recipe = {{"ethereal:palm_trunk"}}
|
recipe = {{"ethereal:palm_trunk"}}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:banana_trunk", { -- Banana Tree Trunk
|
-- Banana Tree Trunk
|
||||||
|
minetest.register_node("ethereal:banana_trunk", {
|
||||||
description = "Banana Trunk",
|
description = "Banana Trunk",
|
||||||
tiles = {"banana_trunk_top.png", "banana_trunk_top.png", "banana_trunk.png"},
|
tiles = {
|
||||||
|
"banana_trunk_top.png",
|
||||||
|
"banana_trunk_top.png",
|
||||||
|
"banana_trunk.png"
|
||||||
|
},
|
||||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:banana_wood", { -- Banana Tree Wood
|
-- Banana Tree Wood
|
||||||
|
minetest.register_node("ethereal:banana_wood", {
|
||||||
description = "Banana Wood",
|
description = "Banana Wood",
|
||||||
tiles = {"banana_wood.png"},
|
tiles = {"banana_wood.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
@ -146,9 +189,14 @@ minetest.register_craft({
|
|||||||
recipe = {{"ethereal:banana_trunk"}}
|
recipe = {{"ethereal:banana_trunk"}}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:scorched_tree", { -- Scorched Trunk
|
-- Scorched Trunk
|
||||||
|
minetest.register_node("ethereal:scorched_tree", {
|
||||||
description = "Scorched Tree",
|
description = "Scorched Tree",
|
||||||
tiles = {"scorched_tree_top.png", "scorched_tree_top.png", "scorched_tree.png"},
|
tiles = {
|
||||||
|
"scorched_tree_top.png",
|
||||||
|
"scorched_tree_top.png",
|
||||||
|
"scorched_tree.png"
|
||||||
|
},
|
||||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 1},
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -163,9 +211,14 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("ethereal:mushroom_trunk", { -- Mushroom Trunk
|
-- Mushroom Trunk
|
||||||
|
minetest.register_node("ethereal:mushroom_trunk", {
|
||||||
description = "Mushroom",
|
description = "Mushroom",
|
||||||
tiles = {"mushroom_trunk_top.png", "mushroom_trunk_top.png", "mushroom_trunk.png"},
|
tiles = {
|
||||||
|
"mushroom_trunk_top.png",
|
||||||
|
"mushroom_trunk_top.png",
|
||||||
|
"mushroom_trunk.png"
|
||||||
|
},
|
||||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user