Skip to content

feat(blockstate): add the rule based blockstate editor - #332

Open
theEvilReaper wants to merge 36 commits into
developfrom
spike/blockstate-rules
Open

theEvilReaper wants to merge 36 commits into
developfrom
spike/blockstate-rules

Conversation

@theEvilReaper

@theEvilReaper theEvilReaper commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Proposed changes

Blockstates get their own section next to items, sounds and the other models. Each one belongs to a block and holds a list of rules that decide which model is shown for which state of that block, optionally rotated and with a name to tell the rules apart. A new blockstate is created by entering a name and picking the block in the same dialog, after which the rules are edited on cards and saved through the header like on the other detail pages. Several blockstates may target the same block, so the editor loads all of them and warns when two of them claim the same state. Everything is stored in the backend now instead of only living in memory as it did in the first prototype.

Types of changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of
them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before
merging your code.

  • I have read the CONTRIBUTING.md
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

theEvilReaper and others added 30 commits November 16, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants