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 several blocks which all use the same model and i use forge blockstate files to change the textures. However, since updating to 1.13 all blocks use the textures that are defined in the model file.

This is one of the Blockstate files:

{
    "forge_marker": 1,
    "defaults" : {
        "textures": {
            "front": "df-roads:road_sign_info_1a",
            "back": "df-roads:road_sign_back_square"
        }
    },
    "variants": {
        "facing": {
            "north": {
                "model": "df-roads:road_sign",
                "uvlock": false
            },
            "east": {
                "model": "df-roads:road_sign",
                "y": 90,
                "uvlock": false
            },
            "south": {
                "model": "df-roads:road_sign",
                "y": 180,
                "uvlock": false
            },
            "west": {
                "model": "df-roads:road_sign",
                "y": 270,
                "uvlock": false
            }
        },
        "down": {
            "true": {
                "submodel": {
                    "post_down": {
                        "model": "df-roads:road_sign_connector",
                        "uvlock": true
                    }
                }
            },
            "false": { }
        },
        "up": {
            "true": {
                "submodel": {
                    "post_up": {
                        "model": "df-roads:road_sign_connector",
                        "x": 180,
                        "uvlock": true
                    }
                }
            },
            "false": { }
        },
        "north": {
            "true": {
                "submodel": {
                    "post_north": {
                        "model": "df-roads:road_sign_connector",
                        "x": 90,
                        "uvlock": true
                    }
                }
            },
            "false": { }
        },
        "south": {
            "true": {
                "submodel": {
                    "post_south": {
                        "model": "df-roads:road_sign_connector",
                        "x": 90,
                        "y": 180,
                        "uvlock": true
                    }
                }
            },
            "false": { }
        },
        "east": {
            "true": {
                "submodel": {
                    "post_east": {
                        "model": "df-roads:road_sign_connector",
                        "x": 90,
                        "y": 90,
                        "uvlock": true
                    }
                }
            },
            "false": { }
        },
        "west": {
            "true": {
                "submodel": {
                    "post_west": {
                        "model": "df-roads:road_sign_connector",
                        "x": 90,
                        "y": 270,
                        "uvlock": true
                    }
                }
            },
            "false": { }
        }
    }
}

 

And this is the Model file:

{
    "textures": {
        "front": "df-roads:block/road_sign_warn_11a",
        "back": "df-roads:block/road_sign_back_triangle",
        "2": "df-roads:block/metal",
        "particle": "df-roads:block/metal"
    },
    "elements": [
        {
            "name": "Cube",
            "from": [ 1.0, 1.0, 6.9 ], 
            "to": [ 15.0, 15.0, 6.9 ], 
            "faces": {
                "north": { "texture": "#front", "uv": [ 0.0, 0.0, 16.0, 16.0 ], "cullface": "north" },
                "south": { "texture": "#back", "uv": [ 0.0, 0.0, 16.0, 16.0 ], "cullface": "south" }
            }
        },
        {
            "name": "Cube",
            "from": [ 7.0, 7.0, 7.0 ], 
            "to": [ 9.0, 9.0, 9.0 ], 
            "faces": {
                "east": { "texture": "#2", "uv": [ 0.0, 0.0, 2.1, 2.0 ] },
                "south": { "texture": "#2", "uv": [ 0.0, 0.0, 2.0, 2.0 ] },
                "west": { "texture": "#2", "uv": [ 0.0, 0.0, 2.1, 2.0 ] },
                "up": { "texture": "#2", "uv": [ 0.0, 0.0, 2.0, 2.1 ] },
                "down": { "texture": "#2", "uv": [ 0.0, 0.0, 2.0, 2.1 ] }
            }
        }
    ]
}

 

When i place the block in the world it shows the texture of the model file and not those of the blockstate file. This worked perfectly fine in 1.12.2, so I don't really know what I'm missing.

Thanks in advance

Edited by derfl007

I've got a similar problem too

 

All my (forge) blockstates that worked with no problems in 1.12.2 stopped working in 1.13.2. I use Minecraft "cube" model for my blocks and I get this errors in the log:

 

[Client thread/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: #down in minecraft:block/cube
[Client thread/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: #up in minecraft:block/cube
[Client thread/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: #north in minecraft:block/cube
[Client thread/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: #south in minecraft:block/cube
[Client thread/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: #west in minecraft:block/cube
[Client thread/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: #east in minecraft:block/cube

 

It is like the defaults textures in the blockstate are ignored. I tried to set the textures in every variants but they are ignored too

 

 

 

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.