Hi, I'm trying to figure out a way to add custom ambiental music in the game, but i want to make that when a player will be teleported in another world the music stops.
I tried with this:
on join:
chance of 100%:
if player isn't in world "Flat":
wait 1 minute
play sound "MUSIC_DISC.13" in jukebox category at player for player
wait 4 minutes
play sound "MUSIC_DISC.BLOCKS" in jukebox category at player for player
wait 4 minutes
play sound "MUSIC_DISC.MELLOHI" in jukebox category at player for player
wait 3 minutes
play sound "MUSIC_DISC.STAL" in jukebox category at player for player
wait 3 minutes
play sound "MUSIC_DISC.MALL" in jukebox category at player for player
wait 3 minutes
play sound "MUSIC_DISC.WARD" in jukebox category at player for player
wait 3 minutes
play sound "MUSIC_DISC.WAIT" in jukebox category at player for player
wait 10 minutes
if player is in world "Flat":
stop all conditionals
(sorry for my bad english)
I tried with this:
on join:
chance of 100%:
if player isn't in world "Flat":
wait 1 minute
play sound "MUSIC_DISC.13" in jukebox category at player for player
wait 4 minutes
play sound "MUSIC_DISC.BLOCKS" in jukebox category at player for player
wait 4 minutes
play sound "MUSIC_DISC.MELLOHI" in jukebox category at player for player
wait 3 minutes
play sound "MUSIC_DISC.STAL" in jukebox category at player for player
wait 3 minutes
play sound "MUSIC_DISC.MALL" in jukebox category at player for player
wait 3 minutes
play sound "MUSIC_DISC.WARD" in jukebox category at player for player
wait 3 minutes
play sound "MUSIC_DISC.WAIT" in jukebox category at player for player
wait 10 minutes
if player is in world "Flat":
stop all conditionals
(sorry for my bad english)