Jump to content

(i thought this would be simple)Changing the texture for an torches on walls


Recommended Posts

Posted (edited)

Im making a new torch type item "unlit torch". I copied the model json file for the vanilla torch on to my unlit torch. The plan was to change the texture reference in the file to my own texture. This worked for the centered torch, but the walled torches texture is referenced weirdly for some reason. I cant figure out how to change the texture of my walled torch.

 

torch_wall_off.json

Quote

{
    "ambientocclusion": false,
    "textures": {
        "particle": "#torch"
    },
    "elements": [
        {   "from": [ -1, 3.5, 7 ],
            "to": [ 1, 13.5, 9 ],
            "rotation": { "origin": [ 0, 3.5, 8 ], "axis": "z", "angle": -22.5 },
            "shade": false,
            "faces": {
                "down": { "uv": [ 7, 13, 9, 15 ], "texture": "#torch" },
                "up":   { "uv": [ 7,  6, 9,  8 ], "texture": "#torch" }
            }
        },
        {   "from": [ -1, 3.5, 0 ],
            "to": [ 1, 19.5, 16 ],
            "rotation": { "origin": [ 0, 3.5, 8 ], "axis": "z", "angle": -22.5 },
            "shade": false,
            "faces": {
                "west": { "uv": [ 0, 0, 16, 16 ], "texture": "#torch" },
                "east": { "uv": [ 0, 0, 16, 16 ], "texture": "#torch" }
            }
        },
        {   "from": [ -8, 3.5, 7 ],
            "to": [ 8, 19.5, 9 ],
            "rotation": { "origin": [ 0, 3.5, 8 ], "axis": "z", "angle": -22.5 },
            "shade": false,
            "faces": {
                "north": { "uv": [ 0, 0, 16, 16 ], "texture": "#torch" },
                "south": { "uv": [ 0, 0, 16, 16 ], "texture": "#torch" }
            }
        }
    ]
}

The texture seams to be refrenced with "texture":"#torch" i dont know what this means, this isnt a texture file like how the other model files usually refrence.

For reference this is the centered torches model json file. (Notice ive already changed the texture reference form "minecraft:blocks/torch" to my own texture "progressionmod:blocks/torch_off")

Quote

{
    "parent": "block/template_torch",
    "textures": {
        "torch": "progressionmod:blocks/torch_off"
    }
}

 

torch_off.json

 

 

Any info helps :)

 

Edited by greetthemoth
Posted

I figured it out. It was simple all i had to do was use this as my model file.

 

{
    "parent": "block/torch_wall",
    "textures": {
        "torch": "progressionmod:blocks/torch_off"
    }
}

 

figured it out by checking the Redstone torch as refrence.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.