Compatibility patch for other mods that add rubies and sapphires.
Thanks to HybridDog for pointing this out. This update renames the mod folders for my ruby and sapphire mods so that they don't get mixed up with anyone else's, like Zeg9's Weird Ores mod (https://github.com/Zeg9 /minetest-weirdores). Also added some aliases for that mod so that their rubies are replaced with mine. This seems to work in Worldgen but I haven't seen any rubies that have already been mined be replaced, so keep an eye out for that.master
|
@ -0,0 +1,101 @@
|
|||
local S = technic.getter
|
||||
|
||||
-- Ruby
|
||||
--- Ruby Gem
|
||||
minetest.register_craftitem(":technic_aluminum:ruby", {
|
||||
description = S("Ruby"),
|
||||
inventory_image = "aluminum_ruby.png",
|
||||
})
|
||||
|
||||
--- Ruby Block
|
||||
minetest.register_node(":technic_aluminum:ruby_block", {
|
||||
description = S("Ruby Block"),
|
||||
tiles = {"aluminum_ruby_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
---- Crafting Recipe: 9x Ruby <=> Ruby Block
|
||||
minetest.register_craft({
|
||||
output = 'technic_aluminum:ruby_block',
|
||||
recipe = {
|
||||
{'technic_aluminum:ruby', 'technic_aluminum:ruby', 'technic_aluminum:ruby'},
|
||||
{'technic_aluminum:ruby', 'technic_aluminum:ruby', 'technic_aluminum:ruby'},
|
||||
{'technic_aluminum:ruby', 'technic_aluminum:ruby', 'technic_aluminum:ruby'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'technic_aluminum:ruby 9',
|
||||
recipe = {
|
||||
{'technic_aluminum:ruby_block'},
|
||||
}
|
||||
})
|
||||
|
||||
if technic then
|
||||
--- Ruby Dust
|
||||
minetest.register_craftitem(":technic_aluminum:ruby_dust", {
|
||||
description = S("Red Corundum Dust"),
|
||||
inventory_image = "aluminum_ruby_dust.png",
|
||||
})
|
||||
technic.register_alloy_recipe({input = {"technic_aluminum:alumina_dust 3", "technic:chromium_dust 1"}, output = "technic_aluminum:ruby_dust", time = 12})
|
||||
technic.register_separating_recipe({input = {"technic_aluminum:ruby_dust"}, output = {"technic_aluminum:alumina_dust 3", "technic:chromium_dust 1"}, time = 12})
|
||||
technic.register_grinder_recipe({input = {"technic_aluminum:ruby"}, output = "technic_aluminum:ruby_dust 4", time = 12})
|
||||
technic.register_compressor_recipe({input = {"technic_aluminum:ruby_dust 4"}, output = "technic_aluminum:ruby", time = 12})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'technic:red_energy_crystal',
|
||||
recipe = {
|
||||
{'moreores:silver_ingot', 'technic:battery', 'dye:red'},
|
||||
{'technic:battery', 'technic_aluminum:ruby_block', 'technic:battery'},
|
||||
{'dye:red', 'technic:battery', 'moreores:silver_ingot'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'technic:geothermal',
|
||||
recipe = {
|
||||
{'technic:granite', 'technic_aluminum:ruby', 'technic:granite'},
|
||||
{'technic:fine_copper_wire', 'technic:machine_casing', 'technic:fine_copper_wire'},
|
||||
{'technic:granite', 'technic:lv_cable0', 'technic:granite'},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
--- Compatibility patch for Zeg9's Weird Ores mod.
|
||||
--- (https://github.com/Zeg9/minetest-weirdores/tree/master/weirdores)
|
||||
minetest.register_alias("weirdores:ruby","technic_aluminum:ruby")
|
||||
minetest.register_alias("weirdores:stone_with_ruby","technic_aluminum:stone_with_rubies")
|
||||
minetest.register_alias("weirdores:rubyblock","technic_aluminum:ruby_block")
|
||||
|
||||
--- Ruby Ore
|
||||
minetest.register_node(":technic_aluminum:stone_with_rubies", {
|
||||
description = "Ruby Ore",
|
||||
tiles = {"default_stone.png^aluminum_mineral_ruby.png"},
|
||||
groups = {cracky = 1},
|
||||
drop = 'technic_aluminum:ruby',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "technic_aluminum:stone_with_rubies",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 17 * 17 * 17,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
y_min = -255,
|
||||
y_max = -128,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "technic_aluminum:stone_with_rubies",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 15 * 15 * 15,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
y_min = -31000,
|
||||
y_max = -256,
|
||||
})
|
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 358 B |
Before Width: | Height: | Size: 435 B After Width: | Height: | Size: 435 B |
Before Width: | Height: | Size: 567 B After Width: | Height: | Size: 567 B |
Before Width: | Height: | Size: 279 B After Width: | Height: | Size: 279 B |
|
@ -7,16 +7,6 @@ minetest.register_craftitem(":technic_aluminum:sapphire", {
|
|||
inventory_image = "aluminum_sapphire.png",
|
||||
})
|
||||
|
||||
--- Sapphire Dust
|
||||
minetest.register_craftitem(":technic_aluminum:sapphire_dust", {
|
||||
description = S("Blue Corundum Dust"),
|
||||
inventory_image = "aluminum_sapphire_dust.png",
|
||||
})
|
||||
technic.register_alloy_recipe({input = {"technic_aluminum:alumina_dust 3", "technic:wrought_iron_dust 1"}, output = "technic_aluminum:sapphire_dust", time = 12})
|
||||
technic.register_separating_recipe({input = {"technic_aluminum:sapphire_dust"}, output = {"technic_aluminum:alumina_dust 3", "technic:wrought_iron_dust 1"}, time = 12})
|
||||
technic.register_grinder_recipe({input = {"technic_aluminum:sapphire"}, output = "technic_aluminum:sapphire_dust 4", time = 12})
|
||||
technic.register_compressor_recipe({input = {"technic_aluminum:sapphire_dust 4"}, output = "technic_aluminum:sapphire", time = 12})
|
||||
|
||||
--- Sapphire Block
|
||||
minetest.register_node(":technic_aluminum:sapphire_block", {
|
||||
description = S("Sapphire Block"),
|
||||
|
@ -50,23 +40,35 @@ minetest.register_node(":technic_aluminum:stone_with_sapphires", {
|
|||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'technic:blue_energy_crystal',
|
||||
recipe = {
|
||||
{'technic_aluminum:sapphire_block', 'technic:battery', 'dye:blue'},
|
||||
{'technic:battery', 'technic:green_energy_crystal', 'technic:battery'},
|
||||
{'dye:blue', 'technic:battery', 'technic_aluminum:sapphire_block'},
|
||||
}
|
||||
})
|
||||
if technic then
|
||||
--- Sapphire Dust
|
||||
minetest.register_craftitem(":technic_aluminum:sapphire_dust", {
|
||||
description = S("Blue Corundum Dust"),
|
||||
inventory_image = "aluminum_sapphire_dust.png",
|
||||
})
|
||||
technic.register_alloy_recipe({input = {"technic_aluminum:alumina_dust 3", "technic:wrought_iron_dust 1"}, output = "technic_aluminum:sapphire_dust", time = 12})
|
||||
technic.register_separating_recipe({input = {"technic_aluminum:sapphire_dust"}, output = {"technic_aluminum:alumina_dust 3", "technic:wrought_iron_dust 1"}, time = 12})
|
||||
technic.register_grinder_recipe({input = {"technic_aluminum:sapphire"}, output = "technic_aluminum:sapphire_dust 4", time = 12})
|
||||
technic.register_compressor_recipe({input = {"technic_aluminum:sapphire_dust 4"}, output = "technic_aluminum:sapphire", time = 12})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'technic:water_mill',
|
||||
recipe = {
|
||||
{'technic:marble', 'technic_aluminum:sapphire', 'technic:marble'},
|
||||
{'group:wood', 'technic:machine_casing', 'group:wood'},
|
||||
{'technic:marble', 'technic:lv_cable0', 'technic:marble'},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'technic:blue_energy_crystal',
|
||||
recipe = {
|
||||
{'technic_aluminum:sapphire_block', 'technic:battery', 'dye:blue'},
|
||||
{'technic:battery', 'technic:green_energy_crystal', 'technic:battery'},
|
||||
{'dye:blue', 'technic:battery', 'technic_aluminum:sapphire_block'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'technic:water_mill',
|
||||
recipe = {
|
||||
{'technic:marble', 'technic_aluminum:sapphire', 'technic:marble'},
|
||||
{'group:wood', 'technic:machine_casing', 'group:wood'},
|
||||
{'technic:marble', 'technic:lv_cable0', 'technic:marble'},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 436 B After Width: | Height: | Size: 436 B |
Before Width: | Height: | Size: 583 B After Width: | Height: | Size: 583 B |
Before Width: | Height: | Size: 289 B After Width: | Height: | Size: 289 B |
|
@ -1,91 +0,0 @@
|
|||
local S = technic.getter
|
||||
|
||||
-- Ruby
|
||||
--- Ruby Gem
|
||||
minetest.register_craftitem(":technic_aluminum:ruby", {
|
||||
description = S("Ruby"),
|
||||
inventory_image = "aluminum_ruby.png",
|
||||
})
|
||||
|
||||
--- Ruby Dust
|
||||
minetest.register_craftitem(":technic_aluminum:ruby_dust", {
|
||||
description = S("Red Corundum Dust"),
|
||||
inventory_image = "aluminum_ruby_dust.png",
|
||||
})
|
||||
technic.register_alloy_recipe({input = {"technic_aluminum:alumina_dust 3", "technic:chromium_dust 1"}, output = "technic_aluminum:ruby_dust", time = 12})
|
||||
technic.register_separating_recipe({input = {"technic_aluminum:ruby_dust"}, output = {"technic_aluminum:alumina_dust 3", "technic:chromium_dust 1"}, time = 12})
|
||||
technic.register_grinder_recipe({input = {"technic_aluminum:ruby"}, output = "technic_aluminum:ruby_dust 4", time = 12})
|
||||
technic.register_compressor_recipe({input = {"technic_aluminum:ruby_dust 4"}, output = "technic_aluminum:ruby", time = 12})
|
||||
|
||||
--- Ruby Block
|
||||
minetest.register_node(":technic_aluminum:ruby_block", {
|
||||
description = S("Ruby Block"),
|
||||
tiles = {"aluminum_ruby_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
---- Crafting Recipe: 9x Ruby <=> Ruby Block
|
||||
minetest.register_craft({
|
||||
output = 'technic_aluminum:ruby_block',
|
||||
recipe = {
|
||||
{'technic_aluminum:ruby', 'technic_aluminum:ruby', 'technic_aluminum:ruby'},
|
||||
{'technic_aluminum:ruby', 'technic_aluminum:ruby', 'technic_aluminum:ruby'},
|
||||
{'technic_aluminum:ruby', 'technic_aluminum:ruby', 'technic_aluminum:ruby'},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'technic_aluminum:ruby 9',
|
||||
recipe = {
|
||||
{'technic_aluminum:ruby_block'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'technic:red_energy_crystal',
|
||||
recipe = {
|
||||
{'moreores:silver_ingot', 'technic:battery', 'dye:red'},
|
||||
{'technic:battery', 'technic_aluminum:ruby_block', 'technic:battery'},
|
||||
{'dye:red', 'technic:battery', 'moreores:silver_ingot'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'technic:geothermal',
|
||||
recipe = {
|
||||
{'technic:granite', 'technic_aluminum:ruby', 'technic:granite'},
|
||||
{'technic:fine_copper_wire', 'technic:machine_casing', 'technic:fine_copper_wire'},
|
||||
{'technic:granite', 'technic:lv_cable0', 'technic:granite'},
|
||||
}
|
||||
})
|
||||
|
||||
--- Ruby Ore
|
||||
minetest.register_node(":technic_aluminum:stone_with_rubies", {
|
||||
description = "Ruby Ore",
|
||||
tiles = {"default_stone.png^aluminum_mineral_ruby.png"},
|
||||
groups = {cracky = 1},
|
||||
drop = 'technic_aluminum:ruby',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "technic_aluminum:stone_with_rubies",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 17 * 17 * 17,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
y_min = -255,
|
||||
y_max = -128,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "technic_aluminum:stone_with_rubies",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 15 * 15 * 15,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
y_min = -31000,
|
||||
y_max = -256,
|
||||
})
|