-
Notifications
You must be signed in to change notification settings - Fork 1
/
nodes.lua
150 lines (142 loc) · 3.91 KB
/
nodes.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
minetest.register_node("shadow_land:shadow_stone", {
description = "Shadow Stone",
tiles = {"shadow_stone.png"},
groups = {cracky = 3, stone = 1},
drop = 'default:cobble', -- need to change
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("shadow_land:dirt_with_shadow_grass", {
description = "Dirt with Shadow Grass",
tiles = {"shadow_grass_top.png", "default_dirt.png",
{name = "default_dirt.png^shadow_grass_side.png",
tileable_vertical = false}},
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
drop = 'default:dirt',
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25},
}),
})
minetest.register_node("shadow_land:dark_water_source", {
description = "Dark Water Source",
drawtype = "liquid",
tiles = {
{
name = "sl_water_source_animated.png^[colorize:#292421:70",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
},
},
special_tiles = {
{
name = "sl_water_source_animated.png^[colorize:#292421:70",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
backface_culling = false,
},
},
alpha = 160,
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
-- is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "source",
liquid_alternative_flowing = "shadow_land:dark_water_flowing",
liquid_alternative_source = "shadow_land:dark_water_source",
liquid_viscosity = 1,
post_effect_color = {a = 50, r = 40, g = 36, b = 33},
groups = {water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1},
sounds = default.node_sound_water_defaults(),
})
minetest.register_node("shadow_land:dark_water_flowing", {
description = "Dark Flowing Water",
drawtype = "flowingliquid",
tiles = {"sl_water.png^[colorize:#292421:70"},
special_tiles = {
{
name = "sl_water_flowing_animated.png^[colorize:#292421:70",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
{
name = "sl_water_flowing_animated.png^[colorize:#292421:70",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
},
alpha = 160,
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "flowing",
liquid_alternative_flowing = "shadow_land:dark_water_flowing",
liquid_alternative_source = "shadow_land:dark_water_source",
liquid_viscosity = 1,
post_effect_color = {a = 50, r = 40, g = 36, b = 33},
groups = {water = 3, liquid = 3, puts_out_fire = 1,
not_in_creative_inventory = 1, cools_lava = 1},
sounds = default.node_sound_water_defaults(),
})
minetest.register_node("shadow_land:shadow_grass", {
description = "Shadow Grass",
drawtype = "plantlike",
tiles = {"shadow_grass.png"},
inventory_image = "shadow_grass.png",
waving = 1,
paramtype = "light",
sunlight_propagates = true,
buildable_to = true,
walkable = false,
groups = {snappy = 3, attached_node = 1, flora = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -3 / 16, 6 / 16},
},
})
minetest.register_node("shadow_land:suntwist_plant", {
description = "Sun-twist Plant",
drawtype = "plantlike",
tiles = {"suntwist_plant.png"},
inventory_image = "suntwist_plant.png",
waving = 1,
paramtype = "light",
sunlight_propagates = true,
buildable_to = true,
walkable = false,
groups = {snappy = 3, attached_node = 1, flower = 1, flora = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -3 / 16, 6 / 16},
},
light_source = 5,
visual_scale = 0.8
})