so hi i was making a script to make a dash if the player has a type of sword but it won t work
[doublepost=1580056250][/doublepost]
[doublepost=1580064655][/doublepost]i need help pls i don t get any issue
- Variables:
{couldown.%player%} = 5
#--------------------------------------------------------------------------------------------------
# EVENT
#--------------------------------------------------------------------------------------------------
on rightclick:
if {couldown.%player%} is equal to 5:
if name of player's held item contains "&b&lDashing":
push player forwards with force 1.5
loop 5 times:
send action bar "&cCouldown until another dash = %{couldown.%player%}%" to player
subtract 1 from {couldown.%player%}
wait 1 second
else:
stop
else:
stop
set {couldown.%player%} to 5
send action bar "&a&lDash ready" to player
command /tester:
trigger:
launch ball large coloured red, purple and white fading to light green and black at player's location with duration 1
send title "&8&lCongrats" with subtitle "&bNow you are a tester" to player for 5 seconds
give a diamond sword of sharpness 1 named "&b&lDashing sword" with lore "&aTest||&bTest" to player
[doublepost=1580056250][/doublepost]
Code:
Variables:
{couldown.%player%} = 5
#--------------------------------------------------------------------------------------------------
# EVENT
#--------------------------------------------------------------------------------------------------
on rightclick:
if {couldown.%player%} is equal to 5:
if name of player's held item contains "&b&lDashing":
push player forwards with force 1.5
loop 5 times:
send action bar "&cCouldown until another dash = %{couldown.%player%}%" to player
subtract 1 from {couldown.%player%}
wait 1 second
else:
stop
else:
stop
set {couldown.%player%} to 5
send action bar "&a&lDash ready" to player
command /tester:
trigger:
launch ball large coloured red, purple and white fading to light green and black at player's location with duration 1
send title "&8&lCongrats" with subtitle "&bNow you are a tester" to player for 5 seconds
give a diamond sword of sharpness 1 named "&b&lDashing sword" with lore "&aTest||&bTest" to player