Jump to content

asd123

Members
  • Posts

    9
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

asd123's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Alright, it's working now. Here's the summary for anyone coming from Google six months later: * The call to ModItems.createItems() goes in CommonProxy.preInit(), the call to ItemRenderRegister.registerItemRenderer() goes in ClientProxy.init() after calling the base method. * I completely missed something in createItems(), can you spot it? (...) public static Item tutorialItem; public static final void createItems() { Item tutorialItem = new BasicItem("tutorial_item"); (...) Fuck me ... * Now the game would start up, but still displayed the error texture. Turns out that this code proposed upthread ModelLoader.setCustomModelResourceLocation ( item, 0, new ModelResourceLocation("mapoverlay:item/tutorial_item", "inventory") ); doesn't actually work, so I changed it back into the code based on the the tutorial and there you go, working model & texture: Minecraft.getMinecraft().getRenderItem().getItemModelMesher() .register(item, 0, new ModelResourceLocation("mapoverlay:tutorial_item", "inventory"));
  2. I've already tried that and it didn't work. Log https://gist.github.com/asdf-mnbv/aec8d8405143c1225902a6255dbf2ba8
  3. https://github.com/asdf-mnbv/forge_src
  4. Here's the whole src folder: https://drive.google.com/file/d/0B9SmWuzffpZ-UTctUkhuOWdvOUk/view
  5. They're already there, see above
  6. No changes either.
  7. Here's the exception I'd get: Edit: I've moved the files to the path you posted and it's doing the same as in my original location, no exceptions but the assets don't show up.
  8. That just gives me a NullPointerException: https://gist.github.com/anonymous/6dad8bcf1012129230681d4276d0158c That does, too: https://gist.github.com/anonymous/fdb196d7922b8d5a25fa15a3b088ae9f Can you post the full path the files should be in? /forge/src/main/java/assets/mapoverlay/textures/item/tutorial_item.png and /forge/src/main/java/assets/mapoverlay/models/item/tutorial_item.json are the only locations where the game will start without throwing any exceptions.
  9. I'm trying to follow this tutorial but I got stuck at the part where you assign a model and texture to an item and I need someone to take a look at my code. It doesn't throw any exceptions but I get the default texture either way. What I see ingame: https://i.imgur.com/PqBy2TR.png Log: https://gist.github.com/anonymous/163b6f63327650f71d46e6f77dc1bc09 Project structure: https://i.imgur.com/emzcsry.png Code: https://github.com/asdf-mnbv/forge_src *
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.