So yeah so i a just casually tryna write a code for an pickaxe to break 3x3 block when i mine but it doesn't function all.
I have on my plugins:
skript,
skbee and skquery
Here is my code:
I have on my plugins:
skript,
skbee and skquery
Here is my code:
Code:
command /ultra3x3:
permission: ultra3x3.use
trigger:
give player netherite pickaxe named "&6&lUltra 3x3" with lore "&4&lRuby Killa I"
# Block-Break Event
on mine:
if lore of player's tool is "&4&lRuby Killa I":
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-coordinate of {_1}
subtract 1 from y-coordinate of {_2}
if player's horizontal facing is west or east:
add 1 to z-coordinate of {_1}
subtract 1 from z-coordinate of {_2}
loop blocks within {_1} to {_2}:
if loop-block is not air:
loop-block.break naturally with player's tool
else if player's horizontal facing is north or south:
add 1 to x-coordinate of {_1}
subtract 1 from x-coordinate of {_2}
loop blocks within {_1} to {_2}:
if loop-block is not air:
loop-block.break naturally with player's tool
else:
add 1 to x-coordinate of {_1}
add 1 to z-coordinate of {_1}
subtract 1 from x-coordinate of {_2}
subtract 1 from z-coordinate of {_2}
loop blocks within {_1} to {_2}:
if loop-block is not air:
loop-block.break naturally with player's tool