Skip to content

Config tool_leveling_table.json

Tristan Kechlo edited this page Jul 21, 2022 · 2 revisions

THIS PAGE ONLY APPLIES TO MODVERSIONS >= 1.4.0

//TODO short description

General Options

minimum_upgrade_cost

minimum payment cost for all enchantments
- type: Long
- default: 1000
- minimum-value: 1
- maximum-value: 9.223.372.036.854.775.807

allow_leveling_of_useless_enchantments

Wether or not it is allowed to level enchantments whose default maximum level is 1.
For example: minecraft:silk_touch
Leveling those enchantments will normaly not have any effect.
- type: boolean
- default: true
- values; true or false

allow_leveling_of_breaking_enchantments

Wether or not it is allowed to level enchantments beyond the point level where the enchantment will break.
For example: minecraft:quick_charge will make the cross-bow unusable after level 5
- type: boolean
- default: true
- values: either true or false

free_upgrades_for_creative_players

Whether or not players in creative mode can use the tool_leveling_table without paying for the upgrade.
- type: boolean
- default: true
- values: either true or false

Enchantment Options

enchantment_whitelist

If there are enchantments listed in here, all enchantments that are not in the list will be allowed to be upgraded.
To deactivate the whitelist leave this list empty.
- type: list of enchantments
- default: empty list

enchantment_blacklist

All enchantments listed in the blacklist are not allowed to be upgraded in the tool_leveling_table.
The blacklist is only active when the enchantment_whitelist is empty.
- type: list of enchantments
- default: see in the default config below

global_enchantment_cap

If this option is higher than 0, all enchantments can not be upgraded higher than this value.
- type: Short
- default: 0 - minimum-value: 0
- maximum-value: 32.767

enchantment_caps

The enchantments listed in here can't be leveled higher, when they reached the value set in here.
- type: Key-Value-Pair of Enchantment-Short
- key: registry name of the enchantment as a string (the name that is displayed when advanced tooltips are activated F3 + H)
- minimum-value: 1
- maximum-value: 32.767
- default: see in the default config below

global_upgrade_cost_multiplier

Adjust the payment cost, for all enchantments, with this modifier.
Will be applied after the payment cost is calculated.
- type: Double
- default: 1.0
- minimum-value: 0.0
- maximum-value: 100.0

enchantment_upgrade_cost_modifier

Adjust the payment cost, for specific enchantments, with this modifier.
Will be applied after the payment cost is calculated.
- default: Key-Value-Pairs of Enchantmant-Double
- key: registry name of the enchantment as a string (the name that is displayed when advanced tooltips are activated F3 + H)
- minimum-value: 0.0
- maximum-value: ~1.7 * 10^308
- default: see in the default config below

global_minimum_enchantment_level

Can be used to set a minimum level, for all enchantments, that is required before an enchantment can be upgraded in the tool_leveling_table.
To deactivate this option, set it to 0.
- type: Short
- default: 0
- minimum-value: 0
- maximum-value: 32.767

minimum_enchantment_levels

Can be used to set minimum levels, for specific enchantments, that are required before an enchantment can be upgraded in the tool_leveling_table.
- type: Key-Value-Pairs of Enchantment-Short
- key: registry name of the enchantment as a string (the name that is displayed when advanced tooltips are activated F3 + H)
- minimum-value: 0
- maximum-value: 32.767
- default: empty json oject

Default configuration

When the config is generated for the first time, it will look like this:

{
    "general_options": {
        "minimum_upgrade_cost": 1000,
        "allow_leveling_of_useless_enchantments": true,
        "allow_leveling_of_breaking_enchantments": true,
        "free_upgrades_for_creative_players": true
    },
    "enchantment_options": {
        "enchantment_whitelist": [],
        "enchantment_blacklist": [
            "minecraft:mending",
            "minecraft:aqua_affinity",
            "minecraft:channeling",
            "minecraft:binding_curse",
            "minecraft:vanishing_curse",
            "minecraft:flame",
            "minecraft:infinity",
            "minecraft:multishot",
            "minecraft:silk_touch"
        ],
        "global_enchantment_cap": 0,
        "enchantment_caps": {
            "minecraft:fire_protection": 100
        },
        "global_upgrade_cost_multiplier": 1.0,
        "enchantment_upgrade_cost_modifier": {
            "minecraft:looting": 1.5
        },
        "global_minimum_enchantment_level": 0,
        "minimum_enchantment_levels": {}
    }
}

Clone this wiki locally