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

Im able to create a block with the same texture on every side but I can't figure out why my json's won't create a block with unique textures on the north and south sides.

I can't find any good examples online or in the forge project.

 

Code

"

{
    "parent": "block/cube_all",
    "textures": {
        "all": "minecraftedu:block/edu_default_block"
        "north": "minecraftedu:block/not_block"
        "south": "minecraftedu:block/not_block"
    }
}

"

"

{
    "variants": {
        "": { "model": "minecraftedu:block/edu_default_block" }
        "north": { "model": "minecraftedu:block/not_block" }
        "south": { "model": "minecraftedu:block/not_block" }
    }
}

"

  • Author
1 minute ago, Ugdhar said:

The minecraft wiki has a good breakdown of the model json format:

https://minecraft.gamepedia.com/Model#Block_models

 

Also, check the vanilla model files for things with different faces to see how they did it. The vanilla sources are a very good reference, and should be viewable through your IDE.

where are they, ive been looking for hours and can only find the classes

  • Author

I've tried what the link you posted suggested and it's still not working

 

{
    "parent": "block/cube_all",
    "textures": {
        "all":  "minecraftedu:block/not_block"
    },
    "elements": [
        {
            "from": [ 0, 0, 0 ],
            "to": [ 16, 16, 16 ],
            "faces": {
                "down": { "uv": [0,0, 16,8], "texture": "#all", "cullface": "down" },
                "up": { "uv": [0,0, 16,8], "texture": "#all", "cullface": "up" },
                "north": { "uv": [0,8, 16,16], "texture": "#all", "cullface": "north" },
                "south": { "uv": [0,8, 16,16], "texture": "#all", "cullface": "south" },
                "west": { "uv": [0,0, 16,8], "texture": "#all", "cullface": "west" },
                "east": { "uv": [0,0, 16,8], "texture": "#all", "cullface": "east" },
            }
        }
    ]
}

 

Did you find the client-extra.jar? Look at the json for the crafting table as an example.

That's what I would do if I were trying to do what you are doing.

 

What is working/not working? (be specific) If you're getting missing textures (black/purple squares), you should also post logs so it shows what it is looking for.

Edited by Ugdhar

57 minutes ago, Elite_Puddle said:

"parent": "block/cube_all"

You see this bit? This bit points to another json file that defines the six sides. Check out all of the other "cube_xxx.json" assets (including cube.json)

 

And oh yeah,

57 minutes ago, Elite_Puddle said:

            "faces": {
                "down": { "uv": [0,0, 16,8], "texture": "#all", "cullface": "down" },
                "up": { "uv": [0,0, 16,8], "texture": "#all", "cullface": "up" },
                "north": { "uv": [0,8, 16,16], "texture": "#all", "cullface": "north" },
                "south": { "uv": [0,8, 16,16], "texture": "#all", "cullface": "south" },
                "west": { "uv": [0,0, 16,8], "texture": "#all", "cullface": "west" },
                "east": { "uv": [0,0, 16,8], "texture": "#all", "cullface": "east" },
            }

That's pretty much exactly what cube_all defines and guess what that definition is? One texture on all sides.

 

So of course what you did didn't work because you told the game "I want one texture on all the sides."

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.