Started by
Wtf_Err0R
on
Topic category: Help with Minecraft modding (Java Edition)
How to make it so that when a player mines ores with the "wrong" pickaxe, the block is simply not mined (like bedrock).
Topic category: Help with Minecraft modding (Java Edition)
How to make it so that when a player mines ores with the "wrong" pickaxe, the block is simply not mined (like bedrock).
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.)
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)?