This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I have been able to do:
world.setBlockState(new BlockPos(x, y, z), Blocks.STONE.getDefaultState().withProperty(BlockStone.VARIANT, BlockStone.EnumType.DIORITE_SMOOTH));
To access things like stone block sub types.
Now I'm trying to access flower, tall grass, tall flower, etc sub types.
I've tried:
world.setBlockState(new BlockPos(x, y, z), Blocks.RED_FLOWER.getDefaultState().withProperty(BlockFlower.TYPE, BlockFlower.EnumFlowerType.ALLIUM));
But of course there is no BlockFlower.TYPE.
How do I access flower subtypes? And which is the "main" block type for flowers, tall grass, and tall flowers? Where is this documented?
Any ideas on this? I'm still stuck here. Thank you!
Try looking at BlockBush
I have been able to do:
To access things like stone block sub types.
Now I'm trying to access flower, tall grass, tall flower, etc sub types.
I've tried:
But of course there is no BlockFlower.TYPE.
How do I access flower subtypes? And which is the "main" block type for flowers, tall grass, and tall flowers? Where is this documented?
Any ideas on this? I'm still stuck here. Thank you!
Try looking at BlockBush