Random Enchantments - SpaceCat97/SpaceCats-Wikis GitHub Wiki

Random Enchantments can be applied in 3 different ways.

All examples can be found at the bottom of the main CVT page.

Option 1 - True Random

Set the following value: "enchantmentKey": "random"

Doing this will tell the mod to search for all enchantments and apply one of them at the specified level.

This is also the case where you would use the blacklistedEnchantments field.

Option 2 - Semi-Random

If you would like to have the mod choose from a predefined list, you can put multiple enchantmentKeys and separate them with #.

"enchantmentKey": "minecraft:feather_falling#minecraft:protection#minecraft:fire_protection"

This example would choose either feather falling, protection or fire protection.

Option 3 - Advanced Semi-Random

The mod will look at the enchantments objects in this field and choose one of them.

The benefit of using this to the normal "semi-random" method is that you can also set enchantment levels per-enchantment (instead of using one level for all).

This will add enchantments alongside any defined objects in the "enchantments" field. Meaning you can have both defined and random enchantments on the same item.