Skip to content

Commit

Permalink
fix a grammar mistake in states.md
Browse files Browse the repository at this point in the history
  • Loading branch information
IchHabeHunger54 committed Nov 15, 2023
1 parent fc9e448 commit d7662bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/blocks/states.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ A good rule of thumb is: **if it has a different name, it should be a separate b

Here, the rule of thumb is: **if you have a finite amount of states, use a blockstate, if you have an infinite or near-infinite amount of states, use a block entity.** Block entities can store arbitrary amounts of data, but are slower than blockstates.

Blockstates and block entities can be used in conjunction with one another. For example, the chest uses blockstate properties for things like the direction, whether it is opened or not, or becoming a double chest is handled by blockstate properties, while storing the inventory or interacting with hoppers is handled by a block entity.
Blockstates and block entities can be used in conjunction with one another. For example, the chest uses blockstate properties for things like the direction, whether it is opened or not, or becoming a double chest, while storing the inventory or interacting with hoppers is handled by a block entity.

There is no definitive answer to the question "How many states are too much for a blockstate?", but we recommend that if you need more than 8-9 bits of data (i.e. more than a few hundred states), you should use a block entity instead.

Expand Down

1 comment on commit d7662bd

@neoforged-pages-deployments
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploying with Cloudflare Pages

Name Result
Last commit: d7662bd939bc27b5a280fd7a62ffa7eb9cd4d3c9
Status: ✅ Deploy successful!
Preview URL: https://cf872db4.neoforged-docs-previews.pages.dev
PR Preview URL: https://pr-21.neoforged-docs-previews.pages.dev

Please sign in to comment.