summaryrefslogtreecommitdiff
path: root/fences.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-05-17 21:40:05 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-05-17 21:40:05 +0100
commitb1f0ded17316dcaf729c3dc2d7d21aed70c2b7ca (patch)
treeadc72eb32963a67a19863bc8e3060cb4b7df1d1b /fences.lua
parentc47c840f2aaf35c9ea284be191798cb3a566b175 (diff)
Ethereal NG 1.20 release for minetest 0.4.14
Diffstat (limited to 'fences.lua')
-rw-r--r--fences.lua117
1 files changed, 72 insertions, 45 deletions
diff --git a/fences.lua b/fences.lua
index a013462..a513612 100644
--- a/fences.lua
+++ b/fences.lua
@@ -1,45 +1,72 @@
-local fences = {
- {"junglewood", "Jungle Wood", "default_junglewood.png", "default:junglewood"},
- {"scorched", "Scorched", "scorched_tree.png", "ethereal:scorched_tree"},
- {"frostwood", "Frost Wood", "frost_wood.png", "ethereal:frost_wood"},
- {"redwood", "Redwood", "redwood_wood.png", "ethereal:redwood_wood"},
- {"willow", "Willow", "willow_wood.png", "ethereal:willow_wood"},
- {"yellowwood", "Healing Wood", "yellow_wood.png", "ethereal:yellow_wood"},
- {"palm", "Palm Wood", "moretrees_palm_wood.png", "ethereal:palm_wood"},
- {"banana", "Banana Wood", "banana_wood.png", "ethereal:banana_wood"},
- {"mushroom", "Mushroom", "mushroom_trunk.png", "ethereal:mushroom_trunk"},
- {"acacia", "Acacia Wood", "moretrees_acacia_wood.png", "ethereal:acacia_wood"},
- {"pine", "Pine Wood", "default_pine_wood.png", "default:pinewood"},
- {"birch", "Birch Wood", "moretrees_birch_wood.png", "ethereal:birch_wood"},
-}
-
-for _, row in pairs(fences) do
-
- minetest.register_node("ethereal:fence_"..row[1], {
- description = row[2].." Fence",
- drawtype = "fencelike",
- is_ground_content = false,
- tiles = {row[3]},
- inventory_image = "default_fence_overlay.png^" .. row[3]
- .. "^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",
- sunlight_propagates = true,
- selection_box = {
- type = "fixed",
- fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
- },
- groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
- sounds = default.node_sound_wood_defaults(),
- })
-
- minetest.register_craft({
- output = "ethereal:fence_"..row[1].." 4",
- recipe = {
- {row[4], "group:stick", row[4]},
- {row[4], "group:stick", row[4]},
- }
- })
-
-end
+
+default.register_fence("ethereal:fence_scorched", {
+ description = "Scorched Fence",
+ texture = "scorched_tree.png",
+ material = "ethereal:scorched_tree",
+ groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
+ sounds = default.node_sound_wood_defaults()
+})
+
+default.register_fence("ethereal:fence_frostwood", {
+ description = "Frost Fence",
+ texture = "frost_wood.png",
+ material = "ethereal:frost_wood",
+ groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
+ sounds = default.node_sound_wood_defaults()
+})
+
+default.register_fence("ethereal:fence_redwood", {
+ description = "Redwood Fence",
+ texture = "redwood_wood.png",
+ material = "ethereal:redwood_wood",
+ groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
+ sounds = default.node_sound_wood_defaults()
+})
+
+default.register_fence("ethereal:fence_willow", {
+ description = "Willow Fence",
+ texture = "willow_wood.png",
+ material = "ethereal:willow_wood",
+ groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
+ sounds = default.node_sound_wood_defaults()
+})
+
+default.register_fence("ethereal:fence_yellowwood", {
+ description = "Healing Wood Fence",
+ texture = "yellow_wood.png",
+ material = "ethereal:yellow_wood",
+ groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
+ sounds = default.node_sound_wood_defaults()
+})
+
+default.register_fence("ethereal:fence_palm", {
+ description = "Palm Fence",
+ texture = "moretrees_palm_wood.png",
+ material = "ethereal:palm_wood",
+ groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
+ sounds = default.node_sound_wood_defaults()
+})
+
+default.register_fence("ethereal:fence_banana", {
+ description = "Banana Wood Fence",
+ texture = "banana_wood.png",
+ material = "ethereal:banana_wood",
+ groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
+ sounds = default.node_sound_wood_defaults()
+})
+
+default.register_fence("ethereal:fence_mushroom", {
+ description = "Mushroom Fence",
+ texture = "mushroom_trunk.png",
+ material = "ethereal:mushroom_trunk",
+ groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
+ sounds = default.node_sound_wood_defaults()
+})
+
+default.register_fence("ethereal:fence_birch", {
+ description = "Birch Fence",
+ texture = "moretrees_birch_wood.png",
+ material = "ethereal:birch_wood",
+ groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
+ sounds = default.node_sound_wood_defaults()
+})