DaPigGuy / PiggyCrates

A crate plugin for PocketMine-MP supporting unlimited crate types
https://piggydocs.aericio.net/PiggyCrates.html
Apache License 2.0
31 stars 40 forks source link

Support for PCEBookshop #63

Closed JGYTVevo closed 4 years ago

JGYTVevo commented 4 years ago

Please make sure your issue complies with these guidelines:

Description

Be able to win "mythic" books that you can open like how you can buy them with PCEBookshop! Very good plugin overall!

Extra Information

Aericio commented 4 years ago

This can already be done using NBT.

Given that PCEBookShop is installed, add nbt: "{pcebookshop:#}" and substitute # for the rarity. The number must be an integer value because that's how my plugin is setup to read the nbt data.

Read here for rarity integer values.

Example, which will give a book of mythic rarity.

    drops:
      - id: 340
        meta: 0
        amount: 1
        chance: 64
        name: "ce book"
        lore: "its random click to chance"
        nbt: "{pcebookshop:1}"