Treasure Block
Treasure Block
WARNING! THE VERSION 3.0 CHANGES THE CONFIG! YOU NEED TO CHANGE THE ITEM ID'S AND ENCHANT ID'S TO ITEM NAMES AND ENCHANT NAMES! SEE ITEMS / ENCHANTMENTS AVAILABLE FOR THE LIST WITH AVAILABLE OPTIONS!
Treasure Block is a new plugin to create treasures and collect them. If you place a block (name must be 'Treasure'), it will create the treasure, and when you click the block you will collect it. It will automaticly disappear and shows a configurable message at the chat.
How to use?
- Type /treasure create while holding a block
- Place the block (name must be 'treasure')
- Click the block to collect him
- Get your reward
To change the reward:
- Open the plugin folder
- Open the folden Treasure Block
- Open the config file
- Enter at the treasure it at the following way (~ = 1 space):
Treasure:
~~'1':
~~~~items:
~~~~- '(item):(amount)(enchantment id):(enchantment lvl)'
~~~~- '(item):(amount)'
~~~~commands:
~~~~- (command without /)
~~'2':
~~~~items:
~~~~- '(item):(amount)'
Example to get a lapis block:
Treasure:
~~'1':
~~~~items:
~~~~- 20:1
NEW POSSIBILITY: ENTER ~ INSTEAD OF A NUMBER AND GIVES A RANDOM ITEM / RANDOM AMOUNT!
PLAYER NAME INSIDE A COMMAND? USE {player}!
Available items / enchantments
Items: http://pastebin.com/7SRaVWEn
Commands: http://pastebin.com/aVyYRDdH
Commands
- /treasure printlist players <filename>: Creates a file with the amount of found treasures by player
- /treasure printlist treasures <filename>: Creates a file with all the treasure locations
- /treasure count <player>: Gives you the amount of found treasures by the selected player
- /treasure compass: Gives a compass locate the nearest treasure
- /treasure create: Renames the item inhand to treasure to place the block at create a treasure
- /treasure hints add <id> <hint>: Adds a hint for a treasure
- /treasure hints show <id>: Shows the hint for a treasure
- /treasure list: Gives a list with all the treasure locations
- /treasure remove <id>: Remove a treasure
- /treasure reload: Reloads the config file
Permissions
- treasure.create: Creates the treasure
- treasure.collect: Collects the treasure
- treasure.compass: Use '/treasure compass' and left click compass
- treasure.list: You can see the treasure locations
- treasure.hints.*: Use all treasure.hints.... permissions
- treasure.hints.add: Use '/treasure hints add <id> <hint>'
- treasure.hints.show: Use '/treasure hints show <id>'
- treasure.players.*: Gets the following permissions
- treasure.players.printlist: You can print the amount of found treasures by player in a .yml file
- treasure.players.count: You can see the amount of found treasures by player individual
- treasure.reload: Reloads the config file
- treasure.remove: You can remove treasures
- treasure.reset: Resets the amount of collected treasures
- treasure.treasures.printlist: You can print the treasure locations in a .yml file
Version history
V3.0
- Items and enchantments replace by names (see items / enchantments available)
V2.1
- Command add: '/treasure hints add <id> <hint>': Sets a hint for a treasure
- Command add: '/treasure hints show <id>': Shows the hint for a treasure
- Command add: '/treasure compass': Gives a compass to navigate to nearest treasure
- Compass right click: Gives a hint for the treasure
- Compass left click: Recalculate nearest treasure
- Permission add: 'treasure.hints.add': You can use '/treasure hints add <id> <hint>'
- Permission add: 'treasure.hints.show': You can use '/treasure hints show <id>' and right click compass
- Permission add: 'treasure.compass': You can use '/treasure compass' and left click compass
V2.0
- Max random amount now possible to set for each item. Put is ~(amount). Ex ~5
- Possibility to perform a command after gething a treasure. See the config file how to work
- Change the treasure item. For placing a treasure, the name of the item must be 'Treasure'
- Command add: '/treasure create': Change the name of the current item inhand to 'Treasure'
- Command add: '/treasure reset <all/playername>': Reset the amount of collected treasures
- Permission add: 'treasure.reset': Reset the amount of collected treasures
V1.3
- Add possibility to random amount or item by replace a number into ~
- Command add: '/treasure printlist treasures <filename>': Prints a list of available treasures
- Command add: '/treasure remove <id>: Remove a treasure
- Command add: '/treasure list': Gives you a list of available treasures
- Command changed: '/treasure printlist <filename>' to '/treasure printlist players <filename>'
- Permission add: 'treasure.treasures.printlist': Use /treasure printlist treasures <filename>
- Permission add: 'treasure.list': Use /treasure list
- Permission add: 'treasure.remove': Use /treasure remove <id>
V1.2
- Fix bug right click not showing reward
- Add enchantment possibility (see configuration)
V1.1.1
- Fix bug no items. Remove the config file or change the configfile (see how to change reward)
- Fix error on click into air
V1.1
- Fix bug treasure count and printlist
- Fix bug sponge block didn't disappear with right click
- Command changed: /treasure player printlist <file name> to /treasure printlist <file name>
- Command changed: /treasure player found <player> to /treasure count <player>
- Text changed: 'Treasure not registered' to 'This treasure is NOT registered'
- Permission changed: treasure.players.found to treasure.players.count
V1.0
First version
In progress
- None, use ticket tracker to give a suggestion!
Bug?
Use the ticket tracker to report your bug

-
View User Profile
-
Send Message
Posted Nov 15, 2013@rwmtiger
Sorry for my late responce, but the de-op you can manualy remove inside the config file and there you can edit the items
-
View User Profile
-
Send Message
Posted Oct 30, 2013this is good. only you can fix de-op problem and and make it more random item like in chest you find it in mine
-
View User Profile
-
Send Message
Posted Oct 5, 2013Thanks for the prompt reply! I appreciate you taking the time to consider my suggestions.
I look forward to future releases.
-
View User Profile
-
Send Message
Posted Oct 5, 2013@brian163b
Thanks for the suggestions!
1) I will create the reset function
2) You can give multiple items for a treasure. Just do the following thing:
treasure:
'1'
items:
- (item):(amount)
- (item):(amount)
3) Good idea. I am going to try it
4) I am looking a way to do this. If it is possible, I will create it
5) I am thinking about how to fix that. Maybe in the future.
-
View User Profile
-
Send Message
Posted Oct 4, 2013Thanks for sharing your plug-in!
I was looking for a better treasure hunt plug-in and I think this has real potential. However, I have a few suggestions, if your willing to consider them. ;-)
1) Need a command to reset a player's "treasure found" count. i.e. /treasure count-reset <player>
2) Allow multiple treasures to be given out per chest. To do this, add config option to toggle what the treasure list represents. ex. Treasures_mode: single | all
Treasures: '1': items: - '45:1' '2': items: - '46:2 '3': items: - ':1'
So in "single" mode it works as it does now, selecting one of the items. In "all" mode it would give the player one of 1, two of 2, and one of a 3 (a random item from the random block list) . Would give the admin/op the option of making treasures more rewarding per find.
3) Consider moving the "maximum random amount" parameter as per item setting, like
Treasures: '1': items: - '45:3' '2': items: - '46:12'
would give up to 3 of item 1 and up to 12 of item 2. This way you could more specifically limit the random quantity of more valuable items. (Unless you choose to make the item itself random. ;-) )
4) If your able to have commands executed after getting a treasure, include separate config options for the last treasure (found) and all others. This way a command could be called to send a /mail (using Essentials plug-in) to the admins/ops when the last treasure is found (useful if the admin/op isn't online when this occurs)
ex. treasure_command: '/<cmd>, /<cmd>, ...' treasure_last_command: '/<cmd>, /<cmd>, ...'
5) Any chance the treasure block could be an actual chest (which would be "special" in that it would break on click like the sponge does)? Or just make the treasure block type configurable? (I may prefer gold block for example.)