How to check if block is broken

Started by Hooman5511 on

Topic category: Help with modding (Java Edition)

Last seen on 20:08, 17. Feb 2022
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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)

Last seen on 01:48, 23. Aug 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.