-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnodes.lua
More file actions
79 lines (68 loc) · 2.18 KB
/
nodes.lua
File metadata and controls
79 lines (68 loc) · 2.18 KB
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
---------------
--Unbreakable--
---------------
--Stone
minetest.register_node("tower_defense:red_stone", {
tiles = {"tower_defense_red_stone.png"},
description = "Unbreakable stone for TD games",
groups = {not_in_creative_inventory = 1, unbreakable = 1},
})
--Sand
minetest.register_node("tower_defense:yellow_stone", {
tiles = {"tower_defense_yellow_stone.png"},
description = "Unbreakable sand for TD games",
groups = {not_in_creative_inventory = 1, unbreakable = 1},
})
--Barrier
minetest.register_node("tower_defense:barrier", {
drawtype = "airlike",
paramtype = "light",
sunlight_propagates = true,
description = "Unbreakable barrier for TD games",
groups = {not_in_creative_inventory = 1, unbreakable = 1},
})
--Flag
minetest.register_node("tower_defense:flag", {
tiles = {
"tower_defense_flag_top.png^[transform1",
"tower_defense_flag_top.png^[transform1",
"tower_defense_flag_front.png",
"tower_defense_flag_back.png",
"tower_defense_flag_side.png^[transform4",
"tower_defense_flag_side.png",
},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-5/16,-8/16,-1/16,-3/16,8/16,1/16},
{-3/16,1/16,-1/16,6/16,7/16,1/16},
}
},
description = "Flag",
paramtype = "light",
groups = {not_in_creative_inventory = 1, unbreakable = 1, health = 1000}
})
------------------
----Barricades----
------------------
minetest.register_node("tower_defense:wood_barricade",{
description = "Wood Barricade",
tiles = {"default_wood.png"},
groups = {not_in_creative_inventory = 1, oddly_breakable_by_hand = 3, health = 50}
})
minetest.register_node("tower_defense:stone_barricade",{
description = "Stone Barricade",
tiles = {"default_stone.png"},
groups = {not_in_creative_inventory = 1, oddly_breakable_by_hand = 3, health = 100}
})
minetest.register_node("tower_defense:steel_barricade",{
description = "Steel Barricade",
tiles = {"default_steel_block.png"},
groups = {not_in_creative_inventory = 1, oddly_breakable_by_hand = 3, health = 250}
})
minetest.register_node("tower_defense:obsidian_barricade",{
description = "Obsidian Barricade",
tiles = {"default_obsidian.png"},
groups = {not_in_creative_inventory = 1, oddly_breakable_by_hand = 3, health = 500}
})