how do I stop block mining?

Started by Wtf_Err0R on

Topic category: Help with modding (Java Edition)

Last seen on 13:30, 10. Jul 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do I stop block mining?

How to make it so that when a player mines ores with the "wrong" pickaxe, the block is simply not mined (like bedrock).

Last seen on 17:47, 14. Jul 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You might be able to cancel…
Mon, 12/11/2023 - 12:34

You might be able to cancel the global trigger. I'm not totally sure it it's cancelable, but that's the way you'd do it: make a procedure that checks if the block is below the tier of the item in the target entity's main hand, using the 'player left clicks block' global trigger. (Look in the 'advanced' tab of the procedure workspace for the cancel function.)

Last seen on 13:30, 10. Jul 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you also tell me how to…
Mon, 12/11/2023 - 17:15

Can you also tell me how to detect in the procedure that the player is looking at a specific block and if so, then stop block mining (by the way, it works, thank you)?