I custom coded a custom enchant plugin and I have an enchantment that will dig in a 3x3 area where the player does. What I cannot figure out, however, is how I can test for which direction a player is facing in when they mine a block, then set the blocks in a 3x3 plane around that block to air. If this worked, I think this is what it would look like:
and I could just set the blocks above, below, left, right, etc to air, but this only works one way.
can anyone help? thanks
code_language.skript:
if lore of player's tool contains "&eExcavate I":
if player is facing west:
#set blocks
if player is facing up:
#set blocks
... and so on
can anyone help? thanks
Last edited: