forked from mtcontrib/bitchange
Cleanups
This commit is contained in:
parent
a1891dbe70
commit
73161dbd9f
@ -3,6 +3,8 @@ Bitchange
|
|||||||
|
|
||||||
A currency mod for Minetest.
|
A currency mod for Minetest.
|
||||||
|
|
||||||
|
When you use this mod the first time, then get sure to copy the "config.default.txt" to "config.txt".
|
||||||
|
|
||||||
Read more at the forums topic and 'HELP_ME.txt' for more information.
|
Read more at the forums topic and 'HELP_ME.txt' for more information.
|
||||||
|
|
||||||
Forum link: https://forum.minetest.net/viewtopic.php?id=7821
|
Forum link: https://forum.minetest.net/viewtopic.php?id=7821
|
||||||
|
@ -7,17 +7,17 @@ bitchange_enable_exchangeshop = true
|
|||||||
bitchange_enable_moneychanger = true
|
bitchange_enable_moneychanger = true
|
||||||
bitchange_enable_warehouse = false
|
bitchange_enable_warehouse = false
|
||||||
|
|
||||||
-- Set this variable to the modname of the other currency mod.
|
-- Set this variable to false if you have a supported currency enabled
|
||||||
-- Let it empty if no other currency is installed.
|
-- and if you want to disable the exchanging/converting point - the bank
|
||||||
-- Supported: money (by kotolegokot), money2 (by Bad Command), currency (by Dan Duncombe)
|
-- Supported: money (by kotolegokot), money2 (by Bad Command), currency (by Dan Duncombe)
|
||||||
bitchange_bank_type = ""
|
bitchange_enable_bank = true
|
||||||
|
|
||||||
-- Tin converting/generation
|
-- Tin converting/generation
|
||||||
bitchange_use_moreores_tin = false -- Activate using
|
bitchange_use_moreores_tin = false -- Activate support
|
||||||
bitchange_need_generate_tin = false -- Generate only if needed
|
bitchange_need_generate_tin = false -- Generate if needed
|
||||||
-- Zinc converting/generation
|
-- Zinc converting/generation
|
||||||
bitchange_use_technic_zinc = false -- Activate using
|
bitchange_use_technic_zinc = false -- Activate support
|
||||||
bitchange_need_generate_zinc = false -- Generate only if needed
|
bitchange_need_generate_zinc = false -- Generate if needed
|
||||||
|
|
||||||
-- Pipeworks support
|
-- Pipeworks support
|
||||||
bitchange_exchangeshop_pipeworks = false
|
bitchange_exchangeshop_pipeworks = false
|
||||||
|
19
init.lua
19
init.lua
@ -15,11 +15,20 @@ end
|
|||||||
if(bitchange_enable_warehouse) then
|
if(bitchange_enable_warehouse) then
|
||||||
dofile(mod_path.."/warehouse.lua")
|
dofile(mod_path.."/warehouse.lua")
|
||||||
end
|
end
|
||||||
if(bitchange_bank_type ~= "") then
|
if(bitchange_enable_bank) then
|
||||||
if(minetest.get_modpath(bitchange_bank_type) ~= nil) then
|
local loaded_bank = ""
|
||||||
dofile(mod_path.."/bank_"..bitchange_bank_type..".lua")
|
if(minetest.get_modpath("money") ~= nil) then
|
||||||
else
|
loaded_bank = "money"
|
||||||
print("[BitChange] Bank: Type or mod not found or enabled: "..bitchange_bank_type)
|
dofile(mod_path.."/bank_"..loaded_bank..".lua")
|
||||||
|
elseif(minetest.get_modpath("money2") ~= nil) then
|
||||||
|
loaded_bank = "money2"
|
||||||
|
dofile(mod_path.."/bank_"..loaded_bank..".lua")
|
||||||
|
elseif(minetest.get_modpath("currency") ~= nil) then
|
||||||
|
loaded_bank = "currency"
|
||||||
|
dofile(mod_path.."/bank_"..loaded_bank..".lua")
|
||||||
|
end
|
||||||
|
if(loaded_bank ~= "") then
|
||||||
|
print("[BitChange] Bank loaded: "..loaded_bank)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
--License: WTFPL
|
--License: WTFPL
|
||||||
|
|
||||||
if (bitchange_use_moreores_tin) then
|
if (bitchange_use_moreores_tin) then
|
||||||
if(bitchange_need_generate_tin) then
|
if(bitchange_need_generate_tin and not minetest.get_modpath("moreores")) then
|
||||||
minetest.register_node(":moreores:mineral_tin", {
|
minetest.register_node(":moreores:mineral_tin", {
|
||||||
description = "Tin Ore",
|
description = "Tin Ore",
|
||||||
tiles = {"default_stone.png^moreores_mineral_tin.png"},
|
tiles = {"default_stone.png^moreores_mineral_tin.png"},
|
||||||
@ -63,7 +63,7 @@ if (bitchange_use_moreores_tin) then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if (bitchange_use_technic_zinc) then
|
if (bitchange_use_technic_zinc) then
|
||||||
if (bitchange_need_generate_zinc) then
|
if (bitchange_need_generate_zinc and not minetest.get_modpath("technic_worldgen")) then
|
||||||
minetest.register_node(":technic:mineral_zinc", {
|
minetest.register_node(":technic:mineral_zinc", {
|
||||||
description = "Zinc Ore",
|
description = "Zinc Ore",
|
||||||
tile_images = { "default_stone.png^technic_mineral_zinc.png" },
|
tile_images = { "default_stone.png^technic_mineral_zinc.png" },
|
||||||
|
Loading…
Reference in New Issue
Block a user