create-treasure

Mar 3, 2017
create-treasure
  • [​IMG]
    An example code
    Code (Text):
      halloween3:
        display-name: '&c[&6Halloween #3&c] &4Treasure'
        lore:
        - '&c&lLIMITED TIME TREASURE!'
        - ''
        - '&7This pumpkin is the strongest of their'
        - '&7type, this treasure was found in the'
        - '&7deep of nethers!'
        - ''
        - '&8Level of this chest: &6Halloween #3'
        - '&8You have &e%keys% &8Halloween #3 Treasures.'
        - ''
        - '&8Get Halloween Treasures'
        - '&8by winning @ &eGames'
        slot: 34
        amount: -1
        item: JACK_O_LANTERN
        opening-effect: INCR_CIRCLE
        opening-particle: COLOR_255_128_0
        open-broadcast: true
        open-message: '&6&l%player% &c&lis opening a &4&lHalloween #3 &c&ltreasure!'
        result-effect: LIGHTNING
        use-key: true
        purchaseable-key: false
        key-limit: 100
        duplicate: false
        rarities:
          rare:
            chance: 74
          legendary:
            chance: 24
          mythical:
            chance: 2
    Code (Text):
    display-name
    The name of the Treasure

    Code (Text):
    lore
    Description of treasure. May use PlaceholderAPI's placeholders, if it's enabled.
    Must be a list of strings.

    Code (Text):
    slot
    Slot of the treasure. Can be a single number, or a list of numbers (for multiple slots)

    Code (Text):
    amount
    Amount of the treasure. If -1, the value will be the amount of keys the player has.

    Code (Text):
    item
    Material of the treasure

    Code (Text):
    opening-effect
    The opening effect of the treasure. /treasure effects for a list.

    Code (Text):
    opening-particle
    The opening particle of the treasure. May contain multiple effects.
    Example for TOTEM opening effect: itemType/sparkEffect/finishEffect
    (Example: CHEST/FLAME/TOTEM)

    Code (Text):
    open-message
    The message, when player is opening a Treasure.
    open-broadcast must be set to true.

    Code (Text):
    result-effect
    The result effect, when the Treasure opening ends.
    /treasure effects for list.

    Code (Text):
    use-key
    Must be true, if you want the treasure be key based.

    Code (Text):
    price
    Price of the Treasure. If use-key is false, it will cost the amount of the given value to open one.

    Code (Text):
    purchaseable-key
    Must be false, if you don't want keys to be purchaseable.

    Code (Text):
    key-limit
    The maximum, how many keys the player may have.

    Code (Text):
    duplicate
    If duplicates are enabled (not inside a treasure), set this to false if you don't want them for this treasure.

    Code (Text):
    required-key-to-open
    The amount of keys that's required to open the treasure.

    Code (Text):
    permission
    The permission to open a treasure.

    Code (Text):
    rarities
    The rarities with chances. They are relative to each other.
    To get the actual chance (percent), you have to do maths:
    Divide the selected rarity's chance by the sum of rarities' chance, and multiplied by 100.
    Example:
    Mythical has a chance of 100, while Common 800, and Rare 200
    100 / (100 + 800 + 200) * 100
  • Loading...
  • Loading...