Solved Remove hit delay on a certain weapon (and a name for the weapon)

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Code:
on hotbar switch:
    if player's held is dirt:
        set maximum damage delay of player to 0 ticks
        wait 0.5 seconds
    set maximum damage delay of player to 20 ticks
 
Last edited:
Code:
on hotbar switch:
    send "1"
    if player's held is dirt:
        send "2"
        set maximum damage delay of player to 0 ticks
        wait 0.5 seconds
    send "3"
    set maximum damage delay of player to 20 ticks
 
k
[doublepost=1621625572,1621625526][/doublepost]also i changed held to tool because held doesn't work for me
 
Code:
on damage:
    while attacker's held item is dirt:
        set maximum damage delay of victim to 0 ticks
        wait 0.5 seconds
    set maximum damage delay of victim to 20 ticks
its not the best code but it should work
edit: the code is actually very horrible
 
works
[doublepost=1621625817,1621625646][/doublepost]changed it to barrier instead of dirt because it'd be chaos if everyone had it Xd
 
Status
Not open for further replies.