Carpenters Blocks but using states?
The idea of Carpenters blocks is that for any given shape in minecraft it should be able to use any texture, for this, a block has to know what model and what texture to use, by default a block already knows what model to use, but we need to store additional information about what texture to use instead, from what I gather, this is usally done using block entities, block entities feel like a lot of overhead for what is effectively a single number, as such my "frame" blocks have an additional property caled texture id.
when a player interacts with a block, if they have a block in there hand then that blocks texture is then assigned a texture id, this is universal across all frames, for instance, if stone was used on some stairs and assigned the id 1, then any other frame would use texture id 1 for stone, this does add a lot of extra states to some blocks, but at a low level, having the game take a bit longer to load but run fairly unobstructed in game, is a good thing.
generally all blocks can be crafted with sticks.
some odd blocks in this mod should also be noted
- ramps, and corner ramps, functionally act like stairs
- covers can have up to 3 sides of a block in one block.
- partitions are like walls
- H fences are also like walls
- giant blocks when placed are 2x2 and 4x4 respectively
- fences exist
- doors exist
- blocks that are 1.5 blocks tall one up, one down, they render as such
- there are chests, be careful with them however.
you can use /simpleframes report
as an operator to see what blocks are using what texture ids
/simpleframes set (id) (blockstates)
can be used to change a texture
I am not a wizard, and I cannot put so much time into modding in the current circumstance, if someone knows how to solve an issue, please make a pull request or gist, suggestions can also be given this way to.
feel free to make addons and modifications to this mod, eventually there will be a wiki at https://github.com/LoremVIpsum/OpenSimpleFrames/wiki