Fix #12 (Alchemical Tome)

This commit is contained in:
ThePython 2024-01-05 07:23:48 -08:00
parent 229e191706
commit 0b400ff238
3 changed files with 17 additions and 13 deletions

View File

@ -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)

View File

@ -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

View File

@ -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
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