1 -- Boilerplate to support localized strings if intllib mod is installed.
3 if minetest
.get_modpath("intllib") then
6 S
= function(s
) return s
end
9 minetest
.register_node("slimenodes:slime_liquid_cyan", {
10 description
= S("Cyan liquid slime"),
11 inventory_image
= minetest
.inventorycube("slimenodes_liquidslime_cyan.png"),
13 tiles
= { "slimenodes_liquidslime_cyan.png" },
14 special_tiles
= { { name
= "slimenodes_liquidslime_cyan.png", backface_culling
= false } },
16 sunlight_propagates
= true,
22 drop
= "slimenodes:slime_liquid_cyan",
23 liquidtype
= "source",
24 liquid_alternative_flowing
= "slimenodes:slime_liquid_cyan",
25 liquid_alternative_source
= "slimenodes:slime_liquid_cyan",
28 liquid_renewable
= false,
29 liquids_pointable
= true,
31 post_effect_color
= {a
=16, r
=0, g
=255, b
=255},
32 groups
= {liquid
=3, slimey
=3, oddly_breakable_by_hand
=1},
34 dig
= {name
="slimenodes_dig", gain
=0.3},
35 dug
= {name
="slimenodes_dug", gain
=0.6},
36 place
= {name
="slimenodes_place", gain
=0.6},
40 minetest
.register_node("slimenodes:slime_liquid_green", {
41 description
= S("Green liquid slime"),
42 inventory_image
= minetest
.inventorycube("slimenodes_liquidslime_green.png"),
44 tiles
= { "slimenodes_liquidslime_green.png" },
45 special_tiles
= { { name
= "slimenodes_liquidslime_green.png", backface_culling
= false } },
47 sunlight_propagates
= false,
53 drop
= "slimenodes:slime_liquid_green",
54 liquidtype
= "source",
55 liquid_alternative_flowing
= "slimenodes:slime_liquid_green",
56 liquid_alternative_source
= "slimenodes:slime_liquid_green",
59 liquid_renewable
= false,
60 liquids_pointable
= true,
62 post_effect_color
= {a
=64, r
=100, g
=200, b
=100},
63 groups
= {liquid
=3, slimey
=3, level
=1},
65 dig
= {name
="slimenodes_dig", gain
=0.3},
66 dug
= {name
="slimenodes_dug", gain
=0.6},
67 place
= {name
="slimenodes_place", gain
=0.6},
71 minetest
.register_node("slimenodes:slime_liquid_orange", {
72 description
= S("Orange liquid slime"),
73 inventory_image
= minetest
.inventorycube("slimenodes_liquidslime_orange.png"),
75 tiles
= { "slimenodes_liquidslime_orange.png" },
76 special_tiles
= { { name
= "slimenodes_liquidslime_orange.png", backface_culling
= false } },
78 sunlight_propagates
= false,
84 drop
= "slimenodes:slime_liquid_orange",
85 liquidtype
= "source",
86 liquid_alternative_flowing
= "slimenodes:slime_liquid_orange",
87 liquid_alternative_source
= "slimenodes:slime_liquid_orange",
90 liquid_renewable
= false,
91 liquids_pointable
= true,
93 post_effect_color
= {a
=96, r
=200, g
=100, b
=0},
94 groups
= {liquid
=3, slimey
=3, level
=2, flammable
=1},
96 dig
= {name
="slimenodes_dig", gain
=0.3},
97 dug
= {name
="slimenodes_dug", gain
=0.6},
98 place
= {name
="slimenodes_place", gain
=0.6},
102 minetest
.register_node("slimenodes:slime_liquid_violet", {
103 description
= S("Violet liquid slime"),
104 inventory_image
= minetest
.inventorycube("slimenodes_liquidslime_violet.png"),
106 tiles
= { "slimenodes_liquidslime_violet.png" },
107 special_tiles
= { { name
= "slimenodes_liquidslime_violet.png", backface_culling
= false } },
109 sunlight_propagates
= false,
114 buildable_to
= false,
115 drop
= "slimenodes:slime_liquid_violet",
116 liquidtype
= "source",
117 liquid_alternative_flowing
= "slimenodes:slime_liquid_violet",
118 liquid_alternative_source
= "slimenodes:slime_liquid_violet",
119 liquid_viscosity
= 6,
121 liquid_renewable
= false,
122 liquids_pointable
= true,
124 post_effect_color
= {a
=128, r
=50, g
=0, b
=200},
125 groups
= {liquid
=3, slimey
=3, level
=3},
127 dig
= {name
="slimenodes_dig", gain
=0.3},
128 dug
= {name
="slimenodes_dug", gain
=0.6},
129 place
= {name
="slimenodes_place", gain
=0.6},
134 minetest
.register_node("slimenodes:slime_solid_cyan", {
135 description
= S("Cyan solid slime"),
136 tiles
= { "slimenodes_solidslime_cyan.png" },
138 groups
= {slimey
=3, level
=1},
140 dig
= {name
="slimenodes_dig", gain
=0.3},
141 dug
= {name
="slimenodes_dug", gain
=0.6},
142 place
= {name
="slimenodes_place", gain
=0.6},
143 footstep
= {name
="slimenodes_step", gain
=0.2},
147 minetest
.register_node("slimenodes:slime_solid_green", {
148 description
= S("Green solid slime"),
149 tiles
= { "slimenodes_solidslime_green.png" },
151 groups
= {slimey
=3, fall_damage_add_percent
=-10, level
=2},
153 dig
= {name
="slimenodes_dig", gain
=0.3},
154 dug
= {name
="slimenodes_dug", gain
=0.6},
155 place
= {name
="slimenodes_place", gain
=0.6},
156 footstep
= {name
="slimenodes_step", gain
=0.3},
160 minetest
.register_node("slimenodes:slime_solid_orange", {
161 description
= S("Orange solid slime"),
162 tiles
= { "slimenodes_solidslime_orange.png" },
164 groups
= {slimey
=3, fall_damage_add_percent
=-20, level
=2, flammable
=1},
166 dig
= {name
="slimenodes_dig", gain
=0.3},
167 dug
= {name
="slimenodes_dug", gain
=0.6},
168 place
= {name
="slimenodes_place", gain
=0.6},
169 footstep
= {name
="slimenodes_step", gain
=0.35},
173 minetest
.register_node("slimenodes:slime_solid_violet", {
174 description
= S("Violet solid slime"),
175 tiles
= { "slimenodes_solidslime_violet.png" },
177 groups
= {slimey
=3, fall_damage_add_percent
=-30, disable_jump
=1, level
=3},
179 dig
= {name
="slimenodes_dig", gain
=0.3},
180 dug
= {name
="slimenodes_dug", gain
=0.6},
181 place
= {name
="slimenodes_place", gain
=0.6},
182 footstep
= {name
="slimenodes_step", gain
=0.4},
187 minetest
.register_tool("slimenodes:collector_lvl1", {
188 description
= S("Slime collector level 1"),
189 inventory_image
= "slimenodes_collector_lvl1.png",
190 liquids_pointable
= true,
191 tool_capabilities
= {
192 full_punch_interval
= 1,
194 slimey
= { times
= { [3] = 2 }, uses
= 0, maxlevel
= 1 }
199 minetest
.register_tool("slimenodes:collector_lvl2", {
200 description
= S("Slime collector level 2"),
201 inventory_image
= "slimenodes_collector_lvl2.png",
202 liquids_pointable
= true,
203 tool_capabilities
= {
204 full_punch_interval
= 1,
206 slimey
= { times
= { [2] = 3, [3] = 1.5 }, uses
= 0, maxlevel
= 2 }
211 minetest
.register_tool("slimenodes:collector_lvl3", {
212 description
= S("Slime collector level 3"),
213 inventory_image
= "slimenodes_collector_lvl3.png",
214 liquids_pointable
= true,
215 tool_capabilities
= {
216 full_punch_interval
= 1,
218 slimey
= { times
= { [1] = 4, [2] = 1.5, [3] = 0.75 }, uses
= 0, maxlevel
= 3 }
223 minetest
.register_tool("slimenodes:collector_lvl4", {
224 description
= S("Slime collector level 4"),
225 inventory_image
= "slimenodes_collector_lvl4.png",
226 liquids_pointable
= true,
227 tool_capabilities
= {
228 full_punch_interval
= 0.9,
230 slimey
= { times
= { [1] = 1, [2] = 0.5, [3] = 0.1 }, uses
= 0, maxlevel
= 4 }