Module: Repair Stations - pearuhdox/Cartographer GitHub Wiki
Repair Stations is a module provided in Cartographer. It adds an interactable device which can be used to repair items like an anvil. The station will fully repair items in exchange for XP Levels, Lapis Lazuli, and base materials of the item. (With increasing costs the more times it is repaired.)
Getting Started
To get started with Repair Station the mapper can type:
/trigger give_dev_box
to give them the Repair Station dev box (as well as other installed dev boxes). The Repair Station dev box contains the placeable Repair Station and Tesseract items, as well as Repair Station upgrades.
You can place a Repair Station and a Tesseract with these. Only one can exist at a time in the world and placing a new one will delete the old one. (You will have to place the Tesseract twice if one already exists due to an unfixable MC bug, once to delete the old, and once to place the new one. In order to delete the chunks must be loaded of the previous station).
Using a Repair Station
To use a Repair Station, right click on the repair station with a damaged item (only items with durability that are damaged can be repaired) or an upgrade to either repair or upgrade the station.
Once given an item, the station will show the required levels, lapis, and materials required to repair the item.
Left click on the station will attempt to repair the item. The item is only repaired if the clicking player has the repair materials in their inventory. Exact levels are taken from the player in XP amounts, not in total number of levels.
Right clicking will return the item to the player unrepaired.
Once repaired, the XP and Lapis cost will increase by 50% of the current cost. The material cost will never increase. After enough repairs, the repair station will consider an item "Too Expensive" and be unable to repair it. The Repair station considers values above 50 Levels and 25 Lapis Lazuli too expensive.
These max values can be changed by changing the $xp_maximum and $lapis_maximum ca.repair_station fake player scores.
Items with no specified costs will have a default cost of 8 Levels, 4 Lapis Lazuli, and 2-4 of the Material it is made of.
Repair Upgrades
Repair Station has 4 upgrade materials that can be used on the station by right clicking on the anvil with it. This will add the upgrade to the table and take it from the player. A max of 4 of each upgrade can be placed on the table. These upgrades are:
- Mending Moss: Reduces the XP cost of repairing by 10% per upgrade.
- Sulfur Simulacrum: Gives +10% chance per upgrade to make the repair free. (The Repair costs no materials. XP is unaffected.)
- Repairing Runes: Gives a +10% chance per upgrade to make the repair a bonus repair (The repair will not increase the Repair Costs by 50%)
- Absorbent Amethyst: The repaired item will gain +40 Crystal Shield durability per upgrade. (Durability that is invisible that will be drained before any actual durability is drained.)
Upgrades cannot be removed from the table, but a newly placed Repair Station will spawn with zero upgrades.
The upgrades are provided inside the Repair Station dev box.
Repair Tesseract
The Repair Tesseract is an additional station that will store the players items that reach 0 durability. When an item the player is using would break, the player receives a chat notification instead and the item is sent to the Repair Tesseract. The item can be purchased here for a small cost of the materials the item costs to repair. It will be bought at its lowest durability and can then be repaired at the Repair Station.
The Tesseract is active regardless of if it is in the world or not, but can be disabled via this command.
/scoreboard players set $no_tesseract ca.gamerule 1
The Tesseract only activates and begins to work for a player once they walk within 7 blocks of it at least once.
Repair Anvils
Repair Station changes the functionality of vanilla anvils. When an anvil is right clicked, instead of bringing up its normal GUI, it instead brings up 6 buttons on the top of the anvil that can be left clicked. Left Clicking an option will break the anvil and fully repair the item in that slot of the player. This is a bonus repair (meaning repair costs are not increased) and it is portable, as the anvil can be picked up and taken with the player.
Modified Vanilla Crafting Recipes
Repair Stations modifies the crafting recipe of Chain blocks to make Chains cost 3 Iron Nuggets instead of 1 Iron Ingot and 2 Iron Nuggets. This is so they can serve as the repair station material for Chainmail armor without costing more to repair than traditional Iron Armor.
The original chain recipe is updated to be the same pattern, but 3 iron nuggets in a line crafting 1 chain block. You can also craft 3 iron ingots in the same pattern to make 9 chains, and uncraft chain blocks into iron nuggets.