forked from mt-mods/vacuum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvacuum.lua
More file actions
86 lines (80 loc) · 2.33 KB
/
vacuum.lua
File metadata and controls
86 lines (80 loc) · 2.33 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
79
80
81
82
83
84
85
86
-- this is vacuum of space
minetest.register_node("vacuum:vacuum", {
description = "Vacuum",
sunlight_propagates = true,
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
drawtype = "airlike",
post_effect_color = {a = 17, r = 20, g = 30, b = 200},
tiles = {"vacuum_texture.png^[colorize:#E0E0E033"},
inventory_image = "vacuum_inv.png",
wield_image = "vacuum_inv.png",
use_texture_alpha = "blend",
waving = 3,
drowning = 1,
groups = {not_in_creative_inventory=1, not_blocking_trains=1, cools_lava=1, vacuum = 1},
paramtype = "light",
drop = {},
})
-- this is the border between air and vacuum..
minetest.register_node("vacuum:atmos_thin", {
description = "Atmosphere Air Thin",
drawtype = "liquid",
tiles = {"atmos_thin.png"},
paramtype = "light",
sunlight_propagates = true,
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
use_texture_alpha = "blend",--true,
inventory_image = "vacuum_inv.png",
wield_image = "vacuum_inv.png",
post_effect_color = {a = 8, r = 20, g = 50, b = 200},
groups = {not_in_creative_inventory = 1, atmosphere = 1},
drowning = 1,
waving = 3,
drop = {},
})
-- this is just like air, but in space
minetest.register_node("vacuum:atmos_thick", {
description = "Atmosphere Air Thick",
drawtype = "airlike",
--tiles = {"asteroid_atmos3.png^[colorize:#E0E0E033"},
paramtype = "light",
sunlight_propagates = true,
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
use_texture_alpha = "blend",--true,
inventory_image = "vacuum_inv.png",
wield_image = "vacuum_inv.png",
post_effect_color = {a = 20, r = 64, g = 60, b = 73},
groups = {not_in_creative_inventory = 1, atmosphere = 2},
waving = 3,
drop = {},
})
-- this is atmosphere that is around the space asteroids
minetest.register_node(":asteroid:atmos", {
description = "Atmosphere",
drawtype = "liquid",
--tiles = {"asteroid_atmos6.png"},
paramtype = "light",
sunlight_propagates = true,
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
use_texture_alpha = "blend",--true,
inventory_image = "vacuum_inv.png",
wield_image = "vacuum_inv.png",
post_effect_color = {a = 21, r = 241, g = 248, b = 255},
groups = {not_in_creative_inventory = 1, atmosphere = 3},
waving = 3,
drop = {},
})