• Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

AlfaLe0

Member
Mar 2, 2018
25
0
0
34
I need some help... I want to make that if a player is sneaking on a white wool block appen something... like send title message... change variables

Player is sneaking
On a wool block
Every 3 second
Send message 3
Send message 2
Send message 1
Add 1 to variable money
#Repeat it every 3 seconds if the player is sneaking on the wool block

HELP ME PLEASE
[doublepost=1520458983,1520458732][/doublepost]Please it is urgent
 
I need some help... I want to make that if a player is sneaking on a white wool block appen something... like send title message... change variables

Player is sneaking
On a wool block
Every 3 second
Send message 3
Send message 2
Send message 1
Add 1 to variable money
#Repeat it every 3 seconds if the player is sneaking on the wool block

HELP ME PLEASE
[doublepost=1520458983,1520458732][/doublepost]Please it is urgent

wait 24 hours before bumping, people have lives
code_language.skript:
on join:
    while player is online:
        if block below player is wool:
            if player is sneaking:
 
wait 24 hours before bumping, people have lives
code_language.skript:
on join:
    while player is online:
        if block below player is wool:
            if player is sneaking:

Thanks but I don’t want only when the player join... every time if player is on a wool block create a loop command... when the player is not sneaking or is not on the wool block the loop stop... please can you do this?
 
wait 24 hours before bumping, people have lives
code_language.skript:
on join:
    while player is online:
        if block below player is wool:
            if player is sneaking:
This is what you want, because when a player joins the code gets looped until the player disconnects
code_language.skript:
on join:
    while player is online:
        block below player is wool
        player is sneaking
        # code here
but if you only want it to happen once, this will work:
code_language.skript:
on step on wool:
    player is sneaking
    # code here
 
  • Like
Reactions: AlfaLe0
This is what you want, because when a player joins the code gets looped until the player disconnects
code_language.skript:
on join:
    while player is online:
        block below player is wool
        player is sneaking
        # code here
but if you only want it to happen once, this will work:
code_language.skript:
on step on wool:
    player is sneaking
    # code here

Thanks but if I want a code like that when the player is on the wool and sneaking:
Message “3”
Wait 1 second
Message “2”
Wait 1 second
Message “1”
Wait 1 second
Message “process ended”
Add 1 to a variable

AND REPEAT THE PROCESS UNTIL THE PLAYER IS NOT SNEAKING ON WOOL...
How I can loop this? And when the player is not sneaking on wool the process instantly STOP

Thanks
 
Status
Not open for further replies.