1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Skripts to function in selected worlds

Discussion in 'Skript' started by acktbt, Sep 15, 2021 at 10:13 AM.

  1. acktbt

    acktbt New Member

    Joined:
    Sunday
    Messages:
    6
    Likes Received:
    0
    So, i have seen a lot of threads that have a solution for some situations in this, but i want to make it do commands from the console whereas they suggest to do something like

    command /spawn:
    trigger:
    if player's world is "ASkyBlock":
    execute player command "/worldtp skyblock"
    else if player's world is "SpawnWorld":
    teleport player to location at 0, 0, 0 in world("SpawnWorld")

    and this does not really work for me as i want to make it do the commands from the console. I already have the main part functioning i just need it to work in different worlds. An example of one of my skripts:

    every 30 seconds:
    send "§8{§9Mines§8} §fThe oak mine will reset in 20 seconds!" to all players in radius 8 around location(107, 95, 28)
    wait 10 second
    send "§8{§9Mines§8} §fThe oak mine will reset in 10 seconds!" to all players in radius 8 around location(107, 95, 28)
    wait 5 second
    send "§8{§9Mines§8} §fThe oak mine will reset in 5 seconds!" to all players in radius 8 around location(107, 95, 28)
    wait 1 second
    send "§8{§9Mines§8} §fThe oak mine will reset in 4 seconds!" to all players in radius 8 around location(107, 95, 28)
    wait 1 second
    send "§8{§9Mines§8} §fThe oak mine will reset in 3 seconds!" to all players in radius 8 around location(107, 95, 28)
    wait 1 second
    send "§8{§9Mines§8} §fThe oak mine will reset in 2 seconds!" to all players in radius 8 around location(107, 95, 28)
    wait 1 second
    send "§8{§9Mines§8} §fThe oak mine will reset in 1 second!" to all players in radius 8 around location(107, 95, 28)
    wait 1 second
    make console execute command "fill 110 101 31 110 95 25 oak_log"
    wait 1 second
    make console execute command "fill 109 101 31 109 95 25 oak_log"
    wait 1 second
    make console execute command "fill 108 101 31 108 95 25 oak_log"
    wait 1 second
    make console execute command "fill 107 101 31 107 95 25 oak_log"
    wait 1 second
    make console execute command "fill 106 101 31 106 95 25 oak_log"
    wait 1 second
    make console execute command "fill 105 101 31 105 95 25 oak_log"
    wait 1 second
    make console execute command "fill 104 101 31 104 95 25 oak_log"

    this is copied and pasted for multiple skripts but i want a way to do this in only certain worlds. Thanks for any help!

     
  2. Best Answer:
    Post #4 by oToghty, Sep 16, 2021 at 3:03 PM
  3. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    39
    Likes Received:
    1
    You want the periodical event to only work in certain worlds? If yes, use

    every 30 seconds in "world"
     
  4. acktbt

    acktbt New Member

    Joined:
    Sunday
    Messages:
    6
    Likes Received:
    0
    yes thanks this is what i was trying to do
    --- Double Post Merged, Sep 16, 2021 at 12:13 AM, Original Post Date: Sep 15, 2021 at 11:54 PM ---
    though this is only working in some of my skripts. the ones with the fill command are still doing it in another world and im guessing thats something to do with the fill command. is there a way to do that
     
  5. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    39
    Likes Received:
    1
    Show your code, if you have `every 30 seconds in "world"` nothing inside that event will run, regardless of what it is
     
  6. acktbt

    acktbt New Member

    Joined:
    Sunday
    Messages:
    6
    Likes Received:
    0
    i do have that

    every 30 seconds in "mines":
    send "§8{§9Mines§8} §fThe oak mine will reset in 20 seconds!" to all players in radius 8 around location(107, 95, 28)
    wait 10 second
    send "§8{§9Mines§8} §fThe oak mine will reset in 10 seconds!" to all players in radius 8 around location(107, 95, 28)
    wait 5 second
    send "§8{§9Mines§8} §fThe oak mine will reset in 5 seconds!" to all players in radius 8 around location(107, 95, 28)
    wait 1 second
    send "§8{§9Mines§8} §fThe oak mine will reset in 4 seconds!" to all players in radius 8 around location(107, 95, 28)
    wait 1 second
    send "§8{§9Mines§8} §fThe oak mine will reset in 3 seconds!" to all players in radius 8 around location(107, 95, 28)
    wait 1 second
    send "§8{§9Mines§8} §fThe oak mine will reset in 2 seconds!" to all players in radius 8 around location(107, 95, 28)
    wait 1 second
    send "§8{§9Mines§8} §fThe oak mine will reset in 1 second!" to all players in radius 8 around location(107, 95, 28)
    wait 1 second
    make console execute command "fill 110 101 31 110 95 25 oak_log"
    wait 1 second
    make console execute command "fill 109 101 31 109 95 25 oak_log"
    wait 1 second
    make console execute command "fill 108 101 31 108 95 25 oak_log"
    wait 1 second
    make console execute command "fill 107 101 31 107 95 25 oak_log"
    wait 1 second
    make console execute command "fill 106 101 31 106 95 25 oak_log"
    wait 1 second
    make console execute command "fill 105 101 31 105 95 25 oak_log"
    wait 1 second
    make console execute command "fill 104 101 31 104 95 25 oak_log"

    i have this because you told me to do that but it doesnt work
     
  7. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    39
    Likes Received:
    1
    What do you mean with "it doesnt work", any errors?
     
  8. acktbt

    acktbt New Member

    Joined:
    Sunday
    Messages:
    6
    Likes Received:
    0
    no errors. it just fills in a different world i think it is the fill command after some brainstorming of what the problem might be.
     

Share This Page

Loading...