MCHPR / MCHPRS

A multithreaded Minecraft server built for redstone.
MIT License
1.55k stars 68 forks source link

play note when adjusting noteblock pitch #148

Closed BramOtte closed 3 weeks ago

BramOtte commented 2 months ago

makes it easier to tune note blocks it seams that the instrument isn't updated immediately when the block under the noteblock changes which is why we use get_noteblock_instrument here. It may make more sense to keep the blockstate in sync instead of looking for the block beneath whenever a note needs to be played, as this is also the way minecraft java does it.