Skip to content

Implement segmentable blocks (leaf litter, pink petals, wildflower)#247

Open
colonthreeing wants to merge 5 commits into
Steel-Foundation:masterfrom
colonthreeing:leaf_litter
Open

Implement segmentable blocks (leaf litter, pink petals, wildflower)#247
colonthreeing wants to merge 5 commits into
Steel-Foundation:masterfrom
colonthreeing:leaf_litter

Conversation

@colonthreeing

@colonthreeing colonthreeing commented Jul 9, 2026

Copy link
Copy Markdown

Leaf litter and similar blocks are implemented by this pr, as well as the function can_be_replaced (from vanilla's canBeReplaced in blockbehaviour.java line 831)

in specific:

  • implemented placement rules (rotational placing, increasing stack count when clicked on or when placed in the same block)
    • behaviours are abstracted into a new module called segmentable_blocks matching vanilla.
  • can_be_replaced function implemented on the block behaviour trait, still backs up to the config value but is replaceable.
    • needed for this pr specifically because all of these blocks override the behaviour.
  • also makes them break when they are not supported and drop the correct material
  • bonemealing works
    • bonemeal adds segments til it reaches the max, then creates an item

colonthreeing and others added 4 commits July 5, 2026 12:17
Matches vanilla's canBeReplaced() function, see BlockBehaviour.java line 829ish. Fixes pink petals not properly being replaced.
@colonthreeing colonthreeing marked this pull request as ready for review July 9, 2026 06:47
@colonthreeing colonthreeing changed the title Implement segmentable blocks (leaf litter, pink petals, the yellow one) Implement segmentable blocks (leaf litter, pink petals, wildflower) Jul 9, 2026
Comment thread steel-core/src/behavior/block.rs Outdated
Comment thread steel-core/src/behavior/blocks/vegetation/segmentable_block.rs Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants