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.
I'll take that as a no? ;-)
Anyone running this on 1.6.4?
And is Taien1 still out there?
Oh wow, Taien1 is back! Welcome back!! We love TreasureHunt on our server!
If you are planning on updating, could we request the option for custom named items? If you have the time that is. Other than that, your plugin has always been really great!
Thanks for returning, Taien1! You have been missed ;)
@Taien1
Please consider having TreasureHunt select a region before searching for a location to place a chest when updating the plugin. This would help greatly for servers that take incremental backups. See ticket #64.
Thank the gods you are back. My people on my server have been begging me for this plugin!! When do you think you'll update this?
I made a 2nd hunt in my nether world. People have started noticing when going for chests other chests that are around the world that did not despawn. They have crap items so I'm guessing the are common/uncommon chests that nobody went for previously.
Drexel:
I'm at work and replying from my phone so the reply button doesn't work on here...anyway:
You already can make stationary chests that refill at an interval of your choice and pick random items each time in the current version ;) However I will be adding more functionality to them as well, such as an admin command to have stationary chests in a specific world respawn immediately, commands for editing item lists ingame, and more.
If I don't forget, when I get home today I'll add a section to the FQ page on stationary chests with some tips on how to use them. (There should already be a bit of information on them in the help pages somewhere, though.)
@Taien1
Thank you :)
Cant wait til you get this up and running again with a revamped API. It would be perfect for my customized hungergames theme i want to do. I will need an excessive amount of stationary chests that can generate a different loot each time they respawn. otherwise i will have to start logging each chest with some sort of excell sheet. So tedious. so Boring. :D
See "Message From Taien" above
Also please check out the new additions to the FQ section on items, values, and custom item lists here.
@jazzman170
That may actually be a bug caused by some leftover code from when EPIC was the cap. I'll look into it.I'm sorry, I misunderstood. There is no way currently to add additional levels of rareness, if that's what you mean.
@KnifePlay
Hmmm, I'm not sure why that would be happening, but then again I never really added specific support for the /reload command because I had heard it was glitchy and shouldn't be used. I'll look into it when I get back to work on it this week.
@NLferdiNL
Thanks for your help answering questions!
I just made an aesthetic change to the plugin tutorial page so the links to more information are more obvious. :)
@Crazdale
Please click Pages at the top of the screen and see the FQ section. There's an answer to the SANDSTONE:3 type stuff there.
@Crazdale
I've been away for a while. I will be updating the plugin again soon. However, comments like this kind of irk me, because there is quite a bit of documentation on how the configs work and I have been careful to keep it current to the config setup. If you have questions on how to use it, PM me and I will post them and their answers in the FQ section.
FYI: If you click on "Pages" at the top of the screen there are several tutorial/example sections.
I seem to be unable to get a hunt to start on my server. Any chance the plugin could be updated? Many thanks
I just figured out why I was getting errors, if you are on windows make sure you use an editor like gVIM for windows. Linux based text files use different character formatting. I wish I knew this a few days ago.
I get the following error when trying to /starthunt :/ it doesnt work with 1.6.2?
14:43:11 [INFO] mradoggy issued server command: /starthunt 14:43:11 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'star thunt' in plugin TreasureHunt v1.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:18 9) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchCommand(CraftServe r.java:523) at net.minecraft.server.v1_6_R2.PlayerConnection.handleCommand(PlayerCon nection.java:964) at net.minecraft.server.v1_6_R2.PlayerConnection.chat(PlayerConnection.j ava:882) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java :839) at net.minecraft.server.v1_6_R2.Packet3Chat.handle(SourceFile:49) at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296 ) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java :118) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:3 0) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:5 90) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:2 26) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:4 86) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java :419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:5 82) Caused by: java.lang.IllegalArgumentException: n must be positive at java.util.Random.nextInt(Unknown Source) at me.taien.TreasureHunt.onCommand(TreasureHunt.java:1464) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 15 more
I can only hope, if this ever receives an update, we can get a rework of this configuration file. It is a pain to setup... it really really is. Half the time, it feels like a guessing game, because there is very little documentation for this plugin.