Loot
Requirements:
- KBPL
- If the version in the title is higher than the one on the 'recent files' list, then you will have to wait until bukkit approves the latest version since KBPL could be updated and have code that does not work with previous versions of the plugin.
What it does:
The title pretty much says it all! But to be a bit more detailed, Loot makes it easy to create chests with randomly generated loot. The best part? No commands. Oh did I mention that it adds random enchantments to armor and weapons and can spawn random potions? Yeah, that too. Its the perfect loot generator for custom dungeons and worlds with randomly generated schematics.
Features:
- Automatic Chest Regeneration Refills chests automatically using a list of items that you configure.
- Enchantments You can configure whether loot chests will spawn items with random enchantments, or you can specify the enchantments yourself.
- Potion Effects Same as the enchantments, but with potions.
- Item naming Specify a name for the items spawned in a chest! You can also configure the plugin to let it add a random preffix/suffix to enchanted items, dependent of the enchantments applied.
- Lore Add lore to any item for that true rpg feel!
- Books You can set the title, author and text of books generated!
- Colors You can set the colors of the names/lore/whatever of each item.
- Randomness A lot of the properties of any item can be randomized, including the enchantments applied, name, amount, data value, chance for it to spawn at all, etc.
- Redstone Force a chest to reset by powering the sign!
- Uses Soulbound You can download the soulbound plugin for added functionality! Visit the plugin page here.
How it works:
Important Notes:
- Requires KBPL
- The way bukkit names effects is different than the default minecraft effects, so here are some tables of the names you should use on the config file:
Enchantments
Potion Types
- You can find the color codes here.
Permissions:
- loot.sign.create - Lets you create Loot signs.
- loot.sign.break - Lets you break Loot signs.
- loot.command.name - Ability to use the command /loot name
- loot.command.reload - Ability to use the command /loot reload
- loot.list.x - Permission to open loot chests of x list
Requesting new features:
If this plugin is missing that certain special feature, bribe me and I will gladly work on it!
While I am updating and squashing bugs for free, working on new features requires time and everyone knows that time equals money.
I am however, open to suggestions that are directly related and crucial to the plugin.


-
View User Profile
-
Send Message
Posted Feb 16, 2013@XxkmachoxX
Your problem is that your using functions you shouldn't be from a thread outside the main thread.
You need to change your 'lootChests' HashMap into a ConcurrentHashMap to be able to access it in Aysnc and you should not be refilling a chest in any other thread but the main thread.
Before you run your tasks you should run refill() separately (In the main thread)
I am pretty sure Bukkit does not care what you do with its async threads. Just use them, I am sure its the above which is causing your problem.
-
View User Profile
-
Send Message
Posted Feb 16, 2013@Waterworth12
Apparently Bukkit requires the use of their thread for delayed tasks, so I think I've finnaly found the real problem. Will try to upload today.
-
View User Profile
-
Send Message
Posted Feb 16, 2013Server crashed once again even after updating Java, caused by Loot. There is clearly something wrong here as before you began updating again the plugin was perfectly fine, what is the issue?
http://pastebin.com/gjrNm9H0
-
View User Profile
-
Send Message
Posted Feb 15, 2013You can give source code?
-
View User Profile
-
Send Message
Posted Feb 15, 2013@Deckerzmc
So you're using the '/loot help' command and that's all that pops up? Did you add the necessary permissions?
-
View User Profile
-
Send Message
Posted Feb 15, 2013You got a continuity error there :D
What is it. guess what no comands!
Commands:
-
View User Profile
-
Send Message
Posted Feb 14, 2013@ActimelPL
Its probably an error in the configuration. Post it so I can help :)
-
View User Profile
-
Send Message
Posted Feb 14, 2013Im getting spammed by many errors in a row, of this kind, causing server crash:
-
View User Profile
-
Send Message
Posted Feb 13, 2013@serfma
There are enchantments for weapons/armor and potion effects that do not exist on bukkit (or at least arent named the same). I made a list under "Notes" that tells you what name to use for the enchantments and potions :)
Edit: Changed header to "important" and placed under "How it works", hopefully it will make it more noticible :P
-
View User Profile
-
Send Message
Posted Feb 13, 2013So we're having a huge problem. For some reason, the config file (I believe) contains something it doesn't like that we've put, and it's just freaking out and spamming the console. Can you please help?
Here's the config.yml:
-
View User Profile
-
Send Message
Posted Feb 13, 2013@theprint
Do you have the latest version of java? You can always find it here.
-
View User Profile
-
Send Message
Posted Feb 12, 2013@XxkmachoxX
... Okay, I installed KBPL and reloaded the server. But KBPL throws an error as well...
-
View User Profile
-
Send Message
Posted Feb 12, 2013@XxkmachoxX
Thank you. I don't know how I missed that. D'oh!
-
View User Profile
-
Send Message
Posted Feb 12, 2013@theprint
You need KBPL (Theres a link just under the title)
-
View User Profile
-
Send Message
Posted Feb 12, 2013The plugin won't load at all for me (using latest recommended version of both Bukkit and Loot - for MC 1.4.7). I get the following errors:
-
View User Profile
-
Send Message
Posted Feb 11, 2013@CommodoreAlpha
Hmmm... with the way I redid the code I can see the per-player chest working. When I'm not too busy with work and whatnot I'll look into both of these ideas :)
-
View User Profile
-
Send Message
Posted Feb 11, 2013I've some ideas! (Well, it's not my idea, it's more stolen from PhatLoots, but oh well.)
A command to designate a chest as a "Loot" chest, which means that each player who opens it will get to see a version of the chest just for them. Basically, when a player opens a chest, the chest will generate a set of items on the fly (based on the sign below), but that set of items will only be visible to the player opening it. When another person opens it, they see a different set visible only to them. This is to prevent unfair looting, in which one person quickly loots everything while others may be looking inside, while giving a unique set of loot to each players, since the items are generated randomly, but from the same list of items.
This might be out of the scope of this plugin, but looting money/xp from chests. There's two ways it could work. Upon opening the chest, the player can automatically receive a (configurable) amount of money/xp.
Or, the plugin can "make" an item (using NBT tags) to represent money/xp, so that when a player pulls out that item, they receive the money/xp. For example, I can configure it so that "Gold Bullion" (with a data value of a gold ingot) can spawn in chests, and have it so that whenever I pull it out, I will receive anywhere from $500-$1000. Of course, the xp/money reward range, data value, and names of these "items" should be configurable.
-
View User Profile
-
Send Message
Posted Feb 10, 2013@tpkako
No, there's no setting for the entire world for that. I'll see about adding it but for now I'm very busy working on other projects and studying :P
-
View User Profile
-
Send Message
Posted Feb 10, 2013So... Is setting how many chest slots the plugin can fill a setting? Am I missing it? I mean for how the plugin can fill ALL chests in the world if you add the world name.
-
View User Profile
-
Send Message
Posted Feb 10, 2013@peppercoco
Agh! It was a dumb error on my part. List now contains available effects :)