I think you even set it up in a wrong way. But there are good tutorials on forge modding. I had the same situation as you (general experience but none in minecraft) and you get it all pretty quick. If you can't solve it, I'll have a look later.
I have looked everywhere for a decent tutorial, one was out of date and didn't work. Another a kid just wrote all the code and didn't explain. Can you point me to a good one?
Hi, I was making a mod to add the food as ores and when you mine it, it will drop the dirty item of said food ore. To start off, I'm going to show the code I have now.
package claude.FirstMod;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import net.minecraft.block.Block;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
//Basic Forge Stuff until main class.
@Mod(modid = FoodGenMod.MODID, version = FoodGenMod.VERSION)
public class FoodGenMod {
public static final String MODID = "foodgen";
public static final String VERSION = "1.0";
//Items
public static Item dirtySteak;
//Define Items
dirtySteak = new DirtyItems(2000).setUnlocalizedName("dirtySteak");
}
Okay, with the mod idea and code out of the way, here is the problem, I get an error on
public static Item dirtySteak;
Saying this:
syntax error on token ";" , , expected.
My code is probably incomplete, but this is very confusing. Can someone give me a base to create an item?
Sorry if this is incomplete, I'm new to making mods, but I'm not new to programming. If you need more info, let me know.
? Create a wooden building or shelter of some kind (Live in it for 5 in game days)|Done! ? Craft a bed|Done! ? Get 5 Pork chops/chicken/steak|Done ? Collect 2 stacks of lumber|Kinda done. Converted to planks. ? Find a cave with Iron and Coal in it| Done, ravine and cave! ? Set up a wheat farm (Must be atleast 18 planted seeds)|Done! ? Start a cow/chicken farm (Atleast 2 animals)|Done! Chickens! ? Collect some flint (Atleast 1)|Done! ? Craft a bow and some arrows|Done! Power I bow! ? Create an igloo out of snow| Not done. ? Create a garden out of flowers and trees (As nice looking as you can make it)|Not done. ? Create a second building out of wood and stone|Done! Shed for seeds.
Only got a couple to go.
Have Minecraft allocate more memory. There is a nice tutorial on it here. Regarding your items issue, do the following to back-up your world in case something goes wrong.
Assuming you have Windows 7,
Go to start and type %appdata% and press enter. You should see .minecraft towards the top, open it.
Go to saves, and find your folder.
Copy it somewhere where you can get to it easily.
Once you have Minecraft Allocate more memory drag your save folder in the the saves folder.
Did you extract it? Did you put it in the right folder? Did you have any special directions from the author? Please put more info when creating stuff like this.
0
0
0
Okay, with the mod idea and code out of the way, here is the problem, I get an error on
Saying this:
My code is probably incomplete, but this is very confusing. Can someone give me a base to create an item?
Sorry if this is incomplete, I'm new to making mods, but I'm not new to programming. If you need more info, let me know.
0
Just giving you the heads up.
0
0
1
? Craft a bed|Done!
? Get 5 Pork chops/chicken/steak|Done
? Collect 2 stacks of lumber|Kinda done. Converted to planks.
? Find a cave with Iron and Coal in it| Done, ravine and cave!
? Set up a wheat farm (Must be atleast 18 planted seeds)|Done!
? Start a cow/chicken farm (Atleast 2 animals)|Done! Chickens!
? Collect some flint (Atleast 1)|Done!
? Craft a bow and some arrows|Done! Power I bow!
? Create an igloo out of snow| Not done.
? Create a garden out of flowers and trees (As nice looking as you can make it)|Not done.
? Create a second building out of wood and stone|Done! Shed for seeds.
Only got a couple to go.
0
0
0
0
Assuming you have Windows 7,
Go to start and type %appdata% and press enter. You should see .minecraft towards the top, open it.
Go to saves, and find your folder.
Copy it somewhere where you can get to it easily.
Once you have Minecraft Allocate more memory drag your save folder in the the saves folder.
This may help get your world back also.
1
0
0
0