Posted May 7, 201411 yr Hey all, I've been trying to make a dimension in 1.7.2, and I'm running into a little trouble while referencing a certain class. I'm supposed use the "ModLoader" class from net.minecraft.src.ModLoader, but it doesn't appear to be here in the recommended build of forge for 1.7.2 Any ideas? SRC: public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity) { if(entity.ridingEntity == null && entity.riddenByEntity == null && entity instanceof EntityPlayerMP) { EntityPlayerMP player = (EntityPlayerMP) entity; ModLoader.getMinecraftServerInstance(); // syntax highlighting here because the ModLoader class doesn't exist } } Any and all help will be appreciated. Thanks.
May 7, 201411 yr Are you using a tutorial? Becuase it might be outdated. Try looking for a package that looks similar.
August 2, 201411 yr They do not have ModLoader support as of 1.7. As for the fix to your problem, I am looking for that as well. If I helped please press the Thank You button. Check out my mods at http://www.curse.com/users/The_Fireplace/projects
August 2, 201411 yr Minecraft.getMinecraft().getIntegratedServer(); -Mitchellbrine Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible. It may be freaking fucking hard though, but still possible If you create a topic on Modder Support, live by this motto: I don't want your charity, I want your information
August 2, 201411 yr You can also use MinecraftServer.getServer(); -Mitchellbrine Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible. It may be freaking fucking hard though, but still possible If you create a topic on Modder Support, live by this motto: I don't want your charity, I want your information
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.