Plugin category: General Suggested name: Permission Crates What I want: Crates that drop from monsters with a configurable percent chance. These crates would be chests, that when clicked, would replace the chest with custom items using RPGitems or other compatible plugins that support attributes. Named items to be more specific. The crates would have tiers, tier 1, tier 2, etc. Each tier would drop for any player, but to open them would be permission based. The contents of the crate would give 1 of a list of configurable items. Ideas for commands: /crate give <playername> <crate teir> Ideas for permissions: crate.open.tier# crate.give.teir# or crate.give Configuration example: Name of crate: &3&lHero Description of crate: &4Crate of awesomeness Contents: (a random item or few items from this list would drop) Sword of Fire| sharpness 1, fireaspect 2 Helm of Breathing | aqua affinity 1 Some other item | enchantment Drop how many items: 2 Chance to drop: (In Percentage) 10 Teir Number: 1 (Used for permissions such as crate.open.tier1) List of mobs to drop from: (not needed, but would be cool) Enderman Zombie etc. When I'd like it by: before Christmas? :/
This sounds a lot like a plugin that is already out there. http://dev.bukkit.org/bukkit-plugins/christmastevent/ I hope that helps!
I overlooked that one! What I'm looking for is much like greencrate too, but that is broken and dupes things. My issue with christmasevent just by reading it is, permissions based crates are on a todo list I'll hit up the developer, thanks for finding this.
Not a bad idea, if it gets made at all. I found this as well http://dev.bukkit.org/bukkit-plugins/strange-weapons/ but it differs in many ways, however, does have permission nodes for opening crates (or using keys I guess)
I Will make one if you want i will tell you when done please add me on skype if you have any questions
I should have probably told this yesterday, but I also started working on this, and am pretty much done, I just need your opinion on how I should determine which tier crate to drop. Right now I'm just rolling a random number between 1 and the amount of tiers you've added to the config file, then rolling a random float and checking if that is less or equal to the chance of the crate dropping. I was also thinking of doing it so it would first try to drop the lowest tier crate, if that doesn't succeed, it continues to the next tier, and so on. The crate never has to drop, it's just a matter of luck. Edit: Also, this is the config looks like. Code: crates: tier: 1: # permission required to open the tier 1 crate permission: supplycrates.tier.1 # what mob can drop it. 'any' is self explanatory. mob: any # chance of it dropping, 0.10 would be 10% chance. chance: 0.10 # the chest contents, with the current setting, it would contain 1 cake. contents: - CAKE:1 2: permission: supplycrates.tier.2 mob: - CREEPER - ZOMBIE - SKELETON # 5% chance of dropping chance: 0.05 contents: - STONE_SWORD:1 - STONE_PICKAXE:1 # 1-10 is a random amount between 1 and 10 - PORK:1-10 3: permission: supplycrates.tier.3 mob: - GIANT # 1% chance of dropping chance: 0.01 contents: # chest would contain 1 diamond sword with sharpness 3 - DIAMOND_SWORD:1;DAMAGE_ALL:3
Im not sure how to explain it, mostly because I dont fully understand how a percentage chance to drop would work on a global scale, needless to say, a monster should only drop one crate, so "per crate" percent chances would be ideal, but considering my previous statement, perhaps not. I would imagine 2 crates with 100% chances to drop would drop both, that would be bad. edit: Would this support picking 1 random item from a list of items to drop?
If you're talking to me, then no. I had that feature, but decided to remove it. I can add it back if you want. Edit: I added a config option for it, so it chooses random loot from the content list. Edit 2: I worked on it a bit more, and it's working now. Only thing I have to do is fix the random amount system in the chest contents. I'll fix this when I can, just remember to tag me because I forget things easily.