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 May 11, 2013@suomenlippis
Give the guy a break, he has college and a job. Have patience, my friend.
-
View User Profile
-
Send Message
Posted May 11, 2013@darkaln
According to the pages of the thread that I have read, you should be able to use the item ID.
-
View User Profile
-
Send Message
Posted May 11, 2013Can someone help me or do I have to change to other plugin?
-
View User Profile
-
Send Message
Posted May 11, 2013Instead of using item names example iron_sword can we use their item ids?
-
View User Profile
-
Send Message
Posted May 11, 2013@broede
I'm using java 7 (apt-get install openjdk-7-jre)
-
View User Profile
-
Send Message
Posted May 11, 2013@suomenlippis
Is your Java up to date?
-
View User Profile
-
Send Message
Posted May 11, 2013Not working. Please tell me fix ?
11:22:43 [INFO] This server is running CraftBukkit version git-Bukkit-1.5.2-R0.1-1-g53734d2-b2774jnks (MC: 1.5.2) (Implementing API version 1.5.2-R0.2-SNAPSHOT) 11:22:44 [SEVERE] Could not load 'plugins/KBPL.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/kmacho/bukkit/utilities/main/KBPL : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_5_R3.PlayerList.<init>(PlayerList.java:55) at net.minecraft.server.v1_5_R3.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:106) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:382) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.UnsupportedClassVersionError: me/kmacho/bukkit/utilities/main/KBPL : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:634) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) at java.net.URLClassLoader.access$000(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:212) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:266) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ... 9 more 11:22:44 [SEVERE] Could not load 'plugins/Loot.jar' in folder 'plugins' org.bukkit.plugin.UnknownDependencyException: KBPL at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:195) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_5_R3.PlayerList.<init>(PlayerList.java:55) at net.minecraft.server.v1_5_R3.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:106) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:382) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
PS. If this is java releated please give me support to ubuntu becouse server runs on ubuntu 12.04 64bit
-
View User Profile
-
Send Message
Posted May 11, 2013@XxkmachoxX
Well, I double checked every item with /loot name and the items DO spawn at one point or another. I've opened enough chests and have seen at least one spawn of everything. But here's something crazy: I put my list of "set" items (if you're familiar with Diablo-type games, you know what I mean) at the top of the list just to test them out with 100% chance to spawn, and funny enough they only spawned once in a while. I am going to post screenshots and a pastebin of my d01_mid.yml file (the list used in this particular dungeon).
One other thing, I tried using the lore on the set items and they format unpredictably. I had an item named Fist of Toran and it named properly.
http://tinypic.com/r/2zxtc9d/5
But then I tried naming another item, and this was the result: http://tinypic.com/r/157gk5j/5
I didn't add those brackets (as the pastebin will demonstrate for another item). Any idea what's going on there? Anyway, then I came up with the idea for using color codes for specific types of gear like "rares" and "set pieces". Here's the results of the spawns from the set pieces. I tried them with and without the apostrophed names "Mordisan's" and the results were the same (just to rule out the apostrophe being the cause): This piece had the funny formatting, and I added the brackets hoping it wouldn't add more (to make it uniform for each set piece).
http://tinypic.com/r/243nfk0/5
These didn't even get named or have lore added at all! Consistently, among many attempts. http://tinypic.com/r/33yq844/5
http://tinypic.com/r/166x477/5
Please note that the only gold gear that can spawn in this list are the named items. Those screenshots are also from chests that were supposed to spawn 1 of each set item. As you can see, the chests never spawned all five, despite all of them being at the top of the d01_mid.yml file with a 100% chance to spawn. Pastebin of my list file: http://pastebin.com/QfV1d4rR
I really hope we can figure this out and I've already happily made a small donation in thanks for all the work you've put in thus far. As the server grows (thanks to plugins like yours), we will be continuing to make donations to the authors of these plugins. I know you are busy and we all appreciate your work making our Minecraft experiences so much more enjoyable!
-
View User Profile
-
Send Message
Posted May 10, 2013@broede 1. No, it has the be an error from the plugin. The min-max put on the sign indicates the amount of slots that will be filled in the chest, not exactly the amount of items it will spawn. Guess I should fix that in the pick xD. But just in case you already knew this and that the error is that you're getting more or less slots filled than specified, then I'll look more into this for the next update. Next week is going to be too brutal with finals though :/
Also yes, it does go through the items in order of the list, so that could work.
2. Seems to me that the plugin doesn't recognize one of the item materials in the list its trying to spawn. Make sure you have no typos and that if you're using id's that it has the correct id.
-
View User Profile
-
Send Message
Posted May 10, 2013Okay I did some more experimentation. I used 5-27 for line 4, and it had crazy results. I got a lot of spawns between those numbers and a few below. So this makes me wonder, even though I have about 40 items on the loot table... is it possible my spawn chances are just too low for reliable results?
If that's the case, I am curious how your plugin works. Does it check against each item in order that they appear in the config? If they do, I can simply put a few items at the end of the config that will spawn at 100% so that, no matter what, the chest will always have its minimum.
Could that be what's going on?
EDIT: Okay, I populated three chests with a loot sign together with different settings. Apparently, one of them gave me some errors I don't recall seeing before! It doesn't always give this error, but only some of the time. Interestingly enough, it continues to spawn loot despite these errors.
http://pastebin.com/n5mfUUGW
-
View User Profile
-
Send Message
Posted May 9, 2013@XxkmachoxX
Wow, I did not realize that, thank you, I'm glad to hear that!
I just opened our first small dungeon tonight and it seems that the players like it so far. I will be creating much larger dungeons in the near future. However, that line4 bug is the only hitch. I'm just working around it right now by putting a high minimum count.
Is it possible it is conflicting with an existing plugin or something? Our server uses AdminChannel, AdzNoDrop, AntiXRay, Backpack, ChestShop, CoreProtect, Decapitation, DropsToInventory, Dynmap, Enjin Plugin, Essentials, GroupManager, MasterPromote, MiningCash, MobBountyReloaded, Multiverse, Residence, SimpleVoteListener, TimedBroadcast, Votifier, WorldEdit.
It's not something I can't work with but I really hate having chests that spawn with only 1-2 items when it is set to have at least 5. lol
Anyway, again, great plugin, it seems to be doing the job perfectly so far. I might have to check out Soulbound soon. Thanks for your efforts and energy; I know you are a busy person.
-
View User Profile
-
Send Message
Posted May 9, 2013@broede
Well right now that's exactly how it works. When someone opens the chest, it already counts as looted, regardless of whether he emptied it or not. The moment the timer is finished and it opens, it clears any items currently in it and spawns new items.
-
View User Profile
-
Send Message
Posted May 9, 2013@XxkmachoxX
I'd appreciate it. Also, I have a suggestion. I want to incorporate these chests into dungeons for my players to explore, but the problem is, they may or may not clean the chest out. Is there some way to replenish the stock after certain intervals regardless? Such as by deleting the old contents if they were never cleared? I don't care how it works, just as long as they keep spawning regardless of being fully looted or not.
Anyway, so far so good on the plugin, just some little tweaks I think.
-
View User Profile
-
Send Message
Posted May 9, 2013@kaaleneet
Loot should work with the latest version of bukkit.
Also, don't worry, I'll be uploading a new version soon, that will be in a .zip folder with some example yml files since it is pretty complicated to set up :)
@broede
Hmmm... that's odd. Its working fine on my end :/
I'll look more into this for the next update, which should be soon.
-
View User Profile
-
Send Message
Posted May 9, 2013Hello @XxkmachoxX Is it possible for you to make a feature so that when you clicks the chest that it will despawn! Ander after the minutes that are standing on the sign that the chest would spawn back! Maybe you want to add me on skype. I also use MyZ an amazing plugin and in that config is the option InstantChest but that doesnt work with this plugin. So please add me on skype or add that feature :D Skype : gamequarterznl
Greetz, Franck van Velzen
-
View User Profile
-
Send Message
Posted May 9, 2013Wait.
Is Loot still 1.5.1? The plugin works on my server, but the version says 1.5.1...
-
View User Profile
-
Send Message
Posted May 9, 2013@broede
One of your lists. One of the .yml files in your lists folder. I would be really grateful if you could help me with that, because even with the config example and stuff, I don't get it.
-
View User Profile
-
Send Message
Posted May 9, 2013@kaaleneet
I'm sorry, a list of what?
-
View User Profile
-
Send Message
Posted May 9, 2013@broede
Hi, could you send me a list please? Mine don't seem to work. Thanks!
-
View User Profile
-
Send Message
Posted May 9, 2013Hey, GREAT plugin, thank you in advance for making this! Hopefully, if our server takes off, we can make donations to you for your incredible efforts.
That said, on to the meat of why I'm posting. My configurations and lists are all set up properly and working as expected, however the loot sign itself doesn't seem to be working. Here is what I put, followed by the actual results:
[loot]
d01_middle
1
3-7
Now, I tested this setup with several different "line 4s", and they all result the same. The first number is always the MAXIMUM amount of items generated. Is this supposed to be the case or am I missing something? I thought line 4 was supposed to be a range, from MIN to MAX. However, it is not doing this. What can I do to fix this? Thank you again!
EDIT: In fact, after testing with more line 4s, using 3-7:2 and 3-7:4 neither one worked, either. I placed extra blocks between the sign and the chest. Nothing spawned inside the chest at all!