
AssassinHero
Members-
Posts
179 -
Joined
-
Last visited
Everything posted by AssassinHero
-
Yeah
-
I was waiting for more suggestions and then I bumped it to make it obvious I needed more help
-
Yeah I did and that didn't work
-
can you make it more clear? Which function am i meant to override then?
-
I believe it makes the blocks become an 'ore' as such
-
I am making ore to generate into the overworld and some in the end and nether I have put the three that spawn in the overworld into the code now I am just wondering if this looks ok package assassinhero.parallelworlds.common; import java.util.Random; import assassinhero.parallelworlds.ParallelWorlds; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import cpw.mods.fml.common.IWorldGenerator; public class WorldGenerator implements IWorldGenerator{ @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch (world.provider.dimensionId){ case -1: generateNether(world, random, chunkX * 16, chunkZ * 16); break; case 0: generateSurface(world, random, chunkX * 16, chunkZ * 16); break; case 1: generateEnd(world, random, chunkX * 16, chunkZ * 16); } } private void generateEnd(World world, Random random, int i, int j) { } private void generateSurface(World world, Random random, int i, int j) { for(int k = 0; k < 10; k++){ int NightOreXCoord = i + random.nextInt(16); int NightOreYCoord = random.nextInt(25); int NightOreZCoord = j + random.nextInt(16); (new WorldGenMinable(ParallelWorlds.NightOre.blockID, 5)).generate(world, random, NightOreXCoord, NightOreYCoord, NightOreZCoord); } for(int l = 0; l < 10; l++){ int TimeOreXCoord = i + random.nextInt(16); int TimeOreYCoord = random.nextInt(15); int TimeOreZCoord = j + random.nextInt(16); (new WorldGenMinable(ParallelWorlds.TimeOre.blockID, 4)).generate(world, random, TimeOreXCoord, TimeOreYCoord, TimeOreZCoord); } for(int m = 0; m < 10; m++){ int HeavenlyOreXCoord = i + random.nextInt(16); int HeavenlyOreYCoord = random.nextInt(30); int HeavenlyOreZCoord = j + random.nextInt(16); (new WorldGenMinable(ParallelWorlds.HeavenlyOre.blockID, 5)).generate(world, random, HeavenlyOreXCoord, HeavenlyOreYCoord, HeavenlyOreZCoord); } }
-
Buuump
-
My textures are located at MCP/src/minecraft/mods/parallelworlds/textures/blocks
-
Hey guys, I haven't got any textures since 1.5.1 but I have item textures Main Class: @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 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"); 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"); 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"); } @Init public void InitParallelWorlds(FMLInitializationEvent event){ NetworkRegistry.instance().registerGuiHandler(this, proxy); proxy.registerBlocks(); proxy.registerItems(); craftingRecipes(); EnumToolMaterial(); GameRegistry.registerWorldGenerator(new WorldGenerator()); GameRegistry.addSmelting(ParallelWorlds.NightOre.blockID, new ItemStack(ParallelWorlds.NightGem, 1), 0.5F); } 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); } 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); } } Block Class 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"); } } All my blocks follow the same code.
-
Hey guys, Considering I'm new to Java and this is my first update to a new version of minecraft I am wondering what do I do to update my mod to the latest forge? I have the new MCP and the new forge files but I want to know what to do and how to move my code over etc. Thanks
-
This is the code i have for my smelting recipe GameRegistry.addSmelting(ParallelWorlds.NightOre.blockID, new ItemStack(ParallelWorlds.NightGem, 1), 0.5F); I have this in my Init method. I have also put it in a public void and it wont work any help?!?
-
I don't even know how i missed it
-
Deeeeeeeeeerp Thanks!
-
Hey guys, I was testing my minecraft today and I recieved this error 2013-03-24 13:21:10 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue 2013-03-24 13:21:10 [sEVERE] [ForgeModLoader] mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized Parallel Worlds [ParallelWorlds] (bin) Unloaded->Constructed->Pre-initialized->Errored 2013-03-24 13:21:10 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-03-24 13:21:10 [sEVERE] [ForgeModLoader] Caught exception from Parallel Worlds java.lang.StringIndexOutOfBoundsException: String index out of range: 8 at java.lang.String.charAt(Unknown Source) at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:209) at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:244) at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:239) at assassinhero.parallelworlds.ParallelWorlds.craftingRecipes(ParallelWorlds.java:117) at assassinhero.parallelworlds.ParallelWorlds.InitParallelWorlds(ParallelWorlds.java:104) 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.initializeMods(Loader.java:681) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) at net.minecraft.client.Minecraft.startGame(Minecraft.java:443) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:728) at java.lang.Thread.run(Unknown Source) 2013-03-24 13:21:10 [iNFO] [sTDERR] java.lang.StringIndexOutOfBoundsException: String index out of range: 8 2013-03-24 13:21:10 [iNFO] [sTDERR] at java.lang.String.charAt(Unknown Source) 2013-03-24 13:21:10 [iNFO] [sTDERR] at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:209) 2013-03-24 13:21:10 [iNFO] [sTDERR] at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:244) 2013-03-24 13:21:10 [iNFO] [sTDERR] at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:239) 2013-03-24 13:21:10 [iNFO] [sTDERR] at assassinhero.parallelworlds.ParallelWorlds.craftingRecipes(ParallelWorlds.java:117) 2013-03-24 13:21:10 [iNFO] [sTDERR] at assassinhero.parallelworlds.ParallelWorlds.InitParallelWorlds(ParallelWorlds.java:104) 2013-03-24 13:21:10 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-03-24 13:21:10 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-03-24 13:21:10 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-03-24 13:21:10 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-03-24 13:21:10 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) 2013-03-24 13:21:10 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-03-24 13:21:10 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-03-24 13:21:10 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-03-24 13:21:10 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-03-24 13:21:10 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-03-24 13:21:10 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-03-24 13:21:10 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-03-24 13:21:10 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-03-24 13:21:10 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-03-24 13:21:10 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 2013-03-24 13:21:10 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-03-24 13:21:10 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-03-24 13:21:10 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-03-24 13:21:10 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-03-24 13:21:10 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-03-24 13:21:10 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-03-24 13:21:10 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-03-24 13:21:10 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-03-24 13:21:10 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-03-24 13:21:10 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) 2013-03-24 13:21:10 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:681) 2013-03-24 13:21:10 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) 2013-03-24 13:21:10 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:443) 2013-03-24 13:21:10 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-03-24 13:21:10 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:728) 2013-03-24 13:21:10 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) 2013-03-24 13:21:20 [iNFO] [sTDERR] Someone is closing me! I have no clue what is causing this at all. I have googled it and checked multiple things but none of them apply to my situation Here is my main class @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 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"); 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"); SapphirePickaxe = new ItemSapphirePickaxe(8005, EnumToolMaterial.SAPPHIRE).setUnlocalizedName("Sapphire Pickaxe"); HeavenlyPickaxe = new ItemHeavenlyPickaxe(8009, EnumToolMaterial.HEAVENLY).setUnlocalizedName("Heavenly Pickaxe"); 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"); } @Init public void InitParallelWorlds(FMLInitializationEvent event){ NetworkRegistry.instance().registerGuiHandler(this, proxy); proxy.registerBlocks(); proxy.registerItems(); craftingRecipes(); smeltingRecipes(); EnumToolMaterial(); } 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); } public void smeltingRecipes(){ } 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); } } Common Proxy public class ParallelWorldsCommonProxy implements IGuiHandler{ public void registerRenderInformation(){ } @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){ return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){ return null; } public void registerTiles(){ } public void BlockHarvestLevel(){ } public void registerBlocks(){ GameRegistry.registerBlock(ParallelWorlds.NightStone, "Night Stone"); LanguageRegistry.addName(ParallelWorlds.NightStone, "Night Stone"); GameRegistry.registerBlock(ParallelWorlds.TimeStone, "Time Stone"); LanguageRegistry.addName(ParallelWorlds.TimeStone, "Time Stone"); GameRegistry.registerBlock(ParallelWorlds.NightOre, "Night Ore"); LanguageRegistry.addName(ParallelWorlds.NightOre, "Night Ore"); GameRegistry.registerBlock(ParallelWorlds.Arcticite, "Arcticite"); LanguageRegistry.addName(ParallelWorlds.Arcticite, "Arcticite"); GameRegistry.registerBlock(ParallelWorlds.Hellite, "Hellite"); LanguageRegistry.addName(ParallelWorlds.Hellite, "Hellite"); GameRegistry.registerBlock(ParallelWorlds.Ascarite, "Ascarite"); LanguageRegistry.addName(ParallelWorlds.Ascarite, "Ascarite"); GameRegistry.registerBlock(ParallelWorlds.HeavenlyOre, "Heavenly Ore"); LanguageRegistry.addName(ParallelWorlds.HeavenlyOre, "Heavenly Ore"); GameRegistry.registerBlock(ParallelWorlds.TimeOre, "Time Ore"); LanguageRegistry.addName(ParallelWorlds.TimeOre, "Time Ore"); } public void registerItems(){ GameRegistry.registerItem(ParallelWorlds.NightGem, "Night Gem"); LanguageRegistry.addName(ParallelWorlds.NightGem, "Night Gem"); GameRegistry.registerItem(ParallelWorlds.TimeGem, "Time Gem"); LanguageRegistry.addName(ParallelWorlds.TimeGem, "Time Gem"); GameRegistry.registerItem(ParallelWorlds.HeavenlyIngot, "Heavenly Ingot"); LanguageRegistry.addName(ParallelWorlds.HeavenlyIngot, "Heavenly Ingot"); GameRegistry.registerItem(ParallelWorlds.TimeSword, "Time Sword"); LanguageRegistry.addName(ParallelWorlds.TimeSword, "Time Sword"); GameRegistry.registerItem(ParallelWorlds.TimePickaxe, "Time Pickaxe"); LanguageRegistry.addName(ParallelWorlds.TimePickaxe, "Time Pickaxe"); GameRegistry.registerItem(ParallelWorlds.TimeAxe, "Time Axe"); LanguageRegistry.addName(ParallelWorlds.TimeAxe, "Time Axe"); GameRegistry.registerItem(ParallelWorlds.Sapphire, "Sapphire"); LanguageRegistry.addName(ParallelWorlds.Sapphire, "Sapphire"); GameRegistry.registerItem(ParallelWorlds.SapphirePickaxe, "Sapphire Pickaxe"); LanguageRegistry.addName(ParallelWorlds.SapphirePickaxe, "Sapphire Pickaxe"); GameRegistry.registerItem(ParallelWorlds.HeavenlyPickaxe, "Heavenly Pickaxe"); LanguageRegistry.addName(ParallelWorlds.HeavenlyPickaxe, "Heavenly Pickaxe"); } } If you need any other code just ask, I will be happy to provide it Thanks in advance!
-
Don't like it then leave. No-one HAS to answer these they do because they want to help
-
This is a good source of information for modders. It really doesn't matter where you go. This wasn't created as a last resort jesus, Go get some manners and then come back
-
Alrighty Thank you!
-
Hey guys, I am wondering how I would get an enderman to drop my custom item. Anyone know of anything?
-
Nothing has worked yet Still looking for the right fix
-
I have been using eclipse for ages... I was coding on it yesterday and then I turned on my computer this morning and i was greeted with this # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000064773e0f, pid=4316, tid=2936 # # JRE version: 7.0_17-b02 # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.7-b01 mixed mode windows-amd64 compressed oops) # Problematic frame: # V [jvm.dll+0x353e0f] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # --------------- T H R E A D --------------- Current thread is native thread siginfo: ExceptionCode=0xc0000005, reading address 0xffffffffe9f659e8 Registers: RAX=0x0000000000100000, RBX=0x0000000002224000, RCX=0x000000007733f8ea, RDX=0x0000000000000000 RSP=0x00000000058df4f0, RBP=0x00000000058df850, RSI=0x0000000000000000, RDI=0x0000000000000000 R8 =0x00000000058df3b8, R9 =0x00000000058df850, R10=0x0000000000000000, R11=0x0000000000000286 R12=0x0000000000000000, R13=0x0000000000000000, R14=0x0000000000000000, R15=0x0000000000000000 RIP=0x0000000064773e0f, EFLAGS=0x0000000000010202 Top of Stack: (sp=0x00000000058df4f0) 0x00000000058df4f0: 0000000064b61d98 0000000000000080 0x00000000058df500: 0000000000000000 00000000058df948 0x00000000058df510: 0000000000000000 00000000022564f0 0x00000000058df520: 0000000000000000 0000000000334000 0x00000000058df530: 0000000000000000 0000000000000000 0x00000000058df540: 0000000000000000 000000009f01009e 0x00000000058df550: 0000000002225190 0000000000000000 0x00000000058df560: 0000000000000000 0000000077322c80 0x00000000058df570: 0000000000000000 0000000000000000 0x00000000058df580: 0000000000000000 0000000000000000 0x00000000058df590: 0000000000000000 0000000000000000 0x00000000058df5a0: 00000000058df850 00000000646363be 0x00000000058df5b0: 0000000000330548 000000000033405c 0x00000000058df5c0: 0000000002224000 0000000000000000 0x00000000058df5d0: 000000000000002d 0000000000000000 0x00000000058df5e0: 0000000000000000 0000000000000000 Instructions: (pc=0x0000000064773e0f) 0x0000000064773def: cc 48 89 5c 24 18 55 56 57 41 54 41 55 41 56 41 0x0000000064773dff: 57 48 81 ec 80 00 00 00 48 8b d9 e8 e1 d9 e7 ff 0x0000000064773e0f: 48 8b 8b e8 19 d4 e7 ff 44 8b 83 c8 01 00 00 41 0x0000000064773e1f: 83 f8 ff 74 27 80 3d 9c 80 35 00 00 74 13 48 8b Stack: [0x00000000057e0000,0x00000000058e0000], sp=0x00000000058df4f0, free space=1021k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [jvm.dll+0x353e0f] --------------- P R O C E S S --------------- VM state:not at safepoint (not fully initialized) VM Mutex/Monitor currently owned by a thread: None GC Heap History (0 events): No events Deoptimization events (0 events): No events Internal exceptions (0 events): No events Events (0 events): No events Dynamic libraries: 0x000000013fa70000 - 0x000000013faa3000 C:\Windows\system32\javaw.exe 0x00000000772f0000 - 0x000000007749c000 C:\Windows\SYSTEM32\ntdll.dll 0x00000000771d0000 - 0x00000000772ef000 C:\Windows\system32\kernel32.dll 0x000007fefd980000 - 0x000007fefd9ec000 C:\Windows\system32\KERNELBASE.dll 0x000007fefdbe0000 - 0x000007fefdcbb000 C:\Windows\system32\ADVAPI32.dll 0x000007fefeb80000 - 0x000007fefec1f000 C:\Windows\system32\msvcrt.dll 0x000007feff3b0000 - 0x000007feff3cf000 C:\Windows\SYSTEM32\sechost.dll 0x000007fefdcc0000 - 0x000007fefddee000 C:\Windows\system32\RPCRT4.dll 0x0000000076f80000 - 0x000000007707a000 C:\Windows\system32\USER32.dll 0x000007fefee30000 - 0x000007fefee97000 C:\Windows\system32\GDI32.dll 0x000007fefdbd0000 - 0x000007fefdbde000 C:\Windows\system32\LPK.dll 0x000007feff1e0000 - 0x000007feff2aa000 C:\Windows\system32\USP10.dll 0x000007fefc1f0000 - 0x000007fefc3e4000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16661_none_fa62ad231704eab7\COMCTL32.dll 0x000007fefeea0000 - 0x000007fefef11000 C:\Windows\system32\SHLWAPI.dll 0x000007fefec70000 - 0x000007fefec9e000 C:\Windows\system32\IMM32.DLL 0x000007fefeca0000 - 0x000007fefeda9000 C:\Windows\system32\MSCTF.dll 0x0000000064b40000 - 0x0000000064c11000 C:\Program Files\Java\jre7\bin\msvcr100.dll 0x0000000064420000 - 0x0000000064b3f000 C:\Program Files\Java\jre7\bin\server\jvm.dll 0x000007fef57b0000 - 0x000007fef57b9000 C:\Windows\system32\WSOCK32.dll 0x000007fefec20000 - 0x000007fefec6d000 C:\Windows\system32\WS2_32.dll 0x000007feff3a0000 - 0x000007feff3a8000 C:\Windows\system32\NSI.dll 0x000007fefb470000 - 0x000007fefb4ab000 C:\Windows\system32\WINMM.dll 0x00000000774c0000 - 0x00000000774c7000 C:\Windows\system32\PSAPI.DLL 0x0000000072ac0000 - 0x0000000072acf000 C:\Program Files\Java\jre7\bin\verify.dll 0x0000000072a90000 - 0x0000000072ab8000 C:\Program Files\Java\jre7\bin\java.dll 0x00000000729d0000 - 0x00000000729e5000 C:\Program Files\Java\jre7\bin\zip.dll 0x000007fef75b0000 - 0x000007fef76d5000 C:\Windows\system32\dbghelp.dll VM Arguments: jvm_args: -Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -Xms40m -Xmx512m -XX:MaxPermSize=256m java_command: C:\Users\Ryan\Desktop\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar -os win32 -ws win32 -arch x86_64 -showsplash C:\Users\Ryan\Desktop\eclipse\\plugins\org.eclipse.platform_4.2.2.v201302041200\splash.bmp -launcher C:\Users\Ryan\Desktop\eclipse\eclipse.exe -name Eclipse --launcher.library C:\Users\Ryan\Desktop\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807\eclipse_1503.dll -startup C:\Users\Ryan\Desktop\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.overrideVmargs -exitdata 794_58 -product org.eclipse.epp.package.jee.product -vm C:\Windows\system32\javaw.exe -vmargs -Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -Xms40m -Xmx512m -XX:MaxPermSize=256m -jar C:\Users\Ryan\Desktop\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar Launcher Type: SUN_STANDARD Environment Variables: PATH=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\ USERNAME=Ryan OS=Windows_NT PROCESSOR_IDENTIFIER=AMD64 Family 21 Model 1 Stepping 2, AuthenticAMD --------------- S Y S T E M --------------- OS: Windows 7 , 64 bit Build 7600 CPU:total 4 (4 cores per cpu, 1 threads per core) family 21 model 1 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, mmxext, 3dnowpref, lzcnt, sse4a, tsc, tscinvbit, tscinv Memory: 4k page, physical 16758904k(13854028k free), swap 33515900k(30178492k free) vm_info: Java HotSpot(TM) 64-Bit Server VM (23.7-b01) for windows-amd64 JRE (1.7.0_17-b02), built on Mar 1 2013 03:38:30 by "java_re" with unknown MS VC++:1600 time: Sun Mar 24 10:03:49 2013 elapsed time: 0 seconds this is from a crash file. Anyone got any solutions?
-
just a bump to make sure people know i still need help
-
http://pastebin.com/aip4hZsW Here you go
-
Could you possibly give me the code to call it? It's my first smelting recipe and I think I am calling it
-
Hey guys I have this code public void smeltingRecipes(){ GameRegistry.addSmelting(ParallelWorlds.NightOre.blockID, new ItemStack(NightGem, 1), 1F); } } The problem is, it isn't smelting the selected item in game What's the issue? Thanks
-
Many thanks