2020-10-26 17:38:53 +01:00
|
|
|
|
|
|
|
local pillar = {
|
|
|
|
{"stonebrick", "Stonebrick", "default_stone_brick", "default:stonebrick"},
|
|
|
|
{"stone", "Stone", "default_stone", "default:stone"},
|
|
|
|
{"sandstone", "Sandstone", "default_sandstone", "default:sandstone"},
|
|
|
|
{"desertstone", "Desert Stone", "default_desert_stone", "default:desert_stone"},
|
|
|
|
{"obsidian", "Obsidian", "default_obsidian", "default:obsidian"},
|
|
|
|
{"dungeonstone", "Dungeon Stone", "castle_dungeon_stone", "castle:dungeon_stone"},
|
|
|
|
}
|
|
|
|
|
|
|
|
if minetest.get_modpath("ethereal") then
|
2021-05-16 11:33:49 +02:00
|
|
|
pillar[7] = {"mushroomtrunk", "Mushroom Trunk", "ethereal_mushroom_trunk", "ethereal:mushroom_trunk"}
|
|
|
|
pillar[8] = {"icebrick", "Ice Brick", "ethereal_brick_ice", "ethereal:icebrick"}
|
2020-10-26 17:38:53 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
local grp = {cracky = 3}
|
|
|
|
|
|
|
|
for n = 1, #pillar do
|
|
|
|
|
|
|
|
minetest.register_node("castle:pillars_"..pillar[n][1].."_bottom", {
|
|
|
|
drawtype = "nodebox",
|
|
|
|
description = pillar[n][2].." Pillar Base",
|
|
|
|
tiles = {pillar[n][3]..".png"},
|
|
|
|
groups = grp,
|
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.500000,-0.500000,-0.500000,0.500000,-0.375000,0.500000},
|
|
|
|
{-0.375000,-0.375000,-0.375000,0.375000,-0.125000,0.375000},
|
2021-05-16 11:33:49 +02:00
|
|
|
{-0.250000,-0.125000,-0.250000,0.250000,0.500000,0.250000},
|
2020-10-26 17:38:53 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "castle:pillars_"..pillar[n][1].."_bottom 4",
|
|
|
|
recipe = {
|
|
|
|
{"",pillar[n][4],""},
|
|
|
|
{"",pillar[n][4],""},
|
|
|
|
{pillar[n][4],pillar[n][4],pillar[n][4]} },
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("castle:pillars_"..pillar[n][1].."_top", {
|
|
|
|
drawtype = "nodebox",
|
|
|
|
description = pillar[n][2].." Pillar Top",
|
|
|
|
tiles = {pillar[n][3]..".png"},
|
|
|
|
groups = grp,
|
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
2021-05-16 11:33:49 +02:00
|
|
|
{-0.500000,0.312500,-0.500000,0.500000,0.500000,0.500000},
|
|
|
|
{-0.375000,0.062500,-0.375000,0.375000,0.312500,0.375000},
|
2020-10-26 17:38:53 +01:00
|
|
|
{-0.250000,-0.500000,-0.250000,0.250000,0.062500,0.250000},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "castle:pillars_"..pillar[n][1].."_top 4",
|
|
|
|
recipe = {
|
|
|
|
{pillar[n][4],pillar[n][4],pillar[n][4]},
|
|
|
|
{"",pillar[n][4],""},
|
|
|
|
{"",pillar[n][4],""} },
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("castle:pillars_"..pillar[n][1].."_middle", {
|
|
|
|
drawtype = "nodebox",
|
|
|
|
description = pillar[n][2].." Pillar Middle",
|
|
|
|
tiles = {pillar[n][3]..".png"},
|
|
|
|
groups = grp,
|
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.250000,-0.500000,-0.250000,0.250000,0.500000,0.250000},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "castle:pillars_"..pillar[n][1].."_middle 4",
|
|
|
|
recipe = {
|
|
|
|
{pillar[n][4],pillar[n][4]},
|
|
|
|
{pillar[n][4],pillar[n][4]},
|
|
|
|
{pillar[n][4],pillar[n][4]} },
|
|
|
|
})
|
|
|
|
|
2021-04-05 14:46:21 +02:00
|
|
|
--grp = {cracky = 3, not_in_craft_guide = 1}
|
2020-10-26 17:38:53 +01:00
|
|
|
end
|