I did everything in Part 1 correctly (at least, to my knowledge), and it gave me the stuff in the photo at the end... plus tons and tons of jars.
It's fine. That's happened to me before, though I never looked into it. It magically seemed to fix itself recently though, of course, probably by re-running the gradle commands.
So, the real reason I did this is so I could port a mod I made from a camp computer to my own. I ran into a few issues along the way though...
(all of them are 'static field ______ should be accessed in a static way')
Warnings aren't anything to fret about. To fix them though, call the field by using the class name, not the instance. Can you post your main class, and I can elaborate if needed.
Warnings aren't anything to fret about. To fix them though, call the field by using the class name, not the instance. Can you post your main class, and I can elaborate if needed.
@Mod(modid = SapphireRodsMod.MODID, version = SapphireRodsMod.VERSION)
public class SapphireRodsMod
{
public static final String MODID = "sapphirerodsmod";
public static final String VERSION = "1.0";
public static ToolMaterial sapphireMaterial;
public static ArmorMaterial sapphireArmorMaterial;
public static CustomWorldGenerator customOreGenerator;
}
@EventHandler
public void init(FMLInitializationEvent event)
{
// some example code
System.out.println("DIRT BLOCK >> "+Blocks.dirt.getUnlocalizedName());
@Mod(modid = SapphireRodsMod.MODID, version = SapphireRodsMod.VERSION)
public class SapphireRodsMod
{
public static final String MODID = "sapphirerodsmod";
public static final String VERSION = "1.0";
public static ToolMaterial sapphireMaterial;
public static ArmorMaterial sapphireArmorMaterial;
public static CustomWorldGenerator customOreGenerator;
}
@EventHandler
public void init(FMLInitializationEvent event)
{
// some example code
System.out.println("DIRT BLOCK >> "+Blocks.dirt.getUnlocalizedName());
So, following your setup tutorial, I can't seem to test run my mod, not that it would be logically possible as well. Do you have a way of being able to?
So, following your setup tutorial, I can't seem to test run my mod, not that it would be logically possible as well. Do you have a way of being able to?
Sorry for the late response, but if you are still having issues, your run configurations are either messed up, or, a relatively common issue, LWJGL isn't loaded in the workspace.
Sorry for the late response, but if you are still having issues, your run configurations are either messed up, or, a relatively common issue, LWJGL isn't loaded in the workspace.
I'm talking about the new one, with all of the projects loaded. The modding folder. Using the workspace folders work otherwise. LWJGL is indeed loaded, but no run configurations were set up.
I'm talking about the new one, with all of the projects loaded. The modding folder. Using the workspace folders work otherwise. LWJGL is indeed loaded, but no run configurations were set up.
Yeah, you'll need to setup the run configurations. Lex Manos has a thread somewhere on his forums about it, but can't find it now.
Wondering why tutorials haven't been released as of late? I've been busy with several other projects, such as Lost Eclipse, and a quest themed server, MineQuest. I highly recommend you check both out! As far as tutorials go, once my time lifts up, a few should be released.
The Meaning of Life, the Universe, and Everything.
Location:
The End
Join Date:
5/27/2014
Posts:
105
Minecraft:
DoomDwarf_347
Member Details
Hi, I'm currently following your first tutorial, and I am running into a problem. Whenever I try to run the "gradlew setupDecompWorkspace eclipse" command, I get the attached error.
Hi, I'm currently following your first tutorial, and I am running into a problem. Whenever I try to run the "gradlew setupDecompWorkspace eclipse" command, I get the attached error.
Try re-running the same command. If that doesn't work, re-downloading the Forge files should fix it.
"You do not need existing programming knowledge to make mods. If you don't know anything about programming, you can still make mods, it just may be a little harder to grasp certain concepts."
I disagree, it's going to be very hard to get anywhere without basic Java programming knowledge. Unless you spoon feed them of course. But what happens when you're not around to fix their missing parentheses and semicolons?
Rollback Post to RevisionRollBack
I'm working on an open-source mod called Craft++. Check it out!
"You do not need existing programming knowledge to make mods. If you don't know anything about programming, you can still make mods, it just may be a little harder to grasp certain concepts."
I disagree, it's going to be very hard to get anywhere without basic Java programming knowledge. Unless you spoon feed them of course. But what happens when you're not around to fix their missing parentheses and semicolons?
That is my opinion. I still highly recommend they learn Java before they do the tutorials anyways. If they choose not too, I still try to explain what everything does regardless in the tutorials. And if the person has a genuine interest in modding, they would go to lengths to fix there errors without seeking help - at least, that's the mindset I have.
Try re-running the same command. If that doesn't work, re-downloading the Forge files should fix it.
Re-Ran the command several times and re-downloaded the forge files
several times, the error still persists. I tried re-downloading the JDK
and for some weird reason that fails to download every time I try...
That is my opinion. I still highly recommend they learn Java before they do the tutorials anyways. If they choose not too, I still try to explain what everything does regardless in the tutorials. And if the person has a genuine interest in modding, they would go to lengths to fix there errors without seeking help - at least, that's the mindset I have.
It's good you have that mentality, but you should make that clear in your main post. You'd be surprised to see how many kiddies have an extreme desire for mods/modding but have no interest in learning programming. It's a strange but unfortunate reality.
Re-Ran the command several times and re-downloaded the forge files
several times, the error still persists. I tried re-downloading the JDK
and for some weird reason that fails to download every time I try...
Gradlew is using JRE instead of the JDK. I'm going to assume you haven't installed the JDK yet, so I would google that, and get that installed.
It's good you have that mentality, but you should make that clear in your main post. You'd be surprised to see how many kiddies have an extreme desire for mods/modding but have no interest in learning programming. It's a strange but unfortunate reality.
Side note, I love the quote in your signature!
I will make that clearer now. And, I appreciate the comment about the quote ;).
Gradlew is using JRE instead of the JDK. I'm going to assume you haven't installed the JDK yet, so I would google that, and get that installed.
I've installed the JDK, and I'm still getting the same error. Do I need to set paths to it, or should it be doing that automatically and there's something else going wrong?
It's fine. That's happened to me before, though I never looked into it. It magically seemed to fix itself recently though, of course, probably by re-running the gradle commands.
So, the real reason I did this is so I could port a mod I made from a camp computer to my own. I ran into a few issues along the way though...
(all of them are 'static field ______ should be accessed in a static way')
Warnings aren't anything to fret about. To fix them though, call the field by using the class name, not the instance. Can you post your main class, and I can elaborate if needed.
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.EnumHelper;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import com.camp.block.BlockManager;
import com.camp.item.ItemManager;
import com.camp.world.CustomWorldGenerator;
@Mod(modid = SapphireRodsMod.MODID, version = SapphireRodsMod.VERSION)
public class SapphireRodsMod
{
public static final String MODID = "sapphirerodsmod";
public static final String VERSION = "1.0";
public static ToolMaterial sapphireMaterial;
public static ArmorMaterial sapphireArmorMaterial;
public static CustomWorldGenerator customOreGenerator;
@EventHandler
public void preinit(FMLPreInitializationEvent event)
{
sapphireMaterial = EnumHelper.addToolMaterial("Sapphire", 3, 2000, 12.0F, 4.5F, 18);
sapphireArmorMaterial = EnumHelper.addArmorMaterial("SAPPHIRE", "sapphirearmor", 50, new int[] {5, 12, 9, 5}, 15);
ItemManager.mainRegistry();
BlockManager.mainRegistry();
}
@EventHandler
public void init(FMLInitializationEvent event)
{
// some example code
System.out.println("DIRT BLOCK >> "+Blocks.dirt.getUnlocalizedName());
if(event.getSide() == Side.CLIENT)
{
RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
renderItem.getItemModelMesher().register(ItemManager.sapphire, 0, new ModelResourceLocation(this.MODID + ":" + ItemManager.sapphire.name, "inventory"));
renderItem.getItemModelMesher().register(ItemManager.explosionRod, 0, new ModelResourceLocation(this.MODID + ":" + ItemManager.explosionRod.name, "inventory"));
renderItem.getItemModelMesher().register(ItemManager.sapphirePickaxe, 0, new ModelResourceLocation(this.MODID + ":" + ItemManager.sapphirePickaxe.name, "inventory"));
renderItem.getItemModelMesher().register(ItemManager.sapphireSword, 0, new ModelResourceLocation(this.MODID + ":" + ItemManager.sapphireSword.name, "inventory"));
renderItem.getItemModelMesher().register(ItemManager.sapphireSpade, 0, new ModelResourceLocation(this.MODID + ":" + ItemManager.sapphireSpade.name, "inventory"));
renderItem.getItemModelMesher().register(ItemManager.sapphireAxe, 0, new ModelResourceLocation(this.MODID + ":" + ItemManager.sapphireAxe.name, "inventory"));
renderItem.getItemModelMesher().register(ItemManager.sapphireHoe, 0, new ModelResourceLocation(this.MODID + ":" + ItemManager.sapphireHoe.name, "inventory"));
renderItem.getItemModelMesher().register(ItemManager.sapphireStew, 0, new ModelResourceLocation(this.MODID + ":" + ItemManager.sapphireStew.name, "inventory"));
renderItem.getItemModelMesher().register(ItemManager.sapphireHelmet, 0, new ModelResourceLocation(this.MODID + ":" + ItemManager.sapphireHelmet.name, "inventory"));
renderItem.getItemModelMesher().register(ItemManager.sapphireChestplate, 0, new ModelResourceLocation(this.MODID + ":" + ItemManager.sapphireChestplate.name, "inventory"));
renderItem.getItemModelMesher().register(ItemManager.sapphireLeggings, 0, new ModelResourceLocation(this.MODID + ":" + ItemManager.sapphireLeggings.name, "inventory"));
renderItem.getItemModelMesher().register(ItemManager.sapphireBoots, 0, new ModelResourceLocation(this.MODID + ":" + ItemManager.sapphireBoots.name, "inventory"));
renderItem.getItemModelMesher().register(Item.getItemFromBlock(BlockManager.sapphireBlock), 0, new ModelResourceLocation(this.MODID + ":" + BlockManager.sapphireBlock.name, "inventory"));
renderItem.getItemModelMesher().register(Item.getItemFromBlock(BlockManager.sapphireOre), 0, new ModelResourceLocation(this.MODID + ":" + BlockManager.sapphireOre.name, "inventory"));
}
GameRegistry.addShapelessRecipe(new ItemStack(ItemManager.sapphire, 9), BlockManager.sapphireBlock);
GameRegistry.addShapedRecipe(new ItemStack(ItemManager.explosionRod,1), " x ", " y ", " z ", 'x', Items.fire_charge, 'y', ItemManager.sapphire, 'z', Items.stick);
GameRegistry.addShapedRecipe(new ItemStack(ItemManager.sapphirePickaxe,1), "xxx", " y ", " y ", 'x', ItemManager.sapphire, 'y', Items.stick);
GameRegistry.addShapedRecipe(new ItemStack(ItemManager.sapphireSword,1), " x ", " x ", " y ", 'x', ItemManager.sapphire, 'y', Items.stick);
GameRegistry.addShapedRecipe(new ItemStack(ItemManager.sapphireSpade,1), " x ", " y ", " y ", 'x', ItemManager.sapphire, 'y', Items.stick);
GameRegistry.addShapedRecipe(new ItemStack(ItemManager.sapphireAxe,1), "xx ", "xy ", " y ", 'x', ItemManager.sapphire, 'y', Items.stick);
GameRegistry.addShapedRecipe(new ItemStack(ItemManager.sapphireAxe,1), " xx", " yx", " y ", 'x', ItemManager.sapphire, 'y', Items.stick);
GameRegistry.addShapedRecipe(new ItemStack(ItemManager.sapphireHoe,1), "xx ", " y ", " y ", 'x', ItemManager.sapphire, 'y', Items.stick);
GameRegistry.addShapedRecipe(new ItemStack(ItemManager.sapphireHoe,1), " xx", " y ", " y ", 'x', ItemManager.sapphire, 'y', Items.stick);
GameRegistry.addShapelessRecipe(new ItemStack(ItemManager.sapphireStew,1), ItemManager.sapphire, Items.rabbit_stew);
GameRegistry.addShapedRecipe(new ItemStack(ItemManager.sapphireHelmet,1), "xxx", "x x", " ", 'x', ItemManager.sapphire);
GameRegistry.addShapedRecipe(new ItemStack(ItemManager.sapphireHelmet,1), " ", "xxx", "x x", 'x', ItemManager.sapphire);
GameRegistry.addShapedRecipe(new ItemStack(ItemManager.sapphireChestplate,1), "x x", "xxx", "xxx", 'x', ItemManager.sapphire);
GameRegistry.addShapedRecipe(new ItemStack(ItemManager.sapphireLeggings,1), "xxx", "x x", "x x", 'x', ItemManager.sapphire);
GameRegistry.addShapedRecipe(new ItemStack(ItemManager.sapphireBoots,1), "x x", "x x", " ", 'x', ItemManager.sapphire);
GameRegistry.addShapedRecipe(new ItemStack(ItemManager.sapphireBoots,1), " ", "x x", "x x", 'x', ItemManager.sapphire);
GameRegistry.addShapedRecipe(new ItemStack(BlockManager.sapphireBlock,1), "xxx", "xxx", "xxx", 'x', ItemManager.sapphire);
GameRegistry.addSmelting(new ItemStack(BlockManager.sapphireOre), new ItemStack(ItemManager.sapphire, 1), 0.1f);
customOreGenerator = new CustomWorldGenerator();
GameRegistry.registerWorldGenerator(customOreGenerator, 10);
}
}
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYou didn't follow ANY tutorial. Good job.
Thanks UberAffe
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumSo, following your setup tutorial, I can't seem to test run my mod, not that it would be logically possible as well. Do you have a way of being able to?
Sorry for the late response, but if you are still having issues, your run configurations are either messed up, or, a relatively common issue, LWJGL isn't loaded in the workspace.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm talking about the new one, with all of the projects loaded. The modding folder. Using the workspace folders work otherwise. LWJGL is indeed loaded, but no run configurations were set up.
Yeah, you'll need to setup the run configurations. Lex Manos has a thread somewhere on his forums about it, but can't find it now.
Wondering why tutorials haven't been released as of late? I've been busy with several other projects, such as Lost Eclipse, and a quest themed server, MineQuest. I highly recommend you check both out! As far as tutorials go, once my time lifts up, a few should be released.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumHi, I'm currently following your first tutorial, and I am running into a problem. Whenever I try to run the "gradlew setupDecompWorkspace eclipse" command, I get the attached error.
Try re-running the same command. If that doesn't work, re-downloading the Forge files should fix it.
-
View User Profile
-
View Posts
-
Send Message
Curse Premium"You do not need existing programming knowledge to make mods. If you don't know anything about programming, you can still make mods, it just may be a little harder to grasp certain concepts."
I disagree, it's going to be very hard to get anywhere without basic Java programming knowledge. Unless you spoon feed them of course. But what happens when you're not around to fix their missing parentheses and semicolons?
I'm working on an open-source mod called Craft++. Check it out!
That is my opinion. I still highly recommend they learn Java before they do the tutorials anyways. If they choose not too, I still try to explain what everything does regardless in the tutorials. And if the person has a genuine interest in modding, they would go to lengths to fix there errors without seeking help - at least, that's the mindset I have.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumRe-Ran the command several times and re-downloaded the forge files
several times, the error still persists. I tried re-downloading the JDK
and for some weird reason that fails to download every time I try...
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIt's good you have that mentality, but you should make that clear in your main post. You'd be surprised to see how many kiddies have an extreme desire for mods/modding but have no interest in learning programming. It's a strange but unfortunate reality.
Side note, I love the quote in your signature!
I'm working on an open-source mod called Craft++. Check it out!
Gradlew is using JRE instead of the JDK. I'm going to assume you haven't installed the JDK yet, so I would google that, and get that installed.
I will make that clearer now. And, I appreciate the comment about the quote ;).
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI've installed the JDK, and I'm still getting the same error. Do I need to set paths to it, or should it be doing that automatically and there's something else going wrong?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYes you do need to set the PATH variable to the JDK location.
Current Mod: Armerger | Light Drafter