Tutorial viewed            times

Click HERE for a world download!

Command blocks

MCPE MUSIC MAKER

The way they work is simple. As shown in the video, a minecart creates a timer. Every time that the timer is reset, the other minecart close to the "notes" will be teleported towards the end of the music score.

The command blocks listed below will check in which position there are lime carpets relative to the minecart, and, depending on where the carpets are found, a /playsound command will be executed and will play a note with different pitches.


/execute @e[type=minecart,rm=5,r=600] ~ ~ ~ detect ~ ~ ~1 carpet 5 playsound note.harp @a[r=600] ~ ~ ~ 10 0.5333


​/execute @e[type=minecart,rm=5,r=600] ~ ~ ~ detect ~ ~ ~2 carpet 5 playsound note.harp @a[r=600] ~ ~ ~ 10 0.6


​/execute @e[type=minecart,r=600] ~ ~ ~ detect ~ ~ ~3 carpet 5 playsound note.harp @a[r=600] ~ ~ ~ 10 0.6666


​/execute @e[type=minecart,r=600] ~ ~ ~ detect ~ ~ ~4 carpet 5 playsound note.harp @a[r=600] ~ ~ ~ 10 0.7


​/execute @e[type=minecart,r=600] ~ ~ ~ detect ~ ~ ~5 carpet 5 playsound note.harp @a[r=600] ~ ~ ~ 10 0.8


​/execute @e[type=minecart,r=600] ~ ~ ~ detect ~ ~ ~7 carpet 5 playsound note.harp @a[r=600] ~ ~ ~ 10 0.95


​/execute @e[type=minecart,r=600] ~ ~ ~ detect ~ ~ ~8 carpet 5 playsound note.harp @a[r=600] ~ ~ ~ 10 1.05


​/execute @e[type=minecart,r=600] ~ ~ ~ detect ~ ~ ~9 carpet 5 playsound note.harp @a[r=600] ~ ~ ~ 10 1.2


​/execute @e[type=minecart,r=600] ~ ~ ~ detect ~ ~ ~10 carpet 5 playsound note.harp @a[r=600] ~ ~ ~ 10 1.3333


​/execute @e[type=minecart,r=600] ~ ~ ~ detect ~ ~ ~11 carpet 5 playsound note.harp @a[r=600] ~ ~ ~ 10 1.4


​/execute @e[type=minecart,r=600] ~ ~ ~ detect ~ ~ ~12 carpet 5 playsound note.harp @a[r=600] ~ ~ ~ 10 1.6


​/execute @e[type=minecart,r=600] ~ ~ ~ detect ~ ~ ~13 carpet 5 playsound note.harp @a[r=600] ~ ~ ~ 10 1.8


​/execute @e[type=minecart,r=600] ~ ~ ~ detect ~ ~ ~14 carpet 5 playsound note.harp @a[r=600] ~ ~ ~ 10 1.9


​/execute @e[type=minecart,r=600] ~ ~ ~ fill ~ ~ ~1 ~ ~ ~15 carpet 14 replace carpet 5


​/execute @e[type=minecart,r=600] ~ ~ ~ fill ~1 ~ ~1 ~1 ~ ~15 carpet 5 replace carpet 14


​/execute @e[type=minecart,r=600] ~ ~ ~ detect ~ ~ ~1 bedrock -1 kill @e[type=minecart,r=0]