diff --git a/HELP_ME.txt b/HELP_ME.txt index f0bf3c6..186fec4 100644 --- a/HELP_ME.txt +++ b/HELP_ME.txt @@ -1,18 +1,30 @@ -==> How to enable ... - -> Open 'config.txt' with your editor and modify it +==> Some updates make changes in the 'config.default.txt', + check for changes when updating! + +==> Why is it not working? + -> Delete old 'config.txt' + -> Copy 'config.default.txt' to 'config.txt' and edit it + -> Try again + -> Report bug if it still exists + +==> How to ... + -> Enable something: Open 'config.txt' with your editor and modify it + -> See crafts: get an extention for your inventory or browse through the codes ==> Add special access to nodes, how? -> Exchange shop: open 'shop.lua' and edit the function 'has_exchange_shop_privilege', return 'true' to grant access to the contents, return 'false' to disallow -> Warehouse: same like exchange shop, this time 'warehouse.lua' and 'has_locked_chest_privilege' + -> Bank: edit your "config.txt" and say "/giveme bitchange:bank" (without quotes) + -> Access to protected: server or bitchange ("/grant player bitchange") ==> Can I ... -> Suggest things: Sure, I'm happy about (almost) every suggestion, just I'm pretty new, which means I can't realize all of them -> Report a fault: I hope this will not happen too much, post it at the topic in the MT forums - -> Edit the files: Yes sure, the license is 'WTFPL' but I'm always happy about credits :smile: + -> Edit the files: Yes sure, the license is 'WTFPL' but I'm always happy about credits -> Delete this mod: Stupid question - -> Exchange textures: Yes, it's WFTPL! Maybe you need to ask the original creator of the images + -> Exchange textures: Yes, it's WFTPL! ==> Give me informations about the converting! Burning: @@ -20,5 +32,6 @@ Burning: 2 MineCoin block -> 1 Gold block 1 Coin base -> 1 MineNinth Crafting: - 1 Zinc block -> 8 Coin base - 1 Tin block -> 20 Coin base \ No newline at end of file + 2 Tin block -> 20 Coin base + 2 Zinc block -> 8 Coin base + 5 Quartz Crystal -> 1 Coin base \ No newline at end of file diff --git a/README.md b/README.md index d95c6fc..5616782 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,4 @@ Read more at the forums topic and 'HELP_ME.txt' for more information. Forum link: https://forum.minetest.net/viewtopic.php?id=7821 -License: WTFPL * - - -(*) Everything except the textures of moreores and technic +License: WTFPL (for everything) diff --git a/config.default.txt b/config.default.txt index 379f1f9..bf6938a 100644 --- a/config.default.txt +++ b/config.default.txt @@ -13,12 +13,13 @@ bitchange_enable_toolrepair = true -- Supported: money (by kotolegokot), money2 (by Bad Command), currency (by Dan Duncombe) bitchange_enable_bank = true --- Tin converting/generation -bitchange_use_moreores_tin = false -- Activate support -bitchange_need_generate_tin = false -- Generate if needed --- Zinc converting/generation -bitchange_use_technic_zinc = false -- Activate support -bitchange_need_generate_zinc = false -- Generate if needed +-- Converting other ores to MineCoins +-- Tin moreores +-- Zinc technic_worldgen +-- Quartz quartz +bitchange_use_moreores_tin = false +bitchange_use_technic_zinc = false +bitchange_use_quartz = false -- Pipeworks support bitchange_exchangeshop_pipeworks = false diff --git a/depends.txt b/depends.txt index f5772c4..4846195 100644 --- a/depends.txt +++ b/depends.txt @@ -1,6 +1,7 @@ default moreores? -technic? +technic_worldgen? +quartz? pipeworks? money? money2? diff --git a/moreores.lua b/moreores.lua index 506bbbc..bbfcd5b 100644 --- a/moreores.lua +++ b/moreores.lua @@ -1,57 +1,8 @@ --Created by Krock --License: WTFPL -if (bitchange_use_moreores_tin) then - if(bitchange_need_generate_tin and not minetest.get_modpath("moreores")) then - minetest.register_node(":moreores:mineral_tin", { - description = "Tin Ore", - tiles = {"default_stone.png^moreores_mineral_tin.png"}, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), - drop = 'craft "moreores:tin_lump" 1' - }) - minetest.register_node(":moreores:tin_block", { - description = "Tin Block", - tiles = { "moreores_tin_block.png" }, - groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2}, - sounds = default.node_sound_stone_defaults() - }) - minetest.register_ore({ - ore_type = "scatter", - ore = "moreores:mineral_tin", - wherein = "default:stone", - clust_scarcity = 7*7*7, - clust_num_ores = 3, - clust_size = 7, - height_min = -31000, - height_max = 8, - }) - minetest.register_craftitem(":moreores:tin_lump", { - description = "Tin Lump", - inventory_image = "moreores_tin_lump.png", - }) - minetest.register_craftitem(":moreores:tin_ingot", { - description = "Tin Ingot", - inventory_image = "moreores_tin_ingot.png", - }) - minetest.register_craft({ - output = "moreores:tin_block", - recipe = { - {"moreores:tin_ingot", "moreores:tin_ingot", "moreores:tin_ingot"}, - {"moreores:tin_ingot", "moreores:tin_ingot", "moreores:tin_ingot"}, - {"moreores:tin_ingot", "moreores:tin_ingot", "moreores:tin_ingot"}, - } - }) - minetest.register_craft({ - output = "moreores:tin_ingot 9", - recipe = { { "moreores:tin_block" } } - }) - minetest.register_craft({ - type = 'cooking', - recipe = "moreores:tin_lump", - output = "moreores:tin_ingot", - }) - end +if(bitchange_use_moreores_tin) then +if(minetest.get_modpath("moreores")) then minetest.register_craft({ output = "bitchange:coinbase 18", recipe = { @@ -60,61 +11,13 @@ if (bitchange_use_moreores_tin) then }, replacements = { {"default:pick_diamond", "default:pick_diamond"} }, }) +else + print("[BitChange] Error: tin support disabled, missing mod: 'moreores'" +end end -if (bitchange_use_technic_zinc) then - if (bitchange_need_generate_zinc and not minetest.get_modpath("technic_worldgen")) then - minetest.register_node(":technic:mineral_zinc", { - description = "Zinc Ore", - tile_images = { "default_stone.png^technic_mineral_zinc.png" }, - is_ground_content = true, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), - drop = 'craft "technic:zinc_lump" 1', - }) - minetest.register_node(":technic:zinc_block", { - description = "Zinc Block", - tiles = { "technic_zinc_block.png" }, - is_ground_content = true, - groups = {cracky=1, level=2}, - sounds = default.node_sound_stone_defaults() - }) - minetest.register_ore({ - ore_type = "scatter", - ore = "technic:mineral_zinc", - wherein = "default:stone", - clust_scarcity = 9*9*9, - clust_num_ores = 4, - clust_size = 3, - height_min = -31000, - height_max = 2, - }) - minetest.register_craftitem(":technic:zinc_lump", { - description = "Zinc Lump", - inventory_image = "technic_zinc_lump.png", - }) - minetest.register_craftitem(":technic:zinc_ingot", { - description = "Zinc Ingot", - inventory_image = "technic_zinc_ingot.png", - }) - minetest.register_craft({ - output = "technic:zinc_block", - recipe = { - {"technic:zinc_ingot", "technic:zinc_ingot", "technic:zinc_ingot"}, - {"technic:zinc_ingot", "technic:zinc_ingot", "technic:zinc_ingot"}, - {"technic:zinc_ingot", "technic:zinc_ingot", "technic:zinc_ingot"}, - } - }) - minetest.register_craft({ - output = "technic:zinc_block 9", - recipe = { { "technic:zinc_block" } } - }) - minetest.register_craft({ - type = 'cooking', - recipe = "technic:zinc_lump", - output = "technic:zinc_ingot", - }) - end +if(bitchange_use_technic_zinc) then +if(minetest.get_modpath("technic_worldgen")) then minetest.register_craft({ output = "bitchange:coinbase 8", recipe = { @@ -123,4 +26,23 @@ if (bitchange_use_technic_zinc) then }, replacements = { {"default:pick_diamond", "default:pick_diamond"} }, }) +else + print("[BitChange] Warning: zinc support disabled, missing mod: 'technic_worldgen'" +end +end + +if(bitchange_use_quartz) then +if(minetest.get_modpath("quartz")) then + minetest.register_craft({ + output = "bitchange:coinbase", + 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"} }, + }) +else + print("[BitChange] Error: quartz support disabled, missing mod: 'quartz'" +end end \ No newline at end of file diff --git a/textures/moreores_mineral_tin.png b/textures/moreores_mineral_tin.png deleted file mode 100644 index 591920c..0000000 Binary files a/textures/moreores_mineral_tin.png and /dev/null differ diff --git a/textures/moreores_tin_block.png b/textures/moreores_tin_block.png deleted file mode 100644 index e28c371..0000000 Binary files a/textures/moreores_tin_block.png and /dev/null differ diff --git a/textures/moreores_tin_ingot.png b/textures/moreores_tin_ingot.png deleted file mode 100644 index b56279f..0000000 Binary files a/textures/moreores_tin_ingot.png and /dev/null differ diff --git a/textures/moreores_tin_lump.png b/textures/moreores_tin_lump.png deleted file mode 100644 index 0d815aa..0000000 Binary files a/textures/moreores_tin_lump.png and /dev/null differ diff --git a/textures/technic_mineral_zinc.png b/textures/technic_mineral_zinc.png deleted file mode 100644 index 598efeb..0000000 Binary files a/textures/technic_mineral_zinc.png and /dev/null differ diff --git a/textures/technic_zinc_block.png b/textures/technic_zinc_block.png deleted file mode 100644 index 5ae7947..0000000 Binary files a/textures/technic_zinc_block.png and /dev/null differ diff --git a/textures/technic_zinc_ingot.png b/textures/technic_zinc_ingot.png deleted file mode 100644 index 9f9eb2c..0000000 Binary files a/textures/technic_zinc_ingot.png and /dev/null differ diff --git a/textures/technic_zinc_lump.png b/textures/technic_zinc_lump.png deleted file mode 100644 index 1a620ab..0000000 Binary files a/textures/technic_zinc_lump.png and /dev/null differ diff --git a/version.txt b/version.txt index 685a6b0..f9d526a 100644 --- a/version.txt +++ b/version.txt @@ -1,3 +1,7 @@ +======>- Version 1.6.9 -<====== +- optional quartz converting support +- some other little changes (also in the configuration) + ======>- Version 1.6.8 -<====== - tool repair node - privilege: bitchange