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.
Sorry, hadn't noticed. Rebooted, and having about 10 people Mess around with Loot as much as they can.
@Enkious
I can't use that information because the code has changed a lot since that version. When version 2.2.0 is up, can you please update? that way if the error persists, you can post that info and I can fix it :)
@MrMightyGnome
Not at the moment, but I guess I could add that. I'll wait until an update of Enkious though, that way I can kill 2 birds with one stone ;)
wait if i use the item ID one, can i use data values? EX: 268:15 ?
13:32:21 [SEVERE] Could not pass event PlayerInteractEvent to Loot org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:462) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven t(CraftEventFactory.java:177) at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j ava:331) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:649) at net.minecraft.server.Packet15Place.handle(SourceFile:58) at net.minecraft.server.NetworkManager.b(NetworkManager.java:281) 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:583) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at me.kmacho.bukkit.loot.LootListener.getContents(LootListener.java:122)
at me.kmacho.bukkit.loot.LootListener.onPlayerInteract(LootListener.java :89) at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:330) ... 16 more
For you dev Happens when people Disconnect from the server. ;p
@DayMC
Done and...
@Gnomeo76
Done!
You have to wait until v2.2.0 is approved though
@damnitimlost
Here you can see a list of all the items in minecraft: http://www.minecraftwiki.net/wiki/Data_values
Apparently you're supposed to name it raw_porkshop or cooked_porkshop, but if it keeps giving you problems then you can always use the item ID instead.
Hello, how would I configure it to give a porkchop? Seems to create an error when I add it to the list.
@mrbean888
Take your world off the 'worlds' list in the configuration file
@Gnomeo76
I actually forgot to add this in the last version >.< Adding in a moment as a patch :)
Nice Plugin! Can anybody say me, how i can turn off, the random fill of chests without the sign? I dont want the random refill on normal chests. only the one with sign
Could you please add an option in the config to deactivate enchants, or limit them? By the way, I really like your plugin, I've been looking for one like it for a while.
@DayMC
I've already had some people request this feature before... guess I'll work on adding this. It wont be using a command though, as that will mean storing the coordinates of chests in a config and it could end up getting pretty messy. I'll probably make use of the last line in the sign... maybe a number which indicates how far up it will affect chests?
I love the plugin, going to use it for my server. I only wish that I could perhaps do a /l link <listname> on a chest, because some chests that I want to restock would be on the second floor, so the sign would be visible.
Thanks for the great plugin btw.
Ah, sweet! Thanks for the quick reply! It does seem rather silly to change them though. Silly Bukkit...
Fixed!
Still getting same error D:
<<code lua>>
uncommon: inheritance: common items: - cookie,1,10,12 - potion,1,1,2 - chain_helmet,1,1,5 - chain_chestplate,1,1,5 - chain_leggings,1,1,5 - chain_boots,1,1,5 - apple,1,1,3
iron: items: - cookie,1,15 - iron_sword,1,1,6 - iron_chestplate,1,1,4
food: items: - cookie,1,1,54 - apple,1,1,15 - wood_sword,1,1,55 - leather_chestplate,1,1,21
weapons: items: - bow,1,1,15 - arrow,1,6,15 - stone_sword,1,1,25 - wood_sword,1,1,55
diamond: items: - diamond_sword,1,1,5 - diamond_Helmet,1,1,5 - diamond_chestplate,1,1,5 - diamond_Leggings,1,1,5 - diamond_Boots,1,1,5
<</code>>
@Ikuzei
Done! You can find the link in the 'Notes' section of the description :)
@Ikuzei
I just found out the guys at bukkit decided to make their own enchantment names, so 'aqua_affinity' in bukkit is 'water_worker'. I have no idea why they did this, but I'm going to post a link to the bukkit versions of the enchantments
@littlefirebite
Here's the problem:
common:
items:
- apple,1,1,12 - chain_chestplate,1,1,5 <- there
it should be like this:
- apple,1,1,12
- chain_chestplate,1,1,5
Sorry to bother you but, there is a problem. heres my config:
The weird thing is I get this error:
whenever I try to open chests! please help!
Hey, just downloaded the plugin and loving it, but I'm either confused about the enchanting aspect, or it doesn't work quite right.
I was messing around trying to see how it works and I ended up making this list:
custom: detailed: true items: 'iron_sword': spawn: '100,1-2' effects: - fire_aspect,1-2,100 'iron_helmet': spawn: '100,1-2' effects: - aqua_affinity,1-2,100
It spawns both the sword and helmet, but only the sword has an enchant. Did I do something wrong while adding the helmet to the list? Or are armor enchants not implemented yet?
Thanks for the help when it comes around. :P I was just confused and trying to help you notice a potential problem!