mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-09 00:43:51 +01:00
68b7bcc28e
Override the default mod's iron/steel substance, replacing it with three metals: wrought iron (pure iron), carbon steel (iron alloyed with a little carbon), and cast iron (iron alloyed with lots of carbon). Wrought iron is easiest to refine, then cast iron, and carbon steel the most difficult, matching the historical progression. Recipes that used default steel are changed to use one of the three, the choice of alloy for each application being both somewhat realistic and also matching up with game progression. The default:steel{_ingot,block} items are identified specifically with wrought iron. This makes the default refining recipes work appropriately. Iron-using recipes defined outside technic are thus necessarily reinterpreted to use wrought iron, which is mostly appropriate. Some objects are renamed accordingly. Rather than use the default steel textures for wrought iron, with technic providing textures for the other two, technic now provides textures for all three metals. This avoids problems that would occur with texture packs that provide default_steel_{ingot,block} textures that are not intended to support this wrought-iron/carbon-steel/cast-iron distinction. A texture pack can provide a distinct set of three textures specifically for the situation where this distinction is required. Incidentally make grinding and alloy cooking recipes work correctly when ingredients are specified by alias.
45 lines
1.1 KiB
Lua
45 lines
1.1 KiB
Lua
minetest.register_craft({
|
|
output = 'technic:mithril_chest 1',
|
|
recipe = {
|
|
{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
|
|
{'moreores:mithril_ingot','technic:gold_chest','moreores:mithril_ingot'},
|
|
{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = 'technic:mithril_locked_chest 1',
|
|
recipe = {
|
|
{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
|
|
{'moreores:mithril_ingot','technic:gold_locked_chest','moreores:mithril_ingot'},
|
|
{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = 'technic:mithril_locked_chest 1',
|
|
recipe = {
|
|
{'technic:wrought_iron_ingot'},
|
|
{'technic:mithril_chest'},
|
|
}
|
|
})
|
|
|
|
technic.chests:register("Mithril", {
|
|
width = 13,
|
|
sort = true,
|
|
autosort = true,
|
|
infotext = false,
|
|
color = false,
|
|
locked = false,
|
|
})
|
|
|
|
technic.chests:register("Mithril", {
|
|
width = 13,
|
|
sort = true,
|
|
autosort = true,
|
|
infotext = false,
|
|
color = false,
|
|
locked = true,
|
|
})
|
|
|