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.
@XxkmachoxX
Alright, Thanks
@XxkmachoxX
Cheers.
My problem with this plugin is the fact that you cannot use item ids. Like if i were to try to spawn damaged armor I would put 302:125 With this plugin it does not work. If you would add item id support (damaged items) that would be great!
@xclucky
This has been fixed in the newest version :D
@maanobbah97
Well, that depends entirely on how you set up the configuration. What are the chances for each item to spawn in a chest?
@toffster
If the world where this happens is named 'world', it will generate items on empty chests because that world is in the worlds list. That list is for worlds that you want chests spawning items w/o a sign placed under it.
Simply remove this:
world:
time: 10
lists:
- common
- uncommon
if you don't want items from the lists 'common' and 'uncommon' spawning in you chests.
hi, i have the plugin working fine except for 1 thing, about 50% of the chests are empty. how can i fix that?
worlds:
world:
time: 10
lists:
- common
- uncommon
common:
detailed: false
items:
- iron_sword,0,1,5,true
- leather_chestplate,0,1,20,true
- leather_leggings,0,1,20,true
- leather_helmet,0,1,20,true
- leather_boots,0,1,20,true
uncommon:
inheritance: common
detailed: true
items:
'3':
spawn: '100,3-6'
effects:
- damage_arthropods,1-2,100
potion:
spawn: '100,3-30'
effects:
- speed,1-2,100,true,true
Also chests in the world randomly spawn splash potions of speed and dirt as well.
I am getting an error with the version 2.2.0 of Loot on craftbukkit 1.3.1-R1.0.
I did notice that Loot updated to 2.2.1, however, I figured I would post in case it hasn't been fixed in that version (didn't see anything in the changelog about this)
@toffster
Could you post the entire config.yml? And change the markup type to 'plain text' , that way it will appear the same way it appears in the configuration.
Hi I installed this plugin on my server earlier and I've updated the common item list with the following: common: detailed: false items: - iron_sword,0,1,5,true - leather_chestplate,0,1,20,true - leather_leggings,0,1,20,true - leather_helmet,0,1,20,true - leather_boots,0,1,20,true
However when a sign is associated with a chest I get completely random items, for example I found 5 dirt and 12 speed potions in one once. Any idea what is wrong?
Thanks in advance for any help! TOFFster
@MrMightyGnome
fixed 2 bugs, and added setting the data with each item. To set the data type just add '|aNumber' next to the name, like this:
itemName|dataNumber
(I had to use '|' instead of ':' because it would mess up configuration files)
what did you add in 2.2.1?
@Enkious
What is the problem exactly? Does it keep spamming that on the console?
Uploaded version 2.2.1! Like always, wait for it to get approved by bukkit.
@Enkious
Fixed. Gotta go to class now though, will test and upload new version when I'm out! :D
@twisted420mc
That's because the world you are in is in the list of worlds that will spawn loot automatically. By default in the config its 'world', so I guess I'll change that so people won't keep getting confused.
good plugin, but the only issue i see is that when a normal player places a chest, it spawns the loot in their chest aswell...this needs to be fixed before i will use this plugin
oh dear.. using 2.0.0 it says.... 21:29:10 [INFO] [Loot] Enabling Loot v2.0.0
16:16:07 [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.NullPointerException at me.kmacho.bukkit.loot.LootField.getWorlds(LootField.java:58) at me.kmacho.bukkit.loot.LootListener.onPlayerInteract(LootListener.java :89) at sun.reflect.GeneratedMethodAccessor45.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
This is happening at random. No users are online.
can you update the info? like the commands for the 2.2.0?