From da66780a569712c23ae4f2996cfb4608a9f9d69d Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 1 Apr 2016 20:02:19 -0400 Subject: copy all standard Dreambuilder mods in from the old subgame (exactly as last supplied there, updates to these mods will follow later) --- cottages/nodes_fences.lua | 159 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 cottages/nodes_fences.lua (limited to 'cottages/nodes_fences.lua') diff --git a/cottages/nodes_fences.lua b/cottages/nodes_fences.lua new file mode 100644 index 0000000..0a4a26f --- /dev/null +++ b/cottages/nodes_fences.lua @@ -0,0 +1,159 @@ +-- 22.01.13 Changed texture to that of the wood from the minimal development game + +local S = cottages.S + +minetest.register_node("cottages:fence_small", { + description = S("small fence"), + drawtype = "nodebox", + -- top, bottom, side1, side2, inner, outer + tiles = {"cottages_minimal_wood.png"}, + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + node_box = { + type = "fixed", + fixed = { + { -0.45, -0.35, 0.46, 0.45, -0.20, 0.50}, + { -0.45, 0.00, 0.46, 0.45, 0.15, 0.50}, + { -0.45, 0.35, 0.46, 0.45, 0.50, 0.50}, + + { -0.50, -0.50, 0.46, -0.45, 0.50, 0.50}, + { 0.45, -0.50, 0.46, 0.50, 0.50, 0.50}, + }, + }, + selection_box = { + type = "fixed", + fixed = { + { -0.50, -0.50, 0.4, 0.50, 0.50, 0.5}, + }, + }, + is_ground_content = false, +}) + + +minetest.register_node("cottages:fence_corner", { + description = S("small fence corner"), + drawtype = "nodebox", + -- top, bottom, side1, side2, inner, outer + tiles = {"cottages_minimal_wood.png"}, + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + node_box = { + type = "fixed", + fixed = { + { -0.45, -0.35, 0.46, 0.45, -0.20, 0.50}, + { -0.45, 0.00, 0.46, 0.45, 0.15, 0.50}, + { -0.45, 0.35, 0.46, 0.45, 0.50, 0.50}, + + { -0.50, -0.50, 0.46, -0.45, 0.50, 0.50}, + { 0.45, -0.50, 0.46, 0.50, 0.50, 0.50}, + + { 0.46, -0.35, -0.45, 0.50, -0.20, 0.45}, + { 0.46, 0.00, -0.45, 0.50, 0.15, 0.45}, + { 0.46, 0.35, -0.45, 0.50, 0.50, 0.45}, + + { 0.46, -0.50, -0.50, 0.50, 0.50, -0.45}, + { 0.46, -0.50, 0.45, 0.50, 0.50, 0.50}, + }, + }, + selection_box = { + type = "fixed", + fixed = { + { -0.50, -0.50,-0.5, 0.50, 0.50, 0.5}, + }, + }, + is_ground_content = false, +}) + + +minetest.register_node("cottages:fence_end", { + description = S("small fence end"), + drawtype = "nodebox", + -- top, bottom, side1, side2, inner, outer + tiles = {"cottages_minimal_wood.png"}, + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + node_box = { + type = "fixed", + fixed = { + { -0.45, -0.35, 0.46, 0.45, -0.20, 0.50}, + { -0.45, 0.00, 0.46, 0.45, 0.15, 0.50}, + { -0.45, 0.35, 0.46, 0.45, 0.50, 0.50}, + + { -0.50, -0.50, 0.46, -0.45, 0.50, 0.50}, + { 0.45, -0.50, 0.46, 0.50, 0.50, 0.50}, + + { 0.46, -0.35, -0.45, 0.50, -0.20, 0.45}, + { 0.46, 0.00, -0.45, 0.50, 0.15, 0.45}, + { 0.46, 0.35, -0.45, 0.50, 0.50, 0.45}, + + { 0.46, -0.50, -0.50, 0.50, 0.50, -0.45}, + { 0.46, -0.50, 0.45, 0.50, 0.50, 0.50}, + + { -0.50, -0.35, -0.45, -0.46, -0.20, 0.45}, + { -0.50, 0.00, -0.45, -0.46, 0.15, 0.45}, + { -0.50, 0.35, -0.45, -0.46, 0.50, 0.45}, + + { -0.50, -0.50, -0.50, -0.46, 0.50, -0.45}, + { -0.50, -0.50, 0.45, -0.46, 0.50, 0.50}, + }, + }, + selection_box = { + type = "fixed", + fixed = { + { -0.50, -0.50,-0.5, 0.50, 0.50, 0.5}, + }, + }, + is_ground_content = false, +}) + +minetest.register_craft({ + output = "cottages:fence_small 3", + recipe = { + {cottages.craftitem_fence, cottages.craftitem_fence}, + } +}) + +-- xfences can be configured to replace normal fences - which makes them uncraftable +if ( minetest.get_modpath("xfences") ~= nil ) then + minetest.register_craft({ + output = "cottages:fence_small 3", + recipe = { + {"xfences:fence","xfences:fence" }, + } + }) +end + +minetest.register_craft({ + output = "cottages:fence_corner", + recipe = { + {"cottages:fence_small","cottages:fence_small" }, + } +}) + +minetest.register_craft({ + output = "cottages:fence_small 2", + recipe = { + {"cottages:fence_corner" }, + } +}) + +minetest.register_craft({ + output = "cottages:fence_end", + recipe = { + {"cottages:fence_small","cottages:fence_small", "cottages:fence_small" }, + } +}) + +minetest.register_craft({ + output = "cottages:fence_small 3", + recipe = { + {"cottages:fence_end" }, + } +}) + + + + -- cgit v1.2.3