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 Sep 7, 2012Added a bit more to the Example Configs section. :)
-
View User Profile
-
Send Message
Posted Sep 7, 2012@rasnyderiii
Ok, I've created a new tutorial which I'll link you to, but I think I already know your problem. Make sure you have
and here's the new page :)
http://dev.bukkit.org/server-mods/treasurehunt/pages/example-configs/
The default setting on any world is to have enabled: false, and that's because I didn't want chests to start spawning in someone's world until they had the config set up the way they wanted. :)
-
View User Profile
-
Send Message
Posted Sep 7, 2012@Taien1
Options:
SecondsBetweenChecks: 5
MaxSpawnAttempts: 100
MinPlayersOnline: 4
But no chests spawn randomly. Ever.
-
View User Profile
-
Send Message
Posted Sep 7, 2012@smithy285 @wickedfable
That's exactly the point of this plugin -.-;
What are you having trouble with? I guess I could add some basic config setups to the Config Setup page. Have you been there? It's here:
http://dev.bukkit.org/server-mods/treasurehunt/pages/config-setup-plugin-tutorial/
-
View User Profile
-
Send Message
Posted Sep 6, 2012TH - does randomly spawn a treasure chest based on configs - however - I cannot get this to work on the current version either.
-
View User Profile
-
Send Message
Posted Sep 5, 2012@smithy285
That is actually something I would like as well. It might fall under a different project, though. I have been looking for a plugin that randomly generates chests with loot in them but which isn't for an event. Just a plugin that automatically populates the world with these chests - I think that would add a bit of incentive to exploring the world during survival. I would love it if anyone could recommend such a plugin or if there would be a way to have TreasureHunt function in this way.
-
View User Profile
-
Send Message
Posted Sep 5, 2012I love this plugin but I really find it annoying that I have to type a command for a chest to randomly appear, I have a feeling that there is a way to make then randomly spawn over time but I have no idea how, a little advice would be great.
-
View User Profile
-
Send Message
Posted Sep 4, 2012@ZeroDaggerz
Did you try with the new version? I think I got it figured out. Also, are you using something like Hamachi to launch your server? I think I've recently realized a reason this could be happening which is related to that kind of stuff.
-
View User Profile
-
Send Message
Posted Sep 4, 2012For some reason whenever I edit the config once I reload or relaunch the server the config reverts to default settings =/
-
View User Profile
-
Send Message
Posted Sep 4, 2012Submitted a fix version that should fix some of the questions in that ticket you posted. More work coming tonight after I get off work. :) Soon as bukkit approves the file it will be available.
-
View User Profile
-
Send Message
Posted Sep 3, 2012I submitted a ticket. The jar is not producing a config or a folder.
-
View User Profile
-
Send Message
Posted Sep 3, 2012There was a bug in version 0.10 that was causing the plugin to crash on use of the /starthunt command. I've released a fix for that bug - if you encounter any more, please report them right away. :) The fix version is 0.10.1, which is awaiting approval by bukkit, and will be available as soon as they do that.
-
View User Profile
-
Send Message
Posted Sep 2, 2012Ok, I've uploaded the new version - just needs to be approved by bukkit. For now I have to go deal with some family stuff, but later on when I get back I'll continue working on the new tutorial section, so people can figure out how to fully utilize this plugin :) For now, you can see what I've got done over in the Pages Section. :)
-
View User Profile
-
Send Message
Posted Sep 2, 2012Oh awesome! I must have checked at just the right time. I was hoping an update might come soon, and here it is! Can't wait.
-
View User Profile
-
Send Message
Posted Sep 1, 2012Ok, I think I've got all the bugs worked out. Haven't had a problem since an earlier compile, and chests are fading properly now. There is probably still a hidden bug or two, but mostly it should be ready to go. I'm writing the new, more detailed tutorial page for the plugin, and as soon as that's ready I'll post version 0.10 :) Everything on the "Next Version" section above was added. The new tutorial should really help people with setup and customization. You can already view the partially-completed version in the Pages section. Thanks for the support guys! :)
-
View User Profile
-
Send Message
Posted Aug 31, 2012Working out final bugs. Got the new stationary chest feature added :)
-
View User Profile
-
Send Message
Posted Aug 31, 2012You won't be waiting much longer. I'm off today and there are only a couple bugs left. Moreover, I think I finally got chests to fade correctly, although only time will tell for sure. I'm adding one more new feature before the release as well, so give me a couple hours for everything to be tested and ready. Also I'm going to throw together a tutorial page on the plugin so people can more fully understand what they can do with it and how to control it.
Not long now :)
-
View User Profile
-
Send Message
Posted Aug 30, 2012Fixed some bugs, a few remain, working them out. :)
-
View User Profile
-
Send Message
Posted Aug 30, 2012@xclucky
Currently yes, as I haven't tied the program into worldguard yet. If anyone knows of a place I can find a tutorial on how to hook into WG, let me know.
-
View User Profile
-
Send Message
Posted Aug 30, 2012@Ta6akus3
A few bugs popped up that I was too tired to work out last night. Will be working more on it today before release :) Having trouble with the custom message system mostly. The enchantment stuff seems to work fine.