1.15.2 Edit how much XP a grindstone gives

Discussion in 'Spigot Plugin Development' started by abandoncaptian, Feb 3, 2020.

  1. How would I go about editing the amount of XP a grindstone gives. I know there isn't an event for it so I'm wondering IF it is even possible.
     
  2. On the InventoryClickEvent, you can check if the user is grabbing from a grindstone
    Code (Text):
    && e.getSlotType() == InventoryType.SlotType.RESULT) {
    if (e.getClickedInventory().getType() == InventoryType.GRINDSTONE
     
    Not sure if the grindstone gives you XP, or drops orbs. If it gives you EXP, it probably fires the PlayerExpChangeEvent
    to which you can just cancel/edit that if the player's open inventory is a grindstone