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 Sep 23, 2012@Ha1luciNate
nowhere*
-
View User Profile
-
Send Message
Posted Sep 23, 2012@iamcion
Hmm.. it seems to me that its going on some sort of infinite loop. Can I see your configuration for a sec? I think I might know whats going on, but I'm not quite sure.
-
View User Profile
-
Send Message
Posted Sep 23, 2012@Dawid90dd
Heh, that was spot-on
I was using a byte value because I was using MaterialData which was restricted to byte, but I changed it to setDurability now, since it uses short instead of byte, so highter values will be available now. Thanks for the tip :)
-
View User Profile
-
Send Message
Posted Sep 22, 2012@XxkmachoxX
You have very big error with the Items data values.
If you want to change it to higher value than 127, you can't, because then its making data value negative. If i will type for example iron_sword:50, then i get iron sword with 50 data, but when i type for example iron_sword:200, then im getting iron_sword with data -73.
The place where this data is being assigned i think is the problem. I'm not sure how your code is looking, but i think you need to make variable diffrent type to allow it allocate more memory, i think byte have capacity from -127 to 127 so im thinking that you are using it in some part of code. You will need to change it to for example short integier which have like -30000 to 30000 (not sure how much exactly)
-
View User Profile
-
Send Message
Posted Sep 21, 2012Hey, Um. I am VERY interested in this plugin, i can create the loot signs, it works pretty good. but i when i open the chests with the loot sign under it., this is the error i get;
at me.kmacho.bukkit.loot.LootListener.getRandom(LootListener.java:478) at me.kmacho.bukkit.loot.LootListener.getContents(LootListener.java:275) and that just repeats like 60 times. (in console)
PLEASE HELP!
-
View User Profile
-
Send Message
Posted Sep 20, 2012Your fucking plugin erased the items in all the chests in my game, my items have all been replaced with the items that I configured. The chests were no where near the signs. Not even close...
0 / 10.
ThumbsDown
-
View User Profile
-
Send Message
Posted Sep 17, 2012@Immensepieguy
It seems like its the way you set up the configuration. Somewhere in it you typed in 'true' where there should be a min amount of items. I've been wanting to make clearer configuration instructions but haven't been able to get around to it. In the meantime, post your current configuration, so I can point out what you have wrong :)
-
View User Profile
-
Send Message
Posted Sep 17, 201209:31:07 [SEVERE] Could not pass event PlayerInteractEvent to Loot org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:355) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:649) at net.minecraftserverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:94) at net.minecraftserverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:94) at net.minecraft.server.Packet15Place.handle(SourceFile:58) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NumberFormatException: For input string: "true" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:449) at java.lang.Integer.valueOf(Integer.java:554) at me.kmacho.bukkit.loot.LootListener.getRandom(LootListener.java:423) at me.kmacho.bukkit.loot.LootListener.getContents(LootListener.java:275) at me.kmacho.bukkit.loot.LootListener.fillChest(LootListener.java:239) at me.kmacho.bukkit.loot.LootListener.onPlayerInteract(LootListener.java:161) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330) ... 18 more
PLEASE HELP
-
View User Profile
-
Send Message
Posted Sep 15, 2012@Evi1hamst3r
Have you considered using the sign settings instead of per world settings for the chests? (per world was meant more for worlds where players cant build). Even though I could add the function of ignoring player placed chests, I can't make it 'remember' what chests were placed by players if the server is shut down and brought back up, unless I made a file that would just keep adding coordinates of player placed chests. Also, I'm very busy with college and with my new part-time job I don't really have a lot of free time. I'm basically just passing by to fix bugs or update the plugin in case it gets outdated, but for now I'm just too busy to add new functions :(
-
View User Profile
-
Send Message
Posted Sep 14, 2012Okay, i have been experimenting and have found that it is coordinate based, but it adds loot before the time period is up and overites player made chests.
Could you please ad just two things to this awesome plugin:
settings so that chests placed by players on survival are exempt from the per world loot filling settings so that the loot can be added after the time period not before
you're the best
-
View User Profile
-
Send Message
Posted Sep 14, 2012Awesome mod, can u make it so it checks the contents of a chest before populating it? (in the per world loot bit) and also can you make it wait for the time period before adding items. On my bo2 oriented wasteland survival server we have had problems like overridden chest contents and loot spawning in chests as soon as they are created. my users just make chest and constantly gain items from destroying them. Am i using this mod the wrong way? or is this a glitch. your plugin is the closest to the one i need for my server. and it AWESOME :D
anyways, is there any other plugin that adds reoccurring loot to all chests not user placed on the map?
and btw, nice plugin :P
-
View User Profile
-
Send Message
Posted Sep 13, 2012@arnie2311
You should send that console error to the ChestShop plugin page, apparently its an error his plugin triggers when you attempt to change a sign. Its likely trying to read a sign from loot thinking its a ChestShop sign.
-
View User Profile
-
Send Message
Posted Sep 12, 2012your plugin isnt playing nice with chestshop
2012-09-12 15:05:19 [SEVERE] Could not pass event SignChangeEvent to ChestShop org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1299) at net.minecraft.server.Packet130UpdateSign.handle(SourceFile:46) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:578) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.IllegalArgumentException: Specified enchantment cannot be applied to this itemstack at org.bukkit.inventory.ItemStack.addEnchantment(ItemStack.java:301) at org.bukkit.inventory.ItemStack.addEnchantments(ItemStack.java:285) at com.Acrobot.Breeze.Utils.MaterialUtil.getItem(MaterialUtil.java:185) at com.Acrobot.ChestShop.Listeners.Block.SignChange.onSignChange(SignChange.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330) ... 14 more
-
View User Profile
-
Send Message
Posted Sep 10, 2012@virtusranger
Not at the moment... for now I'm concentrating on fixing any bugs anyone might find, college has me very busy :P
-
View User Profile
-
Send Message
Posted Sep 10, 2012@cainthegamer
Well, there's the loot.list.listname
replace listname with the uh... name of the list. Just remember that you can use the asterisk to allow everyone to open chests of any list
-
View User Profile
-
Send Message
Posted Sep 10, 2012@XxkmachoxX
D'oh! Thanks for your patience. :) Loot is now working very well and my sanity is saved (mostly).
-
View User Profile
-
Send Message
Posted Sep 9, 2012Is the loot different for everybody?
-
View User Profile
-
Send Message
Posted Sep 9, 2012you should Make a command Insted of a sign for loot Signs Are Hard Please do that for me!!!
-
View User Profile
-
Send Message
Posted Sep 9, 2012For some reason the people on my server cant open the chests is there a specific permission note ? and if so dus it require the name of the item list wich is armor
-
View User Profile
-
Send Message
Posted Sep 8, 2012@radiophonic
The last item on the 'common' list is 'iron_ingot' not 'iron_ignot' :)