#Mining fatigue on breaking block script?
1 messages · Page 1 of 1 (latest)
skUnity Documentation
skUnity is the central hub of everything Skript. Unique tools, active community and all the Skript resources you need. The fastest Skript Documentation, more addons than ever and the most detailed Skript Documentation available.
Okay so apparently Skellett has a thing for this, which I have, but I don't know how to use it.
There's no examples, or anything. Can anyone help?
wait 1 tick
if block is air:
set {mining::%player's uuid%} to event-block
while target block of player is {mining::%player's uuid%}:
apply mining fatigue 2 to player for 3 seconds replacing existing effect
wait 1 tick
remove mining fatigue from the player```
@viscid stone
This didn't do anything.
Am I supposed to use this with the previous skript?
Yes
Same issue as before.
wait 1 tick
if block is deepslate:
set {mining::%player's uuid%} to event-block
while target block of player is {mining::%player's uuid%}:
apply mining fatigue 2 to player for 3 seconds replacing existing effect
wait 1 tick
remove mining fatigue from the player
on block damaging:
wait 1 tick
if block is air:
set {mining::%player's uuid%} to event-block
while target block of player is {mining::%player's uuid%}:
apply mining fatigue 2 to player for 3 seconds replacing existing effect
wait 1 tick
remove mining fatigue from the player```
I can still avoid it by holding left click and just swapping to the block, sadly.
Like in the video.
Can anyone else help me? :[