Jump to content

ThisUsernameTaken

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by ThisUsernameTaken

  1. Im trying to make a talisman that you hold in your main hand or offhand for a speedboost. How can i do this? It works for main hand, but not offhand.

    Here is my code

     

    on tool change: #To remove the effects
        loop all players:
            if name of loop-player's held item is not "&f&lAir &aTalisman":
                if name of loop-player's offhand tool is not "&f&lAir &aTalisman":
                    remove speed from the loop-player
            else if name of loop-player's offhand tool is not "&f&lAir &aTalisman":
                if name of loop-player's held item is not "&f&lAir &aTalisman":
                    remove speed from the loop-player

     

     

    on tool change: #To get the effects
        loop all players:
            if name of loop-player's held item is "&f&lAir &aTalisman":
                remove speed from the loop-player
                wait 1 tick
                apply speed 4 without particles to the loop-player for 10 days
            else if name of loop-player's offhand tool is "&f&lAir &aTalisman":
                remove speed from the loop-player
                wait 1 tick
                apply speed 4 without particles to the loop-player for 10 days

×
×
  • Create New...