#Katana

1 messages · Page 1 of 1 (latest)

wheat condor
#
    trigger:
        give diamond sword named "&4Katanton" to player

on right click:
    if name of player's tool is "&4Katanton":
        loop 90 times:
            set {_cv} to spherical vector with radius 1, yaw loop-value*4, pitch 0
            set {_loc} to location of player ~ vector(0, 0.25, 0) ~ {_cv}
            draw 0 of flame at {_loc} with offset {_cv} with extra 0.5
        if {ability.cooldown::%player%} is true:
            stop
            if player is sneaking:
                stop
                set {ability.cooldown::%player%} to true
                loop all players in radius 5 around player:
                    if loop-player is not player:
                        apply poison 2 to loop-player for 6 seconds
                        apply nausea 1 to loop-player for 6 seconds
                        apply darkness 1 to loop-player for 6 seconds

                        wait {@cooldown}
                        set {ability.cooldown::%player%} to false
on right click:
    if player is not sneaking:
        stop
        loop 90 times:
            set {_cv} to spherical vector with radius 1, yaw loop-value*4, pitch 0
            set {_loc} to location of player ~ vector(0, 0.25, 0) ~ {_cv}
            draw 0 of flame at {_loc} with offset {_cv} with extra 0.5
            if name of player's tool is "&4Katanton":
                if {ability.cooldown::%player%} is true:
                    stop
                    set {ability.cooldown::%player%} to true
                    loop all players in radius 5 around player:
                        if loop-player is not player:
                            apply wither 2 to loop-player for 6 seconds
                            wait {@cooldown}
                            set {ability.cooldown::%player%} to false```

error
line 15
line 13
line 34
line 27
sullen sierra
wheat condor
#

if player is sneaking:
set {ability.cooldown::%player%} to true
loop 90 times:
set {ability.cooldown::%player%} to true

sullen sierra
#

you still haven't sent the error ;/

marsh dove
#

not the code that errors, but the actual error you get when reloading this

#

send a screenshot