TreasureHunt

TreasureHunt 1.1
- Randomly-Generated Chests - Stationary Chests - Money Distribution - Multiple ItemLists - Excessively Configurable - Excessively Fun -
Find that loot!
Message from Taien
I've officially changed the license to Public Domain. I don't have time to maintain the project anymore, obviously. Sorry guys....hopefully someone will take over for me. If you want me to give you official access to the plugin, PM me. I'll pick someone based on their other plugins' quality. I put a lot of work into this plugin and am sorry to have to do this, but I don't even really play MC anymore since I no longer am in contact with all the people I used to play with. Sorry...
Hello everyone. This is my second released plugin for bukkit, but probably my tenth or twelfth overall.
The purpose of TreasureHunt is to give people even more fun things to do in your server. The plugin allows your worlds to randomly generate chests based on very specific settings that you choose. You can use any number of worlds with this plugin, and each can have a different configuration. :) You can also set up specifically enchanted items to appear in your chests, stationary chests that respawn after an interval (with a bit of randomization), and as many custom item lists as you could ever want - to use a separate item list for each world or even for each stationary chest!
For ALL info on how it works, please see the Plugin Tutorial section. :)
Plugins Supported
- PRIOR TO 1.0: Vault (for economy and permissions)
- 1.0+: Vault (for economy and permissions), WorldGuard and Towny (to prevent chests spawning in certain areas)
Note: If you don't use Vault, ops can still do the admin commands. See command list for details.
Help! I can't get any chests to spawn automatically!
Please see Example Configs. :)
Planned Features (Soon)
- Option to create maps centered at the chest location, fully mapped.
- Suggestions?
Next Version (1.2)
Green = Done Red = Not Done Gold = In Progress
- Add support for Residence.
- Config option ChooseChunkFirst - will tell location selection to choose one chunk to perform all of the spawn checks in. This will potentially cause more failed spawns (meaning the spawn attempt would be cancelled until you hit your random chest chance again), but is designed to help out servers which backup their world on a constant basis. (TreasureHunt needs to check certain conditions in each spawn location. This causes the chunk's modified date to update on the server, although I fail to understand why since it's not actually changing anything. To prevent many chunks being "modified" by TreasureHunt, this option will be added.)
- Command for normal players to find out how many of each type of chest (Common, Uncommon, etc) are currently present in the world.
- Change Damage on EnchantedItems entires to MinDamage and MaxDamage, to give you a chance to assign the spawned item a random damage between those values if you wish.
- Cover error messages with the new message system as well.
- Config option to have messages about chests only displayed within the world they originated in.
- Command to view a list of EnchantedItems entries ingame, /th enchlist. Command to view a list of CustomLists entries and one for WorldLists, /th customlists and /th worldlists.
- RandomGen and GenValue options for EnchantedItems entries, to allow the plugin to randomly assign enchantments to the item instead of using the Effects list to be specific.
- Command to view a list of EnchantedItems entries ingame, /th enchlist. Command to view a list of CustomLists entries and one for WorldLists, /th customlists and /th worldlists.
Known Bugs
- See Ticket section.
Changelog
Version 1.1
- Removed TopChestsByValue config option and converted /tophunters to /top and /top values, which displays by chests or by values respectively. /top command is also aliased as /thtop.
- Fixed a bug with PlayerData loading. /top should no longer reset on server restarts.
- Moved other updates to 1.2 due to PlayerData bug needing a fast release.
Version 1.0
Note About 1.0
Be sure to back up your config prior to updating to 1.0. There are changes to the config structure, and to be honest I am not good at writing conversion methods. The changes will be obvious enough once you see the new version of the config compared to the old version, so you should be able to copy/paste old data directly into the new file once you've got it running.
- New optimization for chest spawning. No more lag when a chest location is being selected!
- Connection to WorldGuard to prevent chests spawning in regions where block breaking and chest access are disabled.
- Connection to Towny to prevent chests spawning in town blocks.
- Config option to set the levels at which chests become Uncommon, Rare, Legendary, and Epic. (Currently they are 1500, 2500, 3500, and 4500 respectively.)
- Custom (named) Item Lists, and an ItemList option for each world as well as each stationary chest. (Worlds will only be able to use itemlists from the WorldLists section; Stationary chests will be free to use WorldLists or CustomLists.)
- Complete rewrite of the way configs are handled so as to prevent the 'where's my config file?' issue. Apparently I've been using an outdated method of config usage. :/
- Config option to choose the block left behind after a chest fades (perviously hardcoded to soulsand). Also the ability to say RETURN instead of a block name to have the block return to what it was before the chest spawned.
- Permission node for starthunt commands, in the format of taien.th.starthunt.world (or *). Also taien.th.admin still covers this.
- Permission node for stationary chest commands, in the format of taien.th.stattool.world (or *). Also taien.th.admin still covers this.
- A command to view a list of the top ten chest-finders, with listings of the total value of the chests they have found, as well as a command to clear the list and a config option whether to display by number of chests found or total value of chests found.
- Finish/fix directional text, so that when a player does /hunt(or uses the tool) it will tell them which direction they need to turn to be facing the chest in addition to the distance. Config option to shut off this function already exists.
-
View User Profile
-
Send Message
Posted May 19, 2012@shutka
Messages will be customizable soon. :)
-
View User Profile
-
Send Message
Posted May 17, 2012@shutka
If the license info above says "All Rights Reserved", then I'm guessing the author doesn't want to release the source code. That being the case, talking about decompiling it is bad form. If it lacks a feature you want, why not just put a request in? The author has been very generous about adding requested features.
-
View User Profile
-
Send Message
Posted May 16, 2012@Taien1
Simply awesome, makes me and the players happy! Thanks for all your hard work, this is one of the most appreciated plugins we got (out of 100+!) :)
-
View User Profile
-
Send Message
Posted May 15, 2012@theprint
Make sure you have the world name in the permission:
taien.th.hunt.world or taien.th.hunt.*
Also, there is no permission for the /th list command currently (it's part of taien.th.admin). The command was made for ops to know where they all are...I felt it was too easy if the players knew. If you want, I could put that on the todo list (adding a taien.th.list permission).
-
View User Profile
-
Send Message
Posted May 15, 2012@OriginalMadman
This has already been fixed in 0.9, marked your ticket fixed like the other one :p Just wait until I release it, it's almost done I swear :) I'm working out the bugs.
-
View User Profile
-
Send Message
Posted May 13, 2012The bug of having to /op players went away after I updated Vault (in case other people have the same issue).
However, I still have the problem with non-op players not being able to use /hunt list or /th list, in spite of having the permissions set to allow it.
-
View User Profile
-
Send Message
Posted May 13, 2012@Cthulhu_craft
Just figured out I had the same problem that chests aren't fading (and my players taking advantage). Placed a ticket.
-
View User Profile
-
Send Message
Posted May 12, 2012First of all - I love this plugin! It's one of my favorites of all time, and the players go crazy when a new treasure is spawned.
I've run into a strange bug, however: I have to /op players before they can participate in hunts. What's really odd is, that I can de-op them and they can still use the tool to track the treasure, but not use the /hunt list command.
I am running the latest recommended Bukkit build using PEX. I have checked that the permissions are registering, which they appear to be - even without the opping - but it's still not working.
Keep up the excellent work - and hope you can crack this nut too.
-
View User Profile
-
Send Message
Posted May 12, 2012@Taien1
W00t!! Thanks for the update, and all your hard work on this plugin! It's awesomesauce!! :D
-
View User Profile
-
Send Message
Posted May 12, 2012@sleite
The items aren't individually weighted. However...
For each section, the first item in the list is the most likely to be picked if the GoodItemWeight is above 1. Basically, the GoodItemWeight determines how many times the plugin draws against the item pool, and higher value items are always at the top. So for an EPIC chest, the items at the top are the first items in the Epic section of your config. For Rares, the first items in the Rare section, etc.
The AMOUNT of an item chosen is always drawn twice, and it picks the lower amount. So say that based on the value of the chest, the player could potentially receive 8 diamond blocks. The plugin draws a random number, let's say 7, and then draws again...this time getting (let's say) 2. Then it drops the 7 and uses the 2 because it is lower, and the player gets 2 D-blocks.
I may be tweaking this system in the future. :)
-
View User Profile
-
Send Message
Posted May 12, 2012@Adfest
Sorry about the problems you and others have been having. I've been really busy lately but I'll try to get them fixed soon. And thanks for your kind words :)
-
View User Profile
-
Send Message
Posted May 12, 2012@beleedad
You should be able to do that stuff, provided you have the data values right for the potions. I've actually got potions spawning in mine, so I can tell you it works for that :)
-
View User Profile
-
Send Message
Posted May 11, 2012Would it be possible to provide more comprehensive information regarding how treasure type and amount are determined? The numbers (weights?) in the config file don't make much sense to me.
The values 'weight' and 'gooditemweight' mentioned above give a clue, but there's not much indepth information.
For example, how do I know if a player will receive 1 diamond block versus 64 diamond blocks. That's the difference between 9 diamonds and 576 diamonds! I want to be sure I understand exactly how the weighting of treasure works before I start allowing players to go on these treasure hunts.
Thanks!
-
View User Profile
-
Send Message
Posted May 8, 2012working as intended and its a lot of fun. I am going to tweak the chest contents, I wander if u can do potions and xp bottles, spawner eggs? I will experiment a little.
Awesome plugin, thank you.
Ben
-
View User Profile
-
Send Message
Posted May 7, 2012I really dig this plugin, I've used it in the past and the masses soiled themselves with pure joy. I hope to use it again soon. For now I cannot due to the config resetting when the server reboots, and multi-world still isn't working correctly.
I noticed these were both mentioned in the tickets, so I'll refrain from flooding the ticket system with more of the same. Instead, I offer words of encouragement and gratitude. This is a damn good idea for a plugin that has the potential to make things more interesting on nearly any type of server. I'm really looking forward to these issues being fixed so that I can slap my players in the face with even more zazz!
If somebody out there has this working with multi-world and a reset free config, please post what you're doing right so that I can compare and try to fix the issue if it's something I'm doing wrong on my end.
-
View User Profile
-
Send Message
Posted May 1, 2012Chests aren't fading :-/
-
View User Profile
-
Send Message
Posted Apr 27, 2012@nhoclesnar
I agree completely, English is not the the *Trademarked language* for minecraft. So quick being a dick, and be productive.
-
View User Profile
-
Send Message
Posted Apr 22, 2012What happened to Taien? Is this plugin being abandoned? I hope not, it's a favorite on my server. :(
-
View User Profile
-
Send Message
Posted Apr 19, 2012@gibbly96
Dude stop being so racist. If you go to school and you learn Spanish, does that mean you can speak, type, and understand Spanish well? Understanding the writings of other language is not an easy task - Chinese for example. There are thousands of words to learn, and how many % do you think a word used in Minecraft will be taught in school?
Wanting a language file is not a thing to be said 'Oh my god' about. I think it's time for you to go back to school boy.
-
View User Profile
-
Send Message
Posted Apr 19, 2012@Endless123
Oh my god. Which people cant speak english ? Did you dont have schools in your country ?