Author Topic: Suggestion: Solution to the ever-requested piano add on?  (Read 320 times)

I think I thought of a clever way to make a piano add on, somwthing everyone has wanted for a long time.  I draw upon processes of other mods that could make this work.

The addon is just an item, an empty hand, that when clicks a brick, it enables the player to play music.  This is how it works.  First, on clicking a brick, it changes the player's datablock to no-move player, as used in camera events.  Next, coding disables all keybinds, so as to make the keyboard into a piano keyboard, such as used in the restricted server mods, like toggleable lights and Slayer's no painting/building ability.  Then, the coding keybinds pre-recorded tones to a series of keys, from S to K, and it acts as an emote when the key is pressed, such as the alarm emote (it would be good if the key could be held to elongate the note, and if emote spamming could be overridden).  Once the player is done, he clicks the brick again to be changed back to his old datablock.

My other idea is to emulate a midi keyboard for blockland.

First, on clicking a brick, it changes the player's datablock to no-move player, as used in camera events. 
There's many ways to prevent the player from moving, I haven't looked at the camera events code but I'm fairly certain that it just sets the control object to a camera.

Then, the coding keybinds pre-recorded tones to a series of keys, from S to K, and it acts as an emote when the key is pressed
This part would require a client-side add-on.
You could fill the player's brick inventory with bricks (and then revert them back once 'piano mode' is exited) and then package the use inventory function and play with the number keys

You could fill the player's brick inventory with bricks (and then revert them back once 'piano mode' is exited) and then package the use inventory function and play with the number keys
loving genious