block entities vs block states
Block states handle small sets of predefined properties, while block entities store extensive, frequently changing data and custom ticking logic.
- Block states represent predefined combinations of property values that the game computes during launch for fast switching
- Block entities attach additional data and logic to placed blocks, handling dynamic elements like inventory slots, rendering, and ticking
- A general guideline is using block states for finite value sets and block entities for near-infinite possibilities
- Thousands of block state combinations can severely harm performance and expand rapidly
- Animations and rapidly shifting progress should be managed by block entities rather than driven directly by block states


