ConnectedTexturesMod

ConnectedTexturesMod

110M Downloads

CTM Connection issues

nikita488 opened this issue ยท 8 comments

commented

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).
2017-08-03_15 03 58
2017-08-03_15 03 49
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:
2017-08-03_15 55 12

commented

Well, now it's just connects
2017-08-04_10 58 34
But i need this:
2017-08-03_15 55 12

commented

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

commented

Add "ignore_states": true inside the extra tag

commented

Issue persists, yet to investigate what is conflicting with custom statemappers. Could you post your model JSON?

commented

Hmmm ctm metadata too?

commented

Fixed via cf4d97a