#How to fix this

1 messages · Page 1 of 1 (latest)

gaunt osprey
#

it works for enderpearls but it doesnt on wind charges. What am i doing wrong?

    [_cooldown]: 10 seconds


on rightclick with wind charge:
    set [cooldown] to difference between [breeze.%player%.eused]
    if [cooldown] is less than 10 seconds:
        cancel event
    else:
        set [cooldown] to 10
        send action bar "&c10 Seconds remaining &lBREEZE BALL"
        wait 1 Seconds
        send action bar "&c9 Seconds remaining &lBREEZE BALL"
        wait 1 seconds
        send action bar "&c8 Seconds remaining &lBREEZE BALL"
        wait 1 seconds
        send action bar "&c7 Seconds remaining &lBREEZE BALL"
        wait 1 seconds
        send action bar "&c6 Seconds remaining &lBREEZE BALL"
        wait 1 seconds
        send action bar "&c5 Seconds remaining &lBREEZE BALL"
        wait 1 seconds 
        send action bar "&c4 Seconds remaining &lBREEZE BALL"
        wait 1 seconds
        send action bar "&c3 Seconds remaining &lBREEZE BALL"
        wait 1 seconds
        send action bar "&c2 Seconds remaining &lBREEZE BALL"
        wait 1 seconds
        send action bar "&c1 Seconds remaining &lBREEZE BALL"
        wait 1 seconds
        send action bar "&cBreeze Ball is ready"```
twin fog
#

....so

#

whats the issue?

#

its not sending an action bar?

dusky musk
#

Variables use {} not []

lime mulch
#

if you’re gonna use a timespan it’s not necessary to send those action bars by using a million waits. just send the timespan for 10 seconds

rocky bay
#

I would also really recommend list variables and UUIDs, {breeze.%player%.eused} -> {breeze::%player's UUID%}

You can also use a loop to make the cooldown messages much more compact.

In the right-click event, cooldown should be a local variable, and you're only setting this variable to 19 seconds, not the variable linked to the player.

The option is also not used

gaunt osprey
#

i fixed variables

gaunt osprey
rocky bay
#

and deleted/lost afterwards

fossil kestrel
rocky bay
#

even more so, as they cant be changed

fossil kestrel
#

Yes, but it's only true for online-mode servers.

twin fog
#

Cracked mode servers use passwords since they can't use uuid

#

İirc

gaunt osprey
#

stilll doesntwork

twin fog
latent arrow
#

isn't [cooldown] should be used as {@cooldown}

silk ermine
#

in the code, yes, and the one in the options section is also wrong: it should just be cooldown

fossil kestrel