Give items based on world

  • 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 community!

    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.
Apr 9, 2017
28
1
0
Hi, I want to give players certain items on join of the world based on what world it is. I have the main lobby worlds which I know how to set that up but I have worlds where the player creates them and it has their name for the folder. So what I want to do is when a player enters a player created world it gives them items but I cannot figure out a way to do that.
Thanks
-term
 
code_language.skript:
command /give:
  trigger:
    if player is in world "creative":
      give player 1 of diamond_block#not sure which work
      give 1 of diamond_block to player#
 
code_language.skript:
command /give:
  trigger:
    if player is in world "creative":
      give player 1 of diamond_block#not sure which work
      give 1 of diamond_block to player#
I have that but when I create a world for a player it is not going to work
 
Well, you need the world name. But this code is really shit. Because its like you would give in all world.

code_language.skript:
command /give:
  trigger:
    loop all worlds:
      if player is in world "%loop-world%":
        give player 1 of diamond_block#not sure which work
        give 1 of diamond_block to player#
 
Well, you need the world name. But this code is really shit. Because its like you would give in all world.

code_language.skript:
command /give:
  trigger:
    loop all worlds:
      if player is in world "%loop-world%":
        give player 1 of diamond_block#not sure which work
        give 1 of diamond_block to player#
Well I need it to not have the world name so please stop giving me code that I already have. And secondly if you were to read it, I didn't say I wanted a command, I said I wanted it on join of world.
 
Status
Not open for further replies.