-
Notifications
You must be signed in to change notification settings - Fork 11
Description
With some blocks, multiblocktweaker seems to fail to load textures, reporting
Error executing {[99:crafttweaker]: multiblocks/pizza_oven.zs}: Duplicate key TextureAtlasSprite{name='missingno', frameCount=1, rotated=false, x=2192, y=2112, height=16, width=16, u0=0.53515625, u1=0.5390625, v0=0.515625, v1=0.51953125}
The blocks I've had this problem with are twilight forest underbricks and chisel voidstone. For underbricks, the item is item:twilightforest:underbrick:0 and the is metastate:twilightforest:underbrick:0. However, when I let mbt infer the texture from the most common block in the design, it gives me the texture error. I'm 99.9% sure it also gives the same error if I use .withTexture on either the item or block form of underbricks.
I glanced over the code (the problem manifests SidedCubeRenderer.java:86) but I don't know the finer points of texture baking. I think it's caused by these blocks not being directly textured, instead they have blockstates which dictate other textures. The texture for underbrick with metadata 0 is really twilightforest:blocks/knightbrick. If I use .withTexture on that resource id the error goes away.
Here's the relevant part of the ct log and my script. About the .withTexture: lines: having no .withTexture line should reproduce the bug, and having the .withTexture(ICubeRenderer.nonSided("twilightforest:blocks/knightbrick")) line should have no error. Ignore the .withTexture(ICubeRenderer.fromBlock(<minecraft:brick_block>)) line.
Also, the aisle orders are really confusing because the default for the pattern and design are different. In the design, aisles go left to right, arguments go bottom to top, and strings go front to back, but in the pattern, aisles go back to front, arguments go bottom to top, and strings go left to right. Patterns can have the order changed but designs can't.