diff --git a/README.md b/README.md index 291c4ae..15cb3ba 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Allows players to turn items into energy, and energy into items. Supports all items in Minetest Game and MineClone 2, and anything that can be made from them! Also adds a whole bunch of other stuff. -If you would like to see the latest changes, check out (pun) the dev branch! Beware of bugs. +Welcome to the dev branch. ExchangeClone is tested with the latest release of Minetest, Minetest Game, MineClone2, and Mineclonia. @@ -37,7 +37,6 @@ See the [wiki](https://github.com/ThePython10110/ExchangeClone/wiki) for more in Dependencies: Minetest Game or MineClone. - ## Known issues: * Dark/Red Matter armor don't work they way they should, especially in MTG. I would greatly appreciate a PR that makes them work more like ProjectE. * The sword/katar AOE ability does not take upgrades into account. This will probably not be fixed (MCL) diff --git a/exchangeclone/transmutation_table.lua b/exchangeclone/transmutation_table.lua index 01db5a4..1a23338 100644 --- a/exchangeclone/transmutation_table.lua +++ b/exchangeclone/transmutation_table.lua @@ -375,7 +375,7 @@ minetest.register_node("exchangeclone:transmutation_table", { }) minetest.register_tool("exchangeclone:alchemical_tome", { - description = "Alchemical Tome", + description = "Alchemical Tome\nOrbs in crafting recipe must be full", inventory_image = "exchangeclone_alchemical_tome.png", wield_image = "exchangeclone_alchemical_tome.png", groups = {disable_repair = 1, fire_immune = 1} @@ -409,15 +409,17 @@ minetest.register_craft({ }, }) -minetest.register_craft({ - output = "exchangeclone:alchemical_tome", - recipe = { - {"", book, ""}, - {"exchangeclone:exchange_orb", "exchangeclone:philosophers_stone", "exchangeclone:exchange_orb"}, - {"", "exchangeclone:red_matter", ""} - }, - replacements = {{"exchangeclone:philosophers_stone", "exchangeclone:philosophers_stone"}} -}) +if minetest.settings:get_bool("exchangeclone.allow_crafting_alchemical_tome", true) then + minetest.register_craft({ + output = "exchangeclone:alchemical_tome", + recipe = { + {"", book, ""}, + {"exchangeclone:exchange_orb", "exchangeclone:philosophers_stone", "exchangeclone:exchange_orb"}, + {"", "exchangeclone:red_matter", ""} + }, + replacements = {{"exchangeclone:philosophers_stone", "exchangeclone:philosophers_stone"}} + }) +end minetest.register_craft_predict(function(itemstack, player, old_craft_grid, craft_inv) if itemstack == ItemStack("exchangeclone:alchemical_tome") then diff --git a/settingtypes.txt b/settingtypes.txt index f297dac..9e68775 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -2,4 +2,7 @@ exchangeclone.orb_max (Exchange Orb maximum energy) int 51200000 # Keep unnecessary temporary data (such as the list of recipes) after load time for debugging purposes. -exchangeclone.keep_data (Keep temporary data after loading) bool false \ No newline at end of file +exchangeclone.keep_data (Keep temporary data after loading) bool false + +# Allow the crafting recipe for the Alchemical Tome +exchangeclone.allow_crafting_alchemical_tome (Allow crafting Alchemical Tome) bool true \ No newline at end of file