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 Aug 29, 2012New version is almost done. Sorry for the delays but as per usual my real life is pretty busy. I am going to try to get it done tonight after work (at work now).
See the Next Version section above for info on what will be in this release.
I'll also be putting out a bit of a tutorial in the Pages section of this posting :)
-
View User Profile
-
Send Message
Posted Aug 29, 2012@AuntieBeast
I'll add some permissions for commands and such. Probably one for starthunt, and one to change settings.
-
View User Profile
-
Send Message
Posted Aug 29, 2012@atcshane
Yes I'll add this to my todo list :)
-
View User Profile
-
Send Message
Posted Aug 29, 2012Is it possible to allow someone who is not Op access to some of the commands? I'd like to make a Master of the Hunt, but don't want them to have Op
-
View User Profile
-
Send Message
Posted Aug 19, 2012Will chests spawn in WorldGuard regions?
-
View User Profile
-
Send Message
Posted Aug 19, 2012Hi, can you make a command to /starthunt in a specific world? thx
-
View User Profile
-
Send Message
Posted Aug 18, 2012The current version works fine in 1.3 :) Aside from the known problems that is (like the chests not despawning, etc). But yeah, I won't be able to code it til Monday when I get the card.
-
View User Profile
-
Send Message
Posted Aug 17, 2012I would throw some bucks, if it were 1.3 :)
-
View User Profile
-
Send Message
Posted Aug 16, 2012Haha, well, I would have had it out by now, but I had a catastrophic system failure :( My video card fried itself (I can't blame it - it's three years old). I have a new one coming in the next few days, and then I'll be able to finish coding up and releasing the update :(
All I can ask is that if you guys appreciate my work, consider throwing a couple bucks my way to help me out. Buying a new vid card hit my server's balance a bit because I didn't have enough cash on-hand :(
Other than that, cross your fingers and I'll hope that everything works fine when I plug in the new card, and then I'll get this update out this weekend :) I already coded the custom messages and several of the other things I listed in my last post. And something I didn't mention (strict item handling - only spawns items of the chest's rarity level in the chest, so that common items will never appear in an EPIC, etc).
Thanks for the kind words, guys :)
(P.S. I'm writing this on my old laptop, which I lovingly refer to as the Crappy Lappy, but which has none of the code or ability to even run MC. Sadface.)
-
View User Profile
-
Send Message
Posted Aug 10, 2012@rasnyderiii
I can only agree with rasnyderiii - this plugin gives so much to our Airship pirate server! Cant await an update!
Keep it going, Taien! Its epic!
-
View User Profile
-
Send Message
Posted Aug 7, 2012@Taien1
Am I missing a github repo link to latest dev?
I run a top 10 ranked server and would be happy to offer you help with your server if needed in thanks for the fantastic amount of fun your plugin has given my server.
Server info in my sig with Teamspeak links on forums main page.
-
View User Profile
-
Send Message
Posted Aug 7, 2012@Taien1:
I was wondering if you will be allowing or do allow the customization of which items can drop in each tier of chest. Say for example an energy condenser in tekkit dropping in an epic chest, but only in epic chests. Thank you!
-
View User Profile
-
Send Message
Posted Aug 3, 2012Thanks for the update, Taien! Glad to have you back. :)
-
View User Profile
-
Send Message
Posted Aug 2, 2012@Gamerologist1
It takes a lot of setup. I will post an example config here with the release of the next version, because I never really learned how to include those auto-comments in the .yml files like other authors do. I'll try to figure that out beforehand too so I can get those in the generated config.
@Asipdkroks
Yes, I've used it with MultiVerse on my server plenty of times. It has a soft dependency on MultiVerse-Core(which means it will run without it), so if you have that installed it will load that first and then all worlds will be available to TH.
@keenerb
I'll be reworking the way the spawning works in the new version too, so there'll be a bit more control over that :)
@disciple218
That's definitely a bug I'll have to look at. Thanks :)
-
View User Profile
-
Send Message
Posted Aug 2, 2012Hey all :D
Sorry about the lapse in communication...I've been having a rather rough time IRL. I also run a server myself which has been going through some hard times so I've been focusing my attention on coding for that. Anyway, I plan to have a new version out shortly after 1.3 builds stabilize, I'm working on it now. The good part of having to work on my own stuff for a while is that I learned more coding tricks. :) Expect the following:
@Drake63628
Well first of all, I'm a bit distressed that chests are still being found from reloads and chests that didn't fade. I'll be trying something in the new version to counteract that, but it should already be working so I'm not quite sure why it doesn't.
As for logging...for the longest time I wasn't sure how to make a log, but I've been reading a couple Java books and going over the early stuff again and I think I should be able to add a log for that now :) I'll try to get it in before I release the 1.3 version.
@Jamoky
The distance always disregards the Y-coordinate. So if you reach 0, you have to dig down. I will probably add a config option soon to set it between 2d and 3d directions. Also I've gained some knowledge recently about Vectors and can probably set it up so there is some kind of text direction telling you if you have to "Go Straight" or "Turn Right" or "Turn Around" or whatever. Just some ideas :)
@Boomdoe
It should generate a config after you shut down the first time. If it doesn't, let me know if there is some kind of error in console from it.
-
View User Profile
-
Send Message
Posted Jul 31, 2012Is this plugin still being developed? Haven't seen any news from the author recently.
-
View User Profile
-
Send Message
Posted Jul 30, 2012CB 2222+ - anyone else getting startup failure messages? Started happening when I upgraded CB.
-
View User Profile
-
Send Message
Posted Jul 27, 2012@Ferkswe
Just set the spawn block to grass and the min height to 62. then you know it will be above ground and out in the open. That's what I have done on one of my worlds.
-
View User Profile
-
Send Message
Posted Jul 25, 2012@Gunnerrrrr You have the permission node taien.th.claim.*: true set in your permissions?
@Mannollo This could be because they have the amount of players required set much higher or the times are messed up. The world also might not be enabled. For the longest time I couldnt get mine to spawn automatically and it now spawns every hour when there's 2+ people on, it is random, and it is active on the main world.
Taien1 Could you possibly add a feature to enable logging of all of the chests created, their location, and if they are claimed, they faded, or not? Possibly set it to an enable/disable in the config file, and then if it is enabled, a txt file is created that displays all of the items listed above? I have had numerous chests being found by players on my server that have had items because of reloads and such, and would like to be able to go around and destroy all of the leftover ones if needed.
-
View User Profile
-
Send Message
Posted Jul 24, 2012Would it be possible for you to add the option for it to have to spawn under the sky? Players on my server cannot break blocks so it wouldn't be good if they spawned underground.
Thanks! FerkSwe