Mod Vanilla Anvil Repair by eksekk
- 12.47 KB
- 1.12.2
- April 15, 2020
- April 28, 2020
- CraftTweakerMiscellaneous
Name | Vanilla Anvil Repair | Author | eksekk | Description | Vanilla anvil repair support for custom items |
---|---|---|---|---|---|
Information | Downloads: Version: 1.12.2 Size: 12.47 KB Updated at: April 28, 2020 Created at: April 15, 2020 | Tags | CraftTweaker Miscellaneous |
This mod basically allows you to use CraftTweaker or config to set anvil repairing of any item with any material. Each material unit will repair 25% of durability, like in vanilla.
If you define a repair recipe for item which already has one, both will be valid (original and added one).
Example
import mods.vanillaanvilrepair.addRepairEntry;
var ingots = <minecraft:gold_ingot> | <minecraft:iron_ingot>;
//addRepairEntry(IIngredient repairedItems, IIngredient materials)
addRepairEntry(<minecraft:bow>, ingots);
This ZenScript code will allow minecraft bow to be repaired by either iron or gold ingot.
Config
# List of repairs, in format
# repaireditem1,repaireditem2[...];material1,material2[...]
# (you can use ore:item for OreDictionary entry (only for materials))
S:repairList <
>
# If true, repairs added by this mod increase further work level cost (same as vanilla)
B:repairsIncreaseCost = false