
DashAhead
Members-
Posts
34 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I am new!
DashAhead's Achievements

Tree Puncher (2/8)
0
Reputation
-
So I'm planning on creating a mod where when a gem and tool are put together, then the tool absorbs the gem's energy and gets a special effect. How can I create an interface similar to the furnace with 3 squares in total?
-
Such as? @EventHandler public void preInit(FMLPreInitializationEvent event) { } @EventHandler public void load(FMLInitializationEvent event) { proxy.registerRenderers(); // Ruby Tool Stacks ItemStack rubyStack = new ItemStack(rubyGem); ItemStack rubyStack2 = new ItemStack(rubyGem, 9); ItemStack stickStack = new ItemStack(Item.stick); ItemStack rubySwordStack = new ItemStack(rubySword); ItemStack rubyAxeStack = new ItemStack(rubyAxe); ItemStack rubyPickaxeStack = new ItemStack(rubyPickaxe); ItemStack rubySpadeStack = new ItemStack(rubySpade); ItemStack rubyHoeStack = new ItemStack(rubyHoe); ItemStack rubyBlockStack = new ItemStack(rubyBlock); // Ore Generation GameRegistry.registerWorldGenerator(oreManager); // Ruby Block GameRegistry.registerBlock(rubyBlock, "rubyBlock"); LanguageRegistry.addName(rubyBlock, "Ruby Block"); MinecraftForge.setBlockHarvestLevel(rubyBlock, "pickaxe", 1); // Ruby Ore GameRegistry.registerBlock(rubyOre, "rubyOre"); LanguageRegistry.addName(rubyOre, "Ruby Ore"); MinecraftForge.setBlockHarvestLevel(rubyOre, "pickaxe", 2); // Ruby Gem GameRegistry.registerItem(rubyGem, "rubyGem"); LanguageRegistry.addName(rubyGem, "Ruby"); // Ruby Tools GameRegistry.registerItem(rubySword, "rubySword"); LanguageRegistry.addName(rubySword, "Ruby Sword"); GameRegistry.registerItem(rubyAxe, "rubyAxe"); LanguageRegistry.addName(rubyAxe, "Ruby Axe"); GameRegistry.registerItem(rubyPickaxe, "rubyPickaxe"); LanguageRegistry.addName(rubyPickaxe, "Ruby Pickaxe"); GameRegistry.registerItem(rubySpade, "rubySpade"); LanguageRegistry.addName(rubySpade, "Ruby Spade"); GameRegistry.registerItem(rubyHoe, "rubyHoe"); LanguageRegistry.addName(rubyHoe, "Ruby Hoe"); // Ruby Recipes GameRegistry.addRecipe(rubyBlockStack, "yyy", "yyy", "yyy", 'y', rubyStack); GameRegistry.addShapelessRecipe(rubyStack2, rubyBlockStack); GameRegistry.addRecipe(rubySwordStack, " y ", " y ", " x ", 'x', stickStack, 'y', rubyStack); GameRegistry.addRecipe(rubyAxeStack, "yy ", "yx ", " x ", 'x', stickStack, 'y', rubyStack); GameRegistry.addRecipe(rubyPickaxeStack, "yyy", " x ", " x ", 'x', stickStack, 'y', rubyStack); GameRegistry.addRecipe(rubySpadeStack, " y ", " x ", " x ", 'x', stickStack, 'y', rubyStack); GameRegistry.addRecipe(rubyHoeStack, "yy ", " x ", " x ", 'x', stickStack, 'y', rubyStack); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } @EventHandler public void preInit(FMLPreInitializationEvent event) <-----Multiple markers at this line - Syntax error on token ")", ; expected - Syntax error on token "(", ; expected { } @EventHandler public void load(FMLInitializationEvent event) <------Multiple markers at this line - Syntax error on token ")", ; expected - Syntax error on token "(", ; expected { proxy.registerRenderers(); // Ruby Tool Stacks ItemStack rubyStack = new ItemStack(rubyGem); ItemStack rubyStack2 = new ItemStack(rubyGem, 9); ItemStack stickStack = new ItemStack(Item.stick); ItemStack rubySwordStack = new ItemStack(rubySword); ItemStack rubyAxeStack = new ItemStack(rubyAxe); ItemStack rubyPickaxeStack = new ItemStack(rubyPickaxe); ItemStack rubySpadeStack = new ItemStack(rubySpade); ItemStack rubyHoeStack = new ItemStack(rubyHoe); ItemStack rubyBlockStack = new ItemStack(rubyBlock); // Ore Generation GameRegistry.registerWorldGenerator(oreManager); // Ruby Block GameRegistry.registerBlock(rubyBlock, "rubyBlock"); LanguageRegistry.addName(rubyBlock, "Ruby Block"); MinecraftForge.setBlockHarvestLevel(rubyBlock, "pickaxe", 1); // Ruby Ore GameRegistry.registerBlock(rubyOre, "rubyOre"); LanguageRegistry.addName(rubyOre, "Ruby Ore"); MinecraftForge.setBlockHarvestLevel(rubyOre, "pickaxe", 2); // Ruby Gem GameRegistry.registerItem(rubyGem, "rubyGem"); LanguageRegistry.addName(rubyGem, "Ruby"); // Ruby Tools GameRegistry.registerItem(rubySword, "rubySword"); LanguageRegistry.addName(rubySword, "Ruby Sword"); GameRegistry.registerItem(rubyAxe, "rubyAxe"); LanguageRegistry.addName(rubyAxe, "Ruby Axe"); GameRegistry.registerItem(rubyPickaxe, "rubyPickaxe"); LanguageRegistry.addName(rubyPickaxe, "Ruby Pickaxe"); GameRegistry.registerItem(rubySpade, "rubySpade"); LanguageRegistry.addName(rubySpade, "Ruby Spade"); GameRegistry.registerItem(rubyHoe, "rubyHoe"); LanguageRegistry.addName(rubyHoe, "Ruby Hoe"); // Ruby Recipes GameRegistry.addRecipe(rubyBlockStack, "yyy", "yyy", "yyy", 'y', rubyStack); GameRegistry.addShapelessRecipe(rubyStack2, rubyBlockStack); GameRegistry.addRecipe(rubySwordStack, " y ", " y ", " x ", 'x', stickStack, 'y', rubyStack); GameRegistry.addRecipe(rubyAxeStack, "yy ", "yx ", " x ", 'x', stickStack, 'y', rubyStack); GameRegistry.addRecipe(rubyPickaxeStack, "yyy", " x ", " x ", 'x', stickStack, 'y', rubyStack); GameRegistry.addRecipe(rubySpadeStack, " y ", " x ", " x ", 'x', stickStack, 'y', rubyStack); GameRegistry.addRecipe(rubyHoeStack, "yy ", " x ", " x ", 'x', stickStack, 'y', rubyStack); } @EventHandler public void postInit(FMLPostInitializationEvent event) <--- Multiple markers at this line - Syntax error on token ")", ; expected - Syntax error on token "(", ; expected { } } <------ Syntax error, insert "}" to complete ClassBody
-
If I do that it just creates more errors below and does not fix the original error.
-
For some reason eclipse is saying I need a "{" after my ";". I have no idea why and it is really annoying. My code: http://pastebin.com/80iWMz2S
-
Its fixed I had 2 packages with the name "Amethyst"
-
Here you go, this is the error message when I try to run my mod: Description: Initializing game java.lang.IllegalArgumentException: duplicate key: Amethyst at com.google.common.base.Preconditions.checkArgument(Preconditions.java:119) at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:67) at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:249) at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:235) at com.google.common.collect.Maps.uniqueIndex(Maps.java:1168) at com.google.common.collect.Maps.uniqueIndex(Maps.java:1142) at cpw.mods.fml.common.Loader.identifyMods(Loader.java:356) at cpw.mods.fml.common.Loader.loadMods(Loader.java:486) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:181) at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796) at net.minecraft.client.main.Main.main(Main.java:93) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at net.minecraft.launchwrapper.Launch.launch(Launch.java:57) at net.minecraft.launchwrapper.Launch.main(Launch.java:18) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at com.google.common.base.Preconditions.checkArgument(Preconditions.java:119) at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:67) at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:249) at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:235) at com.google.common.collect.Maps.uniqueIndex(Maps.java:1168) at com.google.common.collect.Maps.uniqueIndex(Maps.java:1142) at cpw.mods.fml.common.Loader.identifyMods(Loader.java:356) at cpw.mods.fml.common.Loader.loadMods(Loader.java:486) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:181) at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796) at net.minecraft.client.main.Main.main(Main.java:93) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at net.minecraft.launchwrapper.Launch.launch(Launch.java:57) at net.minecraft.launchwrapper.Launch.main(Launch.java:18) -- System Details -- Details: Minecraft Version: 1.6.2 Operating System: Mac OS X (x86_64) version 10.8.4 Java Version: 1.6.0_51, Apple Inc. Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Apple Inc. Memory: 927999024 bytes (885 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v8.04 FML v6.2.55.842 Minecraft Forge 9.10.0.842 5 mods loaded, 0 mods active mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) FML{6.2.55.842} [Forge Mod Loader] (coremods) Forge{9.10.0.842} [Minecraft Forge] (coremods) Amethyst{0.0.1} [Amethyst] (bin) Amethyst{0.0.1} [Amethyst] (bin) Launched Version: 1.6 LWJGL: 2.9.0 OpenGL: AMD Radeon HD 6770M OpenGL Engine GL version 2.1 ATI-1.8.18, ATI Technologies Inc. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Pack: Default Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
-
Still havent figured this out...
-
Nope this is an error in Eclipse so the game doesnt load
-
Can anyone help me please!
-
Eclipse doesnt show any error in my coding
-
So Im trying to run my mod but I get the error: AL lib: (EE) alc_cleanup: 1 device not closed What does this mean and how do I fix it? Minecraft was open but then I closed it.
-
The errors are the bolded text: The error is: The constructor ToolAmethystSword(int, EnumToolMaterial) is undefined, ToolAmethystPickaxe cannot be resolved to a type, and The method setUnlocalizedName(String) in the type Item is not applicable for the arguments (Item). package AmethystTools; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.common.EnumHelper; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; //Basic Mod Information @Mod(modid = "Amethyst", name = "Amethyst", version = "0.0.1") //Client & Server Side Requirements @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class AmethystToolsMain { //Define Tools public static Item amethystSword; public static Item amethystPickaxe; public static Item amethystAxe; public static Item amethystShovel; public static Item amethystHoe; //Define Material public static EnumToolMaterial Amethyst = EnumHelper.addToolMaterial("Amethyst", 3, 1200, 7.0F, 2.5F, 10); @EventHandler <---This was imported already. public void load(FMLPreInitializationEvent Event) { //Tool Settings amethystSword = new ToolAmethystSword(1000, Amethyst); amethystPickaxe = new ToolAmethystPickaxe(1001, Amethyst); amethystAxe = new ToolAmethystAxe(1002, Amethyst); amethystShovel = new ToolAmethystSword(1003, Amethyst); amethystHoe = new ToolAmethystSword(1004, Amethyst); //Register Tools GameRegistry.registerItem(amethystSword, "amethystSword"); LanguageRegistry.addName(amethystSword, "Amethyst Sword"); GameRegistry.registerItem(amethystPickaxe, "amethystPickaxe"); LanguageRegistry.addName(amethystPickaxe, "Amethyst Pickaxe"); GameRegistry.registerItem(amethystAxe, "amethystAxe"); LanguageRegistry.addName(amethystAxe, "Amethyst Axe"); GameRegistry.registerItem(amethystShovel, "amethystShovel"); LanguageRegistry.addName(amethystShovel, "Amethyst Shovel"); GameRegistry.registerItem(amethystHoe, "amethystHoe"); LanguageRegistry.addName(amethystHoe, "Amethyst Hoe"); //Define Recipes for Tools GameRegistry.addRecipe(new ItemStack(amethystSword), new Object[] {" A ", " A ", " S ", 'A', Item.amethystGem, 'S', Item.stick}); GameRegistry.addRecipe(new ItemStack(amethystPickaxe), new Object[] {"AAA", " S ", " S ", 'A', Item.amethystGem, 'S', Item.stick}); GameRegistry.addRecipe(new ItemStack(amethystAxe), new Object[] {"AA ", "AS ", " S ", 'A', Item.amethystGem, 'S', Item.stick}); GameRegistry.addRecipe(new ItemStack(amethystShovel), new Object[] {" A ", " S ", " S ", 'A', Item.amethystGem, 'S', Item.stick}); GameRegistry.addRecipe(new ItemStack(amethystHoe), new Object[] {"AA ", " S ", " S ", 'A', Item.amethystGem, 'S', Item.stick}); } }
-
LOL FOUND IT Im so dumb
-
So I have an error with a line of text while trying to make an item: public ToolAmethystSword(int par1, EnumToolMaterial par2EnumToolMaterial); { super(par1, par2EnumToolMaterial); The whole line is an error and the error is: This method requires a body instead of a semicolon, Constructor call must be the first statement in a constructor, and the last error is par2EnumToolMaterial cannot be resolved to a variable.