PocketMine-MP
PocketMine-MP copied to clipboard
Implements Noteblocks and extra instruments
Introduction
This PR implements noteblock functionality and adds more instruments.
Relevant issues
N/A
Changes
API changes
Added Block::getNoteblockInstrument() - this determines what instrument noteblocks placed on top of the block shoud sound like. Added the $noteblockInstrument constructor parameter to the Block class - this is of type NoteInstrument and determines the return value of the function above.
Behavioural changes
Made noteblocks work.
Backwards compatibility
N/A
Follow-up
N/A
Tests
https://youtu.be/Z5Gks2oEtYk
This looks mostly OK, but I'm not a fan of the big blockIDs switch, I'm trying to migrate away from those.
Sorry, I didn't test any changes, I don't know why I'm getting this error when I try to run the server.
Fatal error: Cannot declare class pocketmine\VersionInfo, because the name is already in use in D:\SAMSUNG_T5\Minecraft PE\src\VersionInfo.php on line 30
You need to update your composer dependencies & autoloader every time you pull changes.