Make many nodes floodable
[minetest_hades/hades_revisited.git] / mods / simple_bushes / init.lua
blob9ac18e58cc8ee3f0d2f2de75f6aed8f508c138e6
1 local S = minetest.get_translator("simple_bushes")
3 -- See README.txt for licensing and other information.
5 -- nodes and crafting
6 minetest.register_node("simple_bushes:green", {
7 description = S("Green Bush"),
8 drawtype = "plantlike",
9 visual_scale = 1.6,
10 tiles = { "simple_bushes_green.png" },
11 inventory_image = "simple_bushes_green.png",
12 wield_image = "simple_bushes_green.png",
13 sunlight_propagates = true,
14 paramtype = "light",
15 walkable = false,
16 floodable = true,
17 groups = {snappy=3,flammable=2,simple_bush=1,attached_node=1,color_green=1},
18 sounds = hades_sounds.node_sound_leaves_defaults(),
19 selection_box = {
20 type = "fixed",
21 fixed = {-0.325, -0.5, -0.325, 0.325, 0.5, 0.325},
25 minetest.register_craft({
26 output = 'simple_bushes:green',
27 recipe = {
28 {'group:leaves', '', ''},
29 {'group:stick', '', ''},
30 {'hades_core:dirt', '', ''},
34 minetest.register_node("simple_bushes:white", {
35 description = S("White Bush"),
36 drawtype = "plantlike",
37 visual_scale = 1.6,
38 tiles = { "simple_bushes_white.png" },
39 inventory_image = "simple_bushes_white.png",
40 wield_image = "simple_bushes_white.png",
41 sunlight_propagates = true,
42 paramtype = "light",
43 walkable = false,
44 floodable = true,
45 groups = {snappy=3,flammable=2,simple_bush=1,attached_node=1,color_white=1},
46 sounds = hades_sounds.node_sound_leaves_defaults(),
47 selection_box = {
48 type = "fixed",
49 fixed = {-0.325, -0.5, -0.325, 0.325, 0.5, 0.325},
53 minetest.register_craft({
54 output = 'simple_bushes:white',
55 recipe = {
56 {'flowers:dandelion_white', '', ''},
57 {'simple_bushes:green', '', ''},
58 {'hades_core:dirt', '', ''},
62 minetest.register_node("simple_bushes:yellow", {
63 description = S("Yellow Bush"),
64 drawtype = "plantlike",
65 visual_scale = 1.6,
66 tiles = { "simple_bushes_yellow.png" },
67 inventory_image = "simple_bushes_yellow.png",
68 wield_image = "simple_bushes_yellow.png",
69 sunlight_propagates = true,
70 paramtype = "light",
71 walkable = false,
72 floodable = true,
73 groups = {snappy=3,flammable=2,simple_bush=1,attached_node=1,color_yellow=1},
74 sounds = hades_sounds.node_sound_leaves_defaults(),
75 selection_box = {
76 type = "fixed",
77 fixed = {-0.325, -0.5, -0.325, 0.325, 0.5, 0.325},
81 minetest.register_craft({
82 output = 'simple_bushes:yellow',
83 recipe = {
84 {'flowers:dandelion_yellow', '', ''},
85 {'simple_bushes:green', '', ''},
86 {'hades_core:dirt', '', ''},
90 minetest.register_node("simple_bushes:blue", {
91 description = S("Blue Bush"),
92 drawtype = "plantlike",
93 visual_scale = 1.6,
94 tiles = { "simple_bushes_blue.png" },
95 inventory_image = "simple_bushes_blue.png",
96 wield_image = "simple_bushes_blue.png",
97 sunlight_propagates = true,
98 paramtype = "light",
99 walkable = false,
100 floodable = true,
101 groups = {snappy=3,flammable=2,simple_bush=1,attached_node=1,color_blue=1},
102 sounds = hades_sounds.node_sound_leaves_defaults(),
103 selection_box = {
104 type = "fixed",
105 fixed = {-0.325, -0.5, -0.325, 0.325, 0.5, 0.325},
109 minetest.register_craft({
110 output = 'simple_bushes:blue',
111 recipe = {
112 {'flowers:geranium', '', ''},
113 {'simple_bushes:green', '', ''},
114 {'hades_core:dirt', '', ''},
118 minetest.register_node("simple_bushes:red", {
119 description = S("Red Bush"),
120 drawtype = "plantlike",
121 visual_scale = 1.6,
122 tiles = { "simple_bushes_red.png" },
123 inventory_image = "simple_bushes_red.png",
124 wield_image = "simple_bushes_red.png",
125 sunlight_propagates = true,
126 paramtype = "light",
127 walkable = false,
128 floodable = true,
129 groups = {snappy=3,flammable=2,simple_bush=1,attached_node=1,color_red=1},
130 sounds = hades_sounds.node_sound_leaves_defaults(),
131 selection_box = {
132 type = "fixed",
133 fixed = {-0.325, -0.5, -0.325, 0.325, 0.5, 0.325},
137 minetest.register_craft({
138 output = 'simple_bushes:red',
139 recipe = {
140 {'flowers:rose', '', ''},
141 {'simple_bushes:green', '', ''},
142 {'hades_core:dirt', '', ''},
146 minetest.register_node("simple_bushes:orange", {
147 description = S("Orange Bush"),
148 drawtype = "plantlike",
149 visual_scale = 1.6,
150 tiles = { "simple_bushes_orange.png" },
151 inventory_image = "simple_bushes_orange.png",
152 wield_image = "simple_bushes_orange.png",
153 sunlight_propagates = true,
154 paramtype = "light",
155 walkable = false,
156 floodable = true,
157 groups = {snappy=3,flammable=2,simple_bush=1,attached_node=1,color_orange=1},
158 sounds = hades_sounds.node_sound_leaves_defaults(),
159 selection_box = {
160 type = "fixed",
161 fixed = {-0.325, -0.5, -0.325, 0.325, 0.5, 0.325},
165 minetest.register_craft({
166 output = 'simple_bushes:orange',
167 recipe = {
168 {'flowers:tulip', '', ''},
169 {'simple_bushes:green', '', ''},
170 {'hades_core:dirt', '', ''},
175 minetest.register_node("simple_bushes:violet", {
176 description = S("Violet Bush"),
177 drawtype = "plantlike",
178 visual_scale = 1.6,
179 tiles = { "simple_bushes_violet.png" },
180 inventory_image = "simple_bushes_violet.png",
181 wield_image = "simple_bushes_violet.png",
182 sunlight_propagates = true,
183 paramtype = "light",
184 walkable = false,
185 floodable = true,
186 groups = {snappy=3,flammable=2,simple_bush=1,attached_node=1,color_violet=1},
187 sounds = hades_sounds.node_sound_leaves_defaults(),
188 selection_box = {
189 type = "fixed",
190 fixed = {-0.325, -0.5, -0.325, 0.325, 0.5, 0.325},
194 minetest.register_craft({
195 output = 'simple_bushes:violet',
196 recipe = {
197 {'flowers:viola', '', ''},
198 {'simple_bushes:green', '', ''},
199 {'hades_core:dirt', '', ''},
203 minetest.register_node("simple_bushes:plant_pot",
204 {description = S("Plant Pot"),
205 paramtype = "light",
206 tiles = {"simple_bushes_plant_pot_top.png", "simple_bushes_plant_pot_bottom.png", "simple_bushes_plant_pot_sides.png"},
207 is_ground_content = false,
208 drawtype = "nodebox",
209 node_box = {
210 type = "fixed",
211 fixed = {
212 {-0.5,-0.5,-3/16, 0.5,0.5,3/16},
213 {-7/16,-0.5,-5/16, 7/16,0.5,5/16},
214 {-6/16,-0.5,-6/16, 6/16,0.5,6/16},
215 {-5/16,-0.5,-7/16, 5/16,0.5,7/16},
216 {-3/16,-0.5,-0.5, 3/16,0.5,0.5},
219 groups = {cracky=3},
220 sounds = hades_sounds.node_sound_stone_defaults({
221 footstep = hades_sounds.node_sound_dirt_defaults().footstep,
225 minetest.register_craft({ output = "simple_bushes:plant_pot", recipe = {
226 {"hades_core:clay_brick", "", "hades_core:clay_brick"},
227 {"hades_core:clay_brick", "hades_core:dirt", "hades_core:clay_brick"},
228 {"hades_core:clay_brick", "hades_core:clay_brick", "hades_core:clay_brick"} } })