Reward Settings

Guide

rewards:
  reward-name:
    give-item: false
    item:
      material: GOLD_NUGGET
      display-name: "§e$200"
      lore:
        - "&f "
        - "&f$200 Money"
    hologram:
      - "&e$200"
    hologram-y-offset: 0
    chance: 28.0
    actions:
    - '[command] geco give %player% 200'
    - '[message] &e&lCONGRATULATIONS! &fYou have won &e$200&f!'

Available Settings:

  • "give-item"

    • Should be the reward item given to player?

  • "item"

    • Settings of the Reward item, take a look into this guide

  • "hologram" (Optional)

    • Hologram of the dropped reward item

  • "hologram-y-offset" (Optional)

    • Y axis offset of the reward hologram

  • "chance"

    • A chance of the reward...

  • "actions"

    • Actions that are being sent after the player wins the reward

    • Take a look into this guide

Advanced:

rewards:
  reward-name:
    give-item: false
    model: modelengine:TEST_MODEL
    model-yaw: 10
    open-animation: open2 
    preview-item: # The item that will be shown in the preview (Optional)
      material: DIAMOND
      display-name: "§b$200"
      lore:
        - "&f "
        - "&f$200 Money"
    item:
      material: GOLD_NUGGET
      display-name: "§e$200"
      lore:
        - "&f "
        - "&f$200 Money"
    hologram:
      - "&e$200"
    hologram-y-offset: 0
    chance: 28.0
    conditions:
      1:
        type: "permission"
        permission: "acrates.reward1"
        negate: true
    actions:
    - '[command] geco give %player% 200'
    - '[message] &e&lCONGRATULATIONS! &fYou have won &e$200&f!'

Available Settings:

  • "model" (Optional)

    • If you want to show a model in the animation instead of a reward item, use this option :)

  • "model-yaw" (Optional)

    • rotation of the reward model

  • "open-animation" (Optional)

    • Per-reward animation. You can specify this option if you want to make the it so the crate plays a different animation when this reward is chosen.

  • "preview-item" (Optional)

    • an item that will be used for the preview GUI

  • "conditions" (Optional)

    • conditions to be able to win the reward.

    • negate means that it negates the if statement logic of the condition. For example when the negate is set to false, then a player must have a permission to be able to win the reward. If the negate is set to true, then the player must NOT have the permission to be able to win it.

Last updated