AdvancedEnchantments
Get AdvancedEnchantmentsJoin DiscordUnlimited Minecraft Hosting
  • AdvancedEnchantments
  • ➡️AdvancedEnchantments UI
  • 🪄Enchantments
    • 📑List of Enchantments
      • Default Enchants (250+)
      • Cosmic Enchants (200+)
      • Vanilla+ Custom Enchants (60+)
    • Creating Enchantments
      • Triggers
      • Effects
      • Area of Effect
      • Settings
      • Effect Info
      • Complex Enchantments
    • Enchantment Conditions
    • ⏱️Repeating Enchantments
  • ℹ️General Information
    • Commands & Permissions
      • AEGive
    • Languages and Localization
    • 🔩Plugin Items
      • All plugin items
      • Item Configuration
      • Slot Increasers
    • Toggling Features
  • ⚙️Configuration
    • Random Loot, Villager Trades and Mob Drops
    • Default Files
    • Enchanter
    • Souls
    • Unsuccessful enchants
    • Per-Level Descriptions
    • Per-Level Books
    • Enchantments In Essentials Kits
    • GKits
      • GKit Permissions
      • Colored Leather Armor
    • Armor Sets
    • Drag&Drop books onto Player Heads
    • Groups
  • 💻For developers
    • Plugin API
    • Create Custom Effects
    • Plugin Compatiblity issues
  • Plugin Information
    • PlaceholderAPI placeholders
    • FAQ & Other Plugin Support
Powered by GitBook
On this page

Was this helpful?

  1. Enchantments

Repeating Enchantments

Repeating Enchantments only works for Worn Armor and held item

Setting enchantment type to 'REPEATING', you unlock access to another flag for each level 'time: (seconds)', which allows a set period in-between each enchantment activation:

feed:
  display: '%group-color%Feed'
  description: 'Chance to feed 1 bar of food every few seconds.'
  applies-to: 'Helmets'
  type: 'REPEATING'
  group: 'SIMPLE'
  applies:
    - ALL_HELMET
  levels:
    1:
      chance: 30
      cooldown: 10
      time: 5
      effects:
        - 'MESSAGE:&aYou have been fed!'
        - 'ADD_FOOD:1'

This also allows setting chances for activation as shown in this example:

     chance: 30

each time it runs (in this case, every 5 seconds), it has 30/100 chance (30%) to activate and run.

The REPEATING type allows setting cooldown as well, so in case the timer activated it and chance allowed it to run, it will not be ran for the next (in this case 10 seconds).

PreviousComplex EnchantmentsNextCommands & Permissions

Last updated 2 years ago

Was this helpful?

🪄
⏱️