-
Notifications
You must be signed in to change notification settings - Fork 1
/
castle_decoplayer.lua
99 lines (84 loc) · 2.38 KB
/
castle_decoplayer.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
local decoplayerbottom = {}
decoplayerbottom.types = {
{"warriorgirl","Warrior Girl","castle_warrior_girl"},
{"archer","Archer","castle_archer"},
{"player","Player","castle_player"},
{"armored1","Armored1","castle_armored1"},
{"armored2","Armored2","castle_armored2"},
{"girlarcher","Girl Archer","castle_girl_archer"},
}
for _, row in ipairs(decoplayerbottom.types) do
local name = row[1]
local desc = row[2]
local tile = row[3]
-- local inv = row[4]
----------------------------------
-- Strong defense standartwall --
----------------------------------
-- Stong Defense Wall
minetest.register_node("castle:deco" ..name.. "0decotop", {
drawtype = "nodebox",
description = desc.." Top Deco Player",
tiles = {
"castle_space.png",
"castle_space.png",
"castle_space.png",
"castle_space.png",
tile.. "_top.png",
tile.. "_top.png"},
groups = {cracky=3,attached_node=0},
-- sounds = default.node_sound_stone_defaults(),
paramtype = "light",
paramtype2 = "facedir",
walkable = false,
node_box = {
type = "fixed",
fixed = {
{-0.4375,-0.5,-0.1875,0.4375,-0.0625,-0.0625}, --NodeBox1
{-0.25,-0.0625,-0.1875,0.25,0.4375,-0.0625}, --NodeBox2
},
},
})
end
local decoplayertop = {}
decoplayertop.types = {
{"warriorgirl","Warrior Girl","castle_warrior_girl"},
{"archer","Archer","castle_archer"},
{"player","Player","castle_player"},
{"armored1","Armored1","castle_armored1"},
{"armored2","Armored2","castle_armored2"},
{"girlarcher","Girl Archer","castle_girl_archer"},
}
for _, row in ipairs(decoplayertop.types) do
local name = row[1]
local desc = row[2]
local tile = row[3]
local inv = row[4]
----------------------------------
-- Strong defense standartwall --
----------------------------------
-- Stong Defense Wall
minetest.register_node("castle:deco" ..name.. "0decobottom", {
drawtype = "nodebox",
description = desc.." Bottom Deco Player",
tiles = {
"castle_space.png",
"castle_space.png",
"castle_space.png",
"castle_space.png",
tile.. "_bottom.png",
tile.. "_bottom.png"},
groups = {cracky=3,attached_node=0},
-- sounds = default.node_sound_stone_defaults(),
paramtype = "light",
paramtype2 = "facedir",
walkable = false,
node_box = {
type = "fixed",
fixed = {
{-0.4375,0.1875,-0.1875,0.4375,0.5,-0.0625}, --NodeBox1
{-0.1875,-0.5,-0.1875,0.1875,0.1875,-0.0625}, --NodeBox2
},
},
})
end