Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/29/19 in all areas

  1. That is what you want. Now you should change the translation line in your .lang file into something like: item.imagespawner:imagespawner.name=Image Spawner Also, it seems like you are following a rather bad tutorial that writes unnecessary and pointless code. I would suggest ditching it.
    1 point
  2. Have you tried looking at the BlockDiamondOre class?
    1 point
  3. Every mod is for a specific Minecraft version. Download mods for the version you want.
    1 point
  4. Oh, and for reference, Forge doesn't even have to instantiate the class in order to get a ClassNotFoundException the way you have. Simply by telling the JVM that your client sided packet handler exists is sufficient. Because the JVM goes "I have to load this class, I don't know when--or indeed if at all--any given part of it will be executed, so I'm going to check that all of it is valid. To do that I need to make sure any additional classes it references are ones I can find, just in case I need to load them in the future. Oh what's this? I see a reference to EntityPlayerSP, I don't know what that is or where it find it. Crap."
    1 point
  5. Hi outflows, I remember running into a similar problem a while ago. The native Mouse cursor did not appear whenever I called mc.displayGuiScreen() at unfortunate times in the game loop. What fixed it for me was to delay the actual call to open the gui to a ClientTickEvent subscriber - something like this: private static GuiScreen openedGuiNextTick; @SubscribeEvent public static void onClientTick(ClientTickEvent event) { if (openedGuiNextTick != null) { Minecraft.getMinecraft().displayGuiScreen(openedGuiNextTick); openedGuiNextTick = null; } } Please correct me if this is bad design, I'm suggesting this because it helped fix my issue back when I ran into it. (This was done in 1.12.2) Thanks and good luck! ?
    1 point
×
×
  • Create New...

Important Information

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