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

Hi!

 

I made a custom item (my second item) the first item works well with everything, but the second item i made i did EVERYTHING exact the same to register it etc etc, but it keeps being purple and black. Now when i load in the game it says that it cannot find the textures in the minecraft domain.... i placed the textures in the BOT domain, which is my project... I checked the JSON like 1000 times, but i cannot find the issue!

 

THis is how i register them:

 

public static void registerRender(Block block, int meta, String fileName){
	Item item = Item.getItemFromBlock(block);
	ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(Reference.MODID + ":" + fileName,"inventory"));
}

 

	registerRender(medium_chest, 0, "medium_chest");

The JSON's

 

blockstate

{
    "variants": {
        "facing=north": {
            "model": "bot:medium_chest_north"
        },
        "facing=south": {
            "model": "bot:medium_chest_south"
        },
        "facing=east": {
            "model": "bot:medium_chest_east"
        },
        "facing=west": {
            "model": "bot:medium_chest_west"
        }
    }
}

models/Block

{
    "parent": "block/cube_all",
    "__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)",
        "0": "blocks/medium_chest_image_north",
        "1": "blocks/medium_chest_image"
    },
    "elements": [
        {
            "name": "Cube",
            "from": [ 0.0, 0.0, 0.0 ], 
            "to": [ 16.0, 16.0, 16.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "south": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "west": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "up": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "down": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }
            }
        }
    ]
}

 

 

*The register method works for every other item.

 

Thanks for the help! <3

        "0": "blocks/medium_chest_image_north",

        "1": "blocks/medium_chest_image"

 

Add your modid, "bot" before the strings representing the location of the textures, like this: "1": "bot:blocks/medium_chest_image"

Also previously known as eAndPi.

"Pi, is there a station coming up where we can board your train of thought?" -Kronnn

Published Mods: Underworld

Handy links: Vic_'s Forge events Own WIP Tutorials.

If you used a vanilla texture, you don't need the modID (it defaults to "minecraft:")

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.