Use larger screenshot
[minetest_slimenodes.git] / init.lua
blob86bec122ee3d37422d04150bdedf0cf5515b476b
1 -- Boilerplate to support localized strings if intllib mod is installed.
2 local S
3 if minetest.get_modpath("intllib") then
4 S = intllib.Getter()
5 else
6 S = function(s) return s end
7 end
9 minetest.register_node("slimenodes:slime_liquid_cyan", {
10 description = S("Cyan liquid slime"),
11 inventory_image = minetest.inventorycube("slimenodes_liquidslime_cyan.png"),
12 drawtype = "liquid",
13 tiles = { "slimenodes_liquidslime_cyan.png" },
14 special_tiles = { { name = "slimenodes_liquidslime_cyan.png", backface_culling = false } },
15 alpha = 120,
16 sunlight_propagates = true,
17 paramtype = "light",
18 walkable = false,
19 pointable = false,
20 diggable = true,
21 buildable_to = false,
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",
26 liquid_viscosity = 1,
27 liquid_range = 0,
28 liquid_renewable = false,
29 liquids_pointable = true,
30 drowning = 0,
31 post_effect_color = {a=16, r=0, g=255, b=255},
32 groups = {liquid=3, slimey=3, oddly_breakable_by_hand=1},
33 sounds = {
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"),
43 drawtype = "liquid",
44 tiles = { "slimenodes_liquidslime_green.png" },
45 special_tiles = { { name = "slimenodes_liquidslime_green.png", backface_culling = false } },
46 alpha = 170,
47 sunlight_propagates = false,
48 paramtype = "light",
49 walkable = false,
50 pointable = false,
51 diggable = true,
52 buildable_to = 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",
57 liquid_viscosity = 2,
58 liquid_range = 0,
59 liquid_renewable = false,
60 liquids_pointable = true,
61 drowning = 0,
62 post_effect_color = {a=64, r=100, g=200, b=100},
63 groups = {liquid=3, slimey=3, level=1},
64 sounds = {
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"),
74 drawtype = "liquid",
75 tiles = { "slimenodes_liquidslime_orange.png" },
76 special_tiles = { { name = "slimenodes_liquidslime_orange.png", backface_culling = false } },
77 alpha = 200,
78 sunlight_propagates = false,
79 paramtype = "light",
80 walkable = false,
81 pointable = false,
82 diggable = true,
83 buildable_to = 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",
88 liquid_viscosity = 4,
89 liquid_range = 0,
90 liquid_renewable = false,
91 liquids_pointable = true,
92 drowning = 0,
93 post_effect_color = {a=96, r=200, g=100, b=0},
94 groups = {liquid=3, slimey=3, level=2, flammable=1},
95 sounds = {
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"),
105 drawtype = "liquid",
106 tiles = { "slimenodes_liquidslime_violet.png" },
107 special_tiles = { { name = "slimenodes_liquidslime_violet.png", backface_culling = false } },
108 alpha = 220,
109 sunlight_propagates = false,
110 paramtype = "light",
111 walkable = false,
112 pointable = false,
113 diggable = true,
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,
120 liquid_range = 0,
121 liquid_renewable = false,
122 liquids_pointable = true,
123 drowning = 0,
124 post_effect_color = {a=128, r=50, g=0, b=200},
125 groups = {liquid=3, slimey=3, level=3},
126 sounds = {
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" },
137 walkable = true,
138 groups = {slimey=3, level=1},
139 sounds = {
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" },
150 walkable = true,
151 groups = {slimey=3, fall_damage_add_percent=-10, level=2},
152 sounds = {
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" },
163 walkable = true,
164 groups = {slimey=3, fall_damage_add_percent=-20, level=2, flammable=1},
165 sounds = {
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" },
176 walkable = true,
177 groups = {slimey=3, fall_damage_add_percent=-30, disable_jump=1, level=3},
178 sounds = {
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,
193 groupcaps = {
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,
205 groupcaps = {
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,
217 groupcaps = {
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,
229 groupcaps = {
230 slimey = { times = { [1] = 1, [2] = 0.5, [3] = 0.1 }, uses = 0, maxlevel = 4 }