Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

AssassinHero

Members
  • Joined

  • Last visited

Everything posted by AssassinHero

  1. It didnt work package assassinhero.parallelworlds.common.items; import assassinhero.parallelworlds.ParallelWorldsMain; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; public class ItemPurityGemItem extends Item{ public ItemPurityGemItem(int par1) { super(par1); setCreativeTab(CreativeTabs.tabMaterials); } public ItemStack getContainerItemForItemStack(ItemStack i){ return new ItemStack(ParallelWorldsMain.PurityGem); } public void updateIcons(IconRegister par1iconregister){ this.iconIndex = par1iconregister.registerIcon("ParallelWorlds:PurityGem"); } } Thats my code When i use @Override I get an error
  2. I forgot to return new Itemstack. I tried to return the item straight away
  3. Hey guys, I am wondering how would I go about making a item not get destroyed or infused with a crafting recipe? For example When making a diamond pickaxe, the diamonds and the sticks are destroyed or 'infused' with each other to make the pickaxe. I want to use hell souls and a purity gem to make a pure soul but I dont want the purity gem destroyed when crafted. This is used in DivineRPG with the dream powder. Thanks
  4. Thaaank You so much. I was so confused
  5. How would I go about making a shapeless recipe? If you could give me an example that would be awesome Thanks
  6. Thanks Again!
  7. Thanks Again!
  8. Thanks that was it Do you know the maximum block id?
  9. Thanks that was it Do you know the maximum block id?
  10. I got this error: 2013-04-20 21:26:24 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.611 for Minecraft 1.5.1 loading 2013-04-20 21:26:24 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_17, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 2013-04-20 21:26:24 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2013-04-20 21:26:27 [iNFO] [sTDOUT] 229 recipes 2013-04-20 21:26:27 [iNFO] [sTDOUT] 27 achievements 2013-04-20 21:26:27 [iNFO] [Minecraft-Client] Setting user: Player323 2013-04-20 21:26:27 [iNFO] [sTDOUT] (Session ID is -) 2013-04-20 21:26:27 [iNFO] [sTDERR] Client asked for parameter: server 2013-04-20 21:26:27 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2 2013-04-20 21:26:27 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization 2013-04-20 21:26:27 [iNFO] [sTDOUT] MinecraftForge v7.7.1.611 Initialized 2013-04-20 21:26:27 [iNFO] [ForgeModLoader] MinecraftForge v7.7.1.611 Initialized 2013-04-20 21:26:28 [iNFO] [sTDOUT] Replaced 85 ore recipies 2013-04-20 21:26:28 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization 2013-04-20 21:26:28 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Ryan\Desktop\MCP\jars\config\logging.properties 2013-04-20 21:26:28 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2013-04-20 21:26:28 [iNFO] [ForgeModLoader] Searching C:\Users\Ryan\Desktop\MCP\jars\mods for mods 2013-04-20 21:26:29 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load 2013-04-20 21:26:29 [iNFO] [mcp] Activating mod mcp 2013-04-20 21:26:29 [iNFO] [FML] Activating mod FML 2013-04-20 21:26:29 [iNFO] [Forge] Activating mod Forge 2013-04-20 21:26:29 [iNFO] [AssassinHero_ParallelWorlds] Activating mod AssassinHero_ParallelWorlds 2013-04-20 21:26:29 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized AssassinHero_ParallelWorlds [ParallelWorlds] (bin) Unloaded->Constructed->Errored 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] Caught exception from AssassinHero_ParallelWorlds java.lang.ArrayIndexOutOfBoundsException: 5000 at net.minecraft.block.Block.<init>(Block.java:338) at assassinhero.parallelworlds.common.blocks.BlockNightiumBlock.<init>(BlockNightiumBlock.java:11) at assassinhero.parallelworlds.ParallelWorldsMain.PreInit(ParallelWorldsMain.java:35) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) 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.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 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.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) at net.minecraft.client.Minecraft.startGame(Minecraft.java:407) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:729) at java.lang.Thread.run(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] java.lang.ArrayIndexOutOfBoundsException: 5000 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.block.Block.<init>(Block.java:338) 2013-04-20 21:26:29 [iNFO] [sTDERR] at assassinhero.parallelworlds.common.blocks.BlockNightiumBlock.<init>(BlockNightiumBlock.java:11) 2013-04-20 21:26:29 [iNFO] [sTDERR] at assassinhero.parallelworlds.ParallelWorldsMain.PreInit(ParallelWorldsMain.java:35) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:407) 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) 2013-04-20 21:26:40 [iNFO] [sTDERR] Someone is closing me! This is my main 2013-04-20 21:26:24 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.611 for Minecraft 1.5.1 loading 2013-04-20 21:26:24 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_17, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 2013-04-20 21:26:24 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2013-04-20 21:26:27 [iNFO] [sTDOUT] 229 recipes 2013-04-20 21:26:27 [iNFO] [sTDOUT] 27 achievements 2013-04-20 21:26:27 [iNFO] [Minecraft-Client] Setting user: Player323 2013-04-20 21:26:27 [iNFO] [sTDOUT] (Session ID is -) 2013-04-20 21:26:27 [iNFO] [sTDERR] Client asked for parameter: server 2013-04-20 21:26:27 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2 2013-04-20 21:26:27 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization 2013-04-20 21:26:27 [iNFO] [sTDOUT] MinecraftForge v7.7.1.611 Initialized 2013-04-20 21:26:27 [iNFO] [ForgeModLoader] MinecraftForge v7.7.1.611 Initialized 2013-04-20 21:26:28 [iNFO] [sTDOUT] Replaced 85 ore recipies 2013-04-20 21:26:28 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization 2013-04-20 21:26:28 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Ryan\Desktop\MCP\jars\config\logging.properties 2013-04-20 21:26:28 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2013-04-20 21:26:28 [iNFO] [ForgeModLoader] Searching C:\Users\Ryan\Desktop\MCP\jars\mods for mods 2013-04-20 21:26:29 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load 2013-04-20 21:26:29 [iNFO] [mcp] Activating mod mcp 2013-04-20 21:26:29 [iNFO] [FML] Activating mod FML 2013-04-20 21:26:29 [iNFO] [Forge] Activating mod Forge 2013-04-20 21:26:29 [iNFO] [AssassinHero_ParallelWorlds] Activating mod AssassinHero_ParallelWorlds 2013-04-20 21:26:29 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized AssassinHero_ParallelWorlds [ParallelWorlds] (bin) Unloaded->Constructed->Errored 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] Caught exception from AssassinHero_ParallelWorlds java.lang.ArrayIndexOutOfBoundsException: 5000 at net.minecraft.block.Block.<init>(Block.java:338) at assassinhero.parallelworlds.common.blocks.BlockNightiumBlock.<init>(BlockNightiumBlock.java:11) at assassinhero.parallelworlds.ParallelWorldsMain.PreInit(ParallelWorldsMain.java:35) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) 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.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 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.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) at net.minecraft.client.Minecraft.startGame(Minecraft.java:407) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:729) at java.lang.Thread.run(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] java.lang.ArrayIndexOutOfBoundsException: 5000 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.block.Block.<init>(Block.java:338) 2013-04-20 21:26:29 [iNFO] [sTDERR] at assassinhero.parallelworlds.common.blocks.BlockNightiumBlock.<init>(BlockNightiumBlock.java:11) 2013-04-20 21:26:29 [iNFO] [sTDERR] at assassinhero.parallelworlds.ParallelWorldsMain.PreInit(ParallelWorldsMain.java:35) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:407) 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) 2013-04-20 21:26:40 [iNFO] [sTDERR] Someone is closing me! block class: package assassinhero.parallelworlds.common.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; public class BlockNightiumBlock extends Block{ public BlockNightiumBlock(int par1, Material par2Material) { super(par1, Material.iron); setCreativeTab(CreativeTabs.tabBlock); setHardness(8.0F); setResistance(10000000000000.0F); } public void updateIcons(IconRegister par1iconregister){ this.blockIcon = par1iconregister.registerIcon("ParallelWorlds:Nightium"); } } Any help?!?!
  11. I got this error: 2013-04-20 21:26:24 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.611 for Minecraft 1.5.1 loading 2013-04-20 21:26:24 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_17, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 2013-04-20 21:26:24 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2013-04-20 21:26:27 [iNFO] [sTDOUT] 229 recipes 2013-04-20 21:26:27 [iNFO] [sTDOUT] 27 achievements 2013-04-20 21:26:27 [iNFO] [Minecraft-Client] Setting user: Player323 2013-04-20 21:26:27 [iNFO] [sTDOUT] (Session ID is -) 2013-04-20 21:26:27 [iNFO] [sTDERR] Client asked for parameter: server 2013-04-20 21:26:27 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2 2013-04-20 21:26:27 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization 2013-04-20 21:26:27 [iNFO] [sTDOUT] MinecraftForge v7.7.1.611 Initialized 2013-04-20 21:26:27 [iNFO] [ForgeModLoader] MinecraftForge v7.7.1.611 Initialized 2013-04-20 21:26:28 [iNFO] [sTDOUT] Replaced 85 ore recipies 2013-04-20 21:26:28 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization 2013-04-20 21:26:28 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Ryan\Desktop\MCP\jars\config\logging.properties 2013-04-20 21:26:28 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2013-04-20 21:26:28 [iNFO] [ForgeModLoader] Searching C:\Users\Ryan\Desktop\MCP\jars\mods for mods 2013-04-20 21:26:29 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load 2013-04-20 21:26:29 [iNFO] [mcp] Activating mod mcp 2013-04-20 21:26:29 [iNFO] [FML] Activating mod FML 2013-04-20 21:26:29 [iNFO] [Forge] Activating mod Forge 2013-04-20 21:26:29 [iNFO] [AssassinHero_ParallelWorlds] Activating mod AssassinHero_ParallelWorlds 2013-04-20 21:26:29 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized AssassinHero_ParallelWorlds [ParallelWorlds] (bin) Unloaded->Constructed->Errored 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] Caught exception from AssassinHero_ParallelWorlds java.lang.ArrayIndexOutOfBoundsException: 5000 at net.minecraft.block.Block.<init>(Block.java:338) at assassinhero.parallelworlds.common.blocks.BlockNightiumBlock.<init>(BlockNightiumBlock.java:11) at assassinhero.parallelworlds.ParallelWorldsMain.PreInit(ParallelWorldsMain.java:35) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) 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.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 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.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) at net.minecraft.client.Minecraft.startGame(Minecraft.java:407) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:729) at java.lang.Thread.run(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] java.lang.ArrayIndexOutOfBoundsException: 5000 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.block.Block.<init>(Block.java:338) 2013-04-20 21:26:29 [iNFO] [sTDERR] at assassinhero.parallelworlds.common.blocks.BlockNightiumBlock.<init>(BlockNightiumBlock.java:11) 2013-04-20 21:26:29 [iNFO] [sTDERR] at assassinhero.parallelworlds.ParallelWorldsMain.PreInit(ParallelWorldsMain.java:35) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:407) 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) 2013-04-20 21:26:40 [iNFO] [sTDERR] Someone is closing me! This is my main 2013-04-20 21:26:24 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.611 for Minecraft 1.5.1 loading 2013-04-20 21:26:24 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_17, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 2013-04-20 21:26:24 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2013-04-20 21:26:27 [iNFO] [sTDOUT] 229 recipes 2013-04-20 21:26:27 [iNFO] [sTDOUT] 27 achievements 2013-04-20 21:26:27 [iNFO] [Minecraft-Client] Setting user: Player323 2013-04-20 21:26:27 [iNFO] [sTDOUT] (Session ID is -) 2013-04-20 21:26:27 [iNFO] [sTDERR] Client asked for parameter: server 2013-04-20 21:26:27 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2 2013-04-20 21:26:27 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization 2013-04-20 21:26:27 [iNFO] [sTDOUT] MinecraftForge v7.7.1.611 Initialized 2013-04-20 21:26:27 [iNFO] [ForgeModLoader] MinecraftForge v7.7.1.611 Initialized 2013-04-20 21:26:28 [iNFO] [sTDOUT] Replaced 85 ore recipies 2013-04-20 21:26:28 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization 2013-04-20 21:26:28 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Ryan\Desktop\MCP\jars\config\logging.properties 2013-04-20 21:26:28 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2013-04-20 21:26:28 [iNFO] [ForgeModLoader] Searching C:\Users\Ryan\Desktop\MCP\jars\mods for mods 2013-04-20 21:26:29 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load 2013-04-20 21:26:29 [iNFO] [mcp] Activating mod mcp 2013-04-20 21:26:29 [iNFO] [FML] Activating mod FML 2013-04-20 21:26:29 [iNFO] [Forge] Activating mod Forge 2013-04-20 21:26:29 [iNFO] [AssassinHero_ParallelWorlds] Activating mod AssassinHero_ParallelWorlds 2013-04-20 21:26:29 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized AssassinHero_ParallelWorlds [ParallelWorlds] (bin) Unloaded->Constructed->Errored 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-04-20 21:26:29 [sEVERE] [ForgeModLoader] Caught exception from AssassinHero_ParallelWorlds java.lang.ArrayIndexOutOfBoundsException: 5000 at net.minecraft.block.Block.<init>(Block.java:338) at assassinhero.parallelworlds.common.blocks.BlockNightiumBlock.<init>(BlockNightiumBlock.java:11) at assassinhero.parallelworlds.ParallelWorldsMain.PreInit(ParallelWorldsMain.java:35) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) 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.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 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.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) at net.minecraft.client.Minecraft.startGame(Minecraft.java:407) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:729) at java.lang.Thread.run(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] java.lang.ArrayIndexOutOfBoundsException: 5000 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.block.Block.<init>(Block.java:338) 2013-04-20 21:26:29 [iNFO] [sTDERR] at assassinhero.parallelworlds.common.blocks.BlockNightiumBlock.<init>(BlockNightiumBlock.java:11) 2013-04-20 21:26:29 [iNFO] [sTDERR] at assassinhero.parallelworlds.ParallelWorldsMain.PreInit(ParallelWorldsMain.java:35) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-04-20 21:26:29 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) 2013-04-20 21:26:29 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:407) 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-04-20 21:26:29 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729) 2013-04-20 21:26:29 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) 2013-04-20 21:26:40 [iNFO] [sTDERR] Someone is closing me! block class: package assassinhero.parallelworlds.common.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; public class BlockNightiumBlock extends Block{ public BlockNightiumBlock(int par1, Material par2Material) { super(par1, Material.iron); setCreativeTab(CreativeTabs.tabBlock); setHardness(8.0F); setResistance(10000000000000.0F); } public void updateIcons(IconRegister par1iconregister){ this.blockIcon = par1iconregister.registerIcon("ParallelWorlds:Nightium"); } } Any help?!?!
  12. Hey guys, As the title says I am making a Dimension for the first time I have an issue with teleporting I have an error on this piece of code in my TeleporterParallelWorlds clas new PortalPosition(this, i, j, k, this.worldServerInstance.getTotalWorldTime())); This is my main: package assassinhero.parallelworlds; import assassinhero.parallelworlds.client.ParallelWorldsClientPacketHandler; import assassinhero.parallelworlds.common.ParallelWorldsCommonProxy; import assassinhero.parallelworlds.common.ParallelWorldsServerPacketHandler; import assassinhero.parallelworlds.common.WorldGenerator; import assassinhero.parallelworlds.common.blocks.BlockArcticiteBlock; import assassinhero.parallelworlds.common.blocks.BlockAscariteBlock; import assassinhero.parallelworlds.common.blocks.BlockHeavenlyOre; import assassinhero.parallelworlds.common.blocks.BlockHellOre; import assassinhero.parallelworlds.common.blocks.BlockHelliteBlock; import assassinhero.parallelworlds.common.blocks.BlockNightOre; import assassinhero.parallelworlds.common.blocks.BlockNightStoneBlock; import assassinhero.parallelworlds.common.blocks.BlockPortalArcitcite; import assassinhero.parallelworlds.common.blocks.BlockTimeOre; import assassinhero.parallelworlds.common.blocks.BlockTimeStoneBlock; import assassinhero.parallelworlds.common.items.ItemCookedLambChopFood; import assassinhero.parallelworlds.common.items.ItemDemonicBoots; import assassinhero.parallelworlds.common.items.ItemDemonicChestplate; import assassinhero.parallelworlds.common.items.ItemDemonicHelmet; import assassinhero.parallelworlds.common.items.ItemDemonicLeggings; import assassinhero.parallelworlds.common.items.ItemDemonicPickaxe; import assassinhero.parallelworlds.common.items.ItemDemonicShovel; import assassinhero.parallelworlds.common.items.ItemDemonicSword; import assassinhero.parallelworlds.common.items.ItemDevilStoneItem; import assassinhero.parallelworlds.common.items.ItemEnderIngotItem; import assassinhero.parallelworlds.common.items.ItemEnderShardItem; import assassinhero.parallelworlds.common.items.ItemHeavenlyIngotItem; import assassinhero.parallelworlds.common.items.ItemHeavenlyPickaxe; import assassinhero.parallelworlds.common.items.ItemHellShardItem; import assassinhero.parallelworlds.common.items.ItemIceShardItem; import assassinhero.parallelworlds.common.items.ItemIceStoneItem; import assassinhero.parallelworlds.common.items.ItemMutatedAppleFood; import assassinhero.parallelworlds.common.items.ItemNightGemItem; import assassinhero.parallelworlds.common.items.ItemRawLambChopFood; import assassinhero.parallelworlds.common.items.ItemSapphireAxe; import assassinhero.parallelworlds.common.items.ItemSapphireItem; import assassinhero.parallelworlds.common.items.ItemSapphirePickaxe; import assassinhero.parallelworlds.common.items.ItemSapphireSword; import assassinhero.parallelworlds.common.items.ItemTimeAxe; import assassinhero.parallelworlds.common.items.ItemTimeGemItem; import assassinhero.parallelworlds.common.items.ItemTimePickaxe; import assassinhero.parallelworlds.common.items.ItemTimeShovel; import assassinhero.parallelworlds.common.items.ItemTimeSword; import net.minecraft.block.Block; import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.common.DimensionManager; import net.minecraftforge.common.EnumHelper; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.living.LivingDropsEvent; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; @NetworkMod(clientSideRequired=true, serverSideRequired= true, clientPacketHandlerSpec = @cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler(channels = {"ParallelWorlds"} , packetHandler = ParallelWorldsClientPacketHandler.class), serverPacketHandlerSpec = @cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler(channels = {"ParallelWorlds"} , packetHandler = ParallelWorldsServerPacketHandler.class)) @Mod(modid="Parallel Worlds", name = "ParallelWorlds",version = "1.0.0") public class ParallelWorlds { @cpw.mods.fml.common.Mod.Instance("ParallelWorlds") public static ParallelWorlds Instance = new ParallelWorlds(); @SidedProxy(clientSide = "assassinhero.parallelworlds.client.ParallelWorldsClientProxy", serverSide = "assassinhero.parallelworlds.common.ParallelWorldsCommonProxy") public static ParallelWorldsCommonProxy proxy; public static Block Portal; public static Item EnderIngot; public static Item DemonicHelmet; public static Item DemonicChestplate; public static Item DemonicLeggings; public static Item DemonicBoots; public static Item MutatedApple; public static Item CookedLambChop; public static Item RawLambChop; public static Item DemonicShovel; public static Item DemonicPickaxe; public static Item DevilStone; public static Item DemonicSword; public static Block HellOre; public static Item HellShard; public static Item EnderShard; public static Item SapphireAxe; public static Item SapphireSword; public static Item IceStone; public static Item IceShard; public static Item HeavenlyPickaxe; public static Item SapphirePickaxe; public static Item Sapphire; public static Item TimePickaxe; public static Item TimeShovel; public static Item TimeAxe; public static Item TimeSword; public static Block TimeOre; public static Item AscariteHelmet; public static Item AscariteChestplate; public static Item AscariteLeggings; public static Item AscariteBoots; public static Block HeavenlyOre; public static Item HeavenlyIngot; public static Block Ascarite; public static Block Hellite; public static Block Arcticite; public static Block NightOre; public static Item TimeGem; public static Block TimeStone; public static Block NightStone; public static Item NightGem; @cpw.mods.fml.common.Mod.PreInit public void PreInit(FMLPreInitializationEvent event){ NightOre = new BlockNightOre(3657).setUnlocalizedName("Night Ore"); NightStone = new BlockNightStoneBlock(3658).setUnlocalizedName("Night Stone"); TimeStone = new BlockTimeStoneBlock(3659).setUnlocalizedName("Time Stone"); Arcticite = new BlockArcticiteBlock(3660).setUnlocalizedName("Arcticite"); Hellite = new BlockHelliteBlock(3661).setUnlocalizedName("Hellite"); Ascarite = new BlockAscariteBlock(3662).setUnlocalizedName("Ascarite"); HeavenlyOre = new BlockHeavenlyOre(3663).setUnlocalizedName("Heavenly Ore"); TimeOre = new BlockTimeOre(3664).setUnlocalizedName("Time Ore"); HellOre = new BlockHellOre(3665).setUnlocalizedName("Hell Ore"); TimeSword = new ItemTimeSword(8000, EnumToolMaterial.TIME).setUnlocalizedName("Time Sword"); TimePickaxe = new ItemTimePickaxe(8001, EnumToolMaterial.TIME).setUnlocalizedName("Time Pickaxe"); TimeAxe = new ItemTimeAxe(8002, EnumToolMaterial.TIME).setUnlocalizedName("Time Axe"); TimeShovel = new ItemTimeShovel(8003, EnumToolMaterial.TIME).setUnlocalizedName("Time Shovel"); SapphirePickaxe = new ItemSapphirePickaxe(8004, EnumToolMaterial.SAPPHIRE).setUnlocalizedName("Sapphire Pickaxe"); SapphireSword = new ItemSapphireSword(8005, EnumToolMaterial.SAPPHIRE).setUnlocalizedName("Sapphire Sword"); SapphireAxe = new ItemSapphireAxe(8006, EnumToolMaterial.SAPPHIRE).setUnlocalizedName("Sapphire Axe"); HeavenlyPickaxe = new ItemHeavenlyPickaxe(8009, EnumToolMaterial.HEAVENLY).setUnlocalizedName("Heavenly Pickaxe"); DemonicSword = new ItemDemonicSword(8012, EnumToolMaterial.DEMONIC).setUnlocalizedName("Demonic Sword"); DemonicPickaxe = new ItemDemonicPickaxe(8013, EnumToolMaterial.DEMONIC).setUnlocalizedName("Demonic Pickaxe"); DemonicShovel = new ItemDemonicShovel(8014, EnumToolMaterial.DEMONIC).setUnlocalizedName("Demonic Shovel"); NightGem = new ItemNightGemItem(5000).setUnlocalizedName("Night Gem"); TimeGem = new ItemTimeGemItem(5001).setUnlocalizedName("Time Gem"); HeavenlyIngot = new ItemHeavenlyIngotItem(5002).setUnlocalizedName("Heavenly Ingot"); Sapphire = new ItemSapphireItem(5003).setUnlocalizedName("Sapphire"); IceShard = new ItemIceShardItem(5004).setUnlocalizedName("Ice Shard"); IceStone = new ItemIceStoneItem(5005).setUnlocalizedName("Ice Stone"); EnderShard = new ItemEnderShardItem(5006).setUnlocalizedName("Ender Shard"); HellShard = new ItemHellShardItem(5007).setUnlocalizedName("Hell Shard"); DevilStone = new ItemDevilStoneItem(5008).setUnlocalizedName("Devil Stone"); RawLambChop = new ItemRawLambChopFood(5009, 4, 4.0F, true).setUnlocalizedName("Raw Lamb Chop"); CookedLambChop = new ItemCookedLambChopFood(5010, 8, 4.0F, true).setUnlocalizedName("Cooked Lamb Chop"); MutatedApple = new ItemMutatedAppleFood(5011, 5, 2.0F, false).setUnlocalizedName("Mutated Apple"); EnderIngot = new ItemEnderIngotItem(5012).setUnlocalizedName("Ender Ingot"); DemonicHelmet = new ItemDemonicHelmet(20000, EnumArmorMaterial.DEMONIC, 8, 0).setUnlocalizedName("Demonic Helmet"); DemonicChestplate = new ItemDemonicChestplate(20001, EnumArmorMaterial.DEMONIC, 8, 1).setUnlocalizedName("Demonic Chestplate"); DemonicLeggings = new ItemDemonicLeggings(20002, EnumArmorMaterial.DEMONIC, 7, 2).setUnlocalizedName("Demonic Leggings"); DemonicBoots = new ItemDemonicBoots(20003, EnumArmorMaterial.DEMONIC, 7, 3).setUnlocalizedName("Demonic Boots"); Portal = new BlockPortalArcitcite(1000).setUnlocalizedName("Portal"); } @Init public void InitParallelWorlds(FMLInitializationEvent event){ NetworkRegistry.instance().registerGuiHandler(this, proxy); proxy.registerBlocks(); proxy.registerItems(); craftingRecipes(); EnumToolMaterial(); EnumArmorMaterial(); GameRegistry.registerWorldGenerator(new WorldGenerator()); smeltingRecipes(); MinecraftForge.EVENT_BUS.register(new ParallelWorldsSheepDropsEvent()); DimensionManager(); } public void craftingRecipes(){ GameRegistry.addRecipe(new ItemStack(ParallelWorlds.NightStone, 1), "XX", "XX", Character.valueOf('X'), ParallelWorlds.NightGem); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.TimeStone, 1 ), "XX", "XX", Character.valueOf('X'), ParallelWorlds.TimeGem); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.Arcticite, 1), "XX", "XX", Character.valueOf('X'), Block.blockSnow); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.Ascarite, 1), "XX", "XX", Character.valueOf('X'), ParallelWorlds.HeavenlyIngot); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.TimePickaxe, 1), "XXX", " A ", " A ", Character.valueOf('X'), ParallelWorlds.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.TimeSword, 1), " X ", " X ", " A ", Character.valueOf('X'), ParallelWorlds.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.SapphirePickaxe, 1), "XXX", " A ", " A ", Character.valueOf('X'), ParallelWorlds.Sapphire, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.TimeAxe, 1), "XX ", "XA ", " A ", Character.valueOf('X'), ParallelWorlds.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.HeavenlyPickaxe, 1), "XXX", " A ", " A ", Character.valueOf('X'), ParallelWorlds.HeavenlyIngot, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.IceStone, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorlds.IceShard); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.TimeShovel, 1), " X ", " A ", " A ", Character.valueOf('X'), ParallelWorlds.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.SapphireSword, 1), " X ", " X ", " A ", Character.valueOf('X'), ParallelWorlds.Sapphire, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.SapphireAxe, 1), "XX ", "XA ", " A ", Character.valueOf('X'), ParallelWorlds.Sapphire, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.DemonicSword,1), " X ", " X ", " A ", Character.valueOf('X'), ParallelWorlds.DevilStone, Character.valueOf('A'), Item.blazeRod); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.Hellite,1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorlds.HellShard); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.DemonicPickaxe, 1), "XXX", " A ", " A ", Character.valueOf('X'), ParallelWorlds.DevilStone, Character.valueOf('A'), Item.blazeRod); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.DemonicHelmet, 1), " ", "XXX", "X X", Character.valueOf('X'), ParallelWorlds.DevilStone); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.DemonicChestplate, 1), "X X", "XXX", "XXX", Character.valueOf('X'), ParallelWorlds.DevilStone); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.DemonicLeggings, 1), "XXX", "X X", "X X", Character.valueOf('X'), ParallelWorlds.DevilStone); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.DemonicBoots, 1), " ", "X X", "X X", Character.valueOf('X'), ParallelWorlds.DevilStone); } public static void EnumToolMaterial(){ EnumToolMaterial toolTime = EnumHelper.addToolMaterial("Time", 3, 2000, 10.F, 5, 20); EnumToolMaterial toolSapphire = EnumHelper.addToolMaterial("Sapphire", 3, 1500, 9.0F, 10, 10); EnumToolMaterial toolHeavenly = EnumHelper.addToolMaterial("Heavenly", 2, 300, 5.0F, 15, 5); EnumToolMaterial toolDemonic = EnumHelper.addToolMaterial("Demonic", 3, 0, 15.0F, 20, 30); EnumToolMaterial toolEnder = EnumHelper.addToolMaterial("ENDER", 3, 0, 15.0F, 15, 25); } public static void EnumArmorMaterial(){ EnumArmorMaterial armorDemonic = EnumHelper.addArmorMaterial("DEMONIC", 0, new int[]{3, 8, 6, 3}, 20); } public void smeltingRecipes(){ GameRegistry.addSmelting(HeavenlyOre.blockID, new ItemStack(HeavenlyIngot, 1), 0.7F); GameRegistry.addSmelting(RawLambChop.itemID, new ItemStack(CookedLambChop, 1), 0.3F); } public static int dimension; public void DimensionManager(){ DimensionManager.registerProviderType(dimension, WorldProviderArcticite.class, false); DimensionManager.registerDimension(dimension, dimension); } } This is my portal block class and I have an error under transferPlayerToDimension here: package assassinhero.parallelworlds.common.blocks; import java.util.Random; import assassinhero.parallelworlds.ParallelWorlds; import net.minecraft.block.Block; import net.minecraft.block.BlockPortal; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.world.World; public class BlockPortalArcitcite extends BlockPortal{ public BlockPortalArcitcite(int par1) { super(par1); setCreativeTab(CreativeTabs.tabBlock); } public void registerIcons(IconRegister par1iconregister){ this.blockIcon = par1iconregister.registerIcon("Portal"); } public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random) { super.updateTick(par1World, par2, par3, par4, par5Random); } public boolean tryToCreatePortal(World par1World, int par2, int par3, int par4) { byte b0 = 0; byte b1 = 0; if (par1World.getBlockId(par2 - 1, par3, par4) == ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2 + 1, par3, par4) == ParallelWorlds.Arcticite.blockID) { b0 = 1; } if (par1World.getBlockId(par2, par3, par4 - 1) == ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2, par3, par4 + 1) == ParallelWorlds.Arcticite.blockID) { b1 = 1; } if (b0 == b1) { return false; } else { if (par1World.getBlockId(par2 - b0, par3, par4 - b1) == 0) { par2 -= b0; par4 -= b1; } int l; int i1; for (l = -1; l <= 2; ++l) { for (i1 = -1; i1 <= 3; ++i1) { boolean flag = l == -1 || l == 2 || i1 == -1 || i1 == 3; if (l != -1 && l != 2 || i1 != -1 && i1 != 3) { int j1 = par1World.getBlockId(par2 + b0 * l, par3 + i1, par4 + b1 * l); if (flag) { if (j1 != ParallelWorlds.Arcticite.blockID) { return false; } } else if (j1 != 0 && j1 != Block.fire.blockID) { return false; } } } } for (l = 0; l < 2; ++l) { for (i1 = 0; i1 < 3; ++i1) { par1World.setBlock(par2 + b0 * l, par3 + i1, par4 + b1 * l, ParallelWorlds.Portal.blockID, 0, 2); } } return true; } } public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity){ if (par5Entity.ridingEntity == null && par5Entity.riddenByEntity == null){ if(par5Entity instanceof EntityPlayerMP){ EntityPlayerMP EntityPlayer = (EntityPlayerMP) par5Entity; if(par5Entity.dimension != ParallelWorlds.dimension){ EntityPlayer.mcServer.getConfigurationManager().transferPlayerToDimension(EntityPlayer, ParallelWorlds.dimension, new TeleporterParallelWorlds(EntityPlayer.mcServer.worldServerForDimension(ParallelWorlds.dimension))); } else{ EntityPlayer.mcServer.getConfigurationManager().transferPlayerToDimension(EntityPlayer, ParallelWorlds.dimension, new TeleporterParalelWorlds(EntityPlayer.mcServer.worldServerForDimension(0))); } } } } public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5) { byte b0 = 0; byte b1 = 1; if (par1World.getBlockId(par2 - 1, par3, par4) == this.blockID || par1World.getBlockId(par2 + 1, par3, par4) == this.blockID) { b0 = 1; b1 = 0; } int i1; for (i1 = par3; par1World.getBlockId(par2, i1 - 1, par4) == this.blockID; --i1) { ; } if (par1World.getBlockId(par2, i1 - 1, par4) != ParallelWorlds.Arcticite.blockID) { par1World.setBlockToAir(par2, par3, par4); } else { int j1; for (j1 = 1; j1 < 4 && par1World.getBlockId(par2, i1 + j1, par4) == this.blockID; ++j1) { ; } if (j1 == 3 && par1World.getBlockId(par2, i1 + j1, par4) == ParallelWorlds.Arcticite.blockID) { boolean flag = par1World.getBlockId(par2 - 1, par3, par4) == this.blockID || par1World.getBlockId(par2 + 1, par3, par4) == this.blockID; boolean flag1 = par1World.getBlockId(par2, par3, par4 - 1) == this.blockID || par1World.getBlockId(par2, par3, par4 + 1) == this.blockID; if (flag && flag1) { par1World.setBlockToAir(par2, par3, par4); } else { if ((par1World.getBlockId(par2 + b0, par3, par4 + b1) != ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2 - b0, par3, par4 - b1) != this.blockID) && (par1World.getBlockId(par2 - b0, par3, par4 - b1) != ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2 + b0, par3, par4 + b1) != this.blockID)) { par1World.setBlockToAir(par2, par3, par4); } } } else { par1World.setBlockToAir(par2, par3, par4); } } } } Lastly, this is my TeleporterParallelWorlds class: package assassinhero.parallelworlds.common.blocks; import java.util.Random; import assassinhero.parallelworlds.ParallelWorlds; import net.minecraft.block.Block; import net.minecraft.block.BlockPortal; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.world.World; public class BlockPortalArcitcite extends BlockPortal{ public BlockPortalArcitcite(int par1) { super(par1); setCreativeTab(CreativeTabs.tabBlock); } public void registerIcons(IconRegister par1iconregister){ this.blockIcon = par1iconregister.registerIcon("Portal"); } public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random) { super.updateTick(par1World, par2, par3, par4, par5Random); } public boolean tryToCreatePortal(World par1World, int par2, int par3, int par4) { byte b0 = 0; byte b1 = 0; if (par1World.getBlockId(par2 - 1, par3, par4) == ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2 + 1, par3, par4) == ParallelWorlds.Arcticite.blockID) { b0 = 1; } if (par1World.getBlockId(par2, par3, par4 - 1) == ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2, par3, par4 + 1) == ParallelWorlds.Arcticite.blockID) { b1 = 1; } if (b0 == b1) { return false; } else { if (par1World.getBlockId(par2 - b0, par3, par4 - b1) == 0) { par2 -= b0; par4 -= b1; } int l; int i1; for (l = -1; l <= 2; ++l) { for (i1 = -1; i1 <= 3; ++i1) { boolean flag = l == -1 || l == 2 || i1 == -1 || i1 == 3; if (l != -1 && l != 2 || i1 != -1 && i1 != 3) { int j1 = par1World.getBlockId(par2 + b0 * l, par3 + i1, par4 + b1 * l); if (flag) { if (j1 != ParallelWorlds.Arcticite.blockID) { return false; } } else if (j1 != 0 && j1 != Block.fire.blockID) { return false; } } } } for (l = 0; l < 2; ++l) { for (i1 = 0; i1 < 3; ++i1) { par1World.setBlock(par2 + b0 * l, par3 + i1, par4 + b1 * l, ParallelWorlds.Portal.blockID, 0, 2); } } return true; } } public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity){ if (par5Entity.ridingEntity == null && par5Entity.riddenByEntity == null){ if(par5Entity instanceof EntityPlayerMP){ EntityPlayerMP EntityPlayer = (EntityPlayerMP) par5Entity; if(par5Entity.dimension != ParallelWorlds.dimension){ EntityPlayer.mcServer.getConfigurationManager().transferPlayerToDimension(EntityPlayer, ParallelWorlds.dimension, new TeleporterParallelWorlds(EntityPlayer.mcServer.worldServerForDimension(ParallelWorlds.dimension))); } else{ EntityPlayer.mcServer.getConfigurationManager().transferPlayerToDimension(EntityPlayer, ParallelWorlds.dimension, new TeleporterParalelWorlds(EntityPlayer.mcServer.worldServerForDimension(0))); } } } } public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5) { byte b0 = 0; byte b1 = 1; if (par1World.getBlockId(par2 - 1, par3, par4) == this.blockID || par1World.getBlockId(par2 + 1, par3, par4) == this.blockID) { b0 = 1; b1 = 0; } int i1; for (i1 = par3; par1World.getBlockId(par2, i1 - 1, par4) == this.blockID; --i1) { ; } if (par1World.getBlockId(par2, i1 - 1, par4) != ParallelWorlds.Arcticite.blockID) { par1World.setBlockToAir(par2, par3, par4); } else { int j1; for (j1 = 1; j1 < 4 && par1World.getBlockId(par2, i1 + j1, par4) == this.blockID; ++j1) { ; } if (j1 == 3 && par1World.getBlockId(par2, i1 + j1, par4) == ParallelWorlds.Arcticite.blockID) { boolean flag = par1World.getBlockId(par2 - 1, par3, par4) == this.blockID || par1World.getBlockId(par2 + 1, par3, par4) == this.blockID; boolean flag1 = par1World.getBlockId(par2, par3, par4 - 1) == this.blockID || par1World.getBlockId(par2, par3, par4 + 1) == this.blockID; if (flag && flag1) { par1World.setBlockToAir(par2, par3, par4); } else { if ((par1World.getBlockId(par2 + b0, par3, par4 + b1) != ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2 - b0, par3, par4 - b1) != this.blockID) && (par1World.getBlockId(par2 - b0, par3, par4 - b1) != ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2 + b0, par3, par4 + b1) != this.blockID)) { par1World.setBlockToAir(par2, par3, par4); } } } else { par1World.setBlockToAir(par2, par3, par4); } } } } Any help please? If you need any extra code don't be afraid to ask
  13. Hey guys, As the title says I am making a Dimension for the first time I have an issue with teleporting I have an error on this piece of code in my TeleporterParallelWorlds clas new PortalPosition(this, i, j, k, this.worldServerInstance.getTotalWorldTime())); This is my main: package assassinhero.parallelworlds; import assassinhero.parallelworlds.client.ParallelWorldsClientPacketHandler; import assassinhero.parallelworlds.common.ParallelWorldsCommonProxy; import assassinhero.parallelworlds.common.ParallelWorldsServerPacketHandler; import assassinhero.parallelworlds.common.WorldGenerator; import assassinhero.parallelworlds.common.blocks.BlockArcticiteBlock; import assassinhero.parallelworlds.common.blocks.BlockAscariteBlock; import assassinhero.parallelworlds.common.blocks.BlockHeavenlyOre; import assassinhero.parallelworlds.common.blocks.BlockHellOre; import assassinhero.parallelworlds.common.blocks.BlockHelliteBlock; import assassinhero.parallelworlds.common.blocks.BlockNightOre; import assassinhero.parallelworlds.common.blocks.BlockNightStoneBlock; import assassinhero.parallelworlds.common.blocks.BlockPortalArcitcite; import assassinhero.parallelworlds.common.blocks.BlockTimeOre; import assassinhero.parallelworlds.common.blocks.BlockTimeStoneBlock; import assassinhero.parallelworlds.common.items.ItemCookedLambChopFood; import assassinhero.parallelworlds.common.items.ItemDemonicBoots; import assassinhero.parallelworlds.common.items.ItemDemonicChestplate; import assassinhero.parallelworlds.common.items.ItemDemonicHelmet; import assassinhero.parallelworlds.common.items.ItemDemonicLeggings; import assassinhero.parallelworlds.common.items.ItemDemonicPickaxe; import assassinhero.parallelworlds.common.items.ItemDemonicShovel; import assassinhero.parallelworlds.common.items.ItemDemonicSword; import assassinhero.parallelworlds.common.items.ItemDevilStoneItem; import assassinhero.parallelworlds.common.items.ItemEnderIngotItem; import assassinhero.parallelworlds.common.items.ItemEnderShardItem; import assassinhero.parallelworlds.common.items.ItemHeavenlyIngotItem; import assassinhero.parallelworlds.common.items.ItemHeavenlyPickaxe; import assassinhero.parallelworlds.common.items.ItemHellShardItem; import assassinhero.parallelworlds.common.items.ItemIceShardItem; import assassinhero.parallelworlds.common.items.ItemIceStoneItem; import assassinhero.parallelworlds.common.items.ItemMutatedAppleFood; import assassinhero.parallelworlds.common.items.ItemNightGemItem; import assassinhero.parallelworlds.common.items.ItemRawLambChopFood; import assassinhero.parallelworlds.common.items.ItemSapphireAxe; import assassinhero.parallelworlds.common.items.ItemSapphireItem; import assassinhero.parallelworlds.common.items.ItemSapphirePickaxe; import assassinhero.parallelworlds.common.items.ItemSapphireSword; import assassinhero.parallelworlds.common.items.ItemTimeAxe; import assassinhero.parallelworlds.common.items.ItemTimeGemItem; import assassinhero.parallelworlds.common.items.ItemTimePickaxe; import assassinhero.parallelworlds.common.items.ItemTimeShovel; import assassinhero.parallelworlds.common.items.ItemTimeSword; import net.minecraft.block.Block; import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.common.DimensionManager; import net.minecraftforge.common.EnumHelper; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.living.LivingDropsEvent; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; @NetworkMod(clientSideRequired=true, serverSideRequired= true, clientPacketHandlerSpec = @cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler(channels = {"ParallelWorlds"} , packetHandler = ParallelWorldsClientPacketHandler.class), serverPacketHandlerSpec = @cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler(channels = {"ParallelWorlds"} , packetHandler = ParallelWorldsServerPacketHandler.class)) @Mod(modid="Parallel Worlds", name = "ParallelWorlds",version = "1.0.0") public class ParallelWorlds { @cpw.mods.fml.common.Mod.Instance("ParallelWorlds") public static ParallelWorlds Instance = new ParallelWorlds(); @SidedProxy(clientSide = "assassinhero.parallelworlds.client.ParallelWorldsClientProxy", serverSide = "assassinhero.parallelworlds.common.ParallelWorldsCommonProxy") public static ParallelWorldsCommonProxy proxy; public static Block Portal; public static Item EnderIngot; public static Item DemonicHelmet; public static Item DemonicChestplate; public static Item DemonicLeggings; public static Item DemonicBoots; public static Item MutatedApple; public static Item CookedLambChop; public static Item RawLambChop; public static Item DemonicShovel; public static Item DemonicPickaxe; public static Item DevilStone; public static Item DemonicSword; public static Block HellOre; public static Item HellShard; public static Item EnderShard; public static Item SapphireAxe; public static Item SapphireSword; public static Item IceStone; public static Item IceShard; public static Item HeavenlyPickaxe; public static Item SapphirePickaxe; public static Item Sapphire; public static Item TimePickaxe; public static Item TimeShovel; public static Item TimeAxe; public static Item TimeSword; public static Block TimeOre; public static Item AscariteHelmet; public static Item AscariteChestplate; public static Item AscariteLeggings; public static Item AscariteBoots; public static Block HeavenlyOre; public static Item HeavenlyIngot; public static Block Ascarite; public static Block Hellite; public static Block Arcticite; public static Block NightOre; public static Item TimeGem; public static Block TimeStone; public static Block NightStone; public static Item NightGem; @cpw.mods.fml.common.Mod.PreInit public void PreInit(FMLPreInitializationEvent event){ NightOre = new BlockNightOre(3657).setUnlocalizedName("Night Ore"); NightStone = new BlockNightStoneBlock(3658).setUnlocalizedName("Night Stone"); TimeStone = new BlockTimeStoneBlock(3659).setUnlocalizedName("Time Stone"); Arcticite = new BlockArcticiteBlock(3660).setUnlocalizedName("Arcticite"); Hellite = new BlockHelliteBlock(3661).setUnlocalizedName("Hellite"); Ascarite = new BlockAscariteBlock(3662).setUnlocalizedName("Ascarite"); HeavenlyOre = new BlockHeavenlyOre(3663).setUnlocalizedName("Heavenly Ore"); TimeOre = new BlockTimeOre(3664).setUnlocalizedName("Time Ore"); HellOre = new BlockHellOre(3665).setUnlocalizedName("Hell Ore"); TimeSword = new ItemTimeSword(8000, EnumToolMaterial.TIME).setUnlocalizedName("Time Sword"); TimePickaxe = new ItemTimePickaxe(8001, EnumToolMaterial.TIME).setUnlocalizedName("Time Pickaxe"); TimeAxe = new ItemTimeAxe(8002, EnumToolMaterial.TIME).setUnlocalizedName("Time Axe"); TimeShovel = new ItemTimeShovel(8003, EnumToolMaterial.TIME).setUnlocalizedName("Time Shovel"); SapphirePickaxe = new ItemSapphirePickaxe(8004, EnumToolMaterial.SAPPHIRE).setUnlocalizedName("Sapphire Pickaxe"); SapphireSword = new ItemSapphireSword(8005, EnumToolMaterial.SAPPHIRE).setUnlocalizedName("Sapphire Sword"); SapphireAxe = new ItemSapphireAxe(8006, EnumToolMaterial.SAPPHIRE).setUnlocalizedName("Sapphire Axe"); HeavenlyPickaxe = new ItemHeavenlyPickaxe(8009, EnumToolMaterial.HEAVENLY).setUnlocalizedName("Heavenly Pickaxe"); DemonicSword = new ItemDemonicSword(8012, EnumToolMaterial.DEMONIC).setUnlocalizedName("Demonic Sword"); DemonicPickaxe = new ItemDemonicPickaxe(8013, EnumToolMaterial.DEMONIC).setUnlocalizedName("Demonic Pickaxe"); DemonicShovel = new ItemDemonicShovel(8014, EnumToolMaterial.DEMONIC).setUnlocalizedName("Demonic Shovel"); NightGem = new ItemNightGemItem(5000).setUnlocalizedName("Night Gem"); TimeGem = new ItemTimeGemItem(5001).setUnlocalizedName("Time Gem"); HeavenlyIngot = new ItemHeavenlyIngotItem(5002).setUnlocalizedName("Heavenly Ingot"); Sapphire = new ItemSapphireItem(5003).setUnlocalizedName("Sapphire"); IceShard = new ItemIceShardItem(5004).setUnlocalizedName("Ice Shard"); IceStone = new ItemIceStoneItem(5005).setUnlocalizedName("Ice Stone"); EnderShard = new ItemEnderShardItem(5006).setUnlocalizedName("Ender Shard"); HellShard = new ItemHellShardItem(5007).setUnlocalizedName("Hell Shard"); DevilStone = new ItemDevilStoneItem(5008).setUnlocalizedName("Devil Stone"); RawLambChop = new ItemRawLambChopFood(5009, 4, 4.0F, true).setUnlocalizedName("Raw Lamb Chop"); CookedLambChop = new ItemCookedLambChopFood(5010, 8, 4.0F, true).setUnlocalizedName("Cooked Lamb Chop"); MutatedApple = new ItemMutatedAppleFood(5011, 5, 2.0F, false).setUnlocalizedName("Mutated Apple"); EnderIngot = new ItemEnderIngotItem(5012).setUnlocalizedName("Ender Ingot"); DemonicHelmet = new ItemDemonicHelmet(20000, EnumArmorMaterial.DEMONIC, 8, 0).setUnlocalizedName("Demonic Helmet"); DemonicChestplate = new ItemDemonicChestplate(20001, EnumArmorMaterial.DEMONIC, 8, 1).setUnlocalizedName("Demonic Chestplate"); DemonicLeggings = new ItemDemonicLeggings(20002, EnumArmorMaterial.DEMONIC, 7, 2).setUnlocalizedName("Demonic Leggings"); DemonicBoots = new ItemDemonicBoots(20003, EnumArmorMaterial.DEMONIC, 7, 3).setUnlocalizedName("Demonic Boots"); Portal = new BlockPortalArcitcite(1000).setUnlocalizedName("Portal"); } @Init public void InitParallelWorlds(FMLInitializationEvent event){ NetworkRegistry.instance().registerGuiHandler(this, proxy); proxy.registerBlocks(); proxy.registerItems(); craftingRecipes(); EnumToolMaterial(); EnumArmorMaterial(); GameRegistry.registerWorldGenerator(new WorldGenerator()); smeltingRecipes(); MinecraftForge.EVENT_BUS.register(new ParallelWorldsSheepDropsEvent()); DimensionManager(); } public void craftingRecipes(){ GameRegistry.addRecipe(new ItemStack(ParallelWorlds.NightStone, 1), "XX", "XX", Character.valueOf('X'), ParallelWorlds.NightGem); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.TimeStone, 1 ), "XX", "XX", Character.valueOf('X'), ParallelWorlds.TimeGem); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.Arcticite, 1), "XX", "XX", Character.valueOf('X'), Block.blockSnow); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.Ascarite, 1), "XX", "XX", Character.valueOf('X'), ParallelWorlds.HeavenlyIngot); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.TimePickaxe, 1), "XXX", " A ", " A ", Character.valueOf('X'), ParallelWorlds.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.TimeSword, 1), " X ", " X ", " A ", Character.valueOf('X'), ParallelWorlds.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.SapphirePickaxe, 1), "XXX", " A ", " A ", Character.valueOf('X'), ParallelWorlds.Sapphire, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.TimeAxe, 1), "XX ", "XA ", " A ", Character.valueOf('X'), ParallelWorlds.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.HeavenlyPickaxe, 1), "XXX", " A ", " A ", Character.valueOf('X'), ParallelWorlds.HeavenlyIngot, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.IceStone, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorlds.IceShard); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.TimeShovel, 1), " X ", " A ", " A ", Character.valueOf('X'), ParallelWorlds.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.SapphireSword, 1), " X ", " X ", " A ", Character.valueOf('X'), ParallelWorlds.Sapphire, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.SapphireAxe, 1), "XX ", "XA ", " A ", Character.valueOf('X'), ParallelWorlds.Sapphire, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.DemonicSword,1), " X ", " X ", " A ", Character.valueOf('X'), ParallelWorlds.DevilStone, Character.valueOf('A'), Item.blazeRod); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.Hellite,1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorlds.HellShard); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.DemonicPickaxe, 1), "XXX", " A ", " A ", Character.valueOf('X'), ParallelWorlds.DevilStone, Character.valueOf('A'), Item.blazeRod); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.DemonicHelmet, 1), " ", "XXX", "X X", Character.valueOf('X'), ParallelWorlds.DevilStone); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.DemonicChestplate, 1), "X X", "XXX", "XXX", Character.valueOf('X'), ParallelWorlds.DevilStone); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.DemonicLeggings, 1), "XXX", "X X", "X X", Character.valueOf('X'), ParallelWorlds.DevilStone); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.DemonicBoots, 1), " ", "X X", "X X", Character.valueOf('X'), ParallelWorlds.DevilStone); } public static void EnumToolMaterial(){ EnumToolMaterial toolTime = EnumHelper.addToolMaterial("Time", 3, 2000, 10.F, 5, 20); EnumToolMaterial toolSapphire = EnumHelper.addToolMaterial("Sapphire", 3, 1500, 9.0F, 10, 10); EnumToolMaterial toolHeavenly = EnumHelper.addToolMaterial("Heavenly", 2, 300, 5.0F, 15, 5); EnumToolMaterial toolDemonic = EnumHelper.addToolMaterial("Demonic", 3, 0, 15.0F, 20, 30); EnumToolMaterial toolEnder = EnumHelper.addToolMaterial("ENDER", 3, 0, 15.0F, 15, 25); } public static void EnumArmorMaterial(){ EnumArmorMaterial armorDemonic = EnumHelper.addArmorMaterial("DEMONIC", 0, new int[]{3, 8, 6, 3}, 20); } public void smeltingRecipes(){ GameRegistry.addSmelting(HeavenlyOre.blockID, new ItemStack(HeavenlyIngot, 1), 0.7F); GameRegistry.addSmelting(RawLambChop.itemID, new ItemStack(CookedLambChop, 1), 0.3F); } public static int dimension; public void DimensionManager(){ DimensionManager.registerProviderType(dimension, WorldProviderArcticite.class, false); DimensionManager.registerDimension(dimension, dimension); } } This is my portal block class and I have an error under transferPlayerToDimension here: package assassinhero.parallelworlds.common.blocks; import java.util.Random; import assassinhero.parallelworlds.ParallelWorlds; import net.minecraft.block.Block; import net.minecraft.block.BlockPortal; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.world.World; public class BlockPortalArcitcite extends BlockPortal{ public BlockPortalArcitcite(int par1) { super(par1); setCreativeTab(CreativeTabs.tabBlock); } public void registerIcons(IconRegister par1iconregister){ this.blockIcon = par1iconregister.registerIcon("Portal"); } public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random) { super.updateTick(par1World, par2, par3, par4, par5Random); } public boolean tryToCreatePortal(World par1World, int par2, int par3, int par4) { byte b0 = 0; byte b1 = 0; if (par1World.getBlockId(par2 - 1, par3, par4) == ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2 + 1, par3, par4) == ParallelWorlds.Arcticite.blockID) { b0 = 1; } if (par1World.getBlockId(par2, par3, par4 - 1) == ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2, par3, par4 + 1) == ParallelWorlds.Arcticite.blockID) { b1 = 1; } if (b0 == b1) { return false; } else { if (par1World.getBlockId(par2 - b0, par3, par4 - b1) == 0) { par2 -= b0; par4 -= b1; } int l; int i1; for (l = -1; l <= 2; ++l) { for (i1 = -1; i1 <= 3; ++i1) { boolean flag = l == -1 || l == 2 || i1 == -1 || i1 == 3; if (l != -1 && l != 2 || i1 != -1 && i1 != 3) { int j1 = par1World.getBlockId(par2 + b0 * l, par3 + i1, par4 + b1 * l); if (flag) { if (j1 != ParallelWorlds.Arcticite.blockID) { return false; } } else if (j1 != 0 && j1 != Block.fire.blockID) { return false; } } } } for (l = 0; l < 2; ++l) { for (i1 = 0; i1 < 3; ++i1) { par1World.setBlock(par2 + b0 * l, par3 + i1, par4 + b1 * l, ParallelWorlds.Portal.blockID, 0, 2); } } return true; } } public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity){ if (par5Entity.ridingEntity == null && par5Entity.riddenByEntity == null){ if(par5Entity instanceof EntityPlayerMP){ EntityPlayerMP EntityPlayer = (EntityPlayerMP) par5Entity; if(par5Entity.dimension != ParallelWorlds.dimension){ EntityPlayer.mcServer.getConfigurationManager().transferPlayerToDimension(EntityPlayer, ParallelWorlds.dimension, new TeleporterParallelWorlds(EntityPlayer.mcServer.worldServerForDimension(ParallelWorlds.dimension))); } else{ EntityPlayer.mcServer.getConfigurationManager().transferPlayerToDimension(EntityPlayer, ParallelWorlds.dimension, new TeleporterParalelWorlds(EntityPlayer.mcServer.worldServerForDimension(0))); } } } } public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5) { byte b0 = 0; byte b1 = 1; if (par1World.getBlockId(par2 - 1, par3, par4) == this.blockID || par1World.getBlockId(par2 + 1, par3, par4) == this.blockID) { b0 = 1; b1 = 0; } int i1; for (i1 = par3; par1World.getBlockId(par2, i1 - 1, par4) == this.blockID; --i1) { ; } if (par1World.getBlockId(par2, i1 - 1, par4) != ParallelWorlds.Arcticite.blockID) { par1World.setBlockToAir(par2, par3, par4); } else { int j1; for (j1 = 1; j1 < 4 && par1World.getBlockId(par2, i1 + j1, par4) == this.blockID; ++j1) { ; } if (j1 == 3 && par1World.getBlockId(par2, i1 + j1, par4) == ParallelWorlds.Arcticite.blockID) { boolean flag = par1World.getBlockId(par2 - 1, par3, par4) == this.blockID || par1World.getBlockId(par2 + 1, par3, par4) == this.blockID; boolean flag1 = par1World.getBlockId(par2, par3, par4 - 1) == this.blockID || par1World.getBlockId(par2, par3, par4 + 1) == this.blockID; if (flag && flag1) { par1World.setBlockToAir(par2, par3, par4); } else { if ((par1World.getBlockId(par2 + b0, par3, par4 + b1) != ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2 - b0, par3, par4 - b1) != this.blockID) && (par1World.getBlockId(par2 - b0, par3, par4 - b1) != ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2 + b0, par3, par4 + b1) != this.blockID)) { par1World.setBlockToAir(par2, par3, par4); } } } else { par1World.setBlockToAir(par2, par3, par4); } } } } Lastly, this is my TeleporterParallelWorlds class: package assassinhero.parallelworlds.common.blocks; import java.util.Random; import assassinhero.parallelworlds.ParallelWorlds; import net.minecraft.block.Block; import net.minecraft.block.BlockPortal; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.world.World; public class BlockPortalArcitcite extends BlockPortal{ public BlockPortalArcitcite(int par1) { super(par1); setCreativeTab(CreativeTabs.tabBlock); } public void registerIcons(IconRegister par1iconregister){ this.blockIcon = par1iconregister.registerIcon("Portal"); } public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random) { super.updateTick(par1World, par2, par3, par4, par5Random); } public boolean tryToCreatePortal(World par1World, int par2, int par3, int par4) { byte b0 = 0; byte b1 = 0; if (par1World.getBlockId(par2 - 1, par3, par4) == ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2 + 1, par3, par4) == ParallelWorlds.Arcticite.blockID) { b0 = 1; } if (par1World.getBlockId(par2, par3, par4 - 1) == ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2, par3, par4 + 1) == ParallelWorlds.Arcticite.blockID) { b1 = 1; } if (b0 == b1) { return false; } else { if (par1World.getBlockId(par2 - b0, par3, par4 - b1) == 0) { par2 -= b0; par4 -= b1; } int l; int i1; for (l = -1; l <= 2; ++l) { for (i1 = -1; i1 <= 3; ++i1) { boolean flag = l == -1 || l == 2 || i1 == -1 || i1 == 3; if (l != -1 && l != 2 || i1 != -1 && i1 != 3) { int j1 = par1World.getBlockId(par2 + b0 * l, par3 + i1, par4 + b1 * l); if (flag) { if (j1 != ParallelWorlds.Arcticite.blockID) { return false; } } else if (j1 != 0 && j1 != Block.fire.blockID) { return false; } } } } for (l = 0; l < 2; ++l) { for (i1 = 0; i1 < 3; ++i1) { par1World.setBlock(par2 + b0 * l, par3 + i1, par4 + b1 * l, ParallelWorlds.Portal.blockID, 0, 2); } } return true; } } public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity){ if (par5Entity.ridingEntity == null && par5Entity.riddenByEntity == null){ if(par5Entity instanceof EntityPlayerMP){ EntityPlayerMP EntityPlayer = (EntityPlayerMP) par5Entity; if(par5Entity.dimension != ParallelWorlds.dimension){ EntityPlayer.mcServer.getConfigurationManager().transferPlayerToDimension(EntityPlayer, ParallelWorlds.dimension, new TeleporterParallelWorlds(EntityPlayer.mcServer.worldServerForDimension(ParallelWorlds.dimension))); } else{ EntityPlayer.mcServer.getConfigurationManager().transferPlayerToDimension(EntityPlayer, ParallelWorlds.dimension, new TeleporterParalelWorlds(EntityPlayer.mcServer.worldServerForDimension(0))); } } } } public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5) { byte b0 = 0; byte b1 = 1; if (par1World.getBlockId(par2 - 1, par3, par4) == this.blockID || par1World.getBlockId(par2 + 1, par3, par4) == this.blockID) { b0 = 1; b1 = 0; } int i1; for (i1 = par3; par1World.getBlockId(par2, i1 - 1, par4) == this.blockID; --i1) { ; } if (par1World.getBlockId(par2, i1 - 1, par4) != ParallelWorlds.Arcticite.blockID) { par1World.setBlockToAir(par2, par3, par4); } else { int j1; for (j1 = 1; j1 < 4 && par1World.getBlockId(par2, i1 + j1, par4) == this.blockID; ++j1) { ; } if (j1 == 3 && par1World.getBlockId(par2, i1 + j1, par4) == ParallelWorlds.Arcticite.blockID) { boolean flag = par1World.getBlockId(par2 - 1, par3, par4) == this.blockID || par1World.getBlockId(par2 + 1, par3, par4) == this.blockID; boolean flag1 = par1World.getBlockId(par2, par3, par4 - 1) == this.blockID || par1World.getBlockId(par2, par3, par4 + 1) == this.blockID; if (flag && flag1) { par1World.setBlockToAir(par2, par3, par4); } else { if ((par1World.getBlockId(par2 + b0, par3, par4 + b1) != ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2 - b0, par3, par4 - b1) != this.blockID) && (par1World.getBlockId(par2 - b0, par3, par4 - b1) != ParallelWorlds.Arcticite.blockID || par1World.getBlockId(par2 + b0, par3, par4 + b1) != this.blockID)) { par1World.setBlockToAir(par2, par3, par4); } } } else { par1World.setBlockToAir(par2, par3, par4); } } } } Any help please? If you need any extra code don't be afraid to ask
  14. I have made a living drops event for my food item so sheep drop lambchops but every single mob is dropping the item?!?!? This is the code package assassinhero.parallelworlds; import net.minecraft.entity.monster.EntityEnderman; import net.minecraft.entity.passive.EntityCow; import net.minecraft.entity.passive.EntitySheep; import net.minecraftforge.event.ForgeSubscribe; import net.minecraftforge.event.entity.living.LivingDropsEvent; public class ParallelWorldsSheepDropsEvent { public static double rand; @ForgeSubscribe public void onEntityDrop(LivingDropsEvent event){ rand = Math.random(); if(event.entityLiving instanceof EntitySheep); if(rand < 1.00){ event.entityLiving.dropItem(ParallelWorlds.RawLambChop.itemID, 3); } } }
  15. Hey guys I am trying to get sheep to drop my lamb chop item This is the code I have so far: public class LivingDropsEvent { public static double rand; @ForgeSubscribe public void onEntityDrop(LivingDropsEvent event) { if (event.source.getDamageType().equals("player")) { rand = Math.random(); if (event.entityLiving instanceof EntitySheep) { if (rand < 0.50d){ event.entityLiving.dropItem(ParallelWorlds.LambChop.itemID, 3); } } } } } I have errors under source and entityLiving Any ideas?
  16. For some strange reason they are here now O_o
  17. Yes, It does exist, The textures once worked and now they do not. I have checked the folders prior to making this thread and all textures are there
  18. Wow far easier than I thought
  19. Hey guys, I am wondering how would you give a tool unlimited uses I dont want the tool to ever break also i dont want the durability bar to appear So giving the item a massive number like 1000000000000000000000000000000000000000000000000 wouldnt work Thanks in advance
  20. UPDATE!! There is one block with it's texture file here is the code for it: public class BlockHelliteBlock extends Block{ public BlockHelliteBlock(int ID){ super(ID,Material.rock); setHardness(5.0F); setResistance(19.0F); setCreativeTab(CreativeTabs.tabBlock); } @Override public void registerIcons(IconRegister par1iconregister){ this.blockIcon = par1iconregister.registerIcon("ParallelWorlds:Hellite"); } } Here is some code for a block without textures public class BlockTimeStoneBlock extends Block{ public BlockTimeStoneBlock(int ID){ super(ID,Material.iron); setHardness(10.F); setResistance(1000000.0F); setCreativeTab(CreativeTabs.tabBlock); } @Override public void registerIcons(IconRegister par1iconregister){ this.blockIcon = par1iconregister.registerIcon("ParallelWorlds:TimeStone"); } } I cannot spot any differences there might be someone here worth looking at I'm not sure if this will help

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.