How to check if block is broken

Started by Hooman5511 on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined May 2021
Points:
540

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
How to check if block is broken

Hello. Is there a way to detect if a block is destroyed by player i want to check if oak log is broken then give player cash thanks a lot (if this is wrong category tell me and direct me to the correct one) (also sorry for bad grammar)

Active 3 years ago
Joined Jun 2020
Points:
730

User statistics:

  • Modifications: 1
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 112
Create a procedure. add the…
Sun, 07/04/2021 - 06:01

Create a procedure. add the global trigger "When block is broken by player". next, put an if block saying  if get block at [x] [y] [z] = [Block] . Inside of the if block, put the procedure you want to happen.

Active 2 months ago
Joined Feb 2025
Points:
8

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Would there be a way to…
Thu, 02/27/2025 - 22:39

Would there be a way to detect if an entity breaks a specific block? (thanks for your answer)