Skip to content

Configs

Tristan Kechlo edited this page Apr 16, 2024 · 5 revisions

How to find the configs?

since the modversion 1.2.0 the configuration structure of Tool Leveling looks like this

.
├─ config
│   └─ toolleveling
│       ├─ toolleveling.json
│       └─ item_values.json
│
└─ mods
    └─ toolleveling-1.16.5-1.2.4.jar

Which configs are there?

File Name Identifier Usage More Info Needed?
toolleveling.json toolleveling:general all general configs for this mod click me
item_values.json toolleveling:itemValues item values for the toolleveling table click me

How to change the configs?

the config can be edited while the client/server is running
when you are playing on a server, only the server needs to edit the config,
the server config will be synced to the clients when they join, or when the configs are reloaded

the config file can be opened with any text editor, but one with syntax highlighting for json would be useful
edit the config file and save it once you are done
before you try to sync the config, check if the file has the correct json-syntax,
test your configuration for the syntax on this website: https://jsonlint.com/
if you try to sync a config with incorrect syntax, it will reset to the default values

when you edit the config while the client/server is closed,
it will be loaded automatically when you start the client/server the next time

to reload the config while the client/server is running, execute following command /toolleveling config reload
it will be automatically synced to the clients, when you changed it on the server

How to reset a specific config?

resetting a config means, changing all values to the default values

if the client/server is closed, just delete the config you want to reset and it will be regenerated at the next start

to reset a config while the server/client is running, execute following command /toolleveling config reset <identifier>
followed by a /toolleveling config reload to make the changes effective