Custom Block Textures are broken
MuteTiefling opened this issue ยท 2 comments
Minecraft Version
1.19.2
KubeJS Version
kubejs-forge-1902.6.0-build.123
Rhino Version
rhino-forge-1902.2.2-build.264
Architectury Version
architectury-6.3.56-forge
Forge/Fabric Version
forge
Describe your issue
Unable to create a block with a texture.
Below, attempting to use .textureAll()
results in a broken texture. Not specifying the texture also does not work as it used to in 1.16.
//priority: 900
StartupEvents.registry('block', (event) => {
const blocks = [
{
name: 'disabled_structure_indicator',
material: 'rock',
hardness: 2.0
}
];
blocks.forEach((block) => {
const block_event = event
.create(block.name)
.material(block.material)
.hardness(block.hardness)
.textureAll(`kubejs:block/${block.name}`);
if (block.leaves) {
block_event
.renderType('cutout')
.notSolid()
.noValidSpawns(true)
.suffocating(false)
.viewBlocking(false)
.redstoneConductor(false)
.transparent(false);
}
});
});
Texture is just a modifed stone texture, nothing fancy:
Not having any trouble adding item textures, however.
Crash report/logs
https://gist.github.com/MuteTiefling/59309638a1f5dc380b25d4d666737653
Can you please send the latest.log? It should have an error about why it shows as a missing texture
Sure. Not sure which one it was, but 1,3,4 and 6 have entries about the model missing. Search for disabled_structure_indicator
https://gist.github.com/MuteTiefling/3b11f637af1259e0a048eab023abe298
I eventually found this post which helped me fix it on my end: https://discord.com/channels/303440391124942858/1035556070480953445/1039982633867808820
Just created a model file for it.