Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.