Oh my God I spent four hours practicing that for those of you that don’t know the 1.20 update for Minecraft is coming out pretty soon but they’ve also already released some snapshots for 1.19.4 and I gotta say this might be my favorite update ever not because of all this though let’s see Okay that’s it for 19.4 they added four new entities that are perfect for map makers text displays item displays block displays and interactions oh my God the display entities can just like exist in the world no armor stands required nothing else needed they’re just blank entities and oh oh boy the interactions You can detect when a player clicks nothing you don’t have to use an invisible villager you don’t have to use a carrot on a stick these entities are literally the perfect tools for map makers this is monumental so naturally I decided to make a piano I started by summoning a tiny little Interaction box to act as one of the keys the first thing to do was make it display a particle every single time I clicked it look at that nice then I summoned a row of 24 of these interaction boxes right next to each other to act as the keyboard There are 24 notes on a Minecraft note block so I used 24 keys right next to each other then I assigned key numbers using a scoreboard to all of these and made them play each note based off of their number in the scoreboard and then here’s a conversion I found online Between what the note is and then the pitch to play when you’re using a play sound shout out to this random dude for coming up with all the pitch numbers for each key this really came in clutch and there you go look at that to make this actually look like a Keyboard I’ll move these keys out and then these keys back and then squish them all together Now to add the actual keys well I I mean the display of the keys not the actual interaction you know what I’m saying I’ll summon a block display that’s stretched and warped and use a quartz block for the white keys and then another right block for The Black Keys Foreign okay that’s pretty cool but watch this hell yeah see now I realize the hitboxes for all my white keys are A Little Too Tall so I’m going to teleport them all one pixel down there we go perfectly flush with the keys all right this part’s kind of weird And glitchy but to animate the keys you have to set all the keys to be slanted a little bit down and then use this interpolation function setting thing whatever in the blocks displays so that every time you click them they get set back up to their like flat position that Way every time you click them and they get set to their flat position they’ll animate from their previous position which was this is why I can’t speak to women and look at that beautiful now I’ll just build the uh the piano foreign the player with slowness so that when You’re standing right in front of the piano you get in the zone then this looks a little offset so I’m going to move all the keys over which includes the block displays and the hitboxes then this side looks really stupid because the black is overhanging the white which makes no sense so I’ll Just summon a placeholder key that doesn’t actually do anything if I click it nothing happens then the very last thing that I have to do because I completely forgot about it earlier is to change all the interactions to have this tag called response and set that to on Which basically just means your fist moves every time you click it instead of just being completely stationary and now it is complete I’ve prepared my whole life for this moment so I know this video is really short but I just wanted to get this out as sort of A proof of concept I’m working on a much bigger video as well but that one won’t be out for a long time so I’ll leave you with a couple songs Thank you Foreign Foreign Video Information
This video, titled ‘WORKING Piano in new Minecraft snapshots!’, was uploaded by Roako on 2023-02-23 20:16:33. It has garnered views and [vid_likes] likes. The duration of the video is or seconds.
Hey everyone! I wasn’t too invested in the recent Minecraft snapshots that had been releasing until I saw these new entities.