Jump to content

I can't get the texture to render on all faces of my shape.


Go to solution Solved by Brady_The,

Recommended Posts

Posted (edited)

try this in your copperconduit.json file... you could also replace "all" with "copper" in your particular case, as that's the #name used in your shape json

    "shape": {
        "base": "conduits/copperconduitshapenew"
    },
    "textures":{
        "all": {"base":"game:block/metal/ingot/copper" }
    }, 
 

EDITED: changed a bit after actually trying it out... the shape name was incorrect in the files you uploaded, as well as the color not existing at the location you specified >in my instance of 1.21.6 (not sure what you're modding against, so definitely check that).  the >major< problem though is a subtle error that causes the crash: it's "textures" not "texture" ... that one little s makes all the difference. :)

 

Edited by KDLynch
Posted

All right, so I went in I fixed those problems and did a little bit of tweaking to make sure the files lined up, but for some reason it still doesn't show textures on the Block but, curiously every time I break the block it shows the textures on the particles after the block was broken so I don't think it is something to do with the block type Json as much as it is to do with the shape Json.

copperconduit.json copperconduitshapenew.json

  • Solution
Posted (edited)
1 hour ago, Faultymagnet445 said:

for some reason it still doesn't show textures on the Block

If you used the texture reference "base" in your shape file instead of "copper" it'd work.

Solution: Replace

"textures": {"base": { 
            "base": "game:block/metal/ingot/copper"},
        }

with

"textures": {
        "copper": { "base": "game:block/metal/ingot/copper" },
    }

Edit: KDLynch's "all" solution would work in this case too, because you are only referencing one texture in your shape.

Edited by Brady_The
  • Like 1
  • Amazing! 1
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.