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 Jul 18, 2012I'm not sure, but as I play that really funny game on another server than mine, It seems that to start hunt, it needs an op/modo to do the start command ? Sometimes there is no hunt for a long time and I still try to do /hunt waiting for a new hunt. (because I'm always missing the starting message) It will be great that hunt could start by itself when a lot of peoples enter /hunt while there is no current hunt, or after a laps of time without hunt depending of success of hunter game. Any idea ?
-
View User Profile
-
Send Message
Posted Jul 15, 2012-
View User Profile
-
Send Message
Posted Jul 10, 2012If anyone's looking for the names of items to add to the treasure list, you can get them here: http://jd.bukkit.org/doxygen/d7/dd9/namespaceorg_1_1bukkit.html#ab7fa290bb19b9a830362aa88028ec80a
@MechaKnightz
How does it need to support TerrainControl? This plugin just looks for a good spot to put a chest, it doesn't change any terra
-
View User Profile
-
Send Message
Posted Jul 6, 2012There is no generated config in v0.9
Also, there is a lot in the config that I would like explained as would others from what I've read in the comments. Maybe make up a sample config for us explaining what everything is/does.
Great plugin!
-
View User Profile
-
Send Message
Posted Jul 2, 2012I have followed the /hunt over 2000 blocks down to 0 or 1 block a few times. I have up and dug down pretty far. I have never found the chest. Is there something I have to do to see the chest?
-
View User Profile
-
Send Message
Posted Jun 30, 2012TerrainControl support?
-
View User Profile
-
Send Message
Posted Jun 28, 2012Dude... i cant use this plugin... it doesnt freakin listen. Im telling it to not give people 1k or less and sometimes, it gives people only $150.... like wtf
-
View User Profile
-
Send Message
Posted Jun 25, 2012Looks fun, Taien! (Spelling? :P) My server members are gonna have a great time with this plugin.
-
View User Profile
-
Send Message
Posted Jun 16, 2012Does this got Multiverse support?
-
View User Profile
-
Send Message
Posted Jun 8, 2012@Zeathy
If the config doesn't support values like 383:51 I'd REALLY like to see that option added.
I want to use this plugin on a Tekkit server but can't reference additional items by name, have to use itemid:datavalue.
OK, it does support data values, it's working MAGNIFICENTLY with TEkkit materials. That is amazingly good news.
I've got a feature request: Can you CAP the number of items that can appear? It's a litle annoying to get like 200 feathers in a chest and nothing else...
-
View User Profile
-
Send Message
Posted Jun 6, 2012Fantastic plugin. Maybe add a "<hunttool broke!>"-msg, so players dont get confused that their tool disappeared!
-
View User Profile
-
Send Message
Posted May 29, 2012@joyful_dawn
I have exactly the same problem.
When reloading or restarting, no folder or config file appears in the plugins folder.
-
View User Profile
-
Send Message
Posted May 27, 2012The damage value items are working properly. I enter them with the " around them, and when looking at the config later, the " are gone. But they still spawn in chests, so w00t!.
A question I have, though. I tried disabling marker blocks by typing "/hunt usemarker false", and when chests spawn they have glowstone under them like normal, but the glowstone stays there when they fade. Is this normal? I assumed that not using marker blocks meant nothing was left behind when a chest faded.
-
View User Profile
-
Send Message
Posted May 26, 2012Can you add the ability to rename the treasure? For example, I want to make Common Chest appear as Small Treasure Chest or Small Treasure Box if possible to match with my server's theme.
-
View User Profile
-
Send Message
Posted May 25, 2012First of all, thank you Taien. This is the funnest plugin for me, and has been since its initial release. With that said, I am not longer just playing it. I am now in the position where I need to administrate it.
Could you look at my attempt to add eggs as a reward? The intention is to have spider, zombie, and skeleton eggs as prizes valued at 1000 each.
383:51: 1000 383:54: 1000 383:52: 1000
or should I do...
SPAWN_EGG:51: 1000 SPAWN_EGG:54: 1000 SPAWN_EGG:52: 1000
-
View User Profile
-
Send Message
Posted May 25, 2012I tried installing this plugin but no folder appears when I start up the server.
-
View User Profile
-
Send Message
Posted May 22, 2012@disciple218
I agree. It doesn't lack documentation or anything. This plugin is quite simple when you put it in your plugins folder and start the server. I would love to spawn multiple different chests in one command as well. I can't figure out how to do this with the /starthunt command yet. Nice job taien!
-
View User Profile
-
Send Message
Posted May 22, 2012@deleted_7536780
Actually, you can spawn more than one chest at a time by using the command /starthunt. You can spawn as many as you want, but the automatic spawning routine only spawns one at a time. I don't think you'll find any other plugin quite like this, it is a favorite on my server.
If you're looking for different ideas, you could try one of these:
http://dev.bukkit.org/server-mods/treasurechest/
http://dev.bukkit.org/server-mods/chestrestock/
-
View User Profile
-
Send Message
Posted May 21, 2012@disciple218
ok Thanks, and i guess we can't change that.. And we can't make more than one chest spawn at a time.
I'm sorry to say that this plugin just didn't work the way i wanted, Its too Complicated for such a simply Feature and lacks proper documentation.
Thanks for the time and effort anyway.
I shall look for an alternative. (hopefully there is one) xD
bye
-
View User Profile
-
Send Message
Posted May 21, 2012@deleted_7536780
The higher the value, the less of that item (and the less chance that item) will be in the spawned chest. For example, if a Common chest with value 1000 is spawned, the plugin looks in the Common item list and randomly populates the chest with those items until the value of the items in the chest is 1000. So if your Common item list only contained the entry "Diamond: 64" you would get 16 Diamonds in the chest (64 goes into 1000 15.6 times).
Lowering an item's value in the item lists will increase the chance and amount of that item being placed in the chest, raising the value will decrease the chance and amount.
Make sense?
If you go to the top of this page and read everything the author wrote about how the plugin works, you might have fewer problems.