Premium Treasures [PRO] [Paid]

Discussion in 'Resource Discussion' started by RobiFoxx, Nov 7, 2015.

  1. Yes, I just didn't post update log, but I posted the update.
     
  2. The TOTEM effect enters the block, but when the item comes out of it, it bounces everywhere!
     
  3. Bounces everywhere?
     
  4. Yes, the values are everywhere. The TOTEM in the block changes to ITEM and is thrown out of the block.
     
  5. Oh well, I will look into it soon, and come up with another possible solution :l
     
  6. wonderful communication. :)
    Finally, there is one question. Is there a way to get CustomHeads from Reward?

    http://www.minecraft-heads.com/

    The reward does not work when I do!
    Code (Text):
      customhead:
        broadcast-enabled: true
        broadcast: '&7[&c보물 전리품&7] &7&l> &e%player%&7님이 &r%item% &7커스텀 헤드를 얻었습니다!'
        sound-enabled: true
        sound: ENTITY_ITEM_PICKUP
        reward1:
           reward-type: item
           value:
           type: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzU5ZjRiNGYxYThiZjRmNGFkNjg3NGY5MzBhYzdkN2U5M2U5OTA2MWY4NzlhYjgwNDI4ZjUyZTc1N2EyOSJ9fX0
           amount: 1
           display-name: '&e콜라'
           lore:
           - '&7시원한 콜라.'
           item:
             name: '&e콜라'
             type: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzU5ZjRiNGYxYThiZjRmNGFkNjg3NGY5MzBhYzdkN2U5M2U5OTA2MWY4NzlhYjgwNDI4ZjUyZTc1N2EyOSJ9fX0
        reward2:
          reward-type: item
          value:
          type: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjdjOWM3MWYzMzI4ZWMzYTdkYWFmMTIyYWFhZGQ2NWQ2OWMyYWZjNzczOGJjMDk1MTkzOTdiMzljNzFkYTlhMyJ9fX0
          amount: 1
          display-name: '&eCoke'
          lore:
          - '&7Coke.'
          item:
            name: '&Coke'
            type: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjdjOWM3MWYzMzI4ZWMzYTdkYWFmMTIyYWFhZGQ2NWQ2OWMyYWZjNzczOGJjMDk1MTkzOTdiMzljNzFkYTlhMyJ9fX0
     
  7. Could you upload a default config.yml?
    I usually like to take a look at a plugins configuration before I buy.
     
  8. Paste the bolded part as an item:
    /give @p skull 1 3 {display:{Name:"Colored Block"},SkullOwner:{Id:"0b832219-7043-4f14-890c-f598038cf379",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2E1MjgwMjY1NzNmM2E0ZDJmMjNjZjM2M2ZkNmU2NTI3NzdiNmVjMTkzYTg0MTRiMWU2NDRkNzhiZjllN2MzIn19fQ=="}]}}} (Split it from the "Uv")
    Code (Text):
    #    _______                                    
    #   |__   __|                                  
    #      | |_ __ ___  __ _ ___ _   _ _ __ ___  ___
    #      | | '__/ _ \/ _` / __| | | | '__/ _ \/ __|
    #      | | | |  __/ (_| \__ \ |_| | | |  __/\__ \
    #      |_|_|  \___|\__,_|___/\__,_|_|  \___||___/
    #                                              
    # -------------------------------------------------
    # Result effects:
    # LIGHTNING, EXPLOSION, FLAME_EXPLOSION, SPELL
    #        ---------------------------------
    # Result effects meant for rarity result effects:
    # SPELL
    #        ---------------------------------
    # (!) All result effects can be used as both normal
    #     result effects, and both as rarity result
    #     effects.
    # -------------------------------------------------
    # required-perm usage:
    # You need to put required-perm entry, which is a list
    # in a reward.
    # Example:
    #        reward4:
    #            reward-type: money
    #            value: 420
    #            required-perm:
    #            - permission.test
    #            - permission.test2
    #            - !permission.test3
    #            item:
    #                name: '&a420 dollar'
    #                type: EMERALD
    # This line means:
    # Player must have permission.test, and permission.test2
    # to get this reward, but MUST NOT have permission
    # permission.test3.
    # -------------------------------------------------
    # Opening effects:
    # DEFAULT, FIREWORK, HOVER_BLOCK, HELIX, SOUL,
    # WEB, WEB_DOUBLE, WEB_TRIPLE, EXPLOSIVE,
    # EXPLOSIVE_SOUNDLESS, INCR_CIRCLE, TOTEM
    #        ---------------------------------
    # To customize effects, simply use opening particle
    # like particle1/particle2. Example:
    # COLOR_0_0_0/COLOR_255_0_210
    # You may check which particle may be customizable,
    # and how many from /treasures effects
    # Atleast one particle effect is required per
    # opening particle, if others are not given, they
    # will be the default one.
    # -------------------------------------------------
    # Currency:
    # VAULT, COINSAPI, TOKENENCHANT, ITEM
    # -------------------------------------------------
    # Particle Effects:
    # http://pastebin.com/JLce1Y0x
    # -------------------------------------------------
    # Items:
    # https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
    # -------------------------------------------------
    # Sounds:
    # https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
    # 1.8 Sounds:
    # https://github.com/Attano/Spigot-1.8/blob/master/org/bukkit/Sound.java
    # -------------------------------------------------
    # Use the links above for help.
    # You can make as many Treasure/Rarity/Reward as you want.
    # Just copy that path, paste it, and edit it.
    # -------------------------------------------------
    # Tip for chances:
    # Chances are not in percents, but X to <all chances added together for a treasure>
    # So, in a treasure, if there's common with chance 800, rare with 195, and mythical with 5 chance,
    # mythical would be 0.5% (5 / (800 + 195 + 5) * 100)
    # -------------------------------------------------
    # Debug mode is for only testing. If you got an
    # and you can't find it, just enable it.
    # -------------------------------------------------

    currency: VAULT
    item-currency-item: EMERALD
    placeholderapi: false
    opening-effect-line-amount: 5
    particle-play-in-every-tick: 1
    debug-mode: false

    limited-creative: false

    duplicates:
        enabled: true
        randomvalue: 20-80
        messages:
            - '&4[&cDuplicate!&4] &eYou found a duplicate!'
            - '&4[&cDuplicate!&4] &eYou got &6%randomvalue% &emoney!'
        rarity-random-value:
                common: 10-20
                rare: 40-80
                legendary: 120-250
                mythical: 1000-2500
        change-item-name: '&7(DUPLICATE) %name%'
        commands:
            - 'money give %player% %randomvalue%'

    loots:
        common:
            broadcast-enabled: false
            broadcast: '&6%player% &efound a common %item%&e!'
            sound-enabled: false
            sound: ENTITY_ARROW_SHOOT
            reward1:
                reward-type: money
                value: 10-50
                item:
                    name: '&a%value% dollar'
                    type: EMERALD
            reward2:
                reward-type: permission
                value: permission.test
                item:
                    name: '&aTest Permission'
                    type: COMMAND
            reward3:
                reward-type: money
                value: 420
                required-perm:
                - permission.test
                item:
                    name: '&a420 dollar'
                    type: EMERALD
            reward4:
                randomvalue: 20-30
                reward-type: command
                value: 'give %player% diamond %randomvalue%'
                item:
                    name: '&a%randomvalue%x Diamond'
                    type: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzAxNDYxOTczNjM0NTI1MTk2ZWNjNzU3NjkzYjE3MWFkYTRlZjI0YWE5MjgzNmY0MmVhMTFiZDc5YzNhNTAyZCJ9fX0=
        rare:
            rarity-result-effect: SPELL
            broadcast-enabled: true
            broadcast: '&6%player% &efound a rare %item%&e!'
            sound-enabled: true
            sound: ENTITY_WITHER_SPAWN
            reward1:
                reward-type: command
                value: 'give %player% dirt 64'
                item:
                    name: '&964x Dirt'
                    type: DIRT
            reward2:
                reward-type: multiple-command
                value:
                    - 'give %player% dirt 64'
                    - 'give %player% stone 64'
                item:
                    name: '&9Block Pack'
                    type: CHEST
        legendary:
            broadcast-enabled: true
            broadcast: '&6%player% &efound a legendary %item%&e!'
            sound-enabled: true
            sound: ENTITY_CAT_AMBIENT
            reward1:
                reward-type: command
                value: 'give %player% stone 64'
                item:
                    name: '&664x Stone'
                    type: STONE
            reward2:
                reward-type: player-command
                value: 'me is awesome'
                item:
                    name: '&6Useless Feeling revealer'
                    type: REDSTONE
        mythical:
            broadcast-enabled: true
            broadcast: '&6%player% &efound a &c&lMYTHICAL %item%&e!'
            sound-enabled: true
            sound: ENTITY_ENDERDRAGON_DEATH
            rankreward:
                reward-type: command
                value: 'manuadd %player% Donator'
                required-perm:
                - '!rank.identifier.permission'
                item:
                    name: '&5Donator Rank'
                    type: BRICK
            reward2:
                reward-type: item
                value:
                    type: DIAMOND_SWORD
                    amount: 1
                    display-name: '&bDiamond Sword'
                    lore:
                        - '&7Test Sword.'
                item:
                    name: '&5Sword'
                    type: DIAMOND_SWORD
        vote:
            broadcast-enabled: true
            broadcast: '&6%player% &efound a &4&lVOTE RANK&e!!'
            sound-enabled: true
            sound: BLOCK_PORTAL_TRIGGER
            reward1:
                reward-type: command
                value: 'manuadd %player% Vote'
                required-perm:
                - '!vote.rank.identifier.permission'
                item:
                    name: '&5Vote limited Rank'
                    type: FIREWORK_ROCKET
                   
    inventory:
        title: 'Treasures'
        row: 5
        canbuy: '&aClick to buy this!'
        cantbuy: '&cYou can''t buy this!'
         
    treasures:
      treasure1:
        display-name: '&2[&aLevel &61&2] &eTreasure'
        lore:
        - ''
        - '&7Contains mostly common loots,'
        - '&7with a small chance of legendaries.'
        - ''
        - '&8Level of this chest: &61'
        - '&8Price: &a100$'
        - '%purchasable%'
        slot: 12
        item: CHEST
        price: 100
        result-effect: LIGHTNING
        opening-particle: FIREWORKS_SPARK
        opening-effect: DEFAULT
        open-broadcast: false
        use-key: false
        rarities:
          common:
            chance: 60
          rare:
            chance: 40
      treasure2:
        display-name: '&2[&aLevel &62&2] &eTreasure'
        lore:
        - ''
        - '&7This chest is almost the same, as'
        - '&7the first one, except by being'
        - '&7able to find Legendary rarity!'
        - ''
        - '&8Level of this chest: &62'
        - '&8Price: &a1000$'
        - '%purchasable%'
        slot: 14
        amount: 2
        item: TRAPPED_CHEST
        price: 1000
        result-effect: LIGHTNING
        opening-particle: ENDER_CHEST
        opening-effect: HOVER_BLOCK
        open-broadcast: true
        open-message: '&e%player% &6is opening a &aLevel 2 Chest'
        use-key: false
        rarities:
          common:
            chance: 60
          rare:
            chance: 25
          legendary:
            chance: 14
          mythical:
            chance: 1
      treasure3:
        display-name: '&2[&aLevel &63&2] &eTreasure'
        lore:
        - ''
        - '&7The one of the most rare chest, mostly'
        - '&7containing legendary loots.'
        - ''
        - '&8Level of this chest: &63'
        - '&8Price: &a5000$'
        - '%purchasable%'
        amount: 3
        slot: 16
        item: ENDER_CHEST
        price: 5000
        result-effect: EXPLOSION
        opening-particle: FLAME
        opening-effect: HELIX
        open-broadcast: true
        open-message: '&e%player% &6is opening a &6Level 3 Chest'
        use-key: false
        rarities:
          common:
            chance: 40
          rare:
            chance: 45
          legendary:
            chance: 12
          mythical:
            chance: 2
          vote: 1
      vote:
        display-name: '&2[&aVoting&2] &eTreasure'
        lore:
        - ''
        - '&7The free Treasure, containing'
        - '&7worse loots than Level 1 Treasure,'
        - '&7yet has a chance to get legendary.'
        - ''
        - '&8Level of this chest: &6Voting'
        - '&8You have &e%keys% &8keys.'
        - ''
        - '&8Get this chest by voting @'
        - '&estore.mywebsite.com'
        slot: 23
        amount: -1
        item: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYTZjYzQ4NmMyYmUxY2I5ZGZjYjJlNTNkZDlhM2U5YTg4M2JmYWRiMjdjYjk1NmYxODk2ZDYwMmI0MDY3In19fQ==
        price: 8000
        result-effect: EXPLOSION
        opening-effect: FIREWORK
        open-broadcast: true
        open-message: '&e%player% &6is opening a &2Voting Chest'
        use-key: true
        purchaseable-key: false
        key-limit: 20
        rarities:
          common:
            chance: 30
          rare:
            chance: 50
          legendary:
            chance: 15
          mythical:
            chance: 4
      soulwell-none:
        display-name: '&2[&cSoul Well&2] &eTreasure'
        lore:
        - ''
        - '&7Gather souls, and after gatheting'
        - '&7more than 10, use this, to gather'
        - '&7gears.'
        - ''
        - '&8Level of this chest: &6Soul Well'
        - '&cYou have gathered no souls!'
        - ''
        - '&8Get souls by winning @'
        - '&eSkyWars'
        slot: 25
        item: DRAGON_EGG
      soulwell:
        display-name: '&2[&cSoul Well&2] &eTreasure'
        lore:
        - ''
        - '&7Gather souls, and after gatheting'
        - '&7more than 10, use this, to gather'
        - '&7gears.'
        - ''
        - '&8Level of this chest: &6Soul Well'
        - '&8You have &e%keys% &8souls.'
        - ''
        - '&8Get souls by winning @'
        - '&eSkyWars'
        slot: 25
        amount: -1
        item: DRAGON_EGG
        hide-if-no-key: true
        opening-effect: SOUL
        opening-particle: SMOKE_NORMAL
        open-broadcast: false
        result-effect: LIGHTNING
        use-key: true
        purchaseable-key: false
        key-limit: 100
        duplicate: false
        required-key-to-open: 10
        rarities:
          common:
            chance: 30
          rare:
            chance: 50
          legendary:
            chance: 20
      halloween1:
        display-name: '&c[&6Halloween #1&c] &4Treasure'
        lore:
        - '&c&lLIMITED TIME TREASURE!'
        - ''
        - '&7Legends say, that these halloween'
        - '&7treasures were found in a witch''s'
        - '&7hut which was doing an experiement.'
        - ''
        - '&8Level of this chest: &6Halloween #1'
        - '&8You have &e%keys% &8Halloween #1 Treasures.'
        - ''
        - '&8Get Halloween Treasures'
        - '&8by winning @ &eGames'
        slot: 32
        amount: -1
        item: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZWUyOGEwM2VkMmViOTBlYWZmMWExMTlhNWI1NTQ0NTI3MDFiOTdhZjQ3YmZmNzNjZTcxMDg0OWM2YjAifX19
        opening-effect: WEB_TRIPLE
        opening-particle: COLOR_0_0_0
        open-broadcast: true
        open-message: '&6%player% &cis opening a &4Halloween #1 &ctreasure!'
        result-effect: LIGHTNING
        use-key: true
        purchaseable-key: false
        key-limit: 100
        duplicate: false
        rarities:
          common:
            chance: 45
          rare:
            chance: 20
          legendary:
            chance: 14
          mythical:
            chance: 1
      halloween2:
        display-name: '&c[&6Halloween #2&c] &4Treasure'
        lore:
        - '&c&lLIMITED TIME TREASURE!'
        - ''
        - '&7These treasures were made from'
        - '&7a potion, and a pumpkin combination.'
        - '&7This has a less chance for common.'
        - ''
        - '&8Level of this chest: &6Halloween #2'
        - '&8You have &e%keys% &8Halloween #2 Treasures.'
        - ''
        - '&8Get Halloween Treasures'
        - '&8by winning @ &eGames'
        slot: 33
        amount: -1
        item: PUMPKIN
        opening-effect: EXPLOSIVE
        opening-particle: FLAME
        open-broadcast: true
        open-message: '&6&l%player% &cis opening a &4&lHalloween #2 &ctreasure!'
        result-effect: LIGHTNING
        use-key: true
        purchaseable-key: false
        key-limit: 100
        duplicate: false
        rarities:
          common:
            chance: 20
          rare:
            chance: 49
          legendary:
            chance: 10
          mythical:
            chance: 1
      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
      soulwell-notifier:
        display-name: '&eDid you know?'
        lore:
        - '&7You have a Soul Well key!'
        slot: 39
        amount: 1
        item: BEACON
        hide-if-no-key: soulwell
      soulwell-purchaser:
        display-name: '&eSoul Well purchaser'
        lore:
        - '&7Click to purchase one!'
        price: 8000
        only-purchase-item: true
        purchase-chest: soulwell
        slot: 40
        amount: 1
        item: EMERALD
      des:
        display-name: '&a'
        item: STAINED_GLASS_PANE:14
        slot:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
      clicky:
        display-name: '&aClick me for no reason.'
        item: STAINED_GLASS_PANE:14
        click-event:
        - say Click Event for 'Clicky' Item
        right-click-event:
        - say Right Click Event for 'Clicky' Item
        left-click-event:
        - say Left Click Event for 'Clicky' Item
        slot: 43
      recent:
        display-name: '&aYour Recent Loots'
        item: CHEST
        lore:
        - '&71. %treasuresrecentfind_find_number_1%'
        - '&72. %treasuresrecentfind_find_number_2%'
        - '&73. %treasuresrecentfind_find_number_3%'
        - '&74. %treasuresrecentfind_find_number_4%'
        - '&75. %treasuresrecentfind_find_number_5%'
        - '&7---'
        - '&7Your first reward: %treasuresrecentfind_from_first_1%'
        - ''
        - '&aFeature above only works with'
        - '&6[TreasuresAddon] &eRecentFinds&a!'
        slot: 41

    treasure-blocks:
        - 0;0;0;world
     
  9. Purchased the plugin and it seems to be exactly what I was looking for.
    One Question though:
    Will this support me adding in custom rarities?
     
  10. It does support it. Copy a rarity, and rewrite its name, and you are able to customize it the way you want and possible.
     
  11. [​IMG]
    VERSION 3.0-pre5
    • Fixed MySQL error when non-treasure items are present.​
    P.S.: Currently I am busy with my own server, therefore I couldn't really work on Treasures. However, things like API update are coming soon.
     
  12. Didn't I have this resource purchased?
     
  13. Can you give more info about the plugin like i've seen it on my friends server, and i don't know which reward types there are, how i must do the particles for example: Totem etc.
     
  14. I don't know?
    An example config: https://pastebin.com/NWNUAE1X
    Effects can be found and explained with /treasures effects command, however custom opening and result effects are coming soon when 3.0 gets out from the "pre-release" phase
     
  15. and the reward type: item and money doesn't work for me.
     
  16. Since leaks already exist for this plugin, I can't help people who haven't bought the plugin.
    If your friend needs help, then he can message me.
     
  17. [​IMG]

    This particle effect (and others, like FLAME_EXPLOSION) are not centered on the box, but on the corner of the box. This is a part of the result effect, not the opening effect. The opening effects all center perfectly on the Treasure.

    Code (Text):
        result-effect: SPELL
        opening-particle: SMOKE_NORMAL
        opening-effect: HELIX
    I use PaperSpigot, so could it be in relation to that?
     
  18. Hey, Thanks for reporting.
    Currently I plan on replacing the current opening effect method, so bugs like this shouldn't appear.
    Result effect spell should only work properly on rarity result effects currently.
     
    • Agree Agree x 1
  19. It's not only the result effect SPELL, FLAME_EXPLOSION originates at the same corner, as well. That one is harder to get a screenshot of though. Result effect LIGHTNING also strikes the corner of the treasure. But it's a more minor bug, because it is fairly hard to see, and if it gets fixed, even better!

    ------------------------------------------

    Is there a way to choose the color of certain particle effects? Or make the colors random?
     
    #339 Ceroish, Sep 12, 2017
    Last edited: Sep 12, 2017
  20. Yea, as I said, I will have to do the current API update to fix these.
    As for colored particles, you can do COLOR_R_G_B
    You have to provide an RGB value. Example: COLOR_255_128_0