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 :)
is it possible to have monsters drop items with sub-data values like dyes?
For example, Purple Dye is 351:5 Is there a way I can make a monster drop purple dye?
Thanks!
Looks bad with a update currently, to much work currently:
School : PHP Work: Android app Other project by me: Minebuilder and a Server control for mw3
To much work sorry may I can update it when I have finish the Android project and I'm allready need to long for this app .~
@dotcurrency
Sorry that there is no update allready q.q Have so much shit to do for school etc. :/
@dotcurrency
Hmmmm they have armor in the pre installed inventorys, else its may a bug from bukkit when this problem exist on the next update please write me a pm :)
@Eistee2
Okay thanks. I just substituted golden apples with potions. Also for some reason zombies still drop armor they spawn with
@dotcurrency
yeah potion drop is a bit difficult I will try to add this ASAP
Is it possible to make potions drop?
Potion ItemID;373:8197 chance;100% Max amount of dropped items; 0;80% 1;10% 2;5% :
Doesnt work
Hello I'm currently short with my time, I have two classtests this week and I need to finsh a research paper which make me much toruble I will update it ASAP in the holidays
sincerely Eistee²
Just wanted to make the hint that pigs also drop money even when you only configure monsters / aggressive mobs to drop money. Could depend on the same problem as to why craftbook's mobspawn-signs suddenly spawn pigs instead of zombies (apparently bukkit-side).
@Lukas152
Yes I can make a video but I don't know if it will be this weekend my headset makes annoying noises and my Laptop is currently in repair :/
Give me a week :)
Könnten Sie ein Video?
Send you a pm
Any one else with this problem?!
EDIT:
Config mistake :)
@Eistee2
Thanks, but I'm having this severe problem. The plugin is constantly causing my server to crash. Here is the server log; and here is the crash report. Please fix this asap!
@nhoclesnar
It currently only edit the drops doesn't matter what they wear I hope the first Recommeded Build for 1.4 have a API for this :)
@Eistee2
Ah, I understand now. English isn't my main language either so I'm very understanding. Thanks for the clarification :)
P.S. Oh, one more question. So how can I make zombies have random chance to wear iron helmet, skeletons wear leather helmet, etc? Is it possible at the moment?
@nhoclesnar
Hello , yes you can edit the Pre installed inventories or you can make your own it only need to be a .yml file
The packages contains more Items but is treated as one in the Inventory.
You have added the armorPack to any inventory you have a xxx% chance to get the package and than it choose a random item(same way like in the inventories) from the package I hope this help you
Sorry for the bad explanation my english is not the best but I will try my best and edit the description soon
Can you give us better explanation of which does what? If I understand your files correctly, you can edit the pre-installed inventories to make mobs change their drops. The packages in ItemPackage indicates the chance mobs are equipped with items, and with which items. Those packages apply to all mobs that can equip items.
Please correct me if I'm wrong. I just want to have mobs drop custom items and have random chance to wear armors, but the numerous files totally got me confused.
All bugs fixed! Good work!!! Thank you =)))
Please download the version 1.3 https://dl.dropbox.com/s/uq0whzwqlo237i8/Mob%20Inventory-1.3.jar?dl=1
This should fix the bugs (but you need to delete the preInstalled inventories again or only delete Enderman and Ocelot when you have the inventories from 1.2) I´m really sorry for this many mistakes from my side ! :/
I was killing zombies and endermans in Ender world and had got this errors Here are all my configs and logs:
http://gamai.ru/tmp/report.txt
http://gamai.ru/tmp/errors2.zip