#Custom model & texture don't apply

11 messages · Page 1 of 1 (latest)

devout granite
#

So yea, I'm trying to get more into blockbench modelling, however my understanding of applying the textures and models is basically non-existent and I face the same issues over and over again.

I tried creating some sorta star, and applied the texture of a raw gold block to it. However at the moment, all I get ingame, is a big 3d missing texture cube.

Here's the code of the model:

assets/minecraft/models/item/warped_fungus_on_a_stick.json:

{
    "parent": "item/warped_fungus_on_a_stick",
    "overrides": [
    {"predicate": {"custom_model_data":1}, "model": "item/warped_fungus_on_a_stick/goldstar"}
  ]
}

assets/minecraft/models/item/warped_fungus_on_a_stick/goldstar.json:

{
    "credit": "Made with Blockbench",
    "texture_size": [32, 32],
    "textures": {
        "0": "block/raw_gold_block",
    },
    "elements": [
        {
            "from": [-3, 7, 4.5],
            "to": [5, 15, 12.5],
            "rotation": {"angle": -45, "axis": "z", "origin": [0, 0, 0]},
            "faces": {
                "north": {"uv": [0, 0, 4, 4], "texture": "#0"},
                "east": {"uv": [1, 6, 5, 10], "texture": "#0"},
                "south": {"uv": [9, 0, 13, 4], "texture": "#0"},
                "west": {"uv": [0, 0, 4, 4], "texture": "#0"},
                "up": {"uv": [8, 6, 12, 10], "texture": "#0"},
                "down": {"uv": [0, 0, 4, 4], "texture": "#0"}
            }
        },
        {
            "from": [4.5, 7, -3],
            "to": [12.5, 15, 5],
            "rotation": {"angle": 45, "axis": "x", "origin": [0, 0, 0]},
            "faces": {
                "north": {"uv": [3, 0, 7, 4], "texture": "#0"},
                "east": {"uv": [0, 5, 4, 9], "texture": "#0"},
                "south": {"uv": [5, 5, 9, 9], "texture": "#0"},
                "west": {"uv": [11, 10, 15, 14], "texture": "#0"},
                "up": {"uv": [9, 1, 13, 5], "texture": "#0"},
                "down": {"uv": [0, 10, 4, 14], "texture": "#0"}
            }
        }
    ],
    "display": {
        "thirdperson_righthand": {
            "translation": [-0.3, 1.25, 0.5],
            "scale": [0.5, 0.5, 0.5]
        },
        "thirdperson_lefthand": {
            "translation": [0.2, 1.25, 0.5],
            "scale": [0.5, 0.5, 0.5]
        },
        "firstperson_righthand": {
            "rotation": [23, -69, 32],
            "translation": [8.25, 3.25, 0.75],
            "scale": [0.66, 0.66, 0.66]
        },
        "ground": {
            "scale": [0.6, 0.6, 0.6]
        },
        "gui": {
            "rotation": [0, -45, 0]
        }
    }
}
spiral flintBOT
#
Welcome to the help forum!

Please make sure to read #1029373817119838218 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

north ivy
# devout granite So yea, I'm trying to get more into blockbench modelling, however my understandi...

Your warped_fungus_on_a_stick.json is an endless self-reference.
Cause you say the parent is itself, so it's pointing at itself in an endless loop.
It needs to be

{
    "parent": "item/handheld_rod",
    "textures": {
      "layer0": "item/warped_fungus_on_a_stick"
},
    "overrides": [
      {"predicate": {"custom_model_data":1}, "model": "item/warped_fungus_on_a_stick/goldstar"}
  ]
}```

Also, you have an excess comma here in your goldstar.json, which invalidates your whole goldstar model
devout granite
north ivy
devout granite
#

yes

north ivy
#

Oh, I missed a comma at the end of the parent line in my warped_fungus_on_a_stick.json

#

And a bracket
Fixed it now

devout granite
#

ohhh, i see

#

thx :)

#

works!