-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplants.lua
More file actions
79 lines (73 loc) · 1.94 KB
/
plants.lua
File metadata and controls
79 lines (73 loc) · 1.94 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
minetest.register_node("corruptionmt:fungus_night", {
description = ("Night Fungus"),
tiles = {"corruptionmt_fungus_night.png"},
inventory_image = "corruptionmt_fungus_night.png",
wield_image = "corruptionmt_fungus_night.png",
drawtype = "plantlike",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
groups = {mushroom = 1, snappy = 3, attached_node = 1, flammable = 1},
sounds = default.node_sound_leaves_defaults(),
on_use = minetest.item_eat(-1),
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, -1 / 16, 4 / 16},
}
})
minetest.register_decoration({
name = "corruptionmt:fungus_night",
deco_type = "simple",
place_on = {"corruptionmt:dirt_with_ebongrass"},
sidelen = 16,
noise_params = {
offset = 0,
scale = 0.02,
spread = {x = 200, y = 200, z = 200},
seed = 329,
octaves = 3,
persist = 0.6
},
biomes = {"corruption"},
y_max = 31000,
y_min = 2,
decoration = "corruptionmt:fungus_night",
param2 = 4,
})
minetest.register_node("corruptionmt:rotlilies", {
description = "Rotlilies",
drawtype = "plantlike",
tiles = {"corruptionmt_rotlilies.png"},
inventory_image = "corruptionmt_rotlilies.png",
wield_image = "corruptionmt_rotlilies.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
groups = {snappy = 3, flammable = 2, plant = 1, attached_node = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.3, 0.3},
},
})
minetest.register_decoration({
name = "corruptionmt:rotlilies",
deco_type = "simple",
place_on = {"corruptionmt:dirt_with_ebongrass"},
sidelen = 16,
noise_params = {
offset = 0,
scale = 0.02,
spread = {x = 200, y = 200, z = 200},
seed = 330,
octaves = 3,
persist = 0.6
},
biomes = {"corruption"},
y_max = 31000,
y_min = 2,
decoration = "corruptionmt:rotlilies",
param2 = 4,
})