kvverti / structure-helpers

Miscellaneous helpers for fabric structure generation using structure files
MIT License
3 stars 0 forks source link

Suggestion - RandomChanceProcessor for stairs and other state-based blocks #4

Closed Draylar closed 4 years ago

Draylar commented 4 years ago

RandomChanceProcessor works fantastically, but is a bit of a pain to use for stairs, slabs, and other blocks that have states (like direction). What would be awesome is a chance processor that would let me ignore the specifics of the state, and just replace the type of block, like so:

RandomChanceProcessor
    .builder()
    .add(Blocks.STONE_BRICK_STAIRS, RandomChanceProcessor.Entry.of(Blocks.SANDSTONE_STAIRS, 1))
    .build()

This would replace any stone brick stairs with sandstone stairs, keeping the same direction.

kvverti commented 4 years ago

Implemented :)