Hello, I am a beginner modder. I used to make simple mods with modloader, but I decided to work with forge modding. I used the forge tutorials at minecraftforge.net/wiki/ and made the tutorial mod, and it worked. After that, I tried to make another mod based off of one of the modloader mods I made and used forge instead. The mod is called the more pies mod which I thought of from my friend (TheGreatPieGuy). So I just applied my knowledge of modloader to forge when creating the mod. When I test it (using run client in eclipse), It works perfectly fine. So I recompile the mod (I use mcp) with no errors. Then when I reobfuscate it, it says
== MCP 7.26 (data: 7.26, client: 1.4.7, server: 1.4.7) ==
# found ff, ff patches, srgs, name csvs, doc csvs, param csvs, renumber csv, ast
yle, astyle config
> Creating Retroguard config files
== Reobfuscating client ==
> Cleaning reobf
> Generating md5s
> Packing jar
> Reobfuscating jar
> Extracting modified classes
> New class found : conarnar/pies/Pies
> New class found : conarnar/pies/ItemPie
> New class found : conarnar/pies/CommonProxy
> New class found : conarnar/pies/client/ClientProxy
* File conarnar/pies/Pies.class failed extracting for conarnar/pies/Pies
* File conarnar/pies/ItemPie.class failed extracting for conarnar/pies/ItemPie
* File conarnar/pies/CommonProxy.class failed extracting for conarnar/pies/Commo
nProxy
* File conarnar/pies/client/ClientProxy.class failed extracting for conarnar/pie
s/client/ClientProxy
- Done in 26.53 seconds
!! Can not find server md5s !!
Press any key to continue . . .
and in the reobf folder there is an empty folder called minecraft.
After this, I decide to manually extract the new classes so I just search for them and remove them. Then, I try it out but then all that leaves is a black screen (which shouldn't happen because I use magic launcher). Also, when I try the tutorial mod from minecraftforge.net/wiki/, C:\Users\Truong%20Family\Desktop\command.pngIt reobfuscates perfectly fine. I don't know if it's a problem with the recompiling or reobfuscating or is it in the coding. I use the mcp what installs when you run install.cmd from the forge src.
Here is the coding:
conarnar.pies.Pies
package conarnar.pies;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
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;@Mod(modid="MorePies", name="More Pies", version="1.0")
@NetworkMod(clientSideRequired=true, serverSideRequired=false)
public class Pies
{
private static final Item sugarPie = new ItemPie(1, 30, 2, "sugarPie");
private static final Item slimyPie = new ItemPie(2, 30, 2, "slimyPie");
private static final Item butteryPie = new ItemPie(3, 30, 3, "butteryPie");
private static final Item dirtyPie = new ItemPie(4, 30, 3, "dirtyPie");
private static final Item glowingPie = new ItemPie(5, 30, 2, "glowingPie");
private static final Item melonPie = new ItemPie(6, 1, 0, "melonPie");
private static final Item fermentedSpiderPie = new ItemPie(7, 1, 0, "fermentedSpiderPie");
private static final Item potatoPie = new ItemPie(8, 30, 1, "potatoPie");
private static final Item redPie = new ItemPie(9, 30, 0, "redPie");
private static final Item applePie = new ItemPie(10, 30, 1, "applePie");
private static final Item ironPie = new ItemPie(11, 30, 1, "ironPie");
private static final Item creamyPie = new ItemPie(12, 30, 0, "creamyPie");
private static final Item spongyPie = new ItemPie(13, 30, 0, "spongyPie");
private static final Item clearPie = new ItemPie(14, 30, 0, "clearPie");
private static final Item shadowPie = new ItemPie(15, 30, 0, "shadowPie");
private static final Item carrotPie = new ItemPie(16, 30, 0, "carrotPie");
private static final Item rottenPie = new ItemPie(17, 30, 4, "rottenPie");
private static final Item powderyPie = new ItemPie(18, 30, 2, "powderyPie");
private static final Item spiderPie = new ItemPie(19, 30, 2, "spiderPie");
private static final Item charredPie = new ItemPie(20, 30, 0, "charredPie");
//The instance of your mod that Forge uses.
@Instance("MorePies")
public static Pies instance;
// Says where the client and server 'proxy' code is loaded.
@SidedProxy(clientSide="conarnar.pies.client.ClientProxy", serverSide="conarnar.pies.CommonProxy")
public static CommonProxy proxy;
@PreInit
public void preInit(FMLPreInitializationEvent event)
{
// Stub Method
}
@Init
public void load(FMLInitializationEvent event)
{
proxy.registerRenderers();
GameRegistry.addRecipe(new ItemStack(Block.sponge, 2), "ccc", "cbc", "ccc", 'c', Block.blockClay, 'b', Item.bucketEmpty);
GameRegistry.addShapelessRecipe(new ItemStack(sugarPie), Item.pumpkinPie, Item.sugar, Item.sugar, Item.sugar, Item.sugar, Item.sugar);
GameRegistry.addShapelessRecipe(new ItemStack(slimyPie), Item.pumpkinPie, Item.slimeBall, Item.slimeBall);
GameRegistry.addShapelessRecipe(new ItemStack(butteryPie), Item.pumpkinPie, Block.blockGold, Block.blockGold, Block.blockGold, Block.blockGold, Block.blockGold);
GameRegistry.addShapelessRecipe(new ItemStack(dirtyPie), Item.pumpkinPie, Block.dirt);
GameRegistry.addShapelessRecipe(new ItemStack(glowingPie), Item.pumpkinPie, Block.glowStone, Block.glowStone, Block.glowStone, Block.glowStone, Block.glowStone);
GameRegistry.addShapelessRecipe(new ItemStack(melonPie), Item.pumpkinPie, Block.melon, Block.melon, Block.melon, Block.melon, Block.melon);
GameRegistry.addShapelessRecipe(new ItemStack(fermentedSpiderPie), Item.pumpkinPie, Item.fermentedSpiderEye, Item.fermentedSpiderEye);
GameRegistry.addShapelessRecipe(new ItemStack(potatoPie), Item.pumpkinPie, Item.potato, Item.potato, Item.potato, Item.potato, Item.potato);
GameRegistry.addShapelessRecipe(new ItemStack(redPie), Item.pumpkinPie, Item.redstone, Item.redstone);
GameRegistry.addShapelessRecipe(new ItemStack(applePie), Item.pumpkinPie, Item.appleRed, Item.appleRed, Item.appleRed, Item.appleRed, Item.appleRed);
GameRegistry.addShapelessRecipe(new ItemStack(ironPie), Item.pumpkinPie, Block.blockSteel, Block.blockSteel, Block.blockSteel, Block.blockSteel, Block.blockSteel);
GameRegistry.addShapelessRecipe(new ItemStack(creamyPie), Item.pumpkinPie, Item.magmaCream, Item.magmaCream, Item.magmaCream, Item.magmaCream, Item.magmaCream);
GameRegistry.addShapelessRecipe(new ItemStack(spongyPie), Item.pumpkinPie, Block.sponge, Block.sponge, Block.sponge, Block.sponge, Block.sponge);
GameRegistry.addShapelessRecipe(new ItemStack(clearPie), Item.pumpkinPie, Block.glass, Block.glass, Block.glass, Block.glass, Block.glass);
GameRegistry.addShapelessRecipe(new ItemStack(shadowPie), Item.pumpkinPie, new ItemStack(Item.dyePowder, 1, 0), new ItemStack(Item.dyePowder, 1, 0));
GameRegistry.addShapelessRecipe(new ItemStack(carrotPie), Item.pumpkinPie, Item.carrot, Item.carrot, Item.carrot, Item.carrot, Item.carrot);
GameRegistry.addShapelessRecipe(new ItemStack(rottenPie), Item.pumpkinPie, Item.rottenFlesh, Item.rottenFlesh);
GameRegistry.addShapelessRecipe(new ItemStack(powderyPie), Item.pumpkinPie, Item.gunpowder, Item.gunpowder);
GameRegistry.addShapelessRecipe(new ItemStack(spiderPie), Item.pumpkinPie, Item.spiderEye, Item.spiderEye);
GameRegistry.addShapelessRecipe(new ItemStack(charredPie), Item.pumpkinPie, new ItemStack(Item.coal, 1, 0), new ItemStack(Item.coal, 1, 0));
LanguageRegistry.addName(sugarPie, "Sugar Pie");
LanguageRegistry.addName(slimyPie, "Slimy Pie");
LanguageRegistry.addName(butteryPie, "Buttery Pie");
LanguageRegistry.addName(dirtyPie, "Dirty Pie");
LanguageRegistry.addName(glowingPie, "Glowing Pie");
LanguageRegistry.addName(melonPie, "Melon Pie");
LanguageRegistry.addName(fermentedSpiderPie, "Fermented Spider Pie");
LanguageRegistry.addName(potatoPie, "Potato Pie");
LanguageRegistry.addName(redPie, "Red Pie");
LanguageRegistry.addName(applePie, "Apple Pie");
LanguageRegistry.addName(ironPie, "Iron Pie");
LanguageRegistry.addName(creamyPie, "Creamy Pie");
LanguageRegistry.addName(spongyPie, "Spongy Pie");
LanguageRegistry.addName(clearPie, "Clear Pie");
LanguageRegistry.addName(shadowPie, "Shadow Pie");
LanguageRegistry.addName(carrotPie, "Carrot Pie");
LanguageRegistry.addName(rottenPie, "Rotten Pie");
LanguageRegistry.addName(powderyPie, "Powdery Pie");
LanguageRegistry.addName(spiderPie, "Spider Pie");
LanguageRegistry.addName(charredPie, "Charred Pie");
}
@PostInit
public void postInit(FMLPostInitializationEvent event)
{
// Stub Method
}
}
conarnar.pies.CommonProxy
package conarnar.pies;
public class CommonProxy
{
public static String PIES = "/conarnar/images/pies.png";
public void registerRenderers()
{
}
}
conarnar.pies.ItemPie
package conarnar.pies;
import net.minecraft.item.ItemFood;
public class ItemPie extends ItemFood
{
public ItemPie(int num, int sec, int amp, String name)
{
super(num + 999, 8, 0.3F, false);
setAlwaysEdible();
setIconIndex(num - 1);
setPotionEffect(num, sec, amp, 0.7F);
setItemName(name);
}
public String getTextureFile()
{
return CommonProxy.PIES;
}
}
conarnar.pies.client.ClientProxy
package conarnar.pies.client;
import net.minecraftforge.client.MinecraftForgeClient;
import conarnar.pies.CommonProxy;
public class ClientProxy extends CommonProxy
{
@Override
public void registerRenderers()
{
MinecraftForgeClient.preloadTexture(PIES);
}
}
oh and /conarnar/images/pies.png exists so there is nothing wrong with that.
If anyone can help me I will really appreciate it.
Thanks
So this is my first two mods, the Mob Ores Mod and the Mob Ores Mod Butter Edition.
Mob Ores Mod
Since this is my first mod, I already edited it two times before officially posting it here. The mod adds 18 ores: Blaze, Chicken, Cow, Creeper, Ender, Ghast, Magma, Pig, Sheep, Shroom, Skele, Slime, Snow, Spider, Squid, Witch, Withe, and Zomb. Zombie pigman ores aren't included because there are already gold ores. Same with iron golems.
Below is what each ore drops:
Blaze - 1 blaze rod
Chicken - 1 raw chicken
Cow - 1 raw beef
Creeper - 4 gunpowder
Ender - 1 enderpearl
Ghast - 1 ghast tear
Magma - 4 magma cream
Pig - 1 raw porkchop
Sheep - 1 wool
Shroom - 1 red mushroom
Skele - 4 bone
Slime - 4 slimeball
Snow - 4 snowball
Spider - 4 spider eye
Squid - 2 ink sac
Witch - 4 glass bottles
Withe - 1 nether star
Zomb - 4 rotten flesh
v1.1 GhastOre to GhastOre, changed nether ores rarity
v1.2 Ghast Ores drop 1 ghast tear instead of 4
As you all may know SkyDoesMinecraft loves butter and hates squids so in the butter edition, I replaced the squid ores with zombie pigman ores. The zombie pigman ores drop one gold nugget
1. Download one of the mods above.
2. Download Risugami's ModLoader.
3. Install ModLoader the same was as the other mods.
4. Run Minecraft.
5. Close Minecraft.
6. In the .minecraft folder, there should be a folder called mods, place the .zip folder that you downloaded from here in the mods folder.
7. Run Minecraft.
8. You're done!
If there are anything I should edit, please comment.
He means the MetaData value, beacuse spawn eggs has the same id but with diffrent values, lets take a example, you have 2 coloured wool, and they have a id 20 lets say that, but they dont have the exact same value, beacuse the black wool has 20:1 and the white has 20:2 atleast thats what i think
Thanks, not only have you helped me, you've also introduced the term metadata to me. I can search google to find other stuff involving metadata.
Hi, I am making a mod that involves spawning eggs, but I cannot choose the damage value (the value after the data value, like a secondary data value). While creating the mod, I know how to make a crafting recipe that makes spawning eggs, but don't know how to change the damage value of whatever item I am using, so that the recipe will make a certain spawning egg instead of a blank spawn egg. Here's the crafting recipe for one of the eggs (it uses modloader)
0
and in the reobf folder there is an empty folder called minecraft.
After this, I decide to manually extract the new classes so I just search for them and remove them. Then, I try it out but then all that leaves is a black screen (which shouldn't happen because I use magic launcher). Also, when I try the tutorial mod from minecraftforge.net/wiki/, C:\Users\Truong%20Family\Desktop\command.pngIt reobfuscates perfectly fine. I don't know if it's a problem with the recompiling or reobfuscating or is it in the coding. I use the mcp what installs when you run install.cmd from the forge src.
Here is the coding:
conarnar.pies.Pies
conarnar.pies.CommonProxy
conarnar.pies.ItemPie
conarnar.pies.client.ClientProxy
oh and /conarnar/images/pies.png exists so there is nothing wrong with that.
If anyone can help me I will really appreciate it.
Thanks
0
Mob Ores Mod
Since this is my first mod, I already edited it two times before officially posting it here. The mod adds 18 ores: Blaze, Chicken, Cow, Creeper, Ender, Ghast, Magma, Pig, Sheep, Shroom, Skele, Slime, Snow, Spider, Squid, Witch, Withe, and Zomb. Zombie pigman ores aren't included because there are already gold ores. Same with iron golems.
Below is what each ore drops:
Blaze - 1 blaze rod
Chicken - 1 raw chicken
Cow - 1 raw beef
Creeper - 4 gunpowder
Ender - 1 enderpearl
Ghast - 1 ghast tear
Magma - 4 magma cream
Pig - 1 raw porkchop
Sheep - 1 wool
Shroom - 1 red mushroom
Skele - 4 bone
Slime - 4 slimeball
Snow - 4 snowball
Spider - 4 spider eye
Squid - 2 ink sac
Witch - 4 glass bottles
Withe - 1 nether star
Zomb - 4 rotten flesh
Download here v1.2: http://www.mediafire...8qseq3lurrqdgf3
The versions before this
v1.0: http://www.mediafire...a3libru24uobuiu
v1.1: http://www.mediafire...azseli9232ecmad
v1.1 GhastOre to GhastOre, changed nether ores rarity
v1.2 Ghast Ores drop 1 ghast tear instead of 4
As you all may know SkyDoesMinecraft loves butter and hates squids so in the butter edition, I replaced the squid ores with zombie pigman ores. The zombie pigman ores drop one gold nugget
Download here: http://www.mediafire...ncqpa0sgbes2eqb
Also, some of these ores generate in the nether.
To install;
1. Download one of the mods above.
2. Download Risugami's ModLoader.
3. Install ModLoader the same was as the other mods.
4. Run Minecraft.
5. Close Minecraft.
6. In the .minecraft folder, there should be a folder called mods, place the .zip folder that you downloaded from here in the mods folder.
7. Run Minecraft.
8. You're done!
If there are anything I should edit, please comment.
0
ModLoader.addRecipe(new ItemStack(Item.monsterPlacer, 2, 59), new Object[]
{
"sSs", "ses", "sss", Character.valueOf('s'), Item.silk, Character.valueOf('S'), Item.spiderEye, Character.valueOf('e'), Item.monsterPlacer
});
where I need to somehow specify the metadata on the monsterplacer (spawn egg) to be a spawn spider egg.
0
Thanks, not only have you helped me, you've also introduced the term metadata to me. I can search google to find other stuff involving metadata.
0
ModLoader.addRecipe(new ItemStack(Item.monsterPlacer, 2), new Object[]
{
"fff", "fef", "fcf", Character.valueOf('f'), Item.feather, Character.valueOf('e'), Item.egg, Character.valueOf('c'), Item.chickenRaw
});
If anyone could help, please reply and show me how. I know it's possible because I seen other mods that have ceratain damage values in the recipes.
0
public void addRenderer(Map var1)
{
var1.put( EntityThrowing.class, new RenderSnowball( throwItem.iconIndex ) );
}
it says throwItem cannot be resolved to a variable
please help