Mob Inventory
Mob Inventory - A easy configurable and light weight Plugin to adjust the Monster inventories
This plugin will allow you to edit the Inventory for every Monster (1.3.2) and add items which they can drop with a percentage
(all chances should be 100% or 1000% together nothing like 150%)
you can use floats like 0.010% as percentage
you can edit how many stacks they drop and how many items per stack can drop
Download:
Important!!!
In the SpiderInv i made a Syntax mistake. change the ":" form chance under Spider eye to ";"
This build should run with 1.4.2 but it is not tested
Requires:
- For money it need Vault
Add a Monster
You need to add this in you MobList.yml:
Entity;EntityName Inventory;InventoryName
an option but not needed:
Max amount of dropped stacks; <- Is improtant else this part get´s ignored 1;90% <- How many Stacks it is only one with 90% chance 2;10% <- Two with 10% chance : <- Important to end this part
Add a inventory
You need a yml File the name doesn´t matter and add this:
ItemID;ItemID/PackageName //When you want that he drops nothing write here "null" chance;Chance for this item to get dropped(must end with an "%") // Should be 100% with all other Items in the inventory
an option but not needed:
Max amount of dropped items; <- Is improtant else this part get´s ignored 1;90% <- How many item the stack contains here it is only 1 for 90% 2;10% <- Two with 10% chance : <- Important to end this part
Add a package
You create a new .yml file in the package Folder , the name doesn't matter, then you can do it like in a Inventory. Add some like:
ItemID;ItemID // When you want that it drops nothing write here "null" chance;Chance for this item to get dropped (must end with an "%") // Should be 100% with all other Items in the package
Then you only need to add the package name in a inventory like:
ItemID;PackageTest chance;70%
and then it will take a random Item out of the package (the Item with the highst percentage has the best chance to get dropped)
Add Money
You can add "Money" as ItemID in inventories or packages
ItemID;Money chance;40%
with:
Max amount of dropped items; 20;20% 30.50;20% 10;40% :
You can control the amount of Money you can earn
Command:
/miReload <- Reload the Configs
In planing:
-Make it possible to change the "You get xx$" message
I hope you enjoy this plugin, if you have any questions feel free to ask! Sorry for my bad english :)
-
View User Profile
-
Send Message
Posted Oct 29, 2012At every one which get errors like drdeft , please download the new version ->1.2<- (In the description when the file is not approved yet) and delete the pre installed inventories folder this should fix it :)
-
View User Profile
-
Send Message
Posted Oct 29, 20122012-10-29 12:01:54 [SEVERE] Could not pass event PlayerDeathEvent to Mob Inventory v1.0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341) 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.callPlayerDeathEvent(CraftEventFactory.java:322) at net.minecraft.server.EntityPlayer.die(EntityPlayer.java:311) at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:663) at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:595) at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:353) at net.minecraft.server.Explosion.a(Explosion.java:166) at net.minecraft.server.World.createExplosion(World.java:1685) at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:767) at net.minecraft.server.EntityCreeper.h_(EntityCreeper.java:77) at net.minecraft.server.World.tickEntity(World.java:1369) at net.minecraft.server.World.entityJoinedWorld(World.java:1331) at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:533) at net.minecraft.server.World.playerJoinedWorld(World.java:1321) at net.minecraft.server.World.tickEntities(World.java:1219) at net.minecraft.server.WorldServer.tickEntities(WorldServer.java:446) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:548) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:475) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NullPointerException at de.eistee2.mobdrop.MobDropEvent.MobDropChange(MobDropEvent.java:17) at sun.reflect.GeneratedMethodAccessor172.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.java:339) ... 23 more
-
View User Profile
-
Send Message
Posted Oct 28, 2012Okay , is in work ;)
EDIT:
Okay added Support with Vault but it needs approval ...
Download link in the description
-
View User Profile
-
Send Message
Posted Oct 27, 2012Add a Economy system. :P