summaryrefslogtreecommitdiff
path: root/castle/tapestry.lua
diff options
context:
space:
mode:
Diffstat (limited to 'castle/tapestry.lua')
-rw-r--r--castle/tapestry.lua138
1 files changed, 70 insertions, 68 deletions
diff --git a/castle/tapestry.lua b/castle/tapestry.lua
index 845fb7a..3cc3401 100644
--- a/castle/tapestry.lua
+++ b/castle/tapestry.lua
@@ -2,7 +2,7 @@ local tapestry = {}
minetest.register_node("castle:tapestry_top", {
drawtype = "nodebox",
- description = "Tapestry Top",
+ description = "Tapestry Top",
tiles = {"default_wood.png"},
sunlight_propagates = true,
groups = {flammable=3,oddly_breakable_by_hand=1},
@@ -18,7 +18,7 @@ minetest.register_node("castle:tapestry_top", {
selection_box = {
type = "fixed",
fixed = {
- {-0.600000,-0.500000,0.375000,0.600000,-0.375000,0.500000},
+ {-0.600000,-0.500000,0.375000,0.600000,-0.375000,0.500000},
},
},
})
@@ -53,33 +53,33 @@ for _, row in ipairs(tapestry.colours) do
local craft_color_group = row[3]
-- Node Definition
minetest.register_node("castle:tapestry_"..name, {
- drawtype = "nodebox",
+ drawtype = "nodebox",
description = desc.." Tapestry",
tiles = {"wool_"..name..".png"},
groups = {oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
sounds = default.node_sound_defaults(),
- paramtype = "light",
- paramtype2 = "facedir",
+ paramtype = "light",
+ paramtype2 = "facedir",
node_box = {
- type = "fixed",
- fixed = {
- {-0.312500,-0.500000,0.437500,-0.187500,-0.375000,0.500000},
- {0.187500,-0.500000,0.437500,0.312500,-0.375000,0.500000},
- {-0.375000,-0.375000,0.437500,-0.125000,-0.250000,0.500000},
- {0.125000,-0.375000,0.437500,0.375000,-0.250000,0.500000},
- {-0.437500,-0.250000,0.437500,-0.062500,-0.125000,0.500000},
- {0.062500,-0.250000,0.437500,0.437500,-0.125000,0.500000},
- {-0.500000,-0.125000,0.437500,0.000000,0.000000,0.500000},
- {0.000000,-0.125000,0.437500,0.500000,0.000000,0.500000},
- {-0.500000,0.000000,0.437500,0.500000,1.500000,0.500000},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.500000,-0.500000,0.437500,0.500000,1.500000,0.500000},
- },
- },
+ type = "fixed",
+ fixed = {
+ {-0.312500,-0.500000,0.437500,-0.187500,-0.375000,0.500000},
+ {0.187500,-0.500000,0.437500,0.312500,-0.375000,0.500000},
+ {-0.375000,-0.375000,0.437500,-0.125000,-0.250000,0.500000},
+ {0.125000,-0.375000,0.437500,0.375000,-0.250000,0.500000},
+ {-0.437500,-0.250000,0.437500,-0.062500,-0.125000,0.500000},
+ {0.062500,-0.250000,0.437500,0.437500,-0.125000,0.500000},
+ {-0.500000,-0.125000,0.437500,0.000000,0.000000,0.500000},
+ {0.000000,-0.125000,0.437500,0.500000,0.000000,0.500000},
+ {-0.500000,0.000000,0.437500,0.500000,1.500000,0.500000},
+ },
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {
+ {-0.500000,-0.500000,0.437500,0.500000,1.500000,0.500000},
+ },
+ },
})
if craft_color_group then
-- Crafting from wool and a stick
@@ -97,34 +97,35 @@ for _, row in ipairs(tapestry.colours) do
local craft_color_group = row[3]
-- Node Definition
minetest.register_node("castle:long_tapestry_"..name, {
- drawtype = "nodebox",
+ drawtype = "nodebox",
description = desc.." Tapestry (Long)",
tiles = {"wool_"..name..".png"},
groups = {oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
sounds = default.node_sound_defaults(),
- paramtype = "light",
- paramtype2 = "facedir",
+ paramtype = "light",
+ paramtype2 = "facedir",
node_box = {
- type = "fixed",
- fixed = {
- {-0.312500,-0.500000,0.437500,-0.187500,-0.375000,0.500000},
- {0.187500,-0.500000,0.437500,0.312500,-0.375000,0.500000},
- {-0.375000,-0.375000,0.437500,-0.125000,-0.250000,0.500000},
- {0.125000,-0.375000,0.437500,0.375000,-0.250000,0.500000},
- {-0.437500,-0.250000,0.437500,-0.062500,-0.125000,0.500000},
- {0.062500,-0.250000,0.437500,0.437500,-0.125000,0.500000},
- {-0.500000,-0.125000,0.437500,0.000000,0.000000,0.500000},
- {0.000000,-0.125000,0.437500,0.500000,0.000000,0.500000},
- {-0.500000,0.000000,0.437500,0.500000,2.500000,0.500000},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.500000,-0.500000,0.437500,0.500000,2.500000,0.500000},
- },
- },
+ type = "fixed",
+ fixed = {
+ {-0.312500,-0.500000,0.437500,-0.187500,-0.375000,0.500000},
+ {0.187500,-0.500000,0.437500,0.312500,-0.375000,0.500000},
+ {-0.375000,-0.375000,0.437500,-0.125000,-0.250000,0.500000},
+ {0.125000,-0.375000,0.437500,0.375000,-0.250000,0.500000},
+ {-0.437500,-0.250000,0.437500,-0.062500,-0.125000,0.500000},
+ {0.062500,-0.250000,0.437500,0.437500,-0.125000,0.500000},
+ {-0.500000,-0.125000,0.437500,0.000000,0.000000,0.500000},
+ {0.000000,-0.125000,0.437500,0.500000,0.000000,0.500000},
+ {-0.500000,0.000000,0.437500,0.500000,2.500000,0.500000},
+ },
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {
+ {-0.500000,-0.500000,0.437500,0.500000,2.500000,0.500000},
+ },
+ },
})
+
if craft_color_group then
-- Crafting from normal tapestry and wool
minetest.register_craft({
@@ -141,33 +142,33 @@ for _, row in ipairs(tapestry.colours) do
local craft_color_group = row[3]
-- Node Definition
minetest.register_node("castle:very_long_tapestry_"..name, {
- drawtype = "nodebox",
+ drawtype = "nodebox",
description = desc.." Tapestry (Very Long)",
tiles = {"wool_"..name..".png"},
groups = {oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
sounds = default.node_sound_defaults(),
- paramtype = "light",
- paramtype2 = "facedir",
+ paramtype = "light",
+ paramtype2 = "facedir",
node_box = {
- type = "fixed",
- fixed = {
- {-0.312500,-0.500000,0.437500,-0.187500,-0.375000,0.500000},
- {0.187500,-0.500000,0.437500,0.312500,-0.375000,0.500000},
- {-0.375000,-0.375000,0.437500,-0.125000,-0.250000,0.500000},
- {0.125000,-0.375000,0.437500,0.375000,-0.250000,0.500000},
- {-0.437500,-0.250000,0.437500,-0.062500,-0.125000,0.500000},
- {0.062500,-0.250000,0.437500,0.437500,-0.125000,0.500000},
- {-0.500000,-0.125000,0.437500,0.000000,0.000000,0.500000},
- {0.000000,-0.125000,0.437500,0.500000,0.000000,0.500000},
- {-0.500000,0.000000,0.437500,0.500000,3.500000,0.500000},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.500000,-0.500000,0.437500,0.500000,3.500000,0.500000},
- },
- },
+ type = "fixed",
+ fixed = {
+ {-0.312500,-0.500000,0.437500,-0.187500,-0.375000,0.500000},
+ {0.187500,-0.500000,0.437500,0.312500,-0.375000,0.500000},
+ {-0.375000,-0.375000,0.437500,-0.125000,-0.250000,0.500000},
+ {0.125000,-0.375000,0.437500,0.375000,-0.250000,0.500000},
+ {-0.437500,-0.250000,0.437500,-0.062500,-0.125000,0.500000},
+ {0.062500,-0.250000,0.437500,0.437500,-0.125000,0.500000},
+ {-0.500000,-0.125000,0.437500,0.000000,0.000000,0.500000},
+ {0.000000,-0.125000,0.437500,0.500000,0.000000,0.500000},
+ {-0.500000,0.000000,0.437500,0.500000,3.500000,0.500000},
+ },
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {
+ {-0.500000,-0.500000,0.437500,0.500000,3.500000,0.500000},
+ },
+ },
})
if craft_color_group then
-- Crafting from long tapestry and wool
@@ -178,3 +179,4 @@ for _, row in ipairs(tapestry.colours) do
})
end
end
+