Sueta

StoneTreasures [1.8-1.13.2]

2.8.0

Make mining more interesting! Have a chance of gaining treasures while mining!

·Plugin

Thanks for the 2000+ downloads :D
Versions
Minecraft 1.9+ Download latest version of the plugin.
Minecraft 1.8 Download
Minecraft 1.7< Not supported.

Description
StoneTreasures is a plugin that makes mining more interesting. While mining you have a (configurable) chance to get a treasure. Because of this, having to mine for a long time for ores becomes less annoying, because not only do you have a chance to stumble across some ores, you might also find yourself with random loot in your inventory.

Features
> Extensive GUI. Almost every single option can be edited via the GUI

> Extremely versatile. There are hundreds of possibilities with this plugin. Your imagination truly is your limit.

> Extremely customizable. There is an option for almost everything. The plugin is great when you stick to the defaults, but messing around with the options will show you its true potential.

> Create your own treasure types, with custom chances, treasures, animations, broadcasts and sounds!

> No console errors. I've worked my hardest to remove as many console errors as possible. Instead you will get clear instructions in the chat as to what went wrong and what you can do to fix the problem.
(Found an console error? Let me know!)

> Adds a natural way for players to obtain custom items

> VIP permissions: Create specific permissions for VIP's to have a higher chance on getting treasures.

> Adds an extra level of excitement while mining, which is otherwise quite boring

> Give items or run commands as a reward
> Add lore, enchants, custom name and more to treasures
> Optional Broadcast whenever someone found a treasure
> Drop the reward, place it in the player's inventory or place it in a special GUI
> Play a sound or a particle effect when a treasure is found
> WorldGuard support. You can not get treasures in areas where you can't build. (Temporarily removed. Not included in v2.8.0)


Images

2017-12-04_19.02.42.png 2018-01-02_20.49.35.png 2018-01-02_20.50.14.png 2018-02-20_22.38.57.png 2018-02-20_22.38.30.png 2018-02-20_22.38.24.png 2018-02-20_22.38.18.png

Installation
1. Download the jar file.
2. Place it in your /plugins folder
3. Reload or restart the server
4. Configure the items in the config.

Commands & Permissions
everyone
/stonetreasures (/st)
General GUI. Normal users have access to the reward GUI and the display GUI.
For everything else in the GUI you need:
stonetreasures.admin
/stonetreasures (/st)
Access to the full GUI, includes the Options Panel, editing the Loot Types and Treasures, the Links, Attribute Mode and more.

/stonetreasures debug
Enables or disables debug mode. Can also be done trough GUI.
/stonetreasures links
Lists the links under "Useful Links" in the chat. Can also be done trough GUI.
/st set <loot type> [chance/display/displayname/message/broadcast/playsound] <chance;item;name;true/false>
Set the chance, the display item or display name, and toggle the message, broadcast, playsound and particle feature of that specific loot type.

stonetreasures.log
If the log is enabled in the Options GUI, users with this permission will get a message whenever someone finds a treasure.

stonetreasures.treasures.<treasure>
Players cannot get a treasure that they do not have the permission for. This means players need all of the treasure permissions ( stonetreasures.treasures.* if you use e.g. PEX) if you want them to have access to all treasures.

Multiplier permissions are specified in the config. Add/edit them however you like. They are not default to OP. They will be editable trough the GUI in a future update.

Config

Not up to date with version 2.6

Explanation Config
options:
  # Options for the plugin
  debug: false
  # Debug. Mainly useful for the developer.
  survival-only: true
  # If set tot true you can only get treasures while mining in survival
  drop-to-inventory: true
  # If set to true the item will be placed in the inventory.
  # If set to false or if it is set to true but the player has a full inventory, it will drop the item as if it was mined in the block.
  # If dropped, the item can only be picked up by the player who gained the treasure.
  allowed-worlds:
  # A list of worlds that the player has to be in to get treasures
  - world

treasure-types
  common:
    # Settings for the GUI display
    GUI-display:
      item: INK_SACK
      # Item that gets displayed
      name: "&7Common"
      # Name of the displayed item
    # A list of blocks that can give you common treasures for mining.
    # The chance gets calculated after checking the block, if you put e.g. DIAMOND_ORE and a 5% chance,
    # the player has a chance of 5% to get a common treasure every time they mine diamond ores.
    # To find treasures only in a subtype, add the datavalue like so "LOG:2".
    # Putting just "LOG" will allow it to be found in all types of logs.
    allowed-blocks:
    - STONE:3
 
    # The percentage of chance to get a common item while mining one of the allowed blocks.
    percent-chance: 5
    message:
      enabled: true
      #Whether the messages are enabled
      message: "&6You got a &7&ocommon &b%name% &6while mining!"
    # The message the player gets if he finds a common treasure.
    # Placeholders %amount% = specified amount in config; %item% = Minecraft Item Name;
    # %name% = Specified name in config. If no name is specified it will display the minecraft item name.
    # %broadcast-name% = The name specified with the item under "broadcast-name".

      drop-message: "&cA &7common &4%name% &chas dropped next to you because your inventory is full!"
    # The message the player gets if his inventory is full while (s)he would have gotten a treasure.

    broadcast:
      enabled: false
      # Disable/Enable the broadcasting
      message:  '&6%player% has found a &7common &9%name% &6while mining!'
      # Message that will get broadcasted if player finds a treasure and broadcast is enabled

    playsound:
      enabled: true
      # If disabled there won't be a sound whenever the player finds the treasure
      sound: BLOCK_NOTE_PLING
      # The sound that gets played. Check the links in "Useful Links" below:
      volume: 10
      # The volume of the sound.

    particle:
      enabled: true
      # If false there won't be a particle whenever the player finds the treasure
      particle: BARRIER
      # The particle. Check the link down below for a list with all particles
      amount: 1
      # Amount of played particle
      location: block
      # Where the particle is located. Can be "player" or "block". "player" will create the particle at player, "block" at the mined block.
      dx: 0
      # The direction on the x axis of the particle
      dy: 0
      # The direction on the y axis of the particle
      dz: 0
      # The direction on the z axis of the particle

    treasures:
    # A list of possible treasures the player can get if they get a common treasure. It is a random chance for each item.
    # The different items need to be numbered. The number has no significance to the chance of it being chosen.

      1:
      # Item one
        type: item
        # The type of treasure the player gets. Can be "item" or "command" or "command-list".
        item: IRON_SWORD
        # The item that will get dropped if item one gets selected
        amount: 1
        # Amount of the specified item that will get dropped
        damage-value: 0
        # The damage value of the item. Use this to get e.g. colored wool or create an almost broken sword.
         # To see the damage value's press F3+H ingame. Set to 0 to get the default item.
        name: '&cDestroyer'
        # The custom name the item will have. If nothing is specified it will be the default name.
        unbreakable: true
        # If set to true the item will be unbreakable.
        enchants:
        # A list of enchants for the item.
        # Check the link under "Useful Links" below to get a list of all enchantments
          -DAMAGE_ALL:3
          # The "DAMAGE_ALL" is the enchantment, the "3" is the level. Make sure you have a ":" between the two!

      2:
      # Item two
        type: command
        # The type of treasure the player gets. Can be "item" or "command" or "command-list".
        command: 'pay %player% 1000'
         # The command gets executed by the console, so you can do whatever you want!
         # %player% gets replaced with the players name.
        name: '&61000 Coins'
         # The name that will be used in the message if %name% or %broadcastname% is used.

      3:
      # Item three
        type: item
        # The type of treasure the player gets. Can be "item" or "command".
        item: IRON_INGOT
        # The item that will get dropped if item three gets selected
        amount: 1
        # Amount of the specified item that will get dropped
        damage-value: 0
        # The damage value of the item. Use this to get e.g. colored wool or create an almost broken sword.
       # To see the damage value's press F3+H ingame. Set to 0 to get the default item.
        lore:
        - '&aThis was the very'
        - '&afirst iron ingot that was'
        - '&aever mined!'
        # The custom lore the item will have. If nothing is specified there will be no lore.

      4:
      # Item four
        type: command-list
        # The type of treasure the player gets. Can be "item" or "command" or "command-list".
        commands:
        - 'give %player% minecraft:DIAMOND_HELMET'
        - 'give %player% minecraft:DIAMOND_SWORD'
        - 'give %player% minecraft:DIAMOND_LEGGINGS'
        - 'give %player% minecraft:DIAMOND_CHESTPLATE'
        - 'give %player% minecraft:DIAMOND_BOOTS'
       # The list of commands that get executed. The list can be as long as you want. %player% gets replaced with the players name.
        name: '&6Diamond set'
        # The name that will be used in the message if %name% or %broadcastname% is used.

# To add an extra item, copy one of the ones above and replace the number.
# The numbers need to be in the correct order, so do not skip or use a number twice.

# Add lore or a name as specified above. Lore needs to be a list as shown. Each line corresponds to a line of lore on the item.

# Add your own treasures types by copying one of the existing and changing the name/messages

multiplier-permissions:
  '1':
  # The first custom permission
    permission: stonetreasures.vip
    # The permission that players need to have to get the multiplier
    multiplier: 2
    # The multiplier. Formula: Chance = Chance * Multiplier
  '2':
  # The second custom permission
    permission: stonetreasures.peasant
    # The permission that players need to have to get the multiplier
    multiplier: 0.9
    # An example of a 'negative' permission

Similar projects

Plugin →