CTM Connection issues
nikita488 opened this issue ยท 8 comments
Mod version: 0.2.1.5
Forge version: 1.12-14.21.1.2443
I have a problem. I have a block with subblocks that have COLOR property in it and it's seems that CTM not working properly for my blocks that have subblocks. All blocks trying to connect each other (it's trying to connect to blocks that have different meta).
I think i know why this happens:
My block needs only one texture (it's not dependent on COLOR property) so i do this:
ModelLoader.setCustomStateMapper(my_block, new StateMap.Builder().ignore(COLOR).build()) => this bind my block to "normal" location and now i can bind my texture to "normal" location.
But COLOR property used in few things: in IBlockColor (to switch color based on COLOR property), in damageDropped method, in getStateFromMeta and getMetaFromState. So when i remove setCustomStateMapper thing, it works fine:
Hmmm... Then you'll need to manually tell it the conditions. See here for how: https://github.com/Chisel-Team/ConnectedTexturesMod/wiki/Extra-Data#conditional-connections
Issue persists, yet to investigate what is conflicting with custom statemappers. Could you post your model JSON?
Fixed via cf4d97a