I know it's possible to make block breakable by items, but I wonder if I could make an item which can only break the specified blocks if they're facing a given direction.


This is not possible. `CanDestroy" simply does not have that feature.

You could try using raycasting to determine whether the player is looking at a block with the right block state or not and then give a shovel that can or can not break blocks, but that is very complicated and not fully reliable.

  • 1
    Although this is not the answer I hoped for, I'd still like to thank you for your time and for giving a new option(ray casting). Thank you very much. Apr 22 '20 at 8:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.