SpongeAPI icon indicating copy to clipboard operation
SpongeAPI copied to clipboard

Allow Plugins to Mutate XP for Block Breaks & Entity Deaths

Open DarkArc opened this issue 10 years ago • 2 comments

There are currently no good ways to mutate the amount of experience dropped when a block is broken, or an entity dies.

Note: This may also affect other areas of the API.

DarkArc avatar Dec 20 '15 07:12 DarkArc

@DarkArc

Entity XP orbs are just, well, entities. IF the cause/contextual data is correct and you know WHY the XP orb is spawning, this is a non-issue (as you'd grab the Entity and adjust its data).

Is that not the case or?

Zidane avatar Dec 20 '15 17:12 Zidane

@Zidane It's not quite the case, as increasing/decreasing the XP may result in more XP orbs in Vanilla which is a different effect than increasing the XP value of the orb.

DarkArc avatar Dec 21 '15 02:12 DarkArc