How to check last player that interact with specific block?

Started by yarikovall on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check last player that interact with specific block?

I want to make an item that, when right-clicked on a block, sends the player's nickname. At first, I thought I could store it in the block's NBT tag, but most vanilla blocks aren't block entities and can't hold NBT data. How can I do this?