mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-25 03:55:11 +01:00
Updated Blocks (markdown)
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
|
||||
|
Loading…
Reference in New Issue
Block a user