-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
100 lines (98 loc) · 2.34 KB
/
init.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
--Quicksand
minetest.register_node("quicksand:quicksand_source", {
description = "Quicksand Source",
drawtype = "liquid",
tiles = {
{
name = "default_quicksand.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
},
},
special_tiles = {
{
name = "default_desert_sand.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
backface_culling = false,
},
},
paramtype = "light",
liquid_range = 6,
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 4,
liquidtype = "source",
liquid_alternative_flowing = "quicksand:quicksand_flowing",
liquid_alternative_source = "quicksand:quicksand_source",
liquid_viscosity = 8,
liquid_renewable = false,
post_effect_color = {a = 245, r = 213, g = 175, b = 100},
groups = {water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 0},
sounds = default.node_sound_water_defaults(),
})
--Flowing Quicksand
minetest.register_node("quicksand:quicksand_flowing", {
description = "Flowing Quicksand",
drawtype = "flowingliquid",
tiles = {"default_quicksand_flowing.png"},
special_tiles = {
{
name = "default_quicksand_flowing.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
{
name = "default_quicksand_flowing.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
},
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 4,
liquidtype = "flowing",
liquid_alternative_flowing = "quicksand:quicksand_flowing",
liquid_alternative_source = "quicksand:quicksand_source",
liquid_viscosity = 8,
liquid_renewable = false,
post_effect_color = {a = 240, r = 213, g = 175, b = 100},
groups = {water = 3, liquid = 3, puts_out_fire = 1,
not_in_creative_inventory = 1, cools_lava = 0},
sounds = default.node_sound_water_defaults(),
})
bucket.register_liquid(
"quicksand:quicksand_source",
"quicksand:quicksand_flowing",
"quicksand:bucket_quicksand",
"bucket_quicksand.png",
"Quicksand Bucket"
)