Differences From
Artifact [f0cb8863c3]:
1 1 local constants = {
2 2 keg_volume = sorcery.liquid.constants.glasses_per_bottle * 600
3 + keg_recipe = {
4 + {'','sorcery:keg',''};
5 + {'sorcery:screw_steel','group:wood','sorcery:screw_steel'};
6 + {'sorcery:screw_steel','screwdriver:screwdriver','sorcery:screw_steel'};
7 + };
3 8 }
4 9
5 10 local hitbox = function(yo) return {
6 11 type = 'fixed';
7 12 fixed = {
8 13 -0.4, -0.5 + yo, -0.45;
9 14 0.4, 0.2 + yo, 0.5;
................................................................................
46 51 tiles = {
47 52 'default_bronze_block.png';
48 53 'default_wood.png';
49 54 'default_steel_block.png';
50 55 };
51 56 selection_box = hitbox(keg.ofs or 0);
52 57 collision_box = keg.cb or hitbox(keg.ofs or 0);
58 + _sorcery = {
59 + recipe = {
60 + canonical = constants.keg_recipe;
61 + };
62 + };
53 63 drop = {
54 64 -- preserve_metadata will not work without this!
55 65 max_items = 1;
56 66 items = {
57 67 { items = { keg.id } };
58 68 };
59 69 };
................................................................................
209 219 replacements = {
210 220 {'screwdriver:screwdriver', 'screwdriver:screwdriver'};
211 221 };
212 222 }
213 223
214 224 minetest.register_craft {
215 225 output = "sorcery:keg_stand";
216 - recipe = {
217 - {'','sorcery:keg',''};
218 - {'sorcery:screw_steel','group:wood','sorcery:screw_steel'};
219 - {'sorcery:screw_steel','screwdriver:screwdriver','sorcery:screw_steel'};
220 - };
226 + recipe = constants.keg_recipe;
221 227 replacements = {{'screwdriver:screwdriver', 'screwdriver:screwdriver'}};
222 228 }
223 229
224 230 minetest.register_craft {
225 231 output = "sorcery:keg";
226 232 type = 'shapeless';
227 233 recipe = { 'sorcery:keg_stand', 'screwdriver:screwdriver' };
228 234 replacements = {
229 235 {'screwdriver:screwdriver', 'screwdriver:screwdriver'};
230 236 {'sorcery:keg_stand', 'sorcery:screw_steel 4'};
231 237 };
232 238 }