Jump to content

KingOfMiners

Forge Modder
  • Posts

    99
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by KingOfMiners

  1. What is a "usable git"?
  2. Is there anything we can do to find out whats going on?
  3. I fixed that but when I try to put an Item into the Melter it just dissapiers, do you have any idea?
  4. Thanks, I fixed it but im getting another crash, could you help with this one? net.minecraft.util.ReportedException: Rendering screen at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1174) ~[EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1135) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:401) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: java.lang.NullPointerException at com.moreoresmod.main.gui.GuiMelter.drawGuiContainerForegroundLayer(GuiMelter.java:27) ~[GuiMelter.class:?] at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:136) ~[GuiContainer.class:?] at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:356) ~[ForgeHooksClient.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1147) ~[EntityRenderer.class:?] ... 15 more [15:29:56] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:646]: ---- Minecraft Crash Report ---- // But it works on my machine. Time: 5/21/16 3:29 PM Description: Rendering screen java.lang.NullPointerException: Rendering screen at com.moreoresmod.main.gui.GuiMelter.drawGuiContainerForegroundLayer(GuiMelter.java:27) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:136) at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:356) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1147) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1135) at net.minecraft.client.Minecraft.run(Minecraft.java:401) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at com.moreoresmod.main.gui.GuiMelter.drawGuiContainerForegroundLayer(GuiMelter.java:27) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:136) at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:356) -- Screen render details -- Details: Screen name: com.moreoresmod.main.gui.GuiMelter Mouse location: Scaled: (213, 119). Absolute: (427, 240) Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2 -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityPlayerSP['KingOfMiners'/293, l='MpServer', x=-152.14, y=77.00, z=213.08]] Chunk stats: MultiplayerChunkCache: 478, 478 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: World: (-151,64,223), Chunk: (at 9,4,15 in -10,13; contains blocks -160,0,208 to -145,255,223), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Level time: 1976 game time, 1976 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 116 total; [EntityPlayerSP['KingOfMiners'/293, l='MpServer', x=-152.14, y=77.00, z=213.08], EntityCreeper['Creeper'/45, l='MpServer', x=-231.50, y=48.00, z=133.50], EntitySkeleton['Skeleton'/46, l='MpServer', x=-226.50, y=28.00, z=146.50], EntityBat['Bat'/47, l='MpServer', x=-229.59, y=53.08, z=189.68], EntitySkeleton['Skeleton'/49, l='MpServer', x=-217.50, y=17.00, z=135.50], EntitySkeleton['Skeleton'/50, l='MpServer', x=-223.50, y=46.00, z=138.50], EntityBat['Bat'/51, l='MpServer', x=-214.25, y=51.10, z=156.25], EntityZombie['Zombie'/52, l='MpServer', x=-211.50, y=49.00, z=154.50], EntityWolf['Wolf'/53, l='MpServer', x=-210.70, y=61.37, z=169.51], EntityItem['item.tile.cloth.white'/54, l='MpServer', x=-213.33, y=61.00, z=175.51], EntityItem['item.item.muttonRaw'/55, l='MpServer', x=-215.24, y=62.00, z=174.43], EntityItem['item.tile.cloth.white'/56, l='MpServer', x=-213.66, y=62.00, z=173.09], EntityItem['item.item.muttonRaw'/57, l='MpServer', x=-213.38, y=62.00, z=172.54], EntityItem['item.tile.cloth.white'/58, l='MpServer', x=-211.74, y=61.00, z=174.36], EntityItem['item.item.muttonRaw'/59, l='MpServer', x=-210.91, y=61.00, z=171.45], EntitySkeleton['Skeleton'/60, l='MpServer', x=-213.47, y=49.00, z=165.27], EntityBat['Bat'/61, l='MpServer', x=-222.34, y=54.02, z=191.77], EntityWolf['Wolf'/62, l='MpServer', x=-215.85, y=64.00, z=182.24], EntityWolf['Wolf'/63, l='MpServer', x=-217.45, y=64.00, z=185.39], EntitySheep['Sheep'/66, l='MpServer', x=-208.45, y=63.00, z=211.89], EntitySheep['Sheep'/67, l='MpServer', x=-208.70, y=63.00, z=212.93], EntitySheep['Sheep'/68, l='MpServer', x=-211.50, y=63.00, z=214.50], EntitySheep['Sheep'/69, l='MpServer', x=-221.21, y=63.00, z=209.62], EntityPig['Pig'/71, l='MpServer', x=-195.70, y=63.00, z=222.25], EntityPig['Pig'/72, l='MpServer', x=-198.53, y=63.00, z=223.27], EntityPig['Pig'/73, l='MpServer', x=-201.99, y=63.00, z=214.59], EntityPig['Pig'/74, l='MpServer', x=-203.26, y=64.00, z=212.69], EntityZombie['Zombie'/76, l='MpServer', x=-187.72, y=46.00, z=154.45], EntityCreeper['Creeper'/77, l='MpServer', x=-178.51, y=47.00, z=157.92], EntitySheep['Sheep'/78, l='MpServer', x=-180.50, y=63.00, z=175.50], EntitySkeleton['Skeleton'/79, l='MpServer', x=-178.51, y=48.00, z=171.22], EntitySheep['Sheep'/80, l='MpServer', x=-180.50, y=63.00, z=178.50], EntitySheep['Sheep'/81, l='MpServer', x=-188.23, y=63.00, z=182.48], EntitySquid['Squid'/82, l='MpServer', x=-186.63, y=60.00, z=198.39], EntitySquid['Squid'/90, l='MpServer', x=-160.40, y=61.96, z=181.85], EntityBat['Bat'/91, l='MpServer', x=-167.70, y=12.12, z=210.66], EntityBat['Bat'/92, l='MpServer', x=-167.25, y=27.10, z=220.52], EntitySquid['Squid'/93, l='MpServer', x=-170.40, y=60.66, z=214.91], EntityZombie['Zombie'/94, l='MpServer', x=-160.50, y=17.00, z=235.50], EntitySheep['Sheep'/95, l='MpServer', x=-164.50, y=79.00, z=252.46], EntitySheep['Sheep'/96, l='MpServer', x=-161.30, y=77.00, z=240.50], EntitySheep['Sheep'/97, l='MpServer', x=-165.26, y=80.00, z=251.52], EntitySkeleton['Skeleton'/98, l='MpServer', x=-162.35, y=33.00, z=286.82], EntitySpider['Spider'/99, l='MpServer', x=-165.99, y=33.00, z=286.99], EntitySheep['Sheep'/104, l='MpServer', x=-150.50, y=63.00, z=146.50], EntitySheep['Sheep'/105, l='MpServer', x=-149.50, y=63.00, z=145.50], EntitySquid['Squid'/106, l='MpServer', x=-145.47, y=61.67, z=153.52], EntitySheep['Sheep'/107, l='MpServer', x=-149.50, y=64.00, z=144.50], EntitySheep['Sheep'/108, l='MpServer', x=-146.50, y=64.00, z=144.50], EntityCreeper['Creeper'/109, l='MpServer', x=-151.43, y=22.00, z=198.88], EntityZombie['Zombie'/110, l='MpServer', x=-146.50, y=14.00, z=212.50], EntityCreeper['Creeper'/111, l='MpServer', x=-147.50, y=25.00, z=228.50], EntitySheep['Sheep'/112, l='MpServer', x=-154.76, y=77.00, z=228.47], EntityZombie['Zombie'/113, l='MpServer', x=-148.33, y=57.00, z=246.67], EntityBat['Bat'/114, l='MpServer', x=-148.25, y=60.10, z=240.48], EntityCreeper['Creeper'/115, l='MpServer', x=-151.50, y=20.00, z=265.50], EntitySpider['Spider'/116, l='MpServer', x=-145.40, y=29.00, z=264.00], EntitySkeleton['Skeleton'/123, l='MpServer', x=-135.50, y=8.00, z=148.50], EntityBat['Bat'/124, l='MpServer', x=-130.25, y=18.10, z=160.25], EntityZombie['Zombie'/125, l='MpServer', x=-128.50, y=30.00, z=177.50], EntitySkeleton['Skeleton'/126, l='MpServer', x=-128.50, y=29.00, z=184.50], EntityZombie['Zombie'/127, l='MpServer', x=-128.68, y=20.00, z=203.50], EntityCreeper['Creeper'/128, l='MpServer', x=-132.83, y=16.00, z=222.53], EntityCreeper['Creeper'/129, l='MpServer', x=-133.50, y=22.00, z=210.50], EntityZombie['Zombie'/130, l='MpServer', x=-135.27, y=16.00, z=221.52], EntityZombie['Zombie'/131, l='MpServer', x=-131.52, y=47.00, z=239.80], EntitySheep['Sheep'/132, l='MpServer', x=-130.77, y=81.00, z=230.52], EntitySheep['Sheep'/133, l='MpServer', x=-128.81, y=82.00, z=227.68], EntityCreeper['Creeper'/134, l='MpServer', x=-134.78, y=47.00, z=241.50], EntitySheep['Sheep'/135, l='MpServer', x=-140.19, y=80.00, z=241.44], EntityCreeper['Creeper'/136, l='MpServer', x=-139.50, y=47.00, z=272.50], EntityCreeper['Creeper'/137, l='MpServer', x=-139.50, y=46.00, z=273.50], EntityCreeper['Creeper'/138, l='MpServer', x=-137.89, y=44.00, z=280.59], EntityBat['Bat'/145, l='MpServer', x=-122.64, y=28.10, z=156.03], EntitySheep['Sheep'/146, l='MpServer', x=-116.22, y=69.00, z=153.45], EntityChicken['Chicken'/147, l='MpServer', x=-115.47, y=77.00, z=184.80], EntityChicken['Chicken'/148, l='MpServer', x=-112.72, y=78.00, z=190.18], EntitySheep['Sheep'/149, l='MpServer', x=-115.05, y=78.00, z=189.21], EntityZombie['Zombie'/150, l='MpServer', x=-115.50, y=29.00, z=204.50], EntityBat['Bat'/151, l='MpServer', x=-128.48, y=40.87, z=199.56], EntitySheep['Sheep'/152, l='MpServer', x=-118.18, y=77.00, z=196.52], EntityZombie['Zombie'/153, l='MpServer', x=-125.50, y=35.00, z=222.50], EntitySkeleton['Skeleton'/154, l='MpServer', x=-124.50, y=57.00, z=217.50], EntityBat['Bat'/155, l='MpServer', x=-121.25, y=37.10, z=226.75], EntityBat['Bat'/156, l='MpServer', x=-111.46, y=63.39, z=228.91], EntitySheep['Sheep'/157, l='MpServer', x=-117.50, y=85.00, z=238.27], EntityBat['Bat'/158, l='MpServer', x=-117.25, y=20.10, z=250.25], EntityCreeper['Creeper'/159, l='MpServer', x=-118.50, y=22.00, z=246.50], EntityCreeper['Creeper'/160, l='MpServer', x=-116.50, y=39.00, z=246.50], EntitySkeleton['Skeleton'/161, l='MpServer', x=-117.68, y=39.00, z=247.50], EntitySheep['Sheep'/170, l='MpServer', x=-111.50, y=71.00, z=154.50], EntitySheep['Sheep'/171, l='MpServer', x=-110.45, y=70.00, z=152.74], EntitySheep['Sheep'/172, l='MpServer', x=-106.72, y=72.00, z=154.50], EntitySheep['Sheep'/173, l='MpServer', x=-112.79, y=78.00, z=187.50], EntitySheep['Sheep'/174, l='MpServer', x=-109.71, y=77.00, z=182.30], EntityChicken['Chicken'/175, l='MpServer', x=-111.50, y=77.00, z=179.50], EntityChicken['Chicken'/176, l='MpServer', x=-110.50, y=79.00, z=190.13], EntitySheep['Sheep'/177, l='MpServer', x=-101.50, y=93.00, z=181.50], EntitySheep['Sheep'/178, l='MpServer', x=-99.50, y=94.00, z=181.50], EntitySheep['Sheep'/179, l='MpServer', x=-100.46, y=93.55, z=181.26], EntitySheep['Sheep'/180, l='MpServer', x=-101.50, y=85.00, z=179.50], EntityBat['Bat'/181, l='MpServer', x=-109.49, y=26.56, z=208.54], EntityCow['Cow'/182, l='MpServer', x=-96.41, y=104.00, z=214.84], EntitySkeleton['Skeleton'/183, l='MpServer', x=-109.50, y=37.00, z=225.50], EntityZombie['Zombie'/184, l='MpServer', x=-100.50, y=29.00, z=248.50], EntitySkeleton['Skeleton'/185, l='MpServer', x=-104.50, y=31.00, z=251.50], EntitySpider['Spider'/186, l='MpServer', x=-105.50, y=32.00, z=252.50], EntitySkeleton['Skeleton'/187, l='MpServer', x=-109.50, y=35.00, z=262.50], EntityCreeper['Creeper'/190, l='MpServer', x=-80.53, y=24.00, z=135.17], EntitySkeleton['Skeleton'/191, l='MpServer', x=-83.50, y=12.00, z=151.50], EntityCreeper['Creeper'/192, l='MpServer', x=-80.50, y=13.00, z=163.50], EntityZombie['Zombie'/193, l='MpServer', x=-83.50, y=86.00, z=175.50], EntityCow['Cow'/194, l='MpServer', x=-93.48, y=104.00, z=219.25], EntityCow['Cow'/195, l='MpServer', x=-93.68, y=104.00, z=216.26], EntityCow['Cow'/196, l='MpServer', x=-92.50, y=104.00, z=222.50], EntitySpider['Spider'/198, l='MpServer', x=-76.50, y=22.00, z=136.50]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:445) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2766) at net.minecraft.client.Minecraft.run(Minecraft.java:422) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) -- System Details -- Details: Minecraft Version: 1.9 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_91, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 948534912 bytes (904 MB) / 1974468608 bytes (1883 MB) up to 8589934592 bytes (8192 MB) JVM Flags: 1 total; -Xmx9G IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95 FML: MCP 9.23 Powered by Forge 12.16.1.1907 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJAAAA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.9-12.16.1.1907.jar) UCHIJAAAA Forge{12.16.1.1907} [Minecraft Forge] (forgeSrc-1.9-12.16.1.1907.jar) UCHIJAAAA MoreOresMod{1.4 beta} [MoreOresMod] (bin) Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.201.1151.1008' Renderer: 'AMD Radeon(TM) R7 Graphics' Launched Version: 1.9 LWJGL: 2.9.4 OpenGL: AMD Radeon(TM) R7 Graphics GL version 4.5.13399 Compatibility Profile Context 15.201.1151.1008, ATI Technologies Inc. GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: No Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: Current Language: English (US) Profiler Position: N/A (disabled) CPU: 4x AMD A10-7700K Radeon R7, 10 Compute Cores 4C+6G [15:29:56] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:646]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Tyler\Documents\Coding\Minecraft\forge-1.9-12.16.1.1904-mdk\run\.\crash-reports\crash-2016-05-21_15.29.56-client.txt AL lib: (EE) alc_cleanup: 1 device not closed this is the code in my GuiMelter: package com.moreoresmod.main.gui; import com.moreoresmod.main.container.ContainerMelter; import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.inventory.Container; import net.minecraft.inventory.IInventory; import net.minecraft.util.ResourceLocation; public class GuiMelter extends GuiContainer { private static final ResourceLocation melterGuiTexture = new ResourceLocation("moreoresmod:" + "textures/gui/container/melter.png"); private final InventoryPlayer playerInventory; private IInventory tileMelter; public GuiMelter(InventoryPlayer playerInv, IInventory melterInv) { super(new ContainerMelter(playerInv, melterInv)); this.playerInventory = playerInv; this.tileMelter = melterInv; } @Override protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) { String s = this.tileMelter.getDisplayName().getUnformattedText(); this.fontRendererObj.drawString(s, this.xSize / 2 - this.fontRendererObj.getStringWidth(s) / 2, 6, 4210752); this.fontRendererObj.drawString(this.playerInventory.getDisplayName().getUnformattedText(), 8, this.ySize - 96 + 2, 4210752); } @Override protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) { GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); this.mc.getTextureManager().bindTexture(melterGuiTexture); int i = (this.width - this.xSize) / 2; int j = (this.height - this.ySize) / 2; this.drawTexturedModalRect(i, j, 0, 0, this.xSize, this.ySize); if(this.tileMelter.getField(0) > 0){ int l = this.getMeltProgressScaled(48); int l1 = l >= 24 ? 24 : l; this.drawTexturedModalRect(5, 28, 40, 176, 5, 24 - l1); int l2 = l - 24 <= 0 ? 0 : l - 24; this.drawTexturedModalRect(79, 51, 176, 16, l2, 17); } } private int getMeltProgressScaled(int pixles){ int i = this.tileMelter.getField(2); int j = this.tileMelter.getField(3); return i != 0 && j != 0 ? i * pixles / j : 0; } }
  5. Oh, sorry. GuiHandler: package com.moreoresmod.main; import com.moreoresmod.main.container.ContainerMelter; import com.moreoresmod.main.container.ContainerParidoxemer; import com.moreoresmod.main.gui.GuiMelter; import com.moreoresmod.main.gui.GuiParidoxemer; import com.moreoresmod.main.tileentity.TileEntityMelter; import com.moreoresmod.main.tileentity.TileEntityParidoxemer; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.fml.common.network.IGuiHandler; public class GuiHandler implements IGuiHandler { public static final int PARIDOXEMER_ID = 0; public static final int MELTER_ID = 1; @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { if(ID == PARIDOXEMER_ID){ return new ContainerParidoxemer(player.inventory, (TileEntityParidoxemer) world.getTileEntity(new BlockPos(x, y, z))); }else if(ID == MELTER_ID){ return new ContainerMelter(player.inventory, (TileEntityMelter) world.getTileEntity(new BlockPos(x, y, z))); }else{ return null; } } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { if(ID == PARIDOXEMER_ID){ return new GuiParidoxemer(player.inventory, (TileEntityParidoxemer) world.getTileEntity(new BlockPos(x, y, z))); }else if(ID == MELTER_ID){ return new GuiMelter(player.inventory, (TileEntityMelter) world.getTileEntity(new BlockPos(x, y, z))); }else{ return null; } } }
  6. Ok. package com.moreoresmod.main.tileentity; import com.moreoresmod.main.block.Melter; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.init.Items; import net.minecraft.inventory.Container; import net.minecraft.inventory.ContainerFurnace; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.ItemStackHelper; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.math.MathHelper; import net.minecraft.util.text.ITextComponent; public class TileEntityMelter extends TileEntity implements IInventory { private ItemStack[] melterItemStacks = new ItemStack[3]; private int melterTime; private int currentMeltTime; private int meltTime; private int totalMeltTime; private String melterCustomName; public void update(){ boolean flag = this.isMelting(); boolean flag1 = false; if(flag){ --this.melterTime; } if(!this.worldObj.isRemote){ if(flag || this.melterItemStacks[1] != null && this.melterItemStacks[0] != null){ if(!flag && this.canMelt()){ this.currentMeltTime = this.melterTime = this.getMeltIntager(this.melterItemStacks[1]); if(flag){ flag1 = true; if(this.melterItemStacks[1] != null){ --this.melterItemStacks[1].stackSize; if(this.melterItemStacks[1].stackSize == 0){ this.melterItemStacks[1] = this.melterItemStacks[1].getItem().getContainerItem(this.melterItemStacks[1]); } } } } if(flag && this.canMelt()){ ++this.meltTime; if(this.meltTime == this.totalMeltTime){ this.meltTime = 0; this.totalMeltTime = this.getMeltTime(this.melterItemStacks[0]); this.meltItem(); flag1 = true; } }else{ this.meltTime = 0; } }else if(!flag && this.meltTime > 0){ this.meltTime = MathHelper.clamp_int(this.meltTime - 2, 0, this.totalMeltTime); } if(flag != this.isMelting()){ flag1 = true; Melter.setState(this.isMelting(), this.worldObj, this.pos); } } if(flag1) { this.markDirty(); } } @Override public String getName() { return this.hasCustomName() ? this.melterCustomName : "container.melter"; } @Override public boolean hasCustomName() { return this.melterCustomName != null && !this.melterCustomName.isEmpty(); } @Override public ITextComponent getDisplayName() { return null; } @Override public int getSizeInventory() { return this.melterItemStacks.length; } @Override public ItemStack getStackInSlot(int index) { return this.melterItemStacks[index]; } @Override public ItemStack decrStackSize(int index, int count) { return ItemStackHelper.func_188382_a(this.melterItemStacks, index, count); } @Override public ItemStack removeStackFromSlot(int index) { return ItemStackHelper.func_188383_a(this.melterItemStacks, index); } @Override public void setInventorySlotContents(int index, ItemStack stack) { boolean flag = stack != null && stack.isItemEqual(this.melterItemStacks[index]) && ItemStack.areItemStackTagsEqual(stack, this.melterItemStacks[index]); if (stack != null && stack.stackSize > this.getInventoryStackLimit()){ stack.stackSize = this.getInventoryStackLimit(); } if (index == 0 && !flag){ this.totalMeltTime = 400; this.meltTime = 0; this.markDirty(); } } @Override public int getInventoryStackLimit() { return 1; } public int getMeltTime(ItemStack stack){ return 400; } @Override public void readFromNBT(NBTTagCompound compound) { super.readFromNBT(compound); NBTTagList taglist = compound.getTagList("Items", 10); for(int i = 0; i < taglist.tagCount(); i++){ NBTTagCompound tagcompound = taglist.getCompoundTagAt(i); int j = tagcompound.getByte("Slot"); if(j >= 0 && j < this.melterItemStacks.length){ this.melterItemStacks[j] = ItemStack.loadItemStackFromNBT(tagcompound); } } this.melterTime = compound.getInteger("MelterTime"); this.meltTime = compound.getInteger("MeltTime"); this.totalMeltTime= compound.getInteger("MeltTimeTotal"); this.currentMeltTime = getMeltIntager(this.melterItemStacks[1]); if(compound.hasKey("CustomName", ){ this.melterCustomName = compound.getString("CustomName"); } } @Override public void writeToNBT(NBTTagCompound compound) { super.writeToNBT(compound); compound.setInteger("MelterTime", this.melterTime); compound.setInteger("MeltTime", this.meltTime); compound.setInteger("MeltTimeTotal", this.totalMeltTime); NBTTagList nbttaglist = new NBTTagList(); for (int i = 0; i < this.melterItemStacks.length; ++i) { if (this.melterItemStacks[i] != null) { NBTTagCompound nbttagcompound = new NBTTagCompound(); nbttagcompound.setByte("Slot", (byte)i); this.melterItemStacks[i].writeToNBT(nbttagcompound); nbttaglist.appendTag(nbttagcompound); } } compound.setTag("Items", nbttaglist); if (this.hasCustomName()) { compound.setString("CustomName", this.melterCustomName); } } @Override public boolean isUseableByPlayer(EntityPlayer player) { return this.worldObj.getTileEntity(this.pos) != this ? false : player.getDistanceSq((double)this.pos.getX() + 0.5D, (double)this.pos.getY() + 0.5D, (double)this.pos.getZ() + 0.5D) <= 64.0D; } @Override public void openInventory(EntityPlayer player) {} @Override public void closeInventory(EntityPlayer player) {} @Override public boolean isItemValidForSlot(int index, ItemStack stack) { if(index == 2 && stack.getItem() == Items.bucket){ return true; }else if(index == 0){ return true; }else if(index == 1){ return getMeltIntager(stack) > 0; }else{ return false; } } public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn){ return new ContainerFurnace(playerInventory, this); } @Override public int getField(int id) { switch (id){ case 0: return this.melterTime; case 1: return this.currentMeltTime; case 2: return this.meltTime; case 3: return this.totalMeltTime; default: return 0; } } @Override public void setField(int id, int value) { switch (id){ case 0: this.melterTime = value; break; case 1: this.currentMeltTime = value; break; case 2: this.meltTime = value; break; case 3: this.totalMeltTime = value; break; } } @Override public int getFieldCount() { return 4; } @Override public void clear() { for(int i = 0; i < this.melterItemStacks.length; i++){ this.melterItemStacks[i] = null; } } public void setCustomInventoryName(String customName) { this.melterCustomName = customName; } public boolean isMelting() { return this.melterTime > 0; } public static boolean isBurning(IInventory inventory){ return inventory.getField(0) > 0; } public static int getMeltIntager(ItemStack stack){ if(stack == null){ return 0; }else{ Item item = stack.getItem(); if (item == Items.coal){ return 10000; }else{ return 0; } } } private boolean canMelt(){ if(this.melterItemStacks[0] == null){ return false; }else{ ItemStack stack = MelterRecipes.instance().getMeltResult(this.melterItemStacks[0]); if(stack == null) return false; if(!this.melterItemStacks[2].isItemEqual(new ItemStack(Items.bucket))) return false; int result = melterItemStacks[2].stackSize + stack.stackSize;; return result <= getInventoryStackLimit() && result <= this.melterItemStacks[2].getMaxStackSize(); } } public void meltItem(){ if (this.canMelt()){ ItemStack stack = MelterRecipes.instance().getMeltResult(this.melterItemStacks[0]); if(this.melterItemStacks[2] == null){ this.melterItemStacks[2] = stack.copy(); } this.melterItemStacks[0].stackSize--; if(this.melterItemStacks[0].stackSize <= 0){ this.melterItemStacks[0] = null; } } } } package com.moreoresmod.main.block; import java.util.Random; import com.moreoresmod.main.GuiHandler; import com.moreoresmod.main.MoreOresModMain; import com.moreoresmod.main.init.MoreOresModBlocks; import com.moreoresmod.main.tileentity.TileEntityMelter; import net.minecraft.block.BlockContainer; import net.minecraft.block.BlockHorizontal; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyDirection; import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.inventory.Container; import net.minecraft.inventory.InventoryHelper; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntityFurnace; import net.minecraft.util.EnumBlockRenderType; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.Mirror; import net.minecraft.util.Rotation; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; public class Melter extends BlockContainer { public static final PropertyDirection FACING = BlockHorizontal.FACING; private final boolean isMelting; private static boolean keepInventory; public Melter(boolean active) { super(Material.rock); this.isMelting = active; } @Override public Item getItemDropped(IBlockState state, Random rand, int fortune) { return Item.getItemFromBlock(MoreOresModBlocks.melter); } @Override public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state) { this.setDefaultFacing(worldIn, pos, state); } private void setDefaultFacing(World worldIn, BlockPos pos, IBlockState state) { if (!worldIn.isRemote) { IBlockState iblockstate = worldIn.getBlockState(pos.north()); IBlockState iblockstate1 = worldIn.getBlockState(pos.south()); IBlockState iblockstate2 = worldIn.getBlockState(pos.west()); IBlockState iblockstate3 = worldIn.getBlockState(pos.east()); EnumFacing enumfacing = (EnumFacing)state.getValue(FACING); if (enumfacing == EnumFacing.NORTH && iblockstate.isFullBlock() && !iblockstate1.isFullBlock()) { enumfacing = EnumFacing.SOUTH; } else if (enumfacing == EnumFacing.SOUTH && iblockstate1.isFullBlock() && !iblockstate.isFullBlock()) { enumfacing = EnumFacing.NORTH; } else if (enumfacing == EnumFacing.WEST && iblockstate2.isFullBlock() && !iblockstate3.isFullBlock()) { enumfacing = EnumFacing.EAST; } else if (enumfacing == EnumFacing.EAST && iblockstate3.isFullBlock() && !iblockstate2.isFullBlock()) { enumfacing = EnumFacing.WEST; } worldIn.setBlockState(pos, state.withProperty(FACING, enumfacing), 2); } } @Override public void randomDisplayTick(IBlockState worldIn, World pos, BlockPos state, Random rand) { if(this.isMelting){ EnumFacing efacing = (EnumFacing)worldIn.getValue(FACING); } } @Override public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { if(worldIn.isRemote){ return true; }else{ TileEntity te = worldIn.getTileEntity(pos); if(te instanceof TileEntityMelter){ playerIn.openGui(MoreOresModMain.instance, GuiHandler.MELTER_ID, worldIn, 0, 0, 0); } return true; } } public static void setState(boolean active, World worldIn, BlockPos pos) { IBlockState iblockstate = worldIn.getBlockState(pos); TileEntity tileentity = worldIn.getTileEntity(pos); keepInventory = true; if (active) { worldIn.setBlockState(pos, MoreOresModBlocks.melter_active.getDefaultState().withProperty(FACING, iblockstate.getValue(FACING)), 3); worldIn.setBlockState(pos, MoreOresModBlocks.melter_active.getDefaultState().withProperty(FACING, iblockstate.getValue(FACING)), 3); } else { worldIn.setBlockState(pos, MoreOresModBlocks.melter.getDefaultState().withProperty(FACING, iblockstate.getValue(FACING)), 3); worldIn.setBlockState(pos, MoreOresModBlocks.melter.getDefaultState().withProperty(FACING, iblockstate.getValue(FACING)), 3); } keepInventory = false; if (tileentity != null) { tileentity.validate(); worldIn.setTileEntity(pos, tileentity); } } @Override public TileEntity createNewTileEntity(World worldIn, int meta) { return new TileEntityMelter(); } @Override public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { return this.getDefaultState().withProperty(FACING, placer.getHorizontalFacing().getOpposite()); } @Override public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) { worldIn.setBlockState(pos, state.withProperty(FACING, placer.getHorizontalFacing().getOpposite()), 2); if (stack.hasDisplayName()) { TileEntity tileentity = worldIn.getTileEntity(pos); if (tileentity instanceof TileEntityMelter) { ((TileEntityMelter)tileentity).setCustomInventoryName(stack.getDisplayName()); } } } public void breakBlock(World worldIn, BlockPos pos, IBlockState state) { if (!keepInventory) { TileEntity tileentity = worldIn.getTileEntity(pos); if (tileentity instanceof TileEntityFurnace) { InventoryHelper.dropInventoryItems(worldIn, pos, (TileEntityFurnace)tileentity); worldIn.updateComparatorOutputLevel(pos, this); } } super.breakBlock(worldIn, pos, state); } public boolean hasComparatorInputOverride(IBlockState state) { return true; } public int getComparatorInputOverride(IBlockState blockState, World worldIn, BlockPos pos) { return Container.calcRedstone(worldIn.getTileEntity(pos)); } public EnumBlockRenderType getRenderType(IBlockState state) { return EnumBlockRenderType.MODEL; } public IBlockState getStateFromMeta(int meta) { EnumFacing enumfacing = EnumFacing.getFront(meta); if (enumfacing.getAxis() == EnumFacing.Axis.Y) { enumfacing = EnumFacing.NORTH; } return this.getDefaultState().withProperty(FACING, enumfacing); } public int getMetaFromState(IBlockState state) { return ((EnumFacing)state.getValue(FACING)).getIndex(); } public IBlockState withRotation(IBlockState state, Rotation rot) { return state.withProperty(FACING, rot.rotate((EnumFacing)state.getValue(FACING))); } public IBlockState withMirror(IBlockState state, Mirror mirrorIn) { return state.withRotation(mirrorIn.toRotation((EnumFacing)state.getValue(FACING))); } protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] {FACING}); } }
  7. I'm working on a GUI that melts items and turns them into molten versions of the original but when ever I try to open the GUI it creates a crash in the container class... Crash report: [14:54:12] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 3122ms behind, skipping 62 tick(s) [14:54:17] [server thread/FATAL]: Error executing task java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_91] at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_91] at net.minecraft.util.Util.runTask(Util.java:24) [util.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:738) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:683) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:155) [integratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:532) [MinecraftServer.class:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_91] Caused by: java.lang.NullPointerException at net.minecraft.inventory.Slot.getStack(Slot.java:81) ~[slot.class:?] at net.minecraft.inventory.Container.getInventory(Container.java:62) ~[Container.class:?] at net.minecraft.inventory.Container.onCraftGuiOpened(Container.java:51) ~[Container.class:?] at com.moreoresmod.main.container.ContainerMelter.onCraftGuiOpened(ContainerMelter.java:49) ~[ContainerMelter.class:?] at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93) ~[FMLNetworkHandler.class:?] at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2693) ~[EntityPlayer.class:?] at com.moreoresmod.main.block.Melter.onBlockActivated(Melter.java:100) ~[Melter.class:?] at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:473) ~[PlayerInteractionManager.class:?] at net.minecraft.network.NetHandlerPlayServer.processRightClickBlock(NetHandlerPlayServer.java:706) ~[NetHandlerPlayServer.class:?] at net.minecraft.network.play.client.CPacketPlayerTryUseItem.processPacket(CPacketPlayerTryUseItem.java:68) ~[CPacketPlayerTryUseItem.class:?] at net.minecraft.network.play.client.CPacketPlayerTryUseItem.processPacket(CPacketPlayerTryUseItem.java:13) ~[CPacketPlayerTryUseItem.class:?] at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) ~[PacketThreadUtil$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_91] at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_91] at net.minecraft.util.Util.runTask(Util.java:23) ~[util.class:?] ... 5 more [14:54:17] [server thread/ERROR]: Encountered an unexpected exception net.minecraft.util.ReportedException: Ticking player at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:785) ~[MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:683) ~[MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:155) ~[integratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:532) [MinecraftServer.class:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_91] Caused by: java.lang.NullPointerException at net.minecraft.inventory.Slot.getStack(Slot.java:81) ~[slot.class:?] at net.minecraft.inventory.Container.detectAndSendChanges(Container.java:84) ~[Container.class:?] at com.moreoresmod.main.container.ContainerMelter.detectAndSendChanges(ContainerMelter.java:58) ~[ContainerMelter.class:?] at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:290) ~[EntityPlayerMP.class:?] at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2086) ~[World.class:?] at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:864) ~[WorldServer.class:?] at net.minecraft.world.World.updateEntity(World.java:2051) ~[World.class:?] at net.minecraft.world.WorldServer.tickPlayers(WorldServer.java:666) ~[WorldServer.class:?] at net.minecraft.world.World.updateEntities(World.java:1858) ~[World.class:?] at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:637) ~[WorldServer.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:779) ~[MinecraftServer.class:?] ... 4 more [14:54:17] [server thread/ERROR]: This crash report has been saved to: C:\Users\Tyler\Documents\Coding\Minecraft\forge-1.9-12.16.1.1904-mdk\run\.\crash-reports\crash-2016-05-21_14.54.17-server.txt [14:54:17] [server thread/INFO]: Stopping server [14:54:17] [server thread/INFO]: Saving players [14:54:17] [server thread/INFO]: Saving worlds [14:54:17] [server thread/INFO]: Saving chunks for level 'New World'/Overworld [14:54:17] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:646]: ---- Minecraft Crash Report ---- // Why did you do that? Time: 5/21/16 2:54 PM Description: Ticking player java.lang.NullPointerException: Ticking player at net.minecraft.inventory.Slot.getStack(Slot.java:81) at net.minecraft.inventory.Container.detectAndSendChanges(Container.java:84) at com.moreoresmod.main.container.ContainerMelter.detectAndSendChanges(ContainerMelter.java:58) at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:290) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2086) at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:864) at net.minecraft.world.World.updateEntity(World.java:2051) at net.minecraft.world.WorldServer.tickPlayers(WorldServer.java:666) at net.minecraft.world.World.updateEntities(World.java:1858) at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:637) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:779) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:683) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:155) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:532) at java.lang.Thread.run(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.inventory.Slot.getStack(Slot.java:81) at net.minecraft.inventory.Container.detectAndSendChanges(Container.java:84) at com.moreoresmod.main.container.ContainerMelter.detectAndSendChanges(ContainerMelter.java:58) at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:290) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2086) at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:864) at net.minecraft.world.World.updateEntity(World.java:2051) -- Player being ticked -- Details: Entity Type: null (net.minecraft.entity.player.EntityPlayerMP) Entity ID: 293 Entity Name: KingOfMiners Entity's Exact location: -152.14, 77.00, 213.08 Entity's Block location: World: (-153,77,213), Chunk: (at 7,4,5 in -10,13; contains blocks -160,0,208 to -145,255,223), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Entity's Momentum: 0.00, -0.08, 0.00 Entity's Passengers: [] Entity's Vehicle: ~~ERROR~~ NullPointerException: null Stacktrace: at net.minecraft.world.WorldServer.tickPlayers(WorldServer.java:666) at net.minecraft.world.World.updateEntities(World.java:1858) at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:637) -- Affected level -- Details: Level name: New World All players: 1 total; [EntityPlayerMP['KingOfMiners'/293, l='New World', x=-152.14, y=77.00, z=213.08]] Chunk stats: ServerChunkCache: 626 Drop: 0 Level seed: -3586914615813754399 Level generator: ID 00 - default, ver 1. Features enabled: true Level generator options: Level spawn location: World: (-151,64,223), Chunk: (at 9,4,15 in -10,13; contains blocks -160,0,208 to -145,255,223), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Level time: 1911 game time, 1911 day time Level dimension: 0 Level storage version: 0x04ABD - Anvil Level weather: Rain time: 127287 (now: false), thunder time: 90567 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true Stacktrace: at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:779) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:683) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:155) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:532) at java.lang.Thread.run(Unknown Source) -- System Details -- Details: Minecraft Version: 1.9 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_91, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 609791384 bytes (581 MB) / 2114977792 bytes (2017 MB) up to 8589934592 bytes (8192 MB) JVM Flags: 1 total; -Xmx9G IntCache: cache: 1, tcache: 1, allocated: 12, tallocated: 94 FML: MCP 9.23 Powered by Forge 12.16.1.1907 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJAAAA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.9-12.16.1.1907.jar) UCHIJAAAA Forge{12.16.1.1907} [Minecraft Forge] (forgeSrc-1.9-12.16.1.1907.jar) UCHIJAAAA MoreOresMod{1.4 beta} [MoreOresMod] (bin) Loaded coremods (and transformers): GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread. Profiler Position: N/A (disabled) Player Count: 1 / 8; [EntityPlayerMP['KingOfMiners'/293, l='New World', x=-152.14, y=77.00, z=213.08]] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge' [14:54:17] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:646]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2016-05-21_14.54.17-server.txt [14:54:17] [Client thread/INFO] [FML]: Waiting for the server to terminate/save. [14:54:18] [server thread/INFO]: Saving chunks for level 'New World'/Nether [14:54:18] [server thread/INFO]: Saving chunks for level 'New World'/The End [14:54:18] [server thread/INFO]: Saving chunks for level 'New World'/Otherlyworld [14:54:18] [server thread/INFO] [FML]: Unloading dimension 0 [14:54:18] [server thread/INFO] [FML]: Unloading dimension -1 [14:54:18] [server thread/INFO] [FML]: Unloading dimension 1 [14:54:18] [server thread/INFO] [FML]: Unloading dimension 2 [14:54:18] [server thread/INFO] [FML]: Applying holder lookups [14:54:18] [server thread/INFO] [FML]: Holder lookups applied [14:54:18] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded. [14:54:18] [Client thread/INFO] [FML]: Server terminated. [14:54:18] [Client Shutdown Thread/INFO]: Stopping server [14:54:18] [Client Shutdown Thread/INFO]: Saving players AL lib: (EE) alc_cleanup: 1 device not closed Container class file: package com.moreoresmod.main.container; import com.moreoresmod.main.container.slot.SlotMelterFuel; import com.moreoresmod.main.container.slot.SlotMelterOutput; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.inventory.Container; import net.minecraft.inventory.ICrafting; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.Slot; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.FurnaceRecipes; import net.minecraft.tileentity.TileEntityFurnace; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class ContainerMelter extends Container { private final IInventory tileMelter; private int meltTime; private int totalMeltTime; private int melterTime; private int currentMeltTime; public ContainerMelter(InventoryPlayer playerInventory, IInventory melterInventory){ this.tileMelter = melterInventory; this.addSlotToContainer(new Slot(melterInventory, 0, 56, 17)); this.addSlotToContainer(new SlotMelterFuel(melterInventory, 1, 8, 53)); this.addSlotToContainer(new SlotMelterOutput(playerInventory.player, melterInventory, 2, 116, 35)); for (int i = 0; i < 3; ++i) { for (int j = 0; j < 9; ++j) { this.addSlotToContainer(new Slot(playerInventory, j + i * 9 + 9, 8 + j * 18, 84 + i * 18)); } } for (int k = 0; k < 9; ++k) { this.addSlotToContainer(new Slot(playerInventory, k, 8 + k * 18, 142)); } } public void onCraftGuiOpened(ICrafting listener) { super.onCraftGuiOpened(listener); listener.sendAllWindowProperties(this, this.tileMelter); } /** * Looks for changes made in the container, sends them to every listener. */ public void detectAndSendChanges() { super.detectAndSendChanges(); for (int i = 0; i < this.crafters.size(); ++i) { ICrafting icrafting = (ICrafting)this.crafters.get(i); if (this.meltTime != this.tileMelter.getField(2)) { icrafting.sendProgressBarUpdate(this, 2, this.tileMelter.getField(2)); } if (this.melterTime != this.tileMelter.getField(0)) { icrafting.sendProgressBarUpdate(this, 0, this.tileMelter.getField(0)); } if (this.currentMeltTime != this.tileMelter.getField(1)) { icrafting.sendProgressBarUpdate(this, 1, this.tileMelter.getField(1)); } if (this.totalMeltTime != this.tileMelter.getField(3)) { icrafting.sendProgressBarUpdate(this, 3, this.tileMelter.getField(3)); } } this.meltTime = this.tileMelter.getField(2); this.melterTime = this.tileMelter.getField(0); this.currentMeltTime = this.tileMelter.getField(1); this.totalMeltTime = this.tileMelter.getField(3); } @SideOnly(Side.CLIENT) public void updateProgressBar(int id, int data) { this.tileMelter.setField(id, data); } @Override public boolean canInteractWith(EntityPlayer playerIn) { return this.tileMelter.isUseableByPlayer(playerIn); } public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) { ItemStack itemstack = null; Slot slot = (Slot)this.inventorySlots.get(index); if (slot != null && slot.getHasStack()) { ItemStack itemstack1 = slot.getStack(); itemstack = itemstack1.copy(); if (index == 2) { if (!this.mergeItemStack(itemstack1, 3, 39, true)) { return null; } slot.onSlotChange(itemstack1, itemstack); } else if (index != 1 && index != 0) { if (FurnaceRecipes.instance().getSmeltingResult(itemstack1) != null) { if (!this.mergeItemStack(itemstack1, 0, 1, false)) { return null; } } else if (TileEntityFurnace.isItemFuel(itemstack1)) { if (!this.mergeItemStack(itemstack1, 1, 2, false)) { return null; } } else if (index >= 3 && index < 30) { if (!this.mergeItemStack(itemstack1, 30, 39, false)) { return null; } } else if (index >= 30 && index < 39 && !this.mergeItemStack(itemstack1, 3, 30, false)) { return null; } } else if (!this.mergeItemStack(itemstack1, 3, 39, false)) { return null; } if (itemstack1.stackSize == 0) { slot.putStack((ItemStack)null); } else { slot.onSlotChanged(); } if (itemstack1.stackSize == itemstack.stackSize) { return null; } slot.onPickupFromSlot(playerIn, itemstack1); } return itemstack; } } Could somone please help?
  8. 6 hours later...
  9. Can anyone help?
  10. I made a dimension and updated it to 1.9 in trying to create a different type of portal so with that comes the Teleporter, but when I try to travel to the dimension it doesn't spawn the portal and It spawns you in the ground. This is my teleporter class: package com.moreoresmod.main.dimensions.Otherlyworld; import com.google.common.collect.Lists; import com.moreoresmod.main.init.MoreOresModBlocks; import java.util.Iterator; import java.util.List; import java.util.Random; import net.minecraft.block.BlockPortal; import net.minecraft.block.state.IBlockState; import net.minecraft.block.state.pattern.BlockPattern; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.init.Blocks; import net.minecraft.util.EnumFacing; import net.minecraft.util.LongHashMap; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.MathHelper; import net.minecraft.world.ChunkCoordIntPair; import net.minecraft.world.Teleporter; import net.minecraft.world.WorldServer; public class TeleporterOtherlyworld extends Teleporter{ private final WorldServer worldServerInstance; /** A private Random() function in Teleporter */ private final Random random; private final LongHashMap<TeleporterOtherlyworld.PortalPosition> destinationCoordinateCache = new LongHashMap(); private final List<Long> destinationCoordinateKeys = Lists.<Long>newArrayList(); public TeleporterOtherlyworld(WorldServer worldIn) { super(worldIn); this.worldServerInstance = worldIn; this.random = new Random(worldIn.getSeed()); } public void placeInPortal(Entity entityIn, float rotationYaw) { if (this.worldServerInstance.provider.getDimensionType().getId() != 1) { if (!this.placeInExistingPortal(entityIn, rotationYaw)) { this.makePortal(entityIn); this.placeInExistingPortal(entityIn, rotationYaw); } } else { int i = MathHelper.floor_double(entityIn.posX); int j = MathHelper.floor_double(entityIn.posY) - 1; int k = MathHelper.floor_double(entityIn.posZ); byte b0 = 1; byte b1 = 0; for(int l = -2; l <= 2; l++) { for(int i1 = -2; i1 <= 2; i1++) { for(int j1 = -1; j1 < 3; j1++) { int k1 = i + i1 * b0 + l * b1; int l1 = j + j1; int i2 = (k + i1 * b1) - l * b0; boolean flag = j1 < 0; this.worldServerInstance.setBlockState(new BlockPos(i, j, k), MoreOresModBlocks.paridox_portal.getDefaultState()); } } } entityIn.setLocationAndAngles(i, j, k, entityIn.rotationYaw, 0.0F); entityIn.motionX = entityIn.motionY = entityIn.motionZ = 0.0D; } } public boolean placeInExistingPortal(Entity entityIn, float rotationYaw) { short short1 = 128; double d3 = -1D; int i = 0; int j = 0; int k = 0; int l = MathHelper.floor_double(entityIn.posX); int i1 = MathHelper.floor_double(entityIn.posZ); long j1 = ChunkCoordIntPair.chunkXZ2Int(l, i1); boolean flag = true; if(destinationCoordinateCache.containsItem(j1)) { PortalPosition portalposition = (PortalPosition)destinationCoordinateCache.getValueByKey(j1); d3 = 0.0D; i = portalposition.getX(); j = portalposition.getY(); k = portalposition.getZ(); portalposition.lastUpdateTime = worldServerInstance.getTotalWorldTime(); flag = false; } else { for(int l3 = l - short1; l3 <= l + short1; l3++) { double d4 = ((double)l3 + 0.5D) - entityIn.posX; for(int l1 = i1 - short1; l1 <= i1 + short1; l1++) { double d5 = ((double)l1 + 0.5D) - entityIn.posZ; for(int i2 = worldServerInstance.getActualHeight() - 1; i2 >= 0; i2--) { if(this.worldServerInstance.getBlockState(new BlockPos(l3, i2, l1)) != MoreOresModBlocks.paridox_portal) continue; for(; this.worldServerInstance.getBlockState(new BlockPos(l3, i2 - 1, l1)) == MoreOresModBlocks.paridox_portal; i2--); double d7 = ((double)i2 + 0.5D) - entityIn.posY; double d8 = d4 * d4 + d7 * d7 + d5 * d5; if(d3 < 0.0D || d8 < d3) { d3 = d8; i = l3; j = i2; k = l1; } } } } System.out.println(d3); } if(d3 >= 0.0D) { if(flag) { destinationCoordinateCache.add(j1, new PortalPosition(new BlockPos(i, j, k), worldServerInstance.getTotalWorldTime())); destinationCoordinateKeys.add(Long.valueOf(j1)); } double d11 = (double)i + 0.5D; double d6 = (double)j + 0.5D; double d7 = (double)k + 0.5D; int i4 = -1; if(this.worldServerInstance.getBlockState(new BlockPos(i - 1, j, k)) == MoreOresModBlocks.paridox_portal) i4 = 2; if(this.worldServerInstance.getBlockState(new BlockPos(i, j, k)) == MoreOresModBlocks.paridox_portal) i4 = 0; if(this.worldServerInstance.getBlockState(new BlockPos(i, j, k - 1)) == MoreOresModBlocks.paridox_portal) i4 = 3; if(this.worldServerInstance.getBlockState(new BlockPos(i, j, k + 1)) == MoreOresModBlocks.paridox_portal) i4 = 1; //int j2 = entityIn.func_82148_at(); entityIn.motionX = entityIn.motionY = entityIn.motionZ = 0.0D; entityIn.setLocationAndAngles(d11, d6, d7, entityIn.rotationYaw, entityIn.rotationPitch); return true; } else { return false; } } public boolean makePortal(Entity entityIn) { byte b0 = 16; double d0 = -1D; int i = MathHelper.floor_double(entityIn.posX); int j = 25; int k = MathHelper.floor_double(entityIn.posZ); int l = i; int i1 = j; int j1 = k; int k1 = 0; int l1 = random.nextInt(4); int k2; for(int i2 = i - b0; i2 <= i + b0; i2++) { double d1 = ((double)i2 + 0.5D) - entityIn.posX; for(k2 = k - b0; k2 <= k + b0; k2++) { double d2 = ((double)k2 + 0.5D) - entityIn.posZ; for(int i3 = worldServerInstance.getActualHeight() - 1; i3 >= 0; i3--) { if(!worldServerInstance.isAirBlock(new BlockPos(i2, i3, k2))) continue; for(; i3 > 0 && worldServerInstance.isAirBlock(new BlockPos(i2, i3 - 1, k2)); i3--); label0: for(int j3 = l1; j3 < l1 + 4; j3++) { int k3 = j3 % 2; int l3 = 1 - k3; if(j3 % 4 >= 2) { k3 = -k3; l3 = -l3; } for(int i4 = 0; i4 < 3; i4++) { for(int j4 = 0; j4 < 4; j4++) { for(int k4 = -1; k4 < 4; k4++) { int l4 = i2 + (j4 - 1) * k3 + i4 * l3; int i5 = i3 + k4; int j5 = (k2 + (j4 - 1) * l3) - i4 * k3; if(k4 < 0 && !this.worldServerInstance.getBlockState(new BlockPos(l4, i5, j5)).getMaterial().isSolid() || k4 >= 0 && !worldServerInstance.isAirBlock(new BlockPos(l4, i5, j5))) break label0; } } } double d4 = ((double)i3 + 0.5D) - entityIn.posY; double d3 = d1 * d1 + d4 * d4 + d2 * d2; if(d0 < 0.0D || d3 < d0) { d0 = d3; l = i2; i1 = i3; j1 = k2; k1 = j3 % 4; } } } } } if(d0 < 0.0D) { for(int i2 = i - b0; i2 <= i + b0; i2++) { double d1 = ((double)i2 + 0.5D) - entityIn.posX; for(k2 = k - b0; k2 <= k + b0; k2++) { double d2 = ((double)k2 + 0.5D) - entityIn.posZ; for(int i3 = worldServerInstance.getActualHeight() - 1; i3 >= 0; i3--) { if(!worldServerInstance.isAirBlock(new BlockPos(i2, i3, k2))) continue; for(; i3 > 0 && worldServerInstance.isAirBlock(new BlockPos(i2, i3 - 1, k2)); i3--); label1: for(int j3 = l1; j3 < l1 + 2; j3++) { int k3 = j3 % 2; int l3 = 1 - k3; for(int i4 = 0; i4 < 4; i4++) { for(int j4 = -1; j4 < 4; j4++) { int k4 = i2 + (i4 - 1) * k3; int l4 = i3 + j4; int i5 = k2 + (i4 - 1) * l3; if(j4 < 0 && this.worldServerInstance.getBlockState(new BlockPos(k4, l4, i5)).getMaterial().isSolid() || j4 >= 0 && !worldServerInstance.isAirBlock(new BlockPos(k4, l4, i5))) break label1; } } double d4 = ((double)i3 + 0.5D) - entityIn.posY; double d3 = d1 * d1 + d4 * d4 + d2 * d2; if(d0 < 0.0D || d3 < d0) { d0 = d3; l = i2; i1 = i3; j1 = k2; k1 = j3 % 2; } } } } } } int k5 = l; int j2 = i1; k2 = j1; int l5 = k1 % 2; int l2 = 1 - l5; if(k1 % 4 >= 2) { l5 = -l5; l2 = -l2; } if(d0 < 0.0D) { if(i1 < 70) i1 = 70; if(i1 > worldServerInstance.getActualHeight() - 10) i1 = worldServerInstance.getActualHeight() - 10; j2 = i1; for(int i3 = -1; i3 <= 1; i3++) { for(int j3 = 1; j3 < 3; j3++) { for(int k3 = -1; k3 < 3; k3++) { int l3 = k5 + (j3 - 1) * l5 + i3 * l2; int i4 = j2 + k3; int j4 = (k2 + (j3 - 1) * l2) - i3 * l5; boolean flag = k3 < 0; this.worldServerInstance.setBlockState(new BlockPos(i, j, k), MoreOresModBlocks.paridox_portal.getDefaultState()); } } } for(int i3 = 0; i3 < 4; i3++) { for(int j3 = 0; j3 < 4; j3++) { for(int k3 = -1; k3 < 4; k3++) { int l3 = k5 + (j3 - 1) * l5; int i4 = j2 + k3; int j4 = k2 + (j3 - 1) * l2; boolean flag = j3 == 0 || j3 == 3 || k3 == -1 || k3 == 3; this.worldServerInstance.setBlockState(new BlockPos(i, j, k), MoreOresModBlocks.paridox_portal.getDefaultState()); } } } } return true; } /** * called periodically to remove out-of-date portal locations from the cache list. Argument par1 is a * WorldServer.getTotalWorldTime() value. */ public void removeStalePortalLocations(long worldTime) { if(worldTime % 100L == 0L) { Iterator iterator = destinationCoordinateKeys.iterator(); long j = worldTime - 600L; do { if(!iterator.hasNext()) break; Long olong = (Long)iterator.next(); PortalPosition portalposition = (PortalPosition)destinationCoordinateCache.getValueByKey(olong.longValue()); if(portalposition == null || portalposition.lastUpdateTime < j) { iterator.remove(); destinationCoordinateCache.remove(olong.longValue()); } } while(true); } } public class PortalPosition extends BlockPos { /** The worldtime at which this PortalPosition was last verified */ public long lastUpdateTime; public PortalPosition(BlockPos pos, long lastUpdate) { super(pos.getX(), pos.getY(), pos.getZ()); this.lastUpdateTime = lastUpdate; } } }
  11. If you can't import BiomeGenBase.BiomeProperites, then what do I do?
  12. Can you actually show the code instead of making me look through hundreds of files that all relate to biomes? Thanks.
  13. I'm adding in a biome for my dimension and when I try to do the same thing that BiomeGenBase does when registering there biomes It gives me an error stating that the methods in BiomeProperties are not visible. This is my biome class: package com.moreoresmod.main.init; import net.minecraft.init.Bootstrap; import net.minecraft.util.ResourceLocation; import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.biome.BiomeGenOcean; import net.minecraftforge.common.BiomeManager; import net.minecraftforge.common.BiomeManager.BiomeEntry; import net.minecraftforge.common.BiomeManager.BiomeType; import com.moreoresmod.main.biomes.BiomeGenOtherlyworld; public class MoreOresModBiomes { public static final BiomeGenBase otherlyworldBiome; private static BiomeGenBase.BiomeProperties otherlyworldProperties = new BiomeGenBase.BiomeProperties("Otherlyworld"); public static int lastBiomeID = 0; static{ if(!Bootstrap.isRegistered()){ throw new RuntimeException("Accessed Biomes before Bootstrap!"); }else{ otherlyworldBiome = getRegisteredBiome("otherlyworld"); } } public static void init(){ BiomeGenBase.registerBiome(90, "otherlyworld", new BiomeGenOtherlyworld((new BiomeGenBase.BiomeProperties("Otherlyworld")).setSnowEnabled().setTemperature(0F).setWaterColor(000000))); //otherlyworldBiome = new BiomeGenOtherlyworld((new BiomeGenBase.BiomeProperties("Otherlyworld"))); //BiomeEntry entry_otherlyworld = new BiomeEntry(otherlyworldBiome, 20); //BiomeManager.addBiome(BiomeType.WARM, entry_otherlyworld); //BiomeManager.addSpawnBiome(otherlyworldBiome); } private static BiomeGenBase getRegisteredBiome(String id) { BiomeGenBase biomegenbase = (BiomeGenBase)BiomeGenBase.biomeRegistry.getObject(new ResourceLocation(id)); if (biomegenbase == null) { throw new IllegalStateException("Invalid Biome requested: " + id); } else { return biomegenbase; } } }
  14. Is anyone going to help me?
  15. If there is a way to make it valid what is it?
  16. Sorry, this is the crash report. ---- Minecraft Crash Report ---- // Would you like a cupcake? Time: 3/19/16 7:53 AM Description: Exception in server tick loop java.lang.IllegalArgumentException: Invalid dimension id 2 at net.minecraft.world.DimensionType.getById(DimensionType.java:75) at net.minecraft.world.WorldServer.<init>(WorldServer.java:109) at net.minecraft.world.WorldServerMulti.<init>(WorldServerMulti.java:18) at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:90) at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:123) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:492) at java.lang.Thread.run(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.9 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_66, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 1146145672 bytes (1093 MB) / 1592786944 bytes (1519 MB) up to 8589934592 bytes (8192 MB) JVM Flags: 1 total; -Xmx9G IntCache: cache: 23, tcache: 94, allocated: 0, tallocated: 0 FML: MCP 9.23 Powered by Forge 12.16.0.1767 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJAA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCHIJAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.9-12.16.0.1767-1.9.jar) UCHIJAA Forge{12.16.0.1767} [Minecraft Forge] (forgeSrc-1.9-12.16.0.1767-1.9.jar) UCHIJAA MoreOresMod{1.4 beta} [The More Ores Mod] (bin) Loaded coremods (and transformers): GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread. Profiler Position: N/A (disabled) Player Count: 0 / 8; [] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge'
  17. When I try to create or join a world It gives me a crash from DimensionType saying Invalid dimension id 2 witch is my dimension, Is there a way to make it valid?
  18. Will there be a fix at somepoint?
  19. Is there a way to fix it?
  20. This is my item java class: 'package com.moreoresmod.main.init; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.enchantment.Enchantment; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.init.SoundEvents; import net.minecraft.inventory.ContainerBrewingStand; import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.EnumDyeColor; import net.minecraft.item.Item; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; import net.minecraftforge.client.event.sound.SoundEvent; import net.minecraftforge.common.util.EnumHelper; import net.minecraftforge.fluids.Fluid; import net.minecraftforge.fluids.FluidRegistry; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraft.item.*; import com.moreoresmod.main.Reference; import com.moreoresmod.main.block.MushroomPortalActivator; import com.moreoresmod.main.creativetabs.MoreOresModArmorTab; import com.moreoresmod.main.creativetabs.MoreOresModFoodTab; import com.moreoresmod.main.creativetabs.MoreOresModItemsTab; import com.moreoresmod.main.creativetabs.MoreOresModStaffsTab; import com.moreoresmod.main.creativetabs.MoreOresModToolsTab; import com.moreoresmod.main.creativetabs.MoreOresModWeaponsTab; import com.moreoresmod.main.items.Calamari; import com.moreoresmod.main.items.Cherry; import com.moreoresmod.main.items.CookedCalamari; import com.moreoresmod.main.items.CookedWolfMeat; import com.moreoresmod.main.items.DarknessAxe; import com.moreoresmod.main.items.DarknessHoe; import com.moreoresmod.main.items.DarknessPickaxe; import com.moreoresmod.main.items.DarknessSpade; import com.moreoresmod.main.items.DarknessSword; import com.moreoresmod.main.items.DayStaff; import com.moreoresmod.main.items.EnderIngotArmor; import com.moreoresmod.main.items.EnderIngotAxe; import com.moreoresmod.main.items.EnderIngotHoe; import com.moreoresmod.main.items.EnderIngotPickaxe; import com.moreoresmod.main.items.EnderIngotSpade; import com.moreoresmod.main.items.EnderIngotSword; import com.moreoresmod.main.items.GoldReeds; import com.moreoresmod.main.items.HealingStaff; import com.moreoresmod.main.items.LapisAxe; import com.moreoresmod.main.items.LapisHoe; import com.moreoresmod.main.items.LapisPickaxe; import com.moreoresmod.main.items.LapisSpade; import com.moreoresmod.main.items.LapisSword; import com.moreoresmod.main.items.NetherDiamondArmor; import com.moreoresmod.main.items.NetherDiamondAxe; import com.moreoresmod.main.items.NetherDiamondHoe; import com.moreoresmod.main.items.NetherDiamondPickaxe; import com.moreoresmod.main.items.NetherDiamondSpade; import com.moreoresmod.main.items.NetherDiamondSword; import com.moreoresmod.main.items.NightStaff; import com.moreoresmod.main.items.OtherlyworldTeleporterOrb; import com.moreoresmod.main.items.PortableChest; import com.moreoresmod.main.items.RubyArmor; import com.moreoresmod.main.items.RubyAxe; import com.moreoresmod.main.items.RubyHoe; import com.moreoresmod.main.items.RubyPickaxe; import com.moreoresmod.main.items.RubySpade; import com.moreoresmod.main.items.RubySword; //import com.moreoresmod.main.items.TKnife; import com.moreoresmod.main.items.TestStaff; import com.moreoresmod.main.items.Tomato; //import com.moreoresmod.main.items.TomatoSeeds; import com.moreoresmod.main.items.WolfFurArmor; import com.moreoresmod.main.items.WolfMeat; import com.moreoresmod.main.MoreOresModMain; //import com.moreoresmod.main.items.TestStaff; public class MoreOresModItems { //Creative Tabs public static final MoreOresModItemsTab tabMoreOresModItems = new MoreOresModItemsTab("TabMoreOresModItems"); public static final MoreOresModStaffsTab tabMoreOresModStaffs = new MoreOresModStaffsTab("TabMoreOresModStaffs"); public static final MoreOresModWeaponsTab tabMoreOresModWeapons = new MoreOresModWeaponsTab("TabMoreOresModWeapons"); public static final MoreOresModToolsTab tabMoreOresModTools = new MoreOresModToolsTab("TabMoreOresModTools"); public static final MoreOresModArmorTab tabMoreOresModArmor = new MoreOresModArmorTab("TabMoreOresModArmor"); public static final MoreOresModFoodTab tabMoreOresModFood = new MoreOresModFoodTab("TabMoreOresModFood"); //Tool Materials public static final Item.ToolMaterial rubyTool = EnumHelper.addToolMaterial("rubyTool", 3, 1600, 10.0F, 3.0F, 30); public static final Item.ToolMaterial enderIngotTool = EnumHelper.addToolMaterial("enderIngotTools", 2, 1200, 10.0F, 6.0F, 15); public static final Item.ToolMaterial netherDiamondTool = EnumHelper.addToolMaterial("netherDiamondTool", 3, 1800, 15.0f, 2.0f, 20); public static final Item.ToolMaterial lapisTool = EnumHelper.addToolMaterial("lapisTool", 2, 950, 20.0f, 3.0f, 10); public static final Item.ToolMaterial darknessTool = EnumHelper.addToolMaterial("darknessTool", 4, 3000, 17.5F, 8.5F, 25); //Armor Materials public static final ItemArmor.ArmorMaterial rubyArmor = EnumHelper.addArmorMaterial("rubyArmor", "ruby", 1000, new int []{3,8,6,3}, 30, SoundEvents.item_armor_equip_diamond); public static final ItemArmor.ArmorMaterial netherDiamondArmor = EnumHelper.addArmorMaterial("netherDiamondArmor", "netherArmor", 385, new int []{3,8,6,3}, 25,SoundEvents.item_armor_equip_diamond); public static final ItemArmor.ArmorMaterial enderIngotArmor = EnumHelper.addArmorMaterial("enderIngotArmor", "enderIngot", 250,new int []{2,7,5,2}, 15, SoundEvents.item_armor_equip_iron); public static final ItemArmor.ArmorMaterial wolfFurArmor = EnumHelper.addArmorMaterial("wolfFurArmor", "wolfFur", 150, new int []{1,6,4,1}, 10, SoundEvents.item_armor_equip_leather); public static final ItemArmor.ArmorMaterial darknessArmor = EnumHelper.addArmorMaterial("darknessArmor", "darkness", 1000, new int []{5, 10, 9, 5}, 20, SoundEvents.item_armor_equip_iron); public static final ItemArmor.ArmorMaterial lapisArmor = EnumHelper.addArmorMaterial("lapisArmor", "lapis", 650, new int []{2,7,5,2}, 15, SoundEvents.item_armor_equip_generic); public static Item ruby; public static Item ruby_sword; public static Item ruby_pickaxe; public static Item ruby_spade; public static Item ruby_axe; public static Item ruby_hoe; public static Item ruby_helmet; public static Item ruby_chestplate; public static Item ruby_leggings; public static Item ruby_boots; public static Item nether_diamond; public static Item ender_ingot; public static Item night_staff; public static Item day_staff; public static Item healing_staff; public static Item ender_ingot_helmet; public static Item ender_ingot_chestplate; public static Item ender_ingot_leggings; public static Item ender_ingot_boots; public static Item ender_ingot_sword; public static Item ender_ingot_pickaxe; public static Item ender_ingot_spade; public static Item ender_ingot_axe; public static Item ender_ingot_hoe; public static Item nether_stick; public static Item andradite; public static Item test_staff; public static Item nether_diamond_sword; public static Item nether_diamond_pickaxe; public static Item nether_diamond_spade; public static Item nether_diamond_axe; public static Item nether_diamond_hoe; public static Item staff_handle; public static Item day_orb; public static Item night_orb; public static Item table_salt; public static Item nether_diamond_helmet; public static Item nether_diamond_chestplate; public static Item nether_diamond_leggings; public static Item nether_diamond_boots; public static Item lapis_sword; public static Item lapis_pickaxe; public static Item lapis_spade; public static Item lapis_axe; public static Item lapis_hoe; public static Item ruby_bow; public static Item cherry; public static Item smoke_pearl; public static Item throwable_knife; public static Item calamari; public static Item cooked_calamari; public static Item base_orb; public static Item otherlyworld_teleporter_orb; public static Item mushroom_portal_activator; public static Item wolf_meat; public static Item cooked_wolf_meat; public static Item wolf_fur; public static Item wolf_fur_helmet; public static Item wolf_fur_chestplate; public static Item wolf_fur_leggings; public static Item wolf_fur_boots; public static Item darkness_ingot; public static Item tomato_seeds; public static Item tomato; public static Item darkness_sword; public static Item darkness_pickaxe; public static Item darkness_spade; public static Item darkness_axe; public static Item darkness_hoe; public static Item gravity_gem; public static Item portable_bed; public static Item gold_reeds; public static Item lapis_stick; public static Item lapis_helmet; public static Item zepronite_ingot; public static Item paper_cone; public static Item magma_ice_cream; public static Item portable_chest; public static Item empty_salt_shaker; public static void init() { ruby = new Item().setUnlocalizedName("Ruby").setCreativeTab(tabMoreOresModItems); ruby_sword = new RubySword(rubyTool).setUnlocalizedName("Ruby_Sword").setCreativeTab(tabMoreOresModWeapons); ruby_pickaxe = new RubyPickaxe(rubyTool).setUnlocalizedName("Ruby_Pickaxe").setCreativeTab(tabMoreOresModTools); ruby_spade = new RubySpade(rubyTool).setUnlocalizedName("Ruby_Spade").setCreativeTab(tabMoreOresModTools); ruby_axe = new RubyAxe(rubyTool).setUnlocalizedName("Ruby_Axe").setCreativeTab(tabMoreOresModTools); ruby_hoe = new RubyHoe(rubyTool).setUnlocalizedName("Ruby_Hoe").setCreativeTab(tabMoreOresModTools); ruby_helmet = new RubyArmor(rubyArmor, 0, EntityEquipmentSlot.HEAD).setUnlocalizedName("Ruby_Helmet").setCreativeTab(tabMoreOresModArmor); ruby_chestplate = new RubyArmor(rubyArmor, 0, EntityEquipmentSlot.CHEST).setUnlocalizedName("Ruby_Chestplate").setCreativeTab(tabMoreOresModArmor); ruby_leggings = new RubyArmor(rubyArmor, 0, EntityEquipmentSlot.LEGS).setUnlocalizedName("Ruby_Leggings").setCreativeTab(tabMoreOresModArmor); ruby_boots = new RubyArmor(rubyArmor, 0, EntityEquipmentSlot.FEET).setUnlocalizedName("Ruby_Boots").setCreativeTab(tabMoreOresModArmor); nether_diamond = new Item().setUnlocalizedName("Nether_Diamond").setCreativeTab(tabMoreOresModItems); nether_diamond_sword = new NetherDiamondSword(netherDiamondTool).setUnlocalizedName("Nether_Diamond_Sword").setCreativeTab(tabMoreOresModWeapons); nether_diamond_pickaxe = new NetherDiamondPickaxe(netherDiamondTool).setUnlocalizedName("Nether_Diamond_Pickaxe").setCreativeTab(tabMoreOresModTools); nether_diamond_spade = new NetherDiamondSpade(netherDiamondTool).setUnlocalizedName("Nether_Diamond_Spade").setCreativeTab(tabMoreOresModTools); nether_diamond_axe = new NetherDiamondAxe(netherDiamondTool).setUnlocalizedName("Nether_Diamond_Axe").setCreativeTab(tabMoreOresModTools); nether_diamond_hoe = new NetherDiamondHoe(netherDiamondTool).setUnlocalizedName("Nether_Diamond_Hoe").setCreativeTab(tabMoreOresModTools); ender_ingot = new Item().setUnlocalizedName("Ender_Ingot").setCreativeTab(tabMoreOresModItems); night_staff = new NightStaff().setUnlocalizedName("Night_Staff").setCreativeTab(tabMoreOresModStaffs); day_staff = new DayStaff().setUnlocalizedName("Day_Staff").setCreativeTab(tabMoreOresModStaffs); healing_staff = new HealingStaff().setUnlocalizedName("Healing_Staff").setCreativeTab(tabMoreOresModStaffs); ender_ingot_helmet = new EnderIngotArmor(enderIngotArmor, 0, EntityEquipmentSlot.HEAD).setUnlocalizedName("Ender_Ingot_Helmet").setCreativeTab(tabMoreOresModArmor); ender_ingot_chestplate = new EnderIngotArmor(enderIngotArmor, 0, EntityEquipmentSlot.CHEST).setUnlocalizedName("Ender_Ingot_Chestplate").setCreativeTab(tabMoreOresModArmor); ender_ingot_leggings = new EnderIngotArmor(enderIngotArmor, 0, EntityEquipmentSlot.LEGS).setUnlocalizedName("Ender_Ingot_Leggings").setCreativeTab(tabMoreOresModArmor); ender_ingot_boots = new EnderIngotArmor(enderIngotArmor, 0, EntityEquipmentSlot.FEET).setUnlocalizedName("Ender_Ingot_Boots").setCreativeTab(tabMoreOresModArmor); ender_ingot_sword = new EnderIngotSword(enderIngotTool).setUnlocalizedName("Ender_Ingot_Sword").setCreativeTab(tabMoreOresModWeapons); ender_ingot_pickaxe = new EnderIngotPickaxe(enderIngotTool).setUnlocalizedName("Ender_Ingot_Pickaxe").setCreativeTab(tabMoreOresModTools); ender_ingot_spade = new EnderIngotSpade(enderIngotTool).setUnlocalizedName("Ender_Ingot_Spade").setCreativeTab(tabMoreOresModTools); ender_ingot_axe = new EnderIngotAxe(enderIngotTool).setUnlocalizedName("Ender_Ingot_Axe").setCreativeTab(tabMoreOresModTools); ender_ingot_hoe = new EnderIngotHoe(enderIngotTool).setUnlocalizedName("Ender_Ingot_Hoe").setCreativeTab(tabMoreOresModTools); nether_stick = new Item().setUnlocalizedName("Nether_Stick").setCreativeTab(tabMoreOresModItems); andradite = new Item().setUnlocalizedName("Andradite").setCreativeTab(tabMoreOresModItems); test_staff = new TestStaff().setUnlocalizedName("Test_Staff").setCreativeTab(tabMoreOresModStaffs); staff_handle = new Item().setUnlocalizedName("Staff_Handle").setCreativeTab(tabMoreOresModItems); day_orb = new Item().setUnlocalizedName("Day_Orb").setCreativeTab(tabMoreOresModItems); night_orb = new Item().setUnlocalizedName("Night_Orb").setCreativeTab(tabMoreOresModItems); table_salt = new Item().setUnlocalizedName("Table_Salt").setCreativeTab(tabMoreOresModItems); nether_diamond_helmet = new NetherDiamondArmor(netherDiamondArmor, 0, EntityEquipmentSlot.HEAD).setUnlocalizedName("Nether_Diamond_Helmet").setCreativeTab(tabMoreOresModArmor); nether_diamond_chestplate = new NetherDiamondArmor(netherDiamondArmor, 0, EntityEquipmentSlot.CHEST).setUnlocalizedName("Nether_Diamond_Chestplate").setCreativeTab(tabMoreOresModArmor); nether_diamond_leggings = new NetherDiamondArmor(netherDiamondArmor, 0, EntityEquipmentSlot.LEGS).setUnlocalizedName("Nether_Diamond_Leggings").setCreativeTab(tabMoreOresModArmor); nether_diamond_boots = new NetherDiamondArmor(netherDiamondArmor, 0, EntityEquipmentSlot.FEET).setUnlocalizedName("Nether_Diamond_Boots").setCreativeTab(tabMoreOresModArmor); lapis_sword = new LapisSword(lapisTool).setUnlocalizedName("Lapis_Sword").setCreativeTab(tabMoreOresModWeapons); lapis_pickaxe = new LapisPickaxe(lapisTool).setUnlocalizedName("Lapis_Pickaxe").setCreativeTab(tabMoreOresModTools); lapis_spade = new LapisSpade(lapisTool).setUnlocalizedName("Lapis_Spade").setCreativeTab(tabMoreOresModTools); lapis_axe = new LapisAxe(lapisTool).setUnlocalizedName("Lapis_Axe").setCreativeTab(tabMoreOresModTools); lapis_hoe = new LapisHoe(lapisTool).setUnlocalizedName("Lapis_Hoe").setCreativeTab(tabMoreOresModTools); //ruby_bow = new RubyBow().setUnlocalizedName("Ruby_Bow").setCreativeTab(tabMoreOresModWeapons); cherry = new Cherry(4, true).setUnlocalizedName("Cherry").setCreativeTab(tabMoreOresModFood); //smoke_pearl = new SmokePearl().setUnlocalizedName("Smoke_Pearl").setCreativeTab(tabMoreOresModItems); //throwable_knife = new TKnife().setUnlocalizedName("Throwable_Knife").setCreativeTab(tabMoreOresModWeapons); calamari = new Calamari(2,true).setUnlocalizedName("Raw_Calamari").setCreativeTab(tabMoreOresModFood); cooked_calamari = new CookedCalamari(6, true).setUnlocalizedName("Cooked_Calamari").setCreativeTab(tabMoreOresModFood); base_orb = new Item().setUnlocalizedName("Base_Orb").setCreativeTab(tabMoreOresModItems); otherlyworld_teleporter_orb = new OtherlyworldTeleporterOrb().setUnlocalizedName("Otherlyworld_Teleporter_Orb").setCreativeTab(MoreOresModBlocks.tabOtherlyworld); mushroom_portal_activator = new MushroomPortalActivator(); wolf_meat = new WolfMeat(1, false).setUnlocalizedName("Wolf_Meat").setCreativeTab(tabMoreOresModFood); cooked_wolf_meat = new CookedWolfMeat(10, false).setUnlocalizedName("Cooked_Wolf_Meat").setCreativeTab(tabMoreOresModFood); wolf_fur = new Item().setUnlocalizedName("Wolf_Fur").setCreativeTab(tabMoreOresModItems); wolf_fur_helmet = new WolfFurArmor(wolfFurArmor, 0 , EntityEquipmentSlot.HEAD).setUnlocalizedName("Wolf_Fur_Helmet").setCreativeTab(tabMoreOresModArmor); wolf_fur_chestplate = new WolfFurArmor(wolfFurArmor, 0, EntityEquipmentSlot.CHEST).setUnlocalizedName("Wolf_Fur_Chestplate").setCreativeTab(tabMoreOresModArmor); wolf_fur_leggings = new WolfFurArmor(wolfFurArmor, 0, EntityEquipmentSlot.LEGS).setUnlocalizedName("Wolf_Fur_Leggings").setCreativeTab(tabMoreOresModArmor); wolf_fur_boots = new WolfFurArmor(wolfFurArmor, 0, EntityEquipmentSlot.FEET).setUnlocalizedName("Wolf_Fur_Boots").setCreativeTab(tabMoreOresModArmor); darkness_ingot = new Item().setUnlocalizedName("Darkness_Ingot").setCreativeTab(tabMoreOresModItems); //tomato_seeds = new TomatoSeeds().setUnlocalizedName("Tomato_Seeds").setCreativeTab(tabMoreOresModItems); tomato = new Tomato(4, true).setUnlocalizedName("Tomato").setCreativeTab(tabMoreOresModFood); darkness_sword = new DarknessSword(darknessTool).setUnlocalizedName("Darkness_Sword").setCreativeTab(tabMoreOresModWeapons); darkness_pickaxe = new DarknessPickaxe(darknessTool).setUnlocalizedName("Darkness_Pickaxe").setCreativeTab(tabMoreOresModTools); darkness_spade = new DarknessSpade(darknessTool).setUnlocalizedName("Darkness_Spade").setCreativeTab(tabMoreOresModTools); darkness_axe = new DarknessAxe(darknessTool).setUnlocalizedName("Darkness_Axe").setCreativeTab(tabMoreOresModTools); darkness_hoe = new DarknessHoe(darknessTool).setUnlocalizedName("Darkness_Hoe").setCreativeTab(tabMoreOresModTools); gravity_gem = new Item().setUnlocalizedName("Gravity_Gem").setCreativeTab(tabMoreOresModItems); //portable_bed = new PortableBed().setUnlocalizedName("Portable_Bed"); //gold_reeds = new ItemReed(MoreOresModBlocks.gold_reed).setUnlocalizedName("Gold_Reeds").setCreativeTab(tabMoreOresModItems); lapis_stick = new Item().setUnlocalizedName("Lapis_Stick").setCreativeTab(tabMoreOresModItems); zepronite_ingot = new Item().setUnlocalizedName("Zepronite_Ingot").setCreativeTab(tabMoreOresModItems); paper_cone = new Item().setUnlocalizedName("Paper_Cone").setCreativeTab(tabMoreOresModFood); empty_salt_shaker = new Item().setUnlocalizedName("Empty_Salt_Shaker").setCreativeTab(tabMoreOresModFood); //portable_chest = new PortableChest(); //magma_ice_cream = new MagmaIceCream() } public static void register() { //Items GameRegistry.registerItem(ruby, ruby.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ruby_sword, ruby_sword.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ruby_pickaxe, ruby_pickaxe.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ruby_spade, ruby_spade.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ruby_axe, ruby_axe.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ruby_hoe, ruby_hoe.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ruby_helmet, ruby_helmet.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ruby_chestplate, ruby_chestplate.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ruby_leggings, ruby_leggings.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ruby_boots, ruby_boots.getUnlocalizedName().substring(5)); GameRegistry.registerItem(nether_diamond, nether_diamond.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ender_ingot, ender_ingot.getUnlocalizedName().substring(5)); GameRegistry.registerItem(night_staff, night_staff.getUnlocalizedName().substring(5)); GameRegistry.registerItem(day_staff, day_staff.getUnlocalizedName().substring(5)); GameRegistry.registerItem(healing_staff, healing_staff.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ender_ingot_helmet, ender_ingot_helmet.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ender_ingot_chestplate, ender_ingot_chestplate.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ender_ingot_leggings, ender_ingot_leggings.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ender_ingot_boots, ender_ingot_boots.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ender_ingot_sword, ender_ingot_sword.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ender_ingot_pickaxe, ender_ingot_pickaxe.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ender_ingot_spade, ender_ingot_spade.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ender_ingot_axe, ender_ingot_axe.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ender_ingot_hoe, ender_ingot_hoe.getUnlocalizedName().substring(5)); GameRegistry.registerItem(nether_stick, nether_stick.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(andradite, andradite.getUnlocalizedName().substring(5)); GameRegistry.registerItem(nether_diamond_helmet, nether_diamond_helmet.getUnlocalizedName().substring(5)); GameRegistry.registerItem(nether_diamond_chestplate, nether_diamond_chestplate.getUnlocalizedName().substring(5)); GameRegistry.registerItem(nether_diamond_leggings, nether_diamond_leggings.getUnlocalizedName().substring(5)); GameRegistry.registerItem(nether_diamond_boots, nether_diamond_boots.getUnlocalizedName().substring(5)); GameRegistry.registerItem(nether_diamond_sword, nether_diamond_sword.getUnlocalizedName().substring(5)); GameRegistry.registerItem(nether_diamond_pickaxe, nether_diamond_pickaxe.getUnlocalizedName().substring(5)); GameRegistry.registerItem(nether_diamond_spade, nether_diamond_spade.getUnlocalizedName().substring(5)); GameRegistry.registerItem(nether_diamond_axe, nether_diamond_axe.getUnlocalizedName().substring(5)); GameRegistry.registerItem(nether_diamond_hoe, nether_diamond_hoe.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(test_staff, test_staff.getUnlocalizedName().substring(5)); GameRegistry.registerItem(staff_handle, staff_handle.getUnlocalizedName().substring(5)); GameRegistry.registerItem(day_orb, day_orb.getUnlocalizedName().substring(5)); GameRegistry.registerItem(night_orb, night_orb.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(table_salt, table_salt.getUnlocalizedName().substring(5)); GameRegistry.registerItem(lapis_sword, lapis_sword.getUnlocalizedName().substring(5)); GameRegistry.registerItem(lapis_pickaxe, lapis_pickaxe.getUnlocalizedName().substring(5)); GameRegistry.registerItem(lapis_spade, lapis_spade.getUnlocalizedName().substring(5)); GameRegistry.registerItem(lapis_axe, lapis_axe.getUnlocalizedName().substring(5)); GameRegistry.registerItem(lapis_hoe, lapis_hoe.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(ruby_bow, ruby_bow.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(cherry, cherry.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(smoke_pearl, smoke_pearl.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(throwable_knife, throwable_knife.getUnlocalizedName().substring(5)); GameRegistry.registerItem(calamari, calamari.getUnlocalizedName().substring(5)); GameRegistry.registerItem(cooked_calamari, cooked_calamari.getUnlocalizedName().substring(5)); GameRegistry.registerItem(base_orb, base_orb.getUnlocalizedName().substring(5)); GameRegistry.registerItem(otherlyworld_teleporter_orb, otherlyworld_teleporter_orb.getUnlocalizedName().substring(5)); GameRegistry.registerItem(wolf_meat, wolf_meat.getUnlocalizedName().substring(5)); GameRegistry.registerItem(cooked_wolf_meat, cooked_wolf_meat.getUnlocalizedName().substring(5)); GameRegistry.registerItem(wolf_fur, wolf_fur.getUnlocalizedName().substring(5)); GameRegistry.registerItem(wolf_fur_helmet, wolf_fur_helmet.getUnlocalizedName().substring(5)); GameRegistry.registerItem(wolf_fur_chestplate, wolf_fur_chestplate.getUnlocalizedName().substring(5)); GameRegistry.registerItem(wolf_fur_leggings, wolf_fur_leggings.getUnlocalizedName().substring(5)); GameRegistry.registerItem(wolf_fur_boots, wolf_fur_boots.getUnlocalizedName().substring(5)); GameRegistry.registerItem(darkness_ingot, darkness_ingot.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(tomato_seeds, tomato_seeds.getUnlocalizedName().substring(5)); GameRegistry.registerItem(tomato, tomato.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(gravity_gem, gravity_gem.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(portable_bed, portable_bed.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(gold_reeds, gold_reeds.getUnlocalizedName().substring(5)); GameRegistry.registerItem(lapis_stick, lapis_stick.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(paper_cone, paper_cone.getUnlocalizedName().substring(5));' GameRegistry.registerItem(empty_salt_shaker, empty_salt_shaker.getUnlocalizedName().substring(5)); //Crafting GameRegistry.addRecipe(new ItemStack(staff_handle), new Object[]{ "nsd", "rsr", "dsn", 'n', nether_diamond, 's', Items.stick, 'd', Items.diamond, 'r', Items.redstone }); GameRegistry.addRecipe(new ItemStack(ruby_sword), new Object[]{ "r","r","s", 'r',ruby, 's', Items.stick }); GameRegistry.addRecipe(new ItemStack(ruby_pickaxe), new Object[]{ "rrr"," s "," s ", 'r',ruby, 's', Items.stick }); GameRegistry.addRecipe(new ItemStack(ruby_axe), new Object[]{ "rr ","rs "," s ", 'r',ruby, 's', Items.stick }); GameRegistry.addRecipe(new ItemStack(ruby_spade), new Object[]{ "r","s","s", 'r',ruby, 's', Items.stick }); GameRegistry.addRecipe(new ItemStack(ruby_hoe), new Object[]{ "rr "," s "," s ", 'r',ruby, 's', Items.stick }); GameRegistry.addRecipe(new ItemStack(ruby_hoe), new Object[]{ " rr"," s "," s ", 'r',ruby, 's', Items.stick }); GameRegistry.addRecipe(new ItemStack(MoreOresModBlocks.ruby_block), new Object[]{ "rrr","rrr","rrr", 'r',ruby }); GameRegistry.addRecipe(new ItemStack(ruby, 9), new Object[]{ "r", 'r',MoreOresModBlocks.ruby_block }); GameRegistry.addRecipe(new ItemStack(ruby_helmet), new Object[]{ "rrr","r r", 'r',ruby }); GameRegistry.addRecipe(new ItemStack(ruby_chestplate), new Object[]{ "r r","rrr","rrr", 'r',ruby }); GameRegistry.addRecipe(new ItemStack(ruby_leggings), new Object[]{ "rrr","r r","r r", 'r',ruby }); GameRegistry.addRecipe(new ItemStack(ruby_boots), new Object[]{ "r r","r r", 'r',ruby }); GameRegistry.addRecipe(new ItemStack(nether_stick, 4), new Object[]{ "n","n", 'n',Items.netherbrick }); GameRegistry.addRecipe(new ItemStack(wolf_fur_helmet), new Object[]{ "fff", "f f", 'f', wolf_fur }); GameRegistry.addRecipe(new ItemStack(wolf_fur_chestplate), new Object[]{ "f f", "fff", "fff", 'f', wolf_fur }); GameRegistry.addRecipe(new ItemStack(wolf_fur_leggings), new Object[]{ "fff", "f f", "f f", 'f', wolf_fur }); GameRegistry.addRecipe(new ItemStack(wolf_fur_boots), new Object[]{ "f f", "f f", 'f', wolf_fur }); GameRegistry.addRecipe(new ItemStack(MoreOresModBlocks.otherlyworld_brick_fence), new Object[]{ " ", "bbb", "bbb", 'b', MoreOresModBlocks.otherlyworld_brick }); /*GameRegistry.addRecipe(new ItemStack(MoreOresModBlocks.super_tnt),new Object[]{ "gtg","tgt","gtg",'g',Items.gunpowder,'t',Blocks.tnt });*/ GameRegistry.addRecipe(new ItemStack(base_orb),new Object[]{ "ddd", "d d", "ddd", 'd', Items.diamond }); GameRegistry.addRecipe(new ItemStack(MoreOresModBlocks.mushroom_block), new Object[]{ "rrr","rrr","rrr",'r',Blocks.red_mushroom }); GameRegistry.addRecipe(new ItemStack(otherlyworld_teleporter_orb), new Object[]{ "ggg","dod","ddd",'g',MoreOresModBlocks.otherlyworld_grass,'d',MoreOresModBlocks.otherlyworld_dirt,'o',base_orb }); GameRegistry.addRecipe(new ItemStack(MoreOresModBlocks.cake_fire_resitance), new Object[]{ "pmp","mcm","pmp", 'p', Items.blaze_powder, 'm', Items.magma_cream, 'c', Items.cake }); GameRegistry.addRecipe(new ItemStack(MoreOresModBlocks.darkness_block), new Object[]{ "ddd", "ddd", "ddd", 'd', darkness_ingot }); GameRegistry.addRecipe(new ItemStack(gold_reeds), new Object[]{ "ggg","grg","ggg", 'g', Blocks.gold_block, 'r', Items.reeds }); GameRegistry.addRecipe(new ItemStack(lapis_stick), new Object[]{ " l ", "lsl", " l ", 's', Items.stick, 'l', new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage()) }); GameRegistry.addRecipe(new ItemStack(lapis_sword), new Object[]{ " l ", " l ", " s ", 's', lapis_stick, 'l', new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage()) }); GameRegistry.addRecipe(new ItemStack(lapis_pickaxe), new Object[]{ "lll", " s ", " s ", 's', lapis_stick, 'l', new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage()) }); GameRegistry.addRecipe(new ItemStack(day_orb), new Object[]{ "dbd", "bob","dbd", 'd', Blocks.diamond_block, 'b', Items.blaze_powder, 'o', base_orb }); GameRegistry.addRecipe(new ItemStack(night_orb), new Object[]{ "lbl", "bob", "lbl", 'l', Blocks.lapis_block, 'b', Items.blaze_powder, 'o', base_orb }); GameRegistry.addRecipe(new ItemStack(day_staff), new Object[]{ "hoh", " h ", " h ", 'h', staff_handle, 'o', day_orb }); GameRegistry.addRecipe(new ItemStack(night_staff), new Object[]{ "hoh", " h ", " h ", 'h', staff_handle, 'o', night_orb }); GameRegistry.addRecipe(new ItemStack(paper_cone), new Object[]{ " ", "p p", " p ", 'p', Items.paper }); GameRegistry.addRecipe(new ItemStack(empty_salt_shaker), new Object[]{ "iii", "g g", "ggg", 'i', Items.iron_ingot, 'g', Blocks.glass }); //Smelting GameRegistry.addSmelting(new ItemStack(MoreOresModBlocks.ender_ingot_ore),new ItemStack(ender_ingot), 30.0f); GameRegistry.addSmelting(new ItemStack(calamari),new ItemStack(cooked_calamari), 10.0f); GameRegistry.addSmelting(new ItemStack(wolf_meat), new ItemStack(cooked_wolf_meat), 10.0f); GameRegistry.addSmelting(new ItemStack(MoreOresModBlocks.darkness_ore), new ItemStack(darkness_ingot), 30.0f); } public static void registerRenders() { registerRender(ruby); registerRender(ruby_sword); registerRender(ruby_pickaxe); registerRender(ruby_spade); registerRender(ruby_axe); registerRender(ruby_hoe); registerRender(ruby_helmet); registerRender(ruby_chestplate); registerRender(ruby_leggings); registerRender(ruby_boots); registerRender(nether_diamond); registerRender(ender_ingot); registerRender(night_staff); registerRender(day_staff); registerRender(healing_staff); registerRender(ender_ingot_helmet); registerRender(ender_ingot_chestplate); registerRender(ender_ingot_leggings); registerRender(ender_ingot_boots); registerRender(ender_ingot_sword); registerRender(ender_ingot_pickaxe); registerRender(ender_ingot_spade); registerRender(ender_ingot_axe); registerRender(ender_ingot_hoe); registerRender(nether_stick); registerRender(staff_handle); registerRender(table_salt); registerRender(nether_diamond_helmet); registerRender(nether_diamond_chestplate); registerRender(nether_diamond_leggings); registerRender(nether_diamond_boots); registerRender(nether_diamond_sword); registerRender(nether_diamond_pickaxe); registerRender(nether_diamond_spade); registerRender(nether_diamond_axe); registerRender(nether_diamond_hoe); registerRender(lapis_sword); registerRender(lapis_pickaxe); registerRender(lapis_spade); registerRender(lapis_axe); registerRender(lapis_hoe); registerRender(smoke_pearl); registerRender(calamari); registerRender(cooked_calamari); registerRender(base_orb); registerRender(otherlyworld_teleporter_orb); registerRender(darkness_ingot); registerRender(tomato_seeds); registerRender(tomato); registerRender(lapis_stick); registerRender(day_orb); registerRender(night_orb); registerRender(paper_cone); registerRender(wolf_fur); registerRender(wolf_fur_helmet); registerRender(wolf_fur_chestplate); registerRender(wolf_fur_leggings); registerRender(wolf_fur_boots); registerRender(wolf_meat); registerRender(cooked_wolf_meat); } public static void registerRender(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "Inventory")); } }
  21. I'm updating to 1.9 forge as it has recently come out, and I was able to fix all of the errors, but when I launch the game I get a crash 18:42:14] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue [18:42:14] [Client thread/ERROR] [FML]: States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.9-12.16.0.1767-1.9.jar) UCH Forge{12.16.0.1767} [Minecraft Forge] (forgeSrc-1.9-12.16.0.1767-1.9.jar) UCE MoreOresMod{1.4 beta} [The More Ores Mod] (bin) [18:42:14] [Client thread/ERROR] [FML]: The following problems were captured during this phase [18:42:14] [Client thread/ERROR] [FML]: Caught exception from MoreOresMod java.lang.ArrayIndexOutOfBoundsException: 5 at net.minecraft.item.ItemAxe.<init>(ItemAxe.java:19) ~[forgeSrc-1.9-12.16.0.1767-1.9.jar:?] at com.moreoresmod.main.items.RubyAxe.<init>(RubyAxe.java: ~[bin/:?] at com.moreoresmod.main.init.MoreOresModItems.init(MoreOresModItems.java:188) ~[bin/:?] at com.moreoresmod.main.MoreOresModMain.preInit(MoreOresModMain.java:63) ~[bin/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66] at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560) ~[forgeSrc-1.9-12.16.0.1767-1.9.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211) ~[forgeSrc-1.9-12.16.0.1767-1.9.jar:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189) ~[forgeSrc-1.9-12.16.0.1767-1.9.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?] at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:556) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:245) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:472) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:381) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] [18:42:14] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:645]: ---- Minecraft Crash Report ---- // Don't be sad, have a hug! <3 Time: 3/18/16 6:42 PM Description: Initializing game java.lang.ArrayIndexOutOfBoundsException: 5 at net.minecraft.item.ItemAxe.<init>(ItemAxe.java:19) at com.moreoresmod.main.items.RubyAxe.<init>(RubyAxe.java: at com.moreoresmod.main.init.MoreOresModItems.init(MoreOresModItems.java:188) at com.moreoresmod.main.MoreOresModMain.preInit(MoreOresModMain.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:556) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:245) at net.minecraft.client.Minecraft.startGame(Minecraft.java:472) at net.minecraft.client.Minecraft.run(Minecraft.java:381) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.item.ItemAxe.<init>(ItemAxe.java:19) at com.moreoresmod.main.items.RubyAxe.<init>(RubyAxe.java: at com.moreoresmod.main.init.MoreOresModItems.init(MoreOresModItems.java:188) at com.moreoresmod.main.MoreOresModMain.preInit(MoreOresModMain.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:556) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:245) at net.minecraft.client.Minecraft.startGame(Minecraft.java:472) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:381) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) -- System Details -- Details: Minecraft Version: 1.9 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_66, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 786381896 bytes (749 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.23 Powered by Forge 12.16.0.1767 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.9-12.16.0.1767-1.9.jar) UCH Forge{12.16.0.1767} [Minecraft Forge] (forgeSrc-1.9-12.16.0.1767-1.9.jar) UCE MoreOresMod{1.4 beta} [The More Ores Mod] (bin) Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.201.1151.1008' Renderer: 'AMD Radeon(TM) R7 Graphics' Launched Version: 1.9 LWJGL: 2.9.4 OpenGL: AMD Radeon(TM) R7 Graphics GL version 4.5.13399 Compatibility Profile Context 15.201.1151.1008, ATI Technologies Inc. GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: No Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: Current Language: English (US) Profiler Position: N/A (disabled) CPU: (Im not showing this...) [18:42:14] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:645]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\KingOfMiners\Documents\Coding\Minecraft\forge-1.9-12.16.0.1767-1.9-mdk\run\.\crash-reports\crash-2016-03-18_18.42.14-client.txt Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release This is my Axe Class: package com.moreoresmod.main.items; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemAxe; import net.minecraft.item.ItemTool; public class RubyAxe extends ItemAxe { public RubyAxe(ToolMaterial material) { super(material); } }
  22. I feel so stupid right now, thanks for pointing me onto to the right direction.
×
×
  • Create New...

Important Information

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