Jump to content

Recommended Posts

Posted

I have been attempting to troubleshoot this for hours by now.

 

This is from the log:

 

[21:51:47] [Client thread/ERROR] [FML]: Exception loading model for variant selimrandomstuff:bedWhite#facing=west,occupied=false,part=foot for blockstate "selimrandomstuff:bedWhite[facing=west,occupied=false,part=foot]"

net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model selimrandomstuff:bedWhite#facing=west,occupied=false,part=foot with loader VariantLoader.INSTANCE, skipping

at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]

 

And this is the blockstate (bedWhite.json):

 

{

    "variants": {

        "facing=north,part=foot,occupied=false": { "model": "bed_foot", "y": 180 },

        "facing=east,part=foot,occupied=false":  { "model": "selimrandomstuff:bed_footWhite", "y": 270 },

        "facing=south,part=foot,occupied=false": { "model": "selimrandomstuff:bed_footWhite" },

        "facing=west,part=foot,occupied=false":  { "model": "selimrandomstuff:bed_footWhite", "y": 90 },

        "facing=north,part=head,occupied=false": { "model": "selimrandomstuff:bed_headWhite", "y": 180 },

        "facing=east,part=head,occupied=false":  { "model": "selimrandomstuff:bed_headWhite", "y": 270 },

        "facing=south,part=head,occupied=false": { "model": "selimrandomstuff:bed_headWhite" },

        "facing=west,part=head,occupied=false":  { "model": "selimrandomstuff:bed_headWhite", "y": 90 },

        "facing=north,part=foot,occupied=true": { "model": "selimrandomstuff:bed_footWhite", "y": 180 },

        "facing=east,part=foot,occupied=true":  { "model": "selimrandomstuff:bed_footWhite", "y": 270 },

        "facing=south,part=foot,occupied=true": { "model": "selimrandomstuff:bed_footWhite" },

        "facing=west,part=foot,occupied=true":  { "model": "selimrandomstuff:bed_footWhite", "y": 90 },

        "facing=north,part=head,occupied=true": { "model": "selimrandomstuff:bed_headWhite", "y": 180 },

        "facing=east,part=head,occupied=true":  { "model": "selimrandomstuff:bed_headWhite", "y": 270 },

        "facing=south,part=head,occupied=true": { "model": "selimrandomstuff:bed_headWhite" },

        "facing=west,part=head,occupied=true":  { "model": "selimrandomstuff:bed_headWhite", "y": 90 }

 

    }

}

 

 

And, the model itself (bed_footWhite.json):

 

{

    "textures": {

        "particle": "blocks/bed_feet_top",

        "top": "blocks/bed_feet_top",

        "bottom": "blocks/planks_oak",

        "end": "blocks/bed_feet_end",

        "side": "blocks/bed_feet_side"

    },

    "elements": [

        {  "from": [ 0, 0, 0 ],

            "to": [ 16, 9, 16 ],

            "faces": {

                "up":    { "uv": [  0, 16, 16,  0 ], "texture": "#top", "rotation": 90 },

                "north": { "uv": [  0,  7, 16, 16 ], "texture": "#end" },

                "west":  { "uv": [  0,  7, 16, 16 ], "texture": "#side" },

                "east":  { "uv": [ 16,  7,  0, 16 ], "texture": "#side" }

            }

        },

        {  "from": [ 0, 3, 0 ],

            "to": [ 16, 3, 16 ],

            "faces": {

                "down":  { "uv": [ 0, 0, 16, 16 ], "texture": "#bottom" }

            }

        }

    ]

}

 

 

This problem is occuring for every possible variant for the block.  I only posted the model for the foot part because I assume that it is the same issue for both the foot model and the head model.  I have this feeling that I am overlooking some minor thing.

Posted
Exception loading model for variant selimrandomstuff:bedWhite#facing=west,occupied=false,part=foot

...

        "facing=west,part=foot,occupied=false":  { "model": "selimrandomstuff:bed_footWhite", "y": 90 },

 

When using the vanilla blockstates format, the properties in each variant name must be in alphabetical order. You haven't done this.

 

Consider using Forge's blockstates format. This allows you to specify the effect of each property individually, including the model and textures.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.