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

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.

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.

  • Author

Huh.  I didn't know that it needed to be alphabetical.  I thought I tried that even.  As for Forge's blockstate system, I will look into it, thanks.

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.