Solved Skripts to function in selected worlds

  • 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.

acktbt

Member
Sep 12, 2021
15
0
1
16
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!
 
You want the periodical event to only work in certain worlds? If yes, use

every 30 seconds in "world"
 
You want the periodical event to only work in certain worlds? If yes, use

every 30 seconds in "world"
yes thanks this is what i was trying to do
[doublepost=1631747584,1631746493][/doublepost]
You want the periodical event to only work in certain worlds? If yes, use

every 30 seconds in "world"
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
 
yes thanks this is what i was trying to do
[doublepost=1631747584,1631746493][/doublepost]
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
Show your code, if you have `every 30 seconds in "world"` nothing inside that event will run, regardless of what it is
 
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
 
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
What do you mean with "it doesnt work", any errors?
 
Status
Not open for further replies.