-
Notifications
You must be signed in to change notification settings - Fork 1
/
castle_bridgenode.lua
60 lines (54 loc) · 2.69 KB
/
castle_bridgenode.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
local castle_bridgenode = {}
castle_bridgenode.types = {
{"stonewall_under_bridge","StoneWallBridge","castle_stonewall.png","castle_corner_stonewall1.png","castle_corner_stonewall2.png","castle:stonewall"},
{"dungeon_under_bridge","DungeonWallBridge","castle_dungeon_stone.png","castle_dungeon_stone_corner_1.png","castle_dungeon_stone_corner_2.png","castle:dungeonwall"},
{"pavingstone_under_bridge","PavingStoneBridge","castle_pavement_brick.png","castle_pavement_brick_corner1.png","castle_pavement_brick_corner2.png","castle:pavement"},
{"cornerwall_under_bridge","CornerWallBridge","castle_cornwall.png","castle:cornerwall"},
-- {"bookshelf","Bookshelf","default_bookshelf.png","default:bookshelf"},
-- {"dirt","Dirt","default_dirt.png","default:dirt"},
-- {"stone","Stone","default_stone.png","default:stone"},
-- {"cobble","Cobble","default_cobble.png","default:cobble"},
-- {"sand","Sand","default_sand.png","default:sand"},
-- {"desert_sand","Desert Sand","default_desert_sand.png","default:desert_sand"},
-- {"desert_stone","Desert Stone","default_desert_stone.png","default:desert-stone"},
-- {"brick","Brick","default_brick.png","default:brick"},
-- {"steel","Steel","default_steel_block.png","default:steelblock"},
-- {"glass","Glass","default_glass.png","default:glass"},
-- {"stonebrick","Stone Brick","default_stone_brick.png","default:stonebrick"},
-- {"desert_stone_brick","Desert Stone Brick","default_desert_stone_brick.png","default:desertstonebrick"},
-- {"sand_stone_brick","Sand Stone Brick","default_sandstone_brick.png","default:sandstonebrick"},
-- {"tree","Tree","default_tree.png","default:tree"},
-- {"wood","Wood","default_wood.png","default:wood"},
-- {"sand_stone","Sand Stone","default_sandstone.png","default:sandstone"},
-- {"obsidian","Obsidian","default_obsidian.png","default:obsidian"},
-- {"gravel","Gravel","default_gravel.png","default:gravel"},
-- {"desertcobble","Desert Cobble","desert_cobble.png","castle:desert_cobble"},
}
for _, row in ipairs(castle_bridgenode.types) do
local name = row[1]
local desc = row[2]
local inv = row[3]
local tile1 = row[4]
local tile2 = row[5]
local craft_logical = row[6]
--Under Bridge Corner
minetest.register_node("castle:" ..name,{
drawtype="nodebox",
description = desc.. "Under Bridge",
paramtype = "light",
paramtype2 = "facedir",
tiles = {inv},
groups = {cracky=3,attached_node=0},
sounds = default.node_sound_stone_defaults(),
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.1875,-0.5,-0.4375,0.5,0.5}, --NodeBox2
{-0.4375,0.0625,-0.5,-0.3125,0.5,0.5}, --NodeBox3
{-0.3125,0.25,-0.5,-0.125,0.5,0.5}, --NodeBox4
{-0.125,0.375,-0.5,0.0625,0.5,0.5}, --NodeBox5
{0.0625,0.4375,-0.5,0.25,0.5,0.5}, --NodeBox6
},
}
})
end