Minecraft 1.11 Shulker Box Music Player
The first shapshot with the new Minecraft features announced at MineCon is out! I've taken the new Shulker Boxes and built a music playing machine, that can play songs of any length by encoding the notes as items in Shulker Boxes. When one Shulker Box empties of items, it is automatically broken and then next box of notes are placed!
This music player is basically an set of item filters set up so that when a particular item is filtered, it plays a corresponding note. The problem is, that items moving through a hopper move one hopper every 4 redstone ticks (0.4 seconds), so if you tried to play a low note, followed by a high note, there would be several seconds delay between the notes (as the way this is set up, the lowest notes are filtered first, and the high notes last).
To correct this, I have a bunch of redstone repeaters that delay the activating of the low note noteblocks by the amount of time it takes the high notes items to be filtered, meaning that the amount of time for the filters to work, plus the added delay of the repeaters, should cause all the notes to be played at the same pace. This doesn't totally work out though, as there were changes made to the timing of hoppers in earlier snapshots. A scale seems to play fine (except for the last note), but 'Happy Birthday' has a few notes that play at the same time as another note. I'm not entirely sure if this is because of hopper issues, or perhaps there are BUD issues that are causing this to occur.
The music player has a mechanism that automatically breaks the Shulker Box once it is empty, and then place the next Shulker Box and start pulling items from it. This is what allows for longer songs (Shulker boxes can hold 27 items (notes), and the minecart can hold 27 Shulker Boxes, so you can have songs up to 729 notes long or just under 5 minutes). In theory, this machine could use a trapchest that you would fill with notes, and closing the lid would start the song, but you would then be limited to 27 notes as there would not be a way to replace the trap chest with another full chest once it emptied.
For the notes, I used colored wool for the first octave notes, and colored clay for the second octave, leaving out brown and the grey and black colors. Any other block will pass through the item filter without activating a note, acting as a rest.
In theory, a similar system could be used to program a Minecraft computer, or activate a series of different machines, or perhaps select a destination for a really complex minecart station.
Other Videos By TroZ
Other Statistics
Changes Statistics For TroZ
Currently, TroZ has 91,314 views for Changes across 1 video. Less than an hour worth of Changes videos were uploaded to his channel, making up less than 0.08% of the total overall content on TroZ's YouTube channel.