DaPigGuy / PiggyCustomEnchants

An open source custom enchantment plugin for PocketMine-MP
https://piggydocs.aericio.net/PiggyCustomEnchants.html
Apache License 2.0
103 stars 118 forks source link

Enchants not compatible with enchanted books ~ will not work with PiggyCrates #207

Closed xDanub closed 5 years ago

xDanub commented 5 years ago

Please make sure your issue complies with these guidelines:

General

I expected the books in PiggyCrates when configured to have an enchantment on them to be enchanted and able to be drag and dropped onto a tool, weapon, or armor piece. #### **Version:**

Steps to Reproduce the Issue

  1. install PiggyCe and PiggyCrates
  2. Configure the crates to have an enchanted book with any custom enchant on it.
  3. Open that crate until you get the book.

Extra Information

Aericio commented 5 years ago

You can only enchant one book at a time. If more than one book is being enchanted for the same enchant, then nothing will happen.

Example:

  common:
    drops:
      - name: "Book"
        id: 340
        meta: 0
        amount: 1
        chance: 100
        enchantments:
          explosive:
            level: 1
    amount: 1
    particle: lava
    delay: 0.25
    block: "173:0"
xDanub commented 5 years ago

Used this config:

      - name: "Enchanted Book"
        id: 330
        meta: 0
        amount: 1
        chance: 4
        enchantments:
          Charge:
            level: 1
      - name: "Enchanted Book"
        id: 330
        meta: 0
        amount: 1
        chance: 4
        enchantments:
          charge:
            level: 1
      - name: "Charge I"
        id: 330
        meta: 0
        amount: 1
        chance: 4
        enchantments:
          Charge:
            level: 1
      - name: "Charge I"
        id: 330
        meta: 0
        amount: 1
        chance: 4
        enchantments:
          charge:
            level: 1
    amount: 1
    particle: lava
    delay: 0.25
    block: "57:0" 

None of the books returned anything other than a book with a custom name.

Aericio commented 5 years ago

Weird. Mine is working fine.

Aericio commented 5 years ago

Can you just send the file here? I'll test it.