Enchant with only chance to apply

Started by Thedoom19 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Enchant with only chance to apply

I am making an enchant that gives the entity a 1 in a 50 chance to get negative effects, how do i make the random/rng chance?