Treasure
Overview:
This plugin is quite simple. It, every x minutes, will spawn a treasure chest at a random location within set bounds (also set in the config) that has random items inside (also set in config).
Full Call-Home Disclosure:
This plugin has an option to perform calls home. This does exactly two things:
-Checks if an update is available
-Gets a MOTD from my server to display in console (not in chat).
If this feature bothers you, you can disable it in the config file for Treasure :) (Allow Calling Home: false)
The plugin may show that a new update is available but it hasn't been approved by the Bukkit staff yet, so it won't show up on the plugin page. Just wait a few hours and try again. :)
Debug mode:
Debug mode uses the permission node treasure.debug, and shows you info that may be conflicting and causing the plugin not to work. Go to the world you want the chest to spawn in, and type "/debugtreasure". This will only work if you have the permission node, and requires debug: true is in your config file. As well, if it is on, my username automatically has permission to view the debug dialog. By default it is off, turn it on if you are having some trouble with the plugin. Check to make sure item count and stack count are the same, and that the world it is trying to spawn in is the same world you want it to spawn in. Make sure the wait time is above 0, and make sure that the spawn block ID is a block (an item will throw an error!).
Configuration:
Configuration is extremely simple. Put your plugin in the plugins folder, and startup the server. After this, stop the server, go into the plugins/Treasure folder, then open items.yml and config.yml. The config files are set to the defaults, and you can add to them as you go. You can add an unlimited number of lines in the format of:
Item: x StackLimit: y Curve: z
to the items.yml file, adding each on a new line.
Curve is how commonly an item spawns. For example, if you have 10 items, each with curve 1, they will all spawn at the same rate. However, if 5 of those 10 items have a curve of 2, each of the five with a curve of 2 are 2x as likely to spawn as those with a curve of one.
Help:
If you have any issues with this plugin, please post below and let me know. :)
If you are getting errors in console due to this plugin, ensure that your config files are correct. If you want to start the config over, just delete the "Treasures" folder in "plugins" and start the server up again.
Commands:
/debugtreasure (only works if debug is set to true in config...)
/spawnchest [x] [y] [z]
Note: [x] [y] [z] are optional arguments. Without them, a chest will be spawned randomly as per your location restrictions.
/last10 (lists last ten chests that spawned, this list resets on restart and reload of server...)
Permissions:
Ops are automatically able to perform the /spawnchest command and the /last10 command!
Permission nodes:
treasure.spawnchest
treasure.debug
treasure.last10
Its there a way I can put a colon (:) in because whenever I do it will give me an error
Is this going to be updated for 1.5 soon? Its probably my players favorite plugin on the server, and are excited to get it for 1.5.
is it possible to extend the idea to other things like a chest
example I have forestry mods: I would like to spread apiary in the world It would be nice to use you plugins to populate the world of item yyy:zz with your plugins. ( having a flag to keep the spawn indefinetely or the last xx)
Another request from a user on my server:
"there needs to be a command so you can see what the co-ords were, once it has been shouted out by server as chat goes real fast here and if you misplace pen you lose chance to write it down"
Also, license states GPL... where's the source code?
Hey :) 1. I need to customise the displayed message, it is not appropriate as I do not spawn chests in main world.
2. You need a donate button on your page. ;)
Is there any way to turn off the "Mystery Chest spawned at X Y Z" message? I think it kind of defeats the purpose with hidden treasure if it broadcasts the coordinates to everyone. Thank you for this fantastic plugin!
I would like to see the addition of enchanted items to the chests, preferably in the manner Essentials kits give enchanted items to players.
Hi.
Is it also possible to put a command in a box? As in, if you open a box, you'll see a message and in the server console a command is triggered.. If so, thats awesome, exactly what im looking for. If not, could you please do that for me? :3
is it possible to have a minimum height of spawn: I have a lot spawning in mines and I would prefer on surface (and a maximum)
I remember a plugin similar to this is the past (Glad to see someone making one of these again!), the problem with it was the chests had a chance to spawn in areas with WorldGuard protections meaning no one could claim them. Perhaps connect your plugin to WorldGuard in order to prevent chests from spawning in protected areas? Anyway, cool plugin, I'll be messing around with it for sure. I look forward to you hopefully adding the above functionality! Cheers.
@Aceboo
Added :)
@rasnyderiii
Already there :)
Looks good!
Consider a world config - to only allow spawning in a world of your choice. For example if I only want chests to spawn in the nether.
@Vorksholk
great idea, a /last10 command with according permission to players would be perfect indeed ! to get spawn coord information back !
@Aceboo
Maybe like a "/last10" command or something of that nature, which would list the last 10 chest spawns?
@lukes550
I'll look into that idea over the weekend then :)
well, this plugin is really cool, exactly what i was looking for. I installed it on my public server : perfect compatibility, working nice. Players appreciate it a lot. Thank you & congratulations !
Just improvment ideas (no idea if it's complicate or not, just ideas): would it be possible (unless it already exists and i just missed it) to developp console broadcast a bit ? I mean, this given information when chest is spawn is perfect. But if players are not online, or if they just missed announce for some reasons, I dont know how they could obtain these informations again ... so they cant play each chest. So it would be great to : 1) provide a coord-broadcast command (if possible automatic until the chest is found) or 2) provide a player command to reach chest coord information at will.
@Vorksholk
Well my thinking was to that you have the ability to make it into a competition to who can find the chest first it X amount of time before it de-spawns. Then every Y min another one spawns (like you already have implemented) then it restarts all over again. I was think It would be more fun for people to compete to find it in a certain amount of time.
@lukes550
Well actually the way the plugin is now it announces in chat exactly where the treasure chest is (x, y, z coords). However, that might be an interesting option in the future, as an alternative to knowing the exact coordinates.
Making chests despawn would be possible (and may be a future feature), however that would be a real bummer if the chest spawned far out and despawned after people spent so much time getting to it.
Looks like a great new plugin, I have just started to mess around with it but is there a way that you could make is so I have Item X (like a spider eye something that not to easy to get) and be able to right click and it will say you are 1500 blocks away from the chest ect. and you can use that chest finding item maybe 4 times before it "disappears" because you use it up. Is there a way for you to implement something like that into the plugin or is that already in the plugin? I just think it would be hard to find a chest not knowing where exactly (i get that you are suppose to find it) it is with in 1500 block radius ect.
Also is there a way to make it so the old chest de-spawns after a certain amount of time?
@livengoodb
Similar, but TreasureChest lets each player loot every chest on a given interval, this plugin spawns chests randomly and the first player to the chest gets the loot.