#Mining fatigue on breaking block script?

1 messages · Page 1 of 1 (latest)

viscid stone
#

Here's an attached video demonstrating what's happening.

#

There any workaround for this?

viscid stone
#

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?

deft sky
#
  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

viscid stone
#

Am I supposed to use this with the previous skript?

deft sky
#

Yes

viscid stone
deft sky
#
  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```
viscid stone
#

Like in the video.

viscid stone
#

Can anyone else help me? :[