forked from mtcontrib/bitchange
Refactoring, enable tin by default, remove ore generation (#14)
Remove Ore Generation Disable Crafting Currency By Default Make All Currency Smelted From Ore Enable Tin Smelting By Default
This commit is contained in:
parent
b39a6017d4
commit
98a2dc8572
@ -10,18 +10,17 @@ bitchange.enable_warehouse = false
|
|||||||
bitchange.enable_toolrepair = true
|
bitchange.enable_toolrepair = true
|
||||||
bitchange.enable_donationbox = true
|
bitchange.enable_donationbox = true
|
||||||
|
|
||||||
|
-- Enable/Disable Converting Currency Via Crafting
|
||||||
|
bitchange.craft_convert_currency = false
|
||||||
|
|
||||||
-- Converting other ores to MineCoins
|
-- Converting other ores to MineCoins
|
||||||
-- Tin default
|
-- Tin default
|
||||||
-- Zinc technic_worldgen
|
-- Zinc technic_worldgen
|
||||||
-- Quartz quartz
|
-- Quartz quartz
|
||||||
bitchange.use_technic_zinc = false
|
bitchange.use_technic_zinc = false
|
||||||
bitchange.use_quartz = false
|
bitchange.use_quartz = false
|
||||||
bitchange.use_default_tin = false
|
bitchange.use_default_tin = true
|
||||||
|
|
||||||
-- Pipeworks support
|
-- Pipeworks support
|
||||||
bitchange.exchangeshop_pipeworks = false
|
bitchange.exchangeshop_pipeworks = false
|
||||||
bitchange.warehouse_pipeworks = false
|
bitchange.warehouse_pipeworks = false
|
||||||
|
|
||||||
-- Advanced generation settings
|
|
||||||
-- Change in 'minecoins.lua', starting at line 101
|
|
||||||
bitchange.enable_generation = false
|
|
||||||
|
131
minecoins.lua
131
minecoins.lua
@ -1,34 +1,4 @@
|
|||||||
-- Node definitions
|
-- Node definitions
|
||||||
minetest.register_node("bitchange:minecoin_in_ground", {
|
|
||||||
description = "you hacker!",
|
|
||||||
tiles = { "default_stone.png^bitchange_minecoin_in_ground.png" },
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {cracky=2, not_in_creative_inventory=1},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
drop = {
|
|
||||||
max_items = 2,
|
|
||||||
items = {
|
|
||||||
{items = {"bitchange:minecoin"}, rarity = 2 },
|
|
||||||
{items = {"bitchange:minecoin 3"} }
|
|
||||||
}
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("bitchange:mineninth_in_ground", {
|
|
||||||
description = "you hacker!",
|
|
||||||
tiles = { "default_stone.png^bitchange_mineninth_in_ground.png" },
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {cracky=3, not_in_creative_inventory=1},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
drop = {
|
|
||||||
max_items = 3,
|
|
||||||
items = {
|
|
||||||
{items = {"bitchange:mineninth 4"}, rarity = 3 },
|
|
||||||
{items = {"bitchange:mineninth 6"} }
|
|
||||||
}
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("bitchange:minecoinblock", {
|
minetest.register_node("bitchange:minecoinblock", {
|
||||||
description = "MineCoin Block",
|
description = "MineCoin Block",
|
||||||
tiles = { "bitchange_minecoinblock.png" },
|
tiles = { "bitchange_minecoinblock.png" },
|
||||||
@ -49,40 +19,40 @@ minetest.register_craftitem("bitchange:mineninth", {
|
|||||||
stack_max = 30000,
|
stack_max = 30000,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_alias("bitchange:coinbase", "bitchange:mineninth")
|
|
||||||
|
|
||||||
-- Crafting
|
-- Crafting
|
||||||
minetest.register_craft({
|
if bitchange.craft_convert_currency then
|
||||||
output = "bitchange:minecoinblock",
|
minetest.register_craft({
|
||||||
recipe = {
|
output = "bitchange:minecoinblock",
|
||||||
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
|
recipe = {
|
||||||
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
|
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
|
||||||
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
|
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
|
||||||
}
|
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "bitchange:minecoin 9",
|
output = "bitchange:minecoin 9",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"bitchange:minecoinblock"},
|
{"bitchange:minecoinblock"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "bitchange:minecoin",
|
output = "bitchange:minecoin",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
|
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
|
||||||
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
|
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
|
||||||
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
|
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "bitchange:mineninth 9",
|
output = "bitchange:mineninth 9",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"bitchange:minecoin"},
|
{"bitchange:minecoin"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- Cooking
|
-- Cooking
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -97,38 +67,13 @@ minetest.register_craft({
|
|||||||
output = "default:gold_ingot 4",
|
output = "default:gold_ingot 4",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Generation
|
-- Legacy
|
||||||
if bitchange.enable_generation then
|
if bitchange.enable_generation then
|
||||||
minetest.register_ore({
|
minetest.log("warning", "[bitchange] Ores will not be generated any more. Remove the setting " ..
|
||||||
ore_type = "scatter",
|
"'enable_generation' from your bitchange configuration to suppress this warning.")
|
||||||
ore = "bitchange:minecoin_in_ground",
|
|
||||||
wherein = "default:stone",
|
|
||||||
clust_scarcity = 15*15*15,
|
|
||||||
clust_num_ores = 3,
|
|
||||||
clust_size = 7,
|
|
||||||
y_max = -512,
|
|
||||||
y_min = -18000,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_ore({
|
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "bitchange:mineninth_in_ground",
|
|
||||||
wherein = "default:stone",
|
|
||||||
clust_scarcity = 12*12*12,
|
|
||||||
clust_num_ores = 5,
|
|
||||||
clust_size = 8,
|
|
||||||
y_max = -256,
|
|
||||||
y_min = -511,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_ore({
|
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "bitchange:mineninth_in_ground",
|
|
||||||
wherein = "default:stone",
|
|
||||||
clust_scarcity = 13*13*13,
|
|
||||||
clust_num_ores = 3,
|
|
||||||
clust_size = 7,
|
|
||||||
y_max = 28000,
|
|
||||||
y_min = -255,
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
minetest.register_alias("bitchange:minecoin_in_ground", "default:stone_with_gold")
|
||||||
|
minetest.register_alias("bitchange:mineninth_in_ground", "default:stone_with_tin")
|
||||||
|
|
||||||
|
minetest.register_alias("bitchange:coinbase", "bitchange:mineninth")
|
||||||
|
26
moreores.lua
26
moreores.lua
@ -2,24 +2,9 @@
|
|||||||
|
|
||||||
if bitchange.use_technic_zinc and minetest.get_modpath("technic_worldgen") then
|
if bitchange.use_technic_zinc and minetest.get_modpath("technic_worldgen") then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
output = "bitchange:mineninth 8",
|
output = "bitchange:mineninth 8",
|
||||||
recipe = {
|
recipe = "technic:zinc_block",
|
||||||
{"technic:zinc_block", "default:pick_diamond"},
|
|
||||||
{"technic:zinc_block", ""}
|
|
||||||
},
|
|
||||||
replacements = { {"default:pick_diamond", "default:pick_diamond"} }
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
if bitchange.use_quartz and minetest.get_modpath("quartz") then
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "bitchange:mineninth",
|
|
||||||
recipe = {
|
|
||||||
{"quartz:quartz_crystal", "default:pick_diamond"},
|
|
||||||
{"quartz:quartz_crystal", "quartz:quartz_crystal"},
|
|
||||||
{"quartz:quartz_crystal", "quartz:quartz_crystal"}
|
|
||||||
},
|
|
||||||
replacements = { {"default:pick_diamond", "default:pick_diamond"} }
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -30,11 +15,8 @@ end
|
|||||||
|
|
||||||
if bitchange.use_default_tin then
|
if bitchange.use_default_tin then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
output = "bitchange:mineninth 18",
|
output = "bitchange:mineninth 18",
|
||||||
recipe = {
|
recipe = "default:tinblock"
|
||||||
{"default:tinblock", "default:pick_diamond"},
|
|
||||||
{"default:tinblock", ""}
|
|
||||||
},
|
|
||||||
replacements = { {"default:pick_diamond", "default:pick_diamond"} }
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user