Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.io.FileNotFoundException: *.obj.json #14

Open
theoparis opened this issue Apr 7, 2021 · 2 comments
Open

java.io.FileNotFoundException: *.obj.json #14

theoparis opened this issue Apr 7, 2021 · 2 comments

Comments

@theoparis
Copy link

theoparis commented Apr 7, 2021

So I made a test mod with FOML, and it keeps saying it can't find the .obj.json file (WARN]: Unable to load model: 'ifi:block/blast_door_base.obj' referenced from: ifi:blast_door#: java.io.FileNotFoundException: ifi:models/block/blast_door_base.obj.json) but it doesn't seem to be loading the .obj file itself.

My custom block also has a missing model (purple cube).

I copied everything from the FOML_test folder in this repo in terms of the json files and I changed the names to match my obj files, so it shouldn't be erroring.

@theoparis
Copy link
Author

theoparis commented Apr 7, 2021

This is my dependencies block:

dependencies {
    // To change the versions see the gradle.properties file
    minecraft "com.mojang:minecraft:${project.minecraft_version}"
    mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
    modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
    modImplementation "dev.onyxstudios:FOML:${foml_version}"
    // Fabric API. This is technically optional, but you probably want it anyway.
    modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

    include "dev.onyxstudios:FOML:${foml_version}"
}

The block state file:

{
    "variants": {
        "": {
            "model": "ifi:block/blast_door_base.obj"
        }
    }
}
~

@Haven-King
Copy link
Collaborator

I'd suggest taking a look at my library Myron. It's more up to date, and has several additional features you might find interesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants