Is it possible to look if block was harvestable

Started by cary2002 on

Topic category: Help with modding (Java Edition)

Last seen on 13:17, 16. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to look if block was harvestable

I want to make a procedure where the thing only happens when the broken block was harvestable (this why I use the trigger: A block is broken) and everything I tried didn't work.

Last seen on 20:29, 28. Mar 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes its possible:There is a…
Tue, 05/09/2023 - 13:38

Yes its possible:

There is a Procedure Block called "Can [] harvest []" to check if the broken Block is harvestable(I assume you use "a block is broken" Global Trigger)

And if you want to prevent the Block is broken you can use the "Cancel event" Procedure Block that you can find in the "Advanced" Category.

Last seen on 13:17, 16. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it also somehow possible…
Tue, 05/09/2023 - 14:24

Is it also somehow possible that it also is activated, if i brake a block, that doesn't need a tool (like wood), without one?

Last seen on 13:17, 16. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I found it. Thank you
Tue, 05/09/2023 - 14:34

I found it. Thank you