GC-spigot / AdvancedEnchantments

Superior Custom Enchantments Creator for Minecraft And Spigot platform
153 stars 59 forks source link

ItemsAdder CustomBlocks whitelist #4099

Closed Lerphie closed 1 month ago

Lerphie commented 8 months ago

Describe the bug

Greetings, I have custom blocks from ItemsAdder, how do I specify them in the "Whitelist:" category ?

veinminer:
  display: '&7VeinMiner'
  description: Chance veinmining blocks
  applies-to: Pickaxe
  group: RARE
  type: MINING
  applies:
    - ALL_PICKAXE
  levels:
    '1':
      chance: 15
      cooldown: 4
      settings:
        whitelist:
          - "COAL_ORE"
          - "COPPER_ORE"
          - "IRON_ORE"
          - "GOLD_ORE"
          - "LAPIS_ORE"
          - "REDSTONE_ORE"
          - "DIAMOND_ORE"
          - "EMERALD_ORE"
          - "NETHER_QUARTZ_ORE"
          - "NETHER_GOLD_ORE"
          - "ANCIENT_DEBRIS"
          - "DEEPSLATE_COAL_ORE"
          - "DEEPSLATE_COPPER_ORE"
          - "DEEPSLATE_IRON_ORE"
          - "DEEPSLATE_GOLD_ORE"
          - "DEEPSLATE_LAPIS_ORE"
          - "DEEPSLATE_REDSTONE_ORE"
          - "DEEPSLATE_DIAMOND_ORE"
          - "DEEPSLATE_EMERALD_ORE"
          - "NOTE_BLOCK"
      effects:
        - BREAK_BLOCK @Veinmine

At the moment I have to specify this as "note_block", but that's a terrible idea. Basically your plugin should have a Hook to the API-ItemsAdder

How to reproduce

*

Screenshots / Videos

*

"/ae plinfo" link

https://paste.md-5.net/qulexikahi

Server Log

*

GC-spigot commented 1 month ago

Feature requests have been moved to Discord, and will be now picked by community with votes. Please post your request here instead: https://discord.com/channels/376425582139015168/1292004436952219690/1293177616576024687