How to get a block that the player clicks on with the left mouse button?

Started by Xinonc on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get a block that the player clicks on with the left mouse button?

I want the player to take damage when breaking a certain block, how can this be implemented?