#turn {%player's uuid%.aresSword.lastUsed} to sneak

1 messages · Page 1 of 1 (latest)

prisma quiver
#

Basically how it works is:
The word 'now' is used as a variable and its is basically a functional timer in Minecraft.
So, this code

means it's trying to find the difference between now and the last time you used it, as in this line.

So, you can't get rid of the %player's uuid% part, but a modified way to make the variable shorter is to shorten it to just
{%player's uuid%.lastSneak}

#

The player's uuid creates a variable unique to each player so each player has their own cooldown by the way 🙂

#

Hope this could help!

leaden bolt
#

ffs use list variables

hardy oar
# prisma quiver Hope this could help!

I already have this in, but it doesnt work, it jsut ignore the cooldown

if difference between now and {%player's uuid%.lastSneak} is less than 10 seconds:
hardy oar
#

.list

leaden bolt
#

.lists

#

doesnt work here

prisma quiver
#

It calls that variable in line 3 and line 7, make sure it's exactly the same

hardy oar
#
on sneak toggle:
    set {goliath} to event-player
    {goliath} is not sneaking
    loop lore of event-player's held item:
        if loop-value is "&7&oIt only takes one to end a war":
            if difference between now and {%player's uuid%.lastSneak} is less than 10 seconds:
                message "test text" to {goliath}
            else:
                loop entities in radius 5 around {goliath} where [input is not {goliath}]:
                    set {_pitch} to a random integer from 1 to 0.5
                    play sound "entity.warden.sonic_boom" at volume 2 and pitch 7 at {goliath}
                    set {vector} to vector between {goliath} and loop-entity
                    push loop-entity up at speed 0.5
                    wait 1 tick
                    push loop-entity {vector} at speed 1

I dont see anything incorrect

prisma quiver
#

ahh i see so you accidentally deleted a line from the old code

#

set {%player's uuid%.aresSword.lastUsed} to now

#

this line here

#

is very important!

leaden bolt
#

{lastused::%player's uuid%::aressword} change it to this please

prisma quiver
#

dont listen to him

#

LOLL

hardy oar
#

WORKS WORKS

prisma quiver
#
    set {goliath} to event-player
    {goliath} is not sneaking
    loop lore of event-player's held item:
        if loop-value is "&7&oIt only takes one to end a war":
            if difference between now and {%player's uuid%.lastSneak} is less than 10 seconds:
                message "test text" to {goliath}
            else:
                set {%player's uuid%.lastUsed} to now
                loop entities in radius 5 around {goliath} where [input is not {goliath}]:
                    set {_pitch} to a random integer from 1 to 0.5
                    play sound "entity.warden.sonic_boom" at volume 2 and pitch 7 at {goliath}
                    set {vector} to vector between {goliath} and loop-entity
                    push loop-entity up at speed 0.5
                    wait 1 tick
                    push loop-entity {vector} at speed 1```
#

code?

#

this should be the code i believe

#

you use spaces right

leaden bolt
prisma quiver
#

oops

#

you dont

hardy oar
hardy oar
prisma quiver
#
    set {goliath} to event-player
    {goliath} is not sneaking
    loop lore of event-player's held item:
        if loop-value is "&7&oIt only takes one to end a war":
            if difference between now and {%player's uuid%.lastSneak} is less than 10 seconds:
                message "test text" to {goliath}
            else:
                set {%player's uuid%.lastUsed} to now
                loop entities in radius 5 around {goliath} where [input is not {goliath}]:
                    set {_pitch} to a random integer from 1 to 0.5
                    play sound "entity.warden.sonic_boom" at volume 2 and pitch 7 at {goliath}
                    set {vector} to vector between {goliath} and loop-entity
                    push loop-entity up at speed 0.5
                    wait 1 tick
                    push loop-entity {vector} at speed 1```
#

mb

#

there you go

leaden bolt
#

okay then, continue using regular variables instead of list ones!

#

good job mate!

prisma quiver
#

theres no problem with it?

#

what's the problem

leaden bolt
#

there are many.

prisma quiver
#

?

#

like what

leaden bolt
#

firstly it looks ass

prisma quiver
#

He's not making a pro server like hypixel bro

leaden bolt
#

secondly good luck mass deleting them

hardy oar
#

this guy definitely plays valorant and blames his teamate when his e dater dies in spike rush

prisma quiver
leaden bolt
#

i do play valorant yes.

prisma quiver
#

HAHAHAHAHAHA

#

just delete the post

#

it works right

hardy oar
#

its pretty obvous this guy thinks hes the main charecter 💀

prisma quiver
#

the code works?

leaden bolt
#

im sorry for trying to help you in your skript journey

prisma quiver
leaden bolt
#

i also play league

prisma quiver
#

@hardy oar does the code work yes or no?

hardy oar
#

no

#

just tested it

prisma quiver
#

send me your code

hardy oar
#

still gives no cooldown

prisma quiver
#

oop

hardy oar
#
on sneak toggle:
    set {goliath} to event-player
    {goliath} is not sneaking
    loop lore of event-player's held item:
        if loop-value is "&7&oIt only takes one to end a war":
            if difference between now and {%player's uuid%.lastSneak} is less than 10 seconds:
                message "test text" to {goliath}
            else:
                set {%player's uuid%.lastUsed} to now
                loop entities in radius 5 around {goliath} where [input is not {goliath}]:
                    set {_pitch} to a random integer from 1 to 0.5
                    play sound "entity.warden.sonic_boom" at volume 2 and pitch 7 at {goliath}
                    set {vector} to vector between {goliath} and loop-entity
                    push loop-entity up at speed 0.5
                    wait 1 tick
                    push loop-entity {vector} at speed 1```
#

fancy text

prisma quiver
#

i messed it up sorry

#
    set {goliath} to event-player
    {goliath} is not sneaking
    loop lore of event-player's held item:
        if loop-value is "&7&oIt only takes one to end a war":
            if difference between now and {%player's uuid%.lastSneak} is less than 10 seconds:
                message "test text" to {goliath}
            else:
                set {%player's uuid%.lastSneak} to now
                loop entities in radius 5 around {goliath} where [input is not {goliath}]:
                    set {_pitch} to a random integer from 1 to 0.5
                    play sound "entity.warden.sonic_boom" at volume 2 and pitch 7 at {goliath}
                    set {vector} to vector between {goliath} and loop-entity
                    push loop-entity up at speed 0.5
                    wait 1 tick
                    push loop-entity {vector} at speed 1```
#

there

#

i put lastUsed

#

and not lastSneak

#

try now

leaden bolt
#
while {cooldown::%player's uuid%::aressword} is set:
    remove 1 from {cooldown::%player's uuid%::aressword}
    if {cooldown::%player's uuid%::aressword} is 0:
        delete {cooldown::%player's uuid%::aressword}
    wait 1 second```
hardy oar
#

all good

leaden bolt
#

this way it returns the rounded second value aswell

hardy oar
leaden bolt
#

if you ever need to check it

hardy oar
#

now time to biden blast this thread

#

turns out idk how

prisma quiver
#

Me niether

#

There might not be a way

#

but whatever

#

i got to go now

#

glad to help

leaden bolt
#

sucks to be both of you