Skip to content

Allow blocks to define that they are only selectable when item can be placed on it#2983

Closed
DellieDelta wants to merge 4 commits intoPixelGuys:masterfrom
DellieDelta:remove-fluid-case-from-block-select
Closed

Allow blocks to define that they are only selectable when item can be placed on it#2983
DellieDelta wants to merge 4 commits intoPixelGuys:masterfrom
DellieDelta:remove-fluid-case-from-block-select

Conversation

@DellieDelta
Copy link
Copy Markdown
Contributor

@DellieDelta DellieDelta commented Apr 26, 2026

To remove the .fluid case in item selection, preparation for #627

Adds the block field .placementTags and the block selectionRule .placeable

It's a simple version for now (selection happens if a placementTag overlaps with a block tag), but it can be changed in the future to some kind of condition checking. Like replacing it with .placementConstraints (like tagOverlap, onTop, onBottom), which can work similarly to .selectionRule. To get closer to fixing #2491

I'll also make it possible separately to define multiple selectionRules per block in #2987, to make both the selectionRules .toolEffective and .placeable possible on the same block, in preparation for adding buckets

@DellieDelta DellieDelta force-pushed the remove-fluid-case-from-block-select branch from 9783718 to 7272d0e Compare April 27, 2026 13:51
@DellieDelta DellieDelta marked this pull request as ready for review April 27, 2026 13:57
@Wunka Wunka moved this to Easy to Review in PRs to review Apr 29, 2026
@DellieDelta DellieDelta closed this May 1, 2026
@DellieDelta
Copy link
Copy Markdown
Contributor Author

Closing because I don't want to add the field .placementTags that'll only be temporary anyway, and because fitting this into the existing tag system leads to other problems. Sooo this can be revisited when there's some kind of better placement constraint checking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants