OtherDrops

226k Downloads

request: trigger on actions of eating food / drinking potions

israelcurtis opened this issue ยท 4 comments

commented

... its all I'm missing to be able to complete my complex scripts for infection/disease/healing/antidotes

commented

Unfortunately there's no bukkit event for eating/drinking. You can fake it with a rightclick trigger per below:

  ANY:
    - action: rightclick
      drop: DENY  # this makes sure the last item will disappear
      toolconsume: 1
      tool: APPLE
      potioneffect: speed@200@2

I will keep an eye out for an event/alternative methods.

commented

Turns out there is an itemconsume event in the newest releases of Bukkit...

commented

how convenient ;-)

commented

Fixed in b21fec8 (dev build 57).