How do you check who placed a block [Fabric]

Started by Ali_Alasfoor on

Topic category: Help with modding (Java Edition)

Last seen on 09:21, 31. Mar 2024
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you check who placed a block [Fabric]

I'm looking to make a fabric mod for minecraft server and i'm looking for a way to see what player placed that block.

Like you trigger a command and the produce gets the cords of the block that person is looking at and sends a message to that player who placed that block.

Last seen on 00:02, 16. Apr 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That isn't really possible I…
Mon, 03/18/2024 - 16:54

That isn't really possible I think as the only way I could see that working is storing a NBT string tag on the block storing the player's name that placed it but that's only really possible with blocks that have block entities enabled.