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
Hey, I recently made a version of this plugin for 1.10.2 that has almost exactly the same features. I was wondering if you would be fine with my posting it on BukkitDev, since I don't want to post a duplicate of this plugin if you're planning on updating it.
heads up, there is a max items list. 20 seems to work good, after that 21 on seems to internal error the server. Also I noted that using the same item number multi times causes issues.
@Vorksholk
Where did you post because I'm in need of this plugin.
Sorry about the delay, posted an updated version for 1.7.2+ which addresses compatibility and adds the ability to customize the chest spawn message. Should be approved shortly. :)
Please update, i thoroughly enjoy this plugin.
Hey, please update this, it really is a great plugin! It'd be awesome to add configurable messages and colors. Also, the 1.6.2 version is in another language.
@Finelarme2
Is it possible for you to take over the plugin? This is quite a great plugin for Survival Servers!
Ok, i've just update the plugin, it works for 1.6.2 (generate chest), but i'm not a good developper, maybe there is some bugs. I upload that.
Edit : http://rapidshare.com/files/34434941/Treasure.zip
I changed the height, colors and items more fun :).
Cool cool.
But where is the download of the 1.6.2 version? I think you will add a new version on 18.Aug?
@mal67
Yea i'm wondering too
this one working on 1.6.2 ? i dont see a download link, am i just missing a dev link or something
@TheVnChecker
I'll add that to the new version I'm releasing tomorrow afternoon. It will have an option of a max number of chests per spawn turn, so like if you set 10, on average around 5 chests will spawn every x minutes (also configurable). :)
Hey Vorksholk.
I have a little question. Can you add the feature to spawn more then 1 treasure? Maybe you can add it to the config too. So somebody can change the number of spawning treasure.
It's only a little idea because some server has very big maps and only 1 treasure isn't really much.
Sry for my epic fail english :D
Sorry about this project guys, I'm back to developing Bukkit plugins now :)
I'm going to release an update in the next few days that will address 1.6.2 compatibility, although I've found the 1.4.7 version still runs fine aside from the (ironically) debug command.
Ok, i've just update the plugin, it works for 1.6.2 (generate chest), but i'm not a good developper, maybe there is some bugs. I upload that.
Edit : http://rapidshare.com/files/34434941/Treasure.zip
I changed the height, colors and items more fun :).
An update is planned or not ?
Guys there are many replacements which are generally better. I suggest looking, as I can't name them off the top of my head, but there was a nice one I used to use that was very configurable and had a /treasure locate command or such.
Seems like a kool plugin
Is this no longer being updated?
Is there a way you can make old chests disappear after a certain period of time? That'd prevent the world being cluttered with random, empty chests.