Hello everyone!
I need help with my skript:
This gives no errors but if you mine a block, you always get 13 and I want you get the count of blocks you mined.
Thank you for help!
[doublepost=1685861987,1685432667][/doublepost]Is this too hard or why do I don't get replies?
I need help with my skript:
Code:
on mine:
if player's held item is netherite pickaxe named "&cBlast I":
if event-block is netherrack or bedrock or nether bricks or black stained glass or nether wart block or magma block:
cancel event
send "&cHey! &8You can't do that!" to player
else:
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}
add 1 to x-coord of {_1}
subtract 1 from x-coord of {_2}
loop blocks within {_1} and {_2}:
if loop-value contains black stained glass or magma block or nether bricks or nether wart block or netherrack or bedrock:
cancel event
else:
set loop-value to air
clear drops
give player event-block
else if player's horizontal facing is north or south:
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} and {_2}:
if loop-value contains black stained glass or netherrack or magma block or nether bricks or nether wart block or bedrock:
cancel event
send "&cHey! &8You can't do that!" to player
else:
set loop-value to air
clear drops
give player event-block
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}
add 1 to y-coord of {_1}
subtract 1 from y-coord of {_2}
loop blocks within {_1} and {_2}:
if loop-blocks contains black stained glass or magma block or netherrack or nether bricks or nether wart block or bedrock:
cancel event
send "&cHey! &8You can't do that!" to player
remove all netherrack from player
else:
set loop-blocks to air
clear drops
give player event-block
Thank you for help!
[doublepost=1685861987,1685432667][/doublepost]Is this too hard or why do I don't get replies?