Skip to content

Commit 2668619

Browse files
committedApr 20, 2017
Ores: Add tin ore, lump, ingot and block
Use Calinou's textures from moreores mod. Craft bronze from tin and copper instead of steel and copper. Match ore density to the moreores mod but start ore at a depth of y = -32 to be part of the depth progression of other ores.
1 parent 6335525 commit 2668619

File tree

9 files changed

+102
-6
lines changed

9 files changed

+102
-6
lines changed
 

‎mods/default/README.txt

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ Calinou (CC BY-SA 3.0):
5353
default_papyrus.png
5454
default_mineral_copper.png
5555
default_glass_detail.png
56+
default_mineral_tin.png
57+
default_tin_block.png
58+
default_tin_ingot.png
59+
default_tin_lump.png
Has comments. Original line has comments.
5660

5761
MirceaKitsune (CC BY-SA 3.0):
5862
character.x

‎mods/default/crafting.lua

+31-6
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,6 @@ minetest.register_craft({
392392
}
393393
})
394394

395-
minetest.register_craft({
396-
type = "shapeless",
397-
output = "default:bronze_ingot",
398-
recipe = {"default:steel_ingot", "default:copper_ingot"},
399-
})
400-
401395
minetest.register_craft({
402396
output = 'default:coalblock',
403397
recipe = {
@@ -446,6 +440,31 @@ minetest.register_craft({
446440
}
447441
})
448442

443+
minetest.register_craft({
444+
output = "default:tinblock",
445+
recipe = {
446+
{"default:tin_ingot", "default:tin_ingot", "default:tin_ingot"},
447+
{"default:tin_ingot", "default:tin_ingot", "default:tin_ingot"},
448+
{"default:tin_ingot", "default:tin_ingot", "default:tin_ingot"},
449+
}
450+
})
451+
452+
minetest.register_craft({
453+
output = "default:tin_ingot 9",
454+
recipe = {
455+
{"default:tinblock"},
456+
}
457+
})
458+
459+
minetest.register_craft({
460+
output = "default:bronze_ingot 9",
461+
recipe = {
462+
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
463+
{"default:copper_ingot", "default:tin_ingot", "default:copper_ingot"},
464+
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
465+
}
466+
})
467+
449468
minetest.register_craft({
450469
output = 'default:bronzeblock',
451470
recipe = {
@@ -849,6 +868,12 @@ minetest.register_craft({
849868
recipe = "default:copper_lump",
850869
})
851870

871+
minetest.register_craft({
872+
type = "cooking",
873+
output = "default:tin_ingot",
874+
recipe = "default:tin_lump",
875+
})
876+
852877
minetest.register_craft({
853878
type = "cooking",
854879
output = "default:gold_ingot",

‎mods/default/craftitems.lua

+10
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,11 @@ minetest.register_craftitem("default:copper_lump", {
258258
inventory_image = "default_copper_lump.png",
259259
})
260260

261+
minetest.register_craftitem("default:tin_lump", {
262+
description = "Tin Lump",
263+
inventory_image = "default_tin_lump.png",
264+
})
265+
261266
minetest.register_craftitem("default:mese_crystal", {
262267
description = "Mese Crystal",
263268
inventory_image = "default_mese_crystal.png",
@@ -288,6 +293,11 @@ minetest.register_craftitem("default:copper_ingot", {
288293
inventory_image = "default_copper_ingot.png",
289294
})
290295

296+
minetest.register_craftitem("default:tin_ingot", {
297+
description = "Tin Ingot",
298+
inventory_image = "default_tin_ingot.png",
299+
})
300+
291301
minetest.register_craftitem("default:bronze_ingot", {
292302
description = "Bronze Ingot",
293303
inventory_image = "default_bronze_ingot.png",

‎mods/default/mapgen.lua

+35
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,41 @@ function default.register_ores()
357357
y_max = -64,
358358
})
359359

360+
-- Tin
361+
362+
minetest.register_ore({
363+
ore_type = "scatter",
364+
ore = "default:stone_with_tin",
365+
wherein = "default:stone",
366+
clust_scarcity = 10 * 10 * 10,
367+
clust_num_ores = 9,
368+
clust_size = 3,
369+
y_min = 1025,
370+
y_max = 31000,
371+
})
372+
373+
minetest.register_ore({
374+
ore_type = "scatter",
375+
ore = "default:stone_with_tin",
376+
wherein = "default:stone",
377+
clust_scarcity = 13 * 13 * 13,
378+
clust_num_ores = 7,
379+
clust_size = 3,
380+
y_min = -31000,
381+
y_max = -32,
382+
})
383+
384+
minetest.register_ore({
385+
ore_type = "scatter",
386+
ore = "default:stone_with_tin",
387+
wherein = "default:stone",
388+
clust_scarcity = 10 * 10 * 10,
389+
clust_num_ores = 9,
390+
clust_size = 3,
391+
y_min = -31000,
392+
y_max = -128,
393+
})
394+
360395
-- Gold
361396

362397
minetest.register_ore({

‎mods/default/nodes.lua

+22
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ default:steelblock
107107
108108
default:stone_with_copper
109109
default:copperblock
110+
111+
default:stone_with_tin
112+
default:tinblock
113+
110114
default:bronzeblock
111115
112116
default:stone_with_gold
@@ -1046,6 +1050,24 @@ minetest.register_node("default:copperblock", {
10461050
sounds = default.node_sound_metal_defaults(),
10471051
})
10481052

1053+
1054+
minetest.register_node("default:stone_with_tin", {
1055+
description = "Tin Ore",
1056+
tiles = {"default_stone.png^default_mineral_tin.png"},
1057+
groups = {cracky = 2},
1058+
drop = "default:tin_lump",
1059+
sounds = default.node_sound_stone_defaults(),
1060+
})
1061+
1062+
minetest.register_node("default:tinblock", {
1063+
description = "Tin Block",
1064+
tiles = {"default_tin_block.png"},
1065+
is_ground_content = false,
1066+
groups = {cracky = 1, level = 2},
1067+
sounds = default.node_sound_metal_defaults(),
1068+
})
1069+
1070+
10491071
minetest.register_node("default:bronzeblock", {
10501072
description = "Bronze Block",
10511073
tiles = {"default_bronze_block.png"},
171 Bytes
Loading
274 Bytes
Loading
198 Bytes
Loading
166 Bytes
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.