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.

stopbox

Forge Modder
  • Joined

  • Last visited

Everything posted by stopbox

  1. import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; public class ModelLocker extends ModelBase { // fields ModelRenderer modelbottom; ModelRenderer modelrightpanel; ModelRenderer modelfrontpaneltop; ModelRenderer modelfrontpanelrightbuffer; ModelRenderer modelfrontpanelleftbuffer; ModelRenderer modelfrontpanelventblade1; ModelRenderer modelfrontpanelventblade2; ModelRenderer modelfrontpanelventblade3; ModelRenderer modelfrontpanelbottom; ModelRenderer modelsidepanel; ModelRenderer modeltoppanel; ModelRenderer modelbackpanel; public ModelLocker() { textureWidth = 256; textureHeight = 128; modelbottom = new ModelRenderer(this, 0, 78); modelbottom.addBox(0F, 0F, 0F, 16, 1, 16); modelbottom.setRotationPoint(-8F, 23F, -8F); modelbottom.setTextureSize(256, 128); modelbottom.mirror = true; setRotation(modelbottom, 0F, 0F, 0F); modelrightpanel = new ModelRenderer(this, 90, 55); modelrightpanel.addBox(0F, 0F, 0F, 1, 31, 16); modelrightpanel.setRotationPoint(-8F, -8F, -8F); modelrightpanel.setTextureSize(256, 128); modelrightpanel.mirror = true; setRotation(modelrightpanel, 0F, 0F, 0F); modelfrontpaneltop = new ModelRenderer(this, 52, 0); modelfrontpaneltop.addBox(0F, 0F, 0F, 14, 3, 1); modelfrontpaneltop.setRotationPoint(-7F, -7F, 7.5F); modelfrontpaneltop.setTextureSize(256, 128); modelfrontpaneltop.mirror = true; setRotation(modelfrontpaneltop, 0F, 0F, 0F); modelfrontpanelrightbuffer = new ModelRenderer(this, 70, 10); modelfrontpanelrightbuffer.addBox(0F, 0F, 0F, 2, 3, 1); modelfrontpanelrightbuffer.setRotationPoint(-7F, -4F, 7.5F); modelfrontpanelrightbuffer.setTextureSize(256, 128); modelfrontpanelrightbuffer.mirror = true; setRotation(modelfrontpanelrightbuffer, 0F, 0F, 0F); modelfrontpanelleftbuffer = new ModelRenderer(this, 70, 10); modelfrontpanelleftbuffer.addBox(0F, 0F, 0F, 2, 3, 1); modelfrontpanelleftbuffer.setRotationPoint(5F, -4F, 7.5F); modelfrontpanelleftbuffer.setTextureSize(256, 128); modelfrontpanelleftbuffer.mirror = true; setRotation(modelfrontpanelleftbuffer, 0F, 0F, 0F); modelfrontpanelventblade1 = new ModelRenderer(this, 140, 30); modelfrontpanelventblade1.addBox(0F, 0F, 0F, 10, 0, 1); modelfrontpanelventblade1.setRotationPoint(-5F, -4F, 8.5F); modelfrontpanelventblade1.setTextureSize(256, 128); modelfrontpanelventblade1.mirror = true; setRotation(modelfrontpanelventblade1, -0.6981317F, 0F, 0F); modelfrontpanelventblade2 = new ModelRenderer(this, 140, 30); modelfrontpanelventblade2.addBox(0F, 0F, 0F, 10, 0, 1); modelfrontpanelventblade2.setRotationPoint(-5F, -3F, 8.5F); modelfrontpanelventblade2.setTextureSize(256, 128); modelfrontpanelventblade2.mirror = true; setRotation(modelfrontpanelventblade2, -0.715585F, 0F, 0F); modelfrontpanelventblade3 = new ModelRenderer(this, 140, 30); modelfrontpanelventblade3.addBox(0F, 0F, 0F, 10, 0, 1); modelfrontpanelventblade3.setRotationPoint(-5F, -2F, 8.5F); modelfrontpanelventblade3.setTextureSize(256, 128); modelfrontpanelventblade3.mirror = true; setRotation(modelfrontpanelventblade3, -0.6981317F, 0F, 0F); modelfrontpanelbottom = new ModelRenderer(this, 171, 60); modelfrontpanelbottom.addBox(0F, 0F, 0F, 14, 24, 1); modelfrontpanelbottom.setRotationPoint(-7F, -1F, 7.5F); modelfrontpanelbottom.setTextureSize(256, 128); modelfrontpanelbottom.mirror = true; setRotation(modelfrontpanelbottom, 0F, 0F, 0F); modelsidepanel = new ModelRenderer(this, 190, 0); modelsidepanel.addBox(0F, 0F, 0F, 1, 31, 15); modelsidepanel.setRotationPoint(7F, -8F, -7F); modelsidepanel.setTextureSize(256, 128); modelsidepanel.mirror = true; setRotation(modelsidepanel, 0F, 0F, 0F); modeltoppanel = new ModelRenderer(this, 122, 0); modeltoppanel.addBox(0F, 0F, 0F, 14, 1, 15); modeltoppanel.setRotationPoint(-7F, -8F, -7F); modeltoppanel.setTextureSize(256, 128); modeltoppanel.mirror = true; setRotation(modeltoppanel, 0F, 0F, 0F); modelbackpanel = new ModelRenderer(this, 133, 56); modelbackpanel.addBox(0F, 0F, 0F, 15, 31, 1); modelbackpanel.setRotationPoint(-7F, -8F, -8F); modelbackpanel.setTextureSize(256, 128); modelbackpanel.mirror = true; setRotation(modelbackpanel, 0F, 0F, 0F); } public void render(Entity ent, float f, float f1, float f2, float f3, float f4, float f5) { super.render(ent, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5, ent); modelbottom.render(f5); modelrightpanel.render(f5); modelfrontpaneltop.render(f5); modelfrontpanelrightbuffer.render(f5); modelfrontpanelleftbuffer.render(f5); modelfrontpanelventblade1.render(f5); modelfrontpanelventblade2.render(f5); modelfrontpanelventblade3.render(f5); modelfrontpanelbottom.render(f5); modelsidepanel.render(f5); modeltoppanel.render(f5); modelbackpanel.render(f5); } public void renderModel() { modelbottom.render(0.0625F); modelrightpanel.render(0.0625F); modelfrontpaneltop.render(0.0625F); modelfrontpanelrightbuffer.render(0.0625F); modelfrontpanelleftbuffer.render(0.0625F); modelfrontpanelventblade1.render(0.0625F); modelfrontpanelventblade2.render(0.0625F); modelfrontpanelventblade3.render(0.0625F); modelfrontpanelbottom.render(0.0625F); modelsidepanel.render(0.0625F); modeltoppanel.render(0.0625F); modelbackpanel.render(0.0625F); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity ent) { super.setRotationAngles(f, f1, f2, f3, f4, f5, ent); } }
  2. Currently, I'm trying to render a TileEntity and it will not show up correctly The main class @EventHandler public void preInit(FMLPreInitializationEvent preInit) { // Blocks GameRegistry.registerBlock(BlockList.blk_locker, "locker_block"); GameRegistry.registerBlock(BlockList.blk_placeholder_locker, "locker_ph"); // Tile Entity & Tile Entity Rendering GameRegistry.registerTileEntity(TileEntityLocker.class, "locker_render"); GameRegistry.registerTileEntity(TileEntityLockerHolder.class, "locker_ph_render"); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLocker.class, new LockerRender()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLockerHolder.class, new LockerPlaceHolderRender()); // Lang LanguageRegistry.instance().addName(BlockList.blk_locker, "Locker"); } } The Rendering Class import org.lwjgl.opengl.GL11; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; public class LockerRender extends TileEntitySpecialRenderer { ModelLocker model_locker = new ModelLocker(); @Override public void renderTileEntityAt(TileEntity tileentity, double posX, double posY, double posZ, float f, int destroyState) { GL11.glPushMatrix(); GlStateManager.translate(posX, posY, posZ); bindTexture(TextureLocation.locker_texture); model_locker.renderModel(); GL11.glPopMatrix(); } }
  3. Client> java.lang.IllegalAccessError: tried to access field ym.c from class net.minecraftforge.common.ForgeHooks Client> at net.minecraftforge.common.ForgeHooks.initTools(ForgeHooks.java:193) Client> at net.minecraftforge.common.ForgeHooks.<clinit>(ForgeHooks.java:248) Client> at java.lang.Class.forName0(Native Method) Client> at java.lang.Class.forName(Unknown Source) Client> at ReflectorClass.getTargetClass(ReflectorClass.java:37) Client> at ReflectorClass.<init>(ReflectorClass.java:17) Client> at Reflector.<clinit>(Reflector.java:40) Client> at aui.b(GameSettings.java:2370) Client> at blk.i(SourceFile:112) Client> at blk.a(SourceFile:69) Client> at bjt.a(SimpleReloadableResourceManager.java:110) Client> at ats.O(SourceFile:324) Client> at ats.d(SourceFile:599) Client> at net.minecraft.client.main.Main.main(SourceFile:101) Client> [OptiFine] (Reflector) Method not pesent: net.minecraftforge.client.ForgeHooksClient.onTextureLoad Client> java.lang.NoClassDefFoundError: net/minecraft/launchwrapper/LaunchClassLoader Client> at cpw.mods.fml.common.ModClassLoader.<init>(ModClassLoader.java:46) Client> at cpw.mods.fml.common.Loader.<init>(Loader.java:183) Client> at cpw.mods.fml.common.Loader.instance(Loader.java:163) Client> at cpw.mods.fml.common.FMLCommonHandler.<init>(FMLCommonHandler.java:90) Client> at cpw.mods.fml.common.FMLCommonHandler.<clinit>(FMLCommonHandler.java:79) Client> at java.lang.Class.forName0(Native Method) Client> at java.lang.Class.forName(Unknown Source) Client> at ReflectorClass.getTargetClass(ReflectorClass.java:37) Client> at ReflectorClass.<init>(ReflectorClass.java:17) Client> at Reflector.<clinit>(Reflector.java:62) Client> at aui.b(GameSettings.java:2370) Client> at blk.i(SourceFile:112) Client> at blk.a(SourceFile:69) Client> at bjt.a(SimpleReloadableResourceManager.java:110) Client> at ats.O(SourceFile:324) Client> at ats.d(SourceFile:599) Client> at net.minecraft.client.main.Main.main(SourceFile:101) Client> Caused by: java.lang.ClassNotFoundException: net.minecraft.launchwrapper.LaunchClassLoader Client> at java.net.URLClassLoader$1.run(Unknown Source) Client> at java.net.URLClassLoader$1.run(Unknown Source) Client> at java.security.AccessController.doPrivileged(Native Method) Client> at java.net.URLClassLoader.findClass(Unknown Source) Client> at java.lang.ClassLoader.loadClass(Unknown Source) Client> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) Client> at java.lang.ClassLoader.loadClass(Unknown Source) Client> ... 17 more
  4. you install forge first then optifine
  5. there has been modloader classes in the forge zip when i download a fresh copy.
  6. 2012-09-07 20:03:09 [iNFO] [ForgeModLoader] Forge Mod Loader version 3.0.71.289 for Minecraft client:1.3.2, server:1.3.2 loading 2012-09-07 20:03:09 [FINEST] [ForgeModLoader] All core mods are successfully located 2012-09-07 20:03:09 [FINEST] [ForgeModLoader] Discovering coremods 2012-09-07 20:03:09 [FINEST] [ForgeModLoader] Found library file argo-2.25.jar present and correct in lib dir 2012-09-07 20:03:09 [FINEST] [ForgeModLoader] Found library file guava-12.0.1.jar present and correct in lib dir 2012-09-07 20:03:09 [FINEST] [ForgeModLoader] Found library file asm-all-4.0.jar present and correct in lib dir 2012-09-07 20:03:09 [FINEST] [ForgeModLoader] Running coremod plugins 2012-09-07 20:03:09 [FINEST] [ForgeModLoader] Running coremod plugin FMLCorePlugin 2012-09-07 20:03:57 [iNFO] [sTDERR] Exception in thread "Thread-10" java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: Invalid ModLoader class detected 2012-09-07 20:03:57 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:175) 2012-09-07 20:03:57 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchApplet(FMLRelauncher.java:242) 2012-09-07 20:03:57 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.appletEntry(FMLRelauncher.java:212) 2012-09-07 20:03:57 [iNFO] [sTDERR] at net.minecraft.client.MinecraftApplet.init(MinecraftApplet.java:25) 2012-09-07 20:03:57 [iNFO] [sTDERR] at net.minecraft.Launcher.replace(Launcher.java:136) 2012-09-07 20:03:57 [iNFO] [sTDERR] at net.minecraft.Launcher$1.run(Launcher.java:79) 2012-09-07 20:03:57 [iNFO] [sTDERR] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Invalid ModLoader class detected 2012-09-07 20:03:57 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchLibraryManager.handleLaunch(RelaunchLibraryManager.java:239) 2012-09-07 20:03:57 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:155) 2012-09-07 20:03:58 [iNFO] [sTDERR] ... 5 more 2012-09-07 20:03:58 [iNFO] [sTDERR] Caused by: java.lang.RuntimeException: Invalid ModLoader class detected 2012-09-07 20:03:58 [iNFO] [sTDERR] at cpw.mods.fml.common.asm.FMLSanityChecker.call(FMLSanityChecker.java:62) 2012-09-07 20:03:58 [iNFO] [sTDERR] at cpw.mods.fml.common.asm.FMLSanityChecker.call(FMLSanityChecker.java:16) 2012-09-07 20:03:58 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchLibraryManager.handleLaunch(RelaunchLibraryManager.java:235) 2012-09-07 20:03:58 [iNFO] [sTDERR] ... 6 more how do you fix it?

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.