Adding random chance for an enchantment to a tool

Started by ultiCRAFTer on

Topic category: Help with modding (Java Edition)

Last seen on 23:44, 11. Aug 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Adding random chance for an enchantment to a tool

Is it in anyway possible for an enchantment to activate at a random time on a tool? like silk touch?

Last seen on 13:04, 5. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When block is broken with…
Tue, 07/30/2024 - 14:51

When block is broken with item:
If (Pick a random integer between A and B) = C:
If item has enchantment [your enchantment]:
[your enchantment procedure]