- Fix NullPointerException when custom drop doesn't contain any items
- Add custom XP drops and commands
You can now overwrite how much experience is dropped and define commands that are executed when certain mobs die. The example below makes the Ender Dragon drop 800 experience and grants the killer regeneration for 12 seconds via command.
Code (YAML):
custom_drops:
enabled
: true
mobs:
- type
: ENDER_DRAGON
xp
: 800
commands
:
- 'minecraft:effect give @p regeneration 12'
Note: The Ender Dragon will always drop at least 500 experience, so lower values won't work have an effect for this mob.