Updated Blocks (markdown)

TheMode 2020-05-03 18:23:40 +02:00
parent 9215d5a1ca
commit fed88f06af

@ -8,4 +8,5 @@ blockManager.registerCustomBlock(YOUR_CUSTOMBLOCK_CONSTRUCTOR);
Examples of custom blocks can be found [here](https://github.com/Minestom/Minestom/tree/master/src/main/java/fr/themode/demo/blocks)
Some things to point out are the CustomBlock#getCustomBlockId which should return a UNIQUE id independent from the vanilla block id and should never be changed after having chunks saved since it could lead to corruption.
There is also a special CustomBlock#getBreakDelay which can be used to customize the breaking time of any custom block, can be disabled when < 0