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 Apr 3, 2013@bukkitdevJC
Hmmm, I have not tested it with bPermissions, so I'll have to get back to you on that.
@r416alex
Nope, it would be:
ink_sack: properties: data: 2Or if you want a random color:
ink_sack: properties: data: '0-15'-
View User Profile
-
Send Message
Posted Apr 3, 2013Please add the possibility of decimal numbers in the next update !!!!
-
View User Profile
-
Send Message
Posted Apr 3, 2013@XxkmachoxX
so it would be ink_sack:2 ?
-
View User Profile
-
Send Message
Posted Apr 3, 2013Having a permissions issue with the /loot name command. Running it from the client I get permissions denied. My bpermissions look like this for the user.
mygamename:
permissions:
- bloodmoon.admin.start
- bloodmoon.admin.stop
- cwd.check.other
- cwd.check.self
- cwd.reset.self
- cwd.reset.self.total
- simplechestlock.command.as
- simplechestlock.command.reload
- simplechestlock.command.save
- simplechestlock.command.status
- simplechestlock.command.trust
- simplechestlock.lock
- simplechestlock.locklimit.playerlimit
- simplechestlock.usecombo
- vtriggers.admin
- loot.sign.create
- loot.sign.break
- loot.command.name
- loot.command.reload
groups:
- tc
-
View User Profile
-
Send Message
Posted Apr 3, 2013@bukkitdevJC
You can use the command '/loot name' to find out the valid name for the held item. For 'wooden_sword' it would be 'wood_sword'. Idk why but bukkit likes to make up their own names for items.
@r416alex
Dyes all use the same item, but with a different data value. If you want for example 'cactus green' dye, you need to have on the list an ink_sack with a data value of 2. To see all the data values look for ink sac on the minecraft wiki page.
-
View User Profile
-
Send Message
Posted Apr 3, 2013Hi, how do I make different color dyes spawn in the chest it just calls them all ink_sack?
-
View User Profile
-
Send Message
Posted Apr 2, 2013I am having issues with item names. Is there a list somewhere with valid items I can add with their names? Like wooden_sword. I would have thought that would be a valid name, but its not.
22:41:35 [INFO] [Loot] Error generating items. See above for details.
22:41:35 [INFO] [Loot] If there are no errors above, report this bug:
22:41:35 [SEVERE] java.lang.NullPointerException
22:41:35 [SEVERE] at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:88)
22:41:35 [SEVERE] at me.kmacho.bukkit.loot.list.item.LootItem.generateItem(LootItem.java:93)
22:41:35 [SEVERE] at me.kmacho.bukkit.loot.list.LootList.generateLoot(LootList.java:141)
22:41:35 [SEVERE] at me.kmacho.bukkit.loot.list.LootList.getContents(LootList.java:87)
22:41:35 [SEVERE] at me.kmacho.bukkit.loot.list.LootList.getContents(LootList.java:107)
22:41:35 [SEVERE] at me.kmacho.bukkit.loot.list.LootList.getContents(LootList.java:107)
22:41:35 [SEVERE] at me.kmacho.bukkit.loot.list.LootList.spawnLoot(LootList.java:58)
22:41:35 [SEVERE] at me.kmacho.bukkit.loot.LootListener.refill(LootListener.java:155)
22:41:35 [SEVERE] at me.kmacho.bukkit.loot.LootListener.onPlayerInteract(LootListener.java:146)
22:41:35 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
22:41:35 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
22:41:35 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
-
View User Profile
-
Send Message
Posted Apr 2, 2013@XxkmachoxX
Lol hate to bother you but I still cannot get enchantments functional. I have no idea why. I have done trial and error for no joke, 6 hours now xD For the next release could you possibly make a more reliable enchantment configuration? I know I sound stupid but I just simply cannot make this work. Thanks!
-
View User Profile
-
Send Message
Posted Apr 2, 2013@binary100
Well, I meant the list that you're trying to spawn in the chest configuration, but this also has an error.
This is what you have: worlds: NameOfWorld:horizon ListName:common time:5 When it should be like this: worlds: horizon: common: time:5Fix that, retry, then if the issue persists, post the configuration for the 'common' list (or whatever list you're trying to spawn in a chest)
-
View User Profile
-
Send Message
Posted Apr 2, 2013The error is still happening here is the config for common
http://pastebin.com/e5MQkMt9
and here is the new config file
http://pastebin.com/A2umguAc
I fixed the error: Could not pass event playerinteractevent to loot 3.2.0 by deleting spaces in the config file. "http://pastebin.com/fifwhnFk" Heres my config file but now i have the error:
19:06:31 [SEVERE] Error occurred while enabling Loot v3.2.0 (Is it up to date?) java.lang.NullPointerException at me.kmacho.bukkit.loot.LootConfiguration.getItemList(LootConfiguration .java:144) at me.kmacho.bukkit.loot.list.LootList.generateItems(LootList.java:36) at me.kmacho.bukkit.loot.list.LootList.<init>(LootList.java:30) at me.kmacho.bukkit.loot.LootConfiguration.getLists(LootConfiguration.ja va:68) at me.kmacho.bukkit.loot.LootConfiguration.<init>(LootConfiguration.java :33) at me.kmacho.bukkit.loot.LootCommand.<init>(LootCommand.java:33) at me.kmacho.bukkit.loot.Loot.onEnable(Loot.java:34) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:381) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugin(CraftServer.jav a:282) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.enablePlugins(CraftServer. java:264) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.<init>(CraftServer.java:21 8) at net.minecraft.server.v1_5_R2.PlayerList.<init>(PlayerList.java:56) at net.minecraft.server.v1_5_R2.DedicatedPlayerList.<init>(SourceFile:11 ) at net.minecraft.server.v1_5_R2.DedicatedServer.init(DedicatedServer.jav a:105) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java :381) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:5 73)
-
View User Profile
-
Send Message
Posted Apr 2, 2013@stickerking
Don't worry, setting up these lists can be confusing :)
Does this error occur with the stack amount, effect lvl's or data range? Eigther way, I can't replicate this error, so post your config as it may be an error there
-
View User Profile
-
Send Message
Posted Apr 1, 2013alright so i recently posted looking for help in what i was doing wrong in my code. After working it out (and by it i mean the numerous issues i had) I would understand if anyone that saw that comment had the insatiable urge to throttle me. i would like to know however why when i use an item limit of any kind it dosent adhere to the lower number. if i put 3-4 items i get 2 if i put 5-6 i got 2. if i put 4-9 i got 3
-
View User Profile
-
Send Message
Posted Apr 1, 2013@Waterworth12
Its whatever you want the list name to be and what you put on the second line of the sign.
-
View User Profile
-
Send Message
Posted Apr 1, 2013@XxkmachoxX
In the lists folder, what is the name of each .yml file?
-
View User Profile
-
Send Message
Posted Apr 1, 2013@Waterworth12
There's a couple of examples in the lists folder provided in the download. Also go to 'The configuration file' page for details on what each property does. Other than that, there's not much else I can do. If there's something more specific you don't understand, just ask here :)
-
View User Profile
-
Send Message
Posted Apr 1, 2013Hey,
I don't quite understand how the new listing etc. works I've been using the old configuration for a long time, any advice?
-
View User Profile
-
Send Message
Posted Apr 1, 2013Alright guys, today I'm gonna be all day at the university, so I'm going to have to take a look at all these errors tomorrow. They are probably caused because of the implementation of the new world lists though, as that was the biggest change in the code for the last update.
-
View User Profile
-
Send Message
Posted Mar 31, 2013Hello i was wondering if you could help me i don't know what is causing this error: Could not pass event playerinteractevent to loot 3.2.0 This happens every time I open a chest in a loot world.
-
View User Profile
-
Send Message
Posted Mar 31, 2013Hey :) Thanks for your plugin i love it! I just have an error if you have the time to help me: 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) 2013-04-01 03:05:12 [INFO] [Loot] [0;31;1mError loading item 'diamond_sword' from the list 'common'. 2013-04-01 03:05:12 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 1 2013-04-01 03:05:12 [SEVERE] at me.kmacho.bukkit.loot.list.item.LootItem.decipherProperties(LootItem.java:55) 2013-04-01 03:05:12 [SEVERE] at me.kmacho.bukkit.loot.list.item.LootItem.2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.chat(PlayerConnection.java:884) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:841) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.Packet3Chat.handle(Packet3Chat.java:44) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.NetworkManager.b(NetworkManager.java:292) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java:110) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.DedicatedServerConnection.b(SourceFile:30) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:578) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:474) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:407) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) 2013-04-01 03:05:12 [INFO] [Loot] [0;31;1mError loading item 'bow' from the list 'common'. 2013-04-01 03:05:12 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 1 2013-04-01 03:05:12 [SEVERE] at me.kmacho.bukkit.loot.list.item.LootItem.decipherProperties(LootItem.java:55) 2013-04-01 03:05:12 [SEVERE] at me.kmacho.bukkit.loot.list.item.LootItem.2013-04-01 03:05:12 [SEVERE] at me.kmacho.bukkit.loot.LootCommand.playerCommands(LootCommand.java:50) 2013-04-01 03:05:12 [SEVERE] at me.kmacho.bukkit.utilities.CommandManager.onCommand(CommandManager.java:37) 2013-04-01 03:05:12 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 2013-04-01 03:05:12 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:187) 2013-04-01 03:05:12 [SEVERE] at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchCommand(CraftServer.java:523) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.handleCommand(PlayerConnection.java:966) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.chat(PlayerConnection.java:884) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:841) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.Packet3Chat.handle(Packet3Chat.java:44) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.NetworkManager.b(NetworkManager.java:292) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java:110) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.DedicatedServerConnection.b(SourceFile:30) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:578) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:474) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:407) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) 2013-04-01 03:05:12 [INFO] [Loot] [0;31;1mError loading item 'gold_nugget' from the list 'common'. 2013-04-01 03:05:12 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 1 2013-04-01 03:05:12 [SEVERE] at me.kmacho.bukkit.loot.list.item.LootItem.decipherProperties(LootItem.java:55) 2013-04-01 03:05:12 [SEVERE] at me.kmacho.bukkit.loot.list.item.LootItem.2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:474) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:407) 2013-04-01 03:05:12 [SEVERE] at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) 2013-04-01 03:05:12 [INFO] [Loot] [0;31;1mError loading item 'potion' from the list 'common'.
And this is the list that i use for the chest(name: pvp): items: iron_ingot: spawn: chance: 20 stack: '1-2' diamond: spawn: chance: 20 stack: '1-2' gold_ingot: spawn: chance: 15 stack: '1-2' seeds: spawn: chance: 30 stack: '5-10' arrow: spawn: chance: 40 stack: '1-10' diamond_sword: spawn: chance: 10 stack: '1-1' cooked_beef: spawn: chance: 30 stack: '1-2' cookie: spawn: chance: 30 stack: '1-10' melon_seeds: spawn: chance: 10 stack: '1-3' tnt: spawn: chance: 20 stack: '1-2' bow: spawn: chance: 30 stack: '1-1' mushroom_soup: spawn: chance: 20 stack: '1-2' apple: spawn: chance: 20 stack: '1-5' bread: spawn: chance: 20 stack: '1-5' gold_nugget: spawn: chance: 20 stack: '1-1' potion: spawn: chance: 15 stack: '1-1' effects: random1: chance: 100 lvl: '1-2' splash: true extend: true potion: spawn: chance: 15 stack: '1-1' effects: random1: chance: 100 lvl: '1-2' splash: false extend: true
Tanks for your help :)
-
View User Profile
-
Send Message
Posted Mar 31, 2013Would this effect the survival games plugin? it would be pretty neat to setup like our things for example the items you receive from chests in the hungergames, especially enchanted items, add more of a twist