Drop Regulator
Plugin adds drop system to your server. Chances and custom drops can be modified in configuration file.
Features:
- Configure chance of drop
- Add custom drops to the mobs
- Check if mob is killed by player
Installation:
- Download plugin
- Put to plugins folder on your server
- Run or restart server
Permissions:
- dropregulator.reload
Configuration:
#DropRegulator configuration
wrong-args: '&cWrong command!'
no-perm: '&cYou do not have permission!'
reloaded: '&aConfiguration reloaded!'
#Chance of minecraft standart drop
drop_chance:
enabled: true
#Numbers are equal to percents
chance: 20
#Custom drops settings
custom_drops:
#Drop only when killed by player
only-player: false
#MOBNAME -> NUMBER -> CHANCE/ITEM/AMOUNT
ZOMBIE:
drop_1:
chance: 100
item: 'DIRT'
amount: 1
PIG:
drop_1:
chance: 100
item: 'STONE'
amount: 2
drop_2:
chance: 100
item: 'GOLD_INGOT'
amount: 3
how to disable iron/gold drops using this plugin?
Does the
drop_chance:
chance: 80
Overwrites each custom_drops? or it's there in case it's not defined?
In reply to JennerPalacios:
drop_chance works on standart drops only and it runs before custom-drops
Update for 1.16.1 pl0x, I'll show love <3
[19:27:45] [Server thread/ERROR]: Could not pass event EntityDeathEvent to DropRegulator v2.1
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:319) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at org.bukkit.craftbukkit.v1_16_R1.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:741) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.EntityLiving.d(EntityLiving.java:1438) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.EntityLiving.die(EntityLiving.java:1387) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.EntityLiving.damageEntity(EntityLiving.java:1234) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.EntityHuman.attack(EntityHuman.java:1064) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.EntityPlayer.attack(EntityPlayer.java:1658) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.PlayerConnection.a(PlayerConnection.java:1915) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.PacketPlayInUseEntity.a(SourceFile:74) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.PacketPlayInUseEntity.a(SourceFile:13) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.TickTask.run(SourceFile:18) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeTask(SourceFile:144) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeNext(SourceFile:118) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.MinecraftServer.aZ(MinecraftServer.java:943) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.MinecraftServer.executeNext(MinecraftServer.java:936) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.MinecraftServer.sleepForTick(MinecraftServer.java:920) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:852) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$0(MinecraftServer.java:164) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
Caused by: java.lang.IllegalArgumentException: No enum constant org.bukkit.Material.SKULL
at java.lang.Enum.valueOf(Unknown Source) ~[?:1.8.0_251]
at org.bukkit.Material.valueOf(Material.java:1) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
at me.NukerFall.DropRegulator.Listeners.MobDeath.onDeathEntity(MobDeath.java:37) ~[?:?]
at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_251]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_251]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:315) ~[spigot-1.16.1.jar:git-Spigot-ad703da-d77f4d9]
... 24 more
In reply to JennerPalacios:
That's not a bug, you have 'SKULL' drop from one of your mobs, but item was removed in 1.16, find a new id
Hello, can i add heads?
https://minecraft-heads.com/player-heads/animals/16269-cow
Dirt working
some help?
In reply to Forge_User_61344706:
No, you can't at this moment. I'll update this soon, thanks for reply
In reply to Forge_User_61344706:
These are only heads to drop, google ids. I don't want to add playerheads cuz it use nms, so will be triggered every update ;(
In reply to NukerFall:
chance configuration doesnt work, its like at 100% ... I've tried 1, 0.01, 0.00000001 and the items still drops; I have adjusted global percent, and also item percent, but they still dropping!
In reply to JennerPalacios:
custom drop and usual drop have separated chance
In reply to JennerPalacios:
fixed this bug, thanks for issue. Waiting for moderators to approve my change
Possible to Drop more XP?
In reply to JennerPalacios:
how do you see it?