I need help fixing this, I want to make a blast enchantment for an axe (3x3 mining) but whatever I try it can still break blocks in regions where breaking blocks is denied. Priorities are set correctly because u cannot break any other block in the region and even with natural break it still doesnt work, pls help D: I even removed operator from myself.
Posted by: X_Emma_X from the skUnity Discord. View the thread on skUnity Discord here
code_language.skript:
on mine:
if lore of player's tool contains "&7Explosion 1":
set {_1} to location of event-block
set {_2} to location of event-block
if player's pitch is between -50 and 50:
add 1 to y-coord of {_1}
subtract 1 from y-coord of {_2}
if player's horizontal facing is west or east:
add 1 to z-coord of {_1}
subtract 1 from z-coord of {_2}
loop blocks within {_1} to {_2}:
break loop-value naturally using player's tool
else if player's horizontal facing is north or south:
add 1 to x-coord of {_1}
subtract 1 from x-coord of {_2}
loop blocks within {_1} to {_2}:
break loop-value naturally using player's tool
else:
add 1 to x-coord of {_1}
add 1 to z-coord of {_1}
subtract 1 from x-coord of {_2}
subtract 1 from z-coord of {_2}
loop blocks within {_1} to {_2}:
break loop-value naturally using player's tool
Posted by: X_Emma_X from the skUnity Discord. View the thread on skUnity Discord here