How does the block system in Starforge work? I’m sure some of you have wondered this, and speculated on how exactly the game creates, places and references blocks within Starforge. We’ll discuss some of the concepts that allow blocks to become possible in a game environment, and thus lead us to an understanding of how it is blocks can exist, and work together in Starforge.
On every cube there are eight corners present, which can either be full, or empty (in binary, a 1 or a 0). Effectively, this means that you can store the state of every corner within a single byte of data, and that each bit of data is a single state out of all states in existence.
If we accept that there is a range of 0-255 bits in a byte, then there are 256 possible states that a corner can be in. Now, these states can be collapsed down, because the majority of the states are mirrors of each other in 3D space. For example, four corners filled on top, is the same as four on the bottom, and four on the left. So when we collapse these 256 possible states, we’re left with 16 distinct states that can exist for the cubes.
This images shows 14 states, the other two being entirely full and entirely empty.
So thus we can conclude blocks in Starforge work like light switches. Light switches that light up cubical parts of a much larger, invisible cube.
Kind of like this image below
This large invisible cube is partitioned into blocks of a certain size, and given the command to fill it in, with a variety of options expressed in the form of tile sets that cover these pre-defined cubes. As the cubes get added however, they use geometry as defined by the tile sets to determine where to place more cubes, thus the large invisible cube only exists in reference to the placement of the initial cube in the area.
...And that's the magic behind such beautiful creations appearing in Starforge like this: