Display Delight

Display Delight

2M Downloads

Crashes due to missing createBlockStateDefinition override in multiple blocks

Closed this issue ยท 2 comments

commented

You have some blocks that extend HorizontalDirectionalBlock but you are missing the override to createBlockStateDefinition that adds the FACING property to the blockstate.

If you dont need it to face a given direction, dont extend HorizontalDirectionalBlock. if you do, then override createBlockStateDefinition and add the FACING property.

commented

this class
https://github.com/jkvin114/display-delight-neoforge/blob/main/src/main/java/com/jkvin114/displaydelight/block/EmptyPlateBlock.java

for example, is missing the FACING property, and it appears you commented out the default state because it was crashing at start instead of correcting the issue.

Take a look at the vanilla loom code if you need an example.

commented

Fixed in v1.3.0 for 1.21.1