Hi guys, i am learning to develop forge mods on 1.16.3 and i am wondering if you have any idea of how i can simplify this blockstate file.
Currently i have a miniframe item, that can be attached on a block in all 6 directions, with a custom model.
Furthermore it can then be rotated depending on the player position. The code for setting the blockstates etc. all work out and the block is behaving exactly how it should. However currently i have the model pre-transformed in all 24 versions of blockstates. Is there a smarter way to do this? I Tried using the built in X and Y parameters in the JSON, but could not achieve all the needed mutations.
Ideally i would like to just have one render of the model, since it only differs in rotation and reexporting it quickly becomes a chore.
{
"variants": {
"facing=up,rotated=0": { "model": "testmod:block/miniframe_up_n"},
"facing=up,rotated=1": { "model": "testmod:block/miniframe_up_s"},
"facing=up,rotated=2": { "model": "testmod:block/miniframe_up_e"},
"facing=up,rotated=3": { "model": "testmod:block/miniframe_up_w"},
"facing=down,rotated=0": { "model": "testmod:block/miniframe_down_n"},
"facing=down,rotated=1": { "model": "testmod:block/miniframe_down_s"},
"facing=down,rotated=2": { "model": "testmod:block/miniframe_down_e"},
"facing=down,rotated=3": { "model": "testmod:block/miniframe_down_w"},
"facing=north,rotated=0": { "model": "testmod:block/miniframe_north_u" },
"facing=north,rotated=1": { "model": "testmod:block/miniframe_north_d" },
"facing=north,rotated=2": { "model": "testmod:block/miniframe_north_e" },
"facing=north,rotated=3": { "model": "testmod:block/miniframe_north_w" },
"facing=south,rotated=0": { "model": "testmod:block/miniframe_south_u"},
"facing=south,rotated=1": { "model": "testmod:block/miniframe_south_d"},
"facing=south,rotated=2": { "model": "testmod:block/miniframe_south_e"},
"facing=south,rotated=3": { "model": "testmod:block/miniframe_south_w"},
"facing=west,rotated=0": { "model": "testmod:block/miniframe_west_u"},
"facing=west,rotated=1": { "model": "testmod:block/miniframe_west_d"},
"facing=west,rotated=2": { "model": "testmod:block/miniframe_west_n"},
"facing=west,rotated=3": { "model": "testmod:block/miniframe_west_s"},
"facing=east,rotated=0": { "model": "testmod:block/miniframe_east_u"},
"facing=east,rotated=1": { "model": "testmod:block/miniframe_east_d"},
"facing=east,rotated=2": { "model": "testmod:block/miniframe_east_n"},
"facing=east,rotated=3": { "model": "testmod:block/miniframe_east_s"}
}
}