luckie12 Posted August 6, 2016 Share Posted August 6, 2016 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 Quote Link to comment Share on other sites More sharing options...
Matryoshika Posted August 6, 2016 Share Posted August 6, 2016 "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" Quote 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. Link to comment Share on other sites More sharing options...
luckie12 Posted August 6, 2016 Author Share Posted August 6, 2016 That works, but why doesnt that have to be done for my other models?? Quote Link to comment Share on other sites More sharing options...
Draco18s Posted August 6, 2016 Share Posted August 6, 2016 If you used a vanilla texture, you don't need the modID (it defaults to "minecraft:") Quote 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. Link to comment Share on other sites More sharing options...
luckie12 Posted August 6, 2016 Author Share Posted August 6, 2016 Oh thats why! Because i used planks_oak and glass.png haha thanks guys! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.