quilt-standard-libraries icon indicating copy to clipboard operation
quilt-standard-libraries copied to clipboard

Item Interaction Events

Open Leo40Git opened this issue 2 years ago • 2 comments

As the name implies, this adds events that fire when using items.

This PR adds the item_events module.

TODO

  • [x] "Used" event
  • [x] "Used on block" event
  • [x] "Used on entity" event
  • [x] "Finished using" event
    • Not actually sure what uses this. Bows and crossbows, maybe?

Leo40Git avatar Aug 22 '22 15:08 Leo40Git

Moved to item_events!

Leo40Git avatar Aug 23 '22 10:08 Leo40Git

Hm it all looks good, but what is your opinion on a adding generic UseItem event as well? One that fires when the 'use' method is called? Maybe an 'inventoryTick' event as well, although that's not really an interaction and is therefore not in line with this PR's description.

My point is, this can be expanded. We should look into that.

0xJoeMama avatar Aug 24 '22 08:08 0xJoeMama