Jump to content

Recommended Posts

Posted

hello.

i have been learning how to make a mod for a bit, and i'm trying to simply give it a texture.

(@19:58) tutorial series is out of date, using deprecated stuff. this wiki page hasn't been updated for 1.8+, so setBlockTextureName() doesn't even exist anymore. i learned that it was replaced with a much more difficult process where you have to create 3 .json files for each block you make. i've spent two hours on trying to find how to perform this task that i assumed would be simple.

 

anyways, my mod's name is "example" and the block i'm trying to create has the ID "machine" (nearly following the tutorial series playlist above; i used "machine" instead of "sillymachine"). i created the 3 json files, and then followed this tutorial's model section. now, every time i build, i get this error:

[FML]: Exception loading model for variant mittersexample:Machine#normal for blockstate "mittersexample:Machine"
java.lang.Exception: Could not load model definition for variant mittersexample:Machine#normal

 

this is how my json files are set up as well as the png file:

assets.example.blockstates/machine.json

{
    "variants": {
        "normal": { "model": "example:machine" }
    }
}

assets.example.models.block/machine.json

{
    "parent": "block/cube_all",
    "textures": {
        "all": "example:blocks/machine"
    }
}

assets.example.models.item/machine.json

{
    "parent":"example:blocks/machine",
    "display": {
        "thirdperson": {
            "rotation": [ 10, -45, 170 ],
            "translation": [ 0, 1.5, -2.75 ],
            "scale": [ 0.375, 0.375, 0.375 ]
        }
    }
}

and the texture for the block is in assets.example.textures.blocks/machine.png and it IS 16x16

 

i don't know what to do. google just spits out either outdated or unhelpful results and the wiki is outdated. help anybody?

 

EDIT

ugh. i always end up solving problems myself after posting about them on some forum. my mod name was left as "mittersexample" instead of being "example"... i had a feeling it was something obvious.

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.