Effects - SpaceCat97/SpaceCats-Wikis GitHub Wiki
You can apply effects in the same way that you apply enchantments. They can be applied in 3 different ways.
Effects can only be applied to potions, splash potions, lingering potions, suspicious stew and anything else that applies potion effects in vanilla minecraft.
All examples can be found at the bottom of the main CVT page.
Option 1 - True Random
Set the following value:
"effectKey": "random"
Doing this will tell the mod to search for all effects and apply one of them at the specified level.
This is also the case where you would use the blacklistedPotionKeys
field.
Option 2 - Semi-Random
If you would like to have the mod choose from a predefined list, you can put multiple effectKeys and separate them with #
.
"effectKey": "minecraft:slow_falling#minecraft:speed#minecraft:haste"
This example would choose either slow falling, speed or haste.
Option 3 - Advanced Semi-Random
The mod will look at the effects 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 effect levels per-effect (instead of using one level for all).
This will add effects alongside any defined objects in the "effects" field. Meaning you can have both defined and random effects on the same item.