#i forgot the way to loop my skript very easy just tell me

1 messages Β· Page 1 of 1 (latest)

winter oar
#

??

#

loop ___ times:

rocky valve
#

Loop what

#

A list, x times? Players? Blocks?

hollow marsh
#

on right-click:
wait 1 second
add 1 to {e}

#

how do i loop this?

rocky valve
#

Loop what?

#

Also code blocks and you forgot the β€œon” in the event

hollow marsh
#

doesn't matter this works but i know

rocky valve
#

???

hollow marsh
#

i just want to loop it

rocky valve
#

What are you trying to loop?
Are you trying to

  • go through a list of objects
  • do a task multiple times
#

You have to be descriptive we cant read minds

hollow marsh
#

i want it to loop the task after it waited 1 second

rocky valve
#

The task being add 1 to e?

hollow marsh
hollow marsh
#

how do i loop it infinitely??

rocky valve
#

While loop then

#

But you need a wait or it will crash

ornate anvil
#

You can create a while loop that checks a Boolean value, and when it is right-clicked, set the Boolean to true, triggering the desired action. Alternatively, you can implement the loop directly in the right-click event.

rocky valve
rocky valve
#

No vars

ornate anvil
hollow marsh
#

this is very confusing 😭 so do what do i put

rocky valve
#

A while loop

rocky valve
ornate anvil
#

^

hollow marsh
#

nevermind i found my own solution lmao

#

sorry

rocky valve
#

A while loop, not those exact words