1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-02-06 14:10:04 +00:00

Updated CraftTweaker (markdown)

Jonathan Coates 2021-01-10 15:50:50 +00:00
parent dc6cbc719c
commit 3f2db8d73d

@ -1,5 +1,20 @@
CC: Tweaked has some relatively basic support for CraftTweaker. We currently expose the following API for customising turtle upgrades. This should allow you to add upgrades and remove and replace existing ones.
## A note on turtle "adjectives"
Every turtle upgrade has an associated adjective, to describe what kind of turtle it produces. For instance, pickaxes are "Mining" and modems are "Wireless". When adding a new upgrade, you'll also need to add the adjective to the language file.
This is fairly easy to do. First, create a resource pack and an `en_us.json` file (see [the Minecraft wiki](https://minecraft.gamepedia.com/Resource_Pack#Language) for more information). Then add the following contents (replacing `minecraft.diamond_pickaxe` and `Mining` with the appropriate upgrade _id_ and translation string).
```json
{
"upgrade.minecraft.diamond_pickaxe.adjective": "Mining"
}
```
This
When adding a new upgrade, you may need to declare a
## `dan200.computercraft.turtle`
### `dan200.computercraft.turtle.removeUpgrade(id: String)`