Can someone please tell me how to add special AI and abilities to a mob? Like, by giving me a sample of the right code? I can't use MCP because I can't get it t work, so I can't decompile and simply look in the source files. I can't recompile either.
//below this is all the AI tasks that specify how the mob will behave mess around with it to see what happens
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityPlayer.class, this.moveSpeed, false));
this.tasks.addTask(2, new EntityAIMoveTwardsRestriction(this, this.moveSpeed));
this.tasks.addTask(3, new EntityAIWander(this, this.moveSpeed));
this.tasks.addTask(4, new EntityAILookIdle(this));
this.tasks.addTask(5, new EntityAIAttackOnCollide(this, EntityLiving.class, this.moveSpeed, false));
this.targetTasks.addTask(0, new EntityAIHurtByTarget(this, false));
this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityLiving.class, 16.0F, 0, false, true, IMob.field_82192_a));
//end of AI tasks
I followed your guide step by step. the modloader files and the jar are both 1.4.2 I think. When I decompiled it gave me error messages and added several empty folders into the mcp folder.Is it safe to decompile again? I forgot what the exact error was.
I followed your guide step by step. the modloader files and the jar are both 1.4.2 I think. When I decompiled it gave me error messages and added several empty folders into the mcp folder.Is it safe to decompile again? I forgot what the exact error was.
You should completely reinstall a fresh copy of the latest MCP, along with manually updating your MC.jar through the options button in the Minecraft Launcher window.
Retrieve a copy of the the .jar and place it in your jars folder of MCP, open it up and delete the META-INF, then place all your freshly downloaded ModLoader files inside.
Run the updatemcp.bat (or updatemcp.sh if you're on a Mac or other shell script driven OS such as Linux), and download any file updates from the MCP server.
Run the decompile.bat (or again, decompile.sh if you're on a Mac or other shell script driven OS such as Linux)
Paste any errors you may or may not receive here. Should should receive one error due to ModLoader itself, but there should be no others.
//below this is all the AI tasks that specify how the mob will behave mess around with it to see what happens
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityPlayer.class, this.moveSpeed, false));
this.tasks.addTask(2, new EntityAIMoveTwardsRestriction(this, this.moveSpeed));
this.tasks.addTask(3, new EntityAIWander(this, this.moveSpeed));
this.tasks.addTask(4, new EntityAILookIdle(this));
this.tasks.addTask(5, new EntityAIAttackOnCollide(this, EntityLiving.class, this.moveSpeed, false));
this.targetTasks.addTask(0, new EntityAIHurtByTarget(this, false));
this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityLiving.class, 16.0F, 0, false, true, IMob.field_82192_a));
//end of AI tasks
Thanks. I'm pretty sure that NearestAttackableTarget might determine what entities the mobs can attack, and HurtByTarget might determine whether the mob is neutral or not. Wander would make it still move about when idle, LookIdle would make it look around, and I'm not sure what MoveTwardsRestriction does, but it might have something to do with the mob's pathfinding. Swimming is fairly obvious. Thanks, joejoejoe3.
package net.minecraft.src;
public class mod_Block extends BaseMod
{
public static final Block Marble = new BlockMarble(160, 0).setBlockName("Stone").setHardness(3F).setResistance(4F).setLightValue(1F)
.setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundStoneFootstep);
public void load()
{
Marble.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/marble.png");
ModLoader.registerBlock(Marble);
ModLoader.addName(Marble, "Marble");
}
public String getVersion()
{
return "1.4.2";
}
}
BlockMarble.java
package net.minecraft.src;
import java.util.Random;
public class BlockMarble extends Block
{
public BlockMarble(int i, int j)
{
super(i, j, Material.wood);
}
public int idDropped(int i, Random random, int j)
{
return mod_Block.Marble.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
and now my problem is that it says it can not find the image,
here is the directory to were my image is placed: mcp\eclipse\Client\bin\mods\marble.png
Here is the crash error:
---- Minecraft Crash Report ----
// I blame Dinnerbone.
Time: 6/11/12 10:40 AM
Description: Unexpected error
java.lang.RuntimeException: java.lang.Exception: Image not found: /mods/marble.png
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1638)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1194)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:868)
at net.minecraft.client.Minecraft.run(Minecraft.java:764)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.Exception: Image not found: /mods/marble.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1111)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1630)
... 5 more
Relevant Details:
- Minecraft Version: 1.4.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.7.0_09, Oracle Corporation
- Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 903735800 bytes (861 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
- JVM Flags: 3 total; -Xincgc -Xms1024M -Xmx1024M
- AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
- ModLoader: Mods loaded: 2
ModLoader 1.4.2
mod_Block 1.4.2
- LWJGL: 2.4.2
- OpenGL: GeForce GTX 560 Ti/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation
- Is Modded: Very likely
- Type: Client
- Texture Pack: Default
- Profiler Position: N/A (disabled)
- Vec3 Pool Size: ~ERROR~ NullPointerException: null
Hey everyone, I have finished the code and textures and it all works, now I need to know how do I make it so that it can be added to others minecrafts.jars?? I recompile then run in the mcp client and it all works is there a tut on final packaging of the mod or something?
I got it working, by adding the Mods folder to the Jar with the images in it, but thanks for your advice will give it a try as well to see if it is another option.
The thread was really lacking in one of the most important elements of creating a mod. That is, the final obfuscation point before distribution. It's added now, hope it helps some of you who were having trouble.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
@TechGuy543,
when you are making an ore, which makes a block less rare? say number 1 or a higher number, could you add a scale to your guide to help me and possibly others out when they are coding new ores?
Could someone please help me? When i run startclient to test my mod on MCP is can't find my texture which are in eclipse/client/bin
here is the mod_*** file
package net.minecraft.src;
import java.awt.Color;
import java.util.Map;
public class mod_AncientCivilisations extends BaseMod
{
public static final Item Khopesh = new ItemKhopesh(2003, EnumToolMaterial2.EGYPT).setItemName("Khopesh").setCreativeTab(CreativeTabs.tabCombat);
public static final Item EgyptianAxe = new ItemEgyptianAxe(2004, EnumToolMaterial2.EGYPT).setItemName("Egyptian Axe").setCreativeTab(CreativeTabs.tabCombat);
public static final Item Spear = new ItemSpear(2005).setItemName("Spear").setCreativeTab(CreativeTabs.tabCombat);
public static final Item Gladius = new ItemGladius(2006, EnumToolMaterial2.ROME).setItemName("Gladius").setCreativeTab(CreativeTabs.tabCombat);
public void load()
{
Spear.iconIndex = ModLoader.addOverride("/gui/items.png", "/egyptian/spear.png");
Khopesh.iconIndex = ModLoader.addOverride("/gui/items.png", "/egyptian/khopesh.png");
EgyptianAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/egyptian/egyptianaxe.png");
Gladius.iconIndex = ModLoader.addOverride("/gui/items.png", "/egyptian/gladiussword.png");
ModLoader.addName(Khopesh, "Khopesh");
ModLoader.addName(EgyptianAxe, "Egyptian Axe");
ModLoader.addName(Spear, "Spear");
ModLoader.addName(Gladius, "Gladius");
ModLoader.addRecipe(new ItemStack(Khopesh, 1), new Object [] {" # ", "# ", " $ ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('$'), Item.stick});
ModLoader.addRecipe(new ItemStack(EgyptianAxe, 1), new Object [] {"#$ ", "#$ ", " $ ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('$'), Item.stick});
ModLoader.addRecipe(new ItemStack(Spear, 4), new Object [] {"# ", " $ ", " $", Character.valueOf('#'), Item.ingotIron, Character.valueOf('$'), Item.stick});
ModLoader.addRecipe(new ItemStack(Gladius, 1), new Object [] {" #", " # ", "$ ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('$'), Item.stick});
ModLoader.registerEntityID(EntityMummy.class, "Mummy", 12);
ModLoader.addSpawn("Mummy", 10, 10, 10, EnumCreatureType.monster, new BiomeGenBase[]
{
BiomeGenBase.desert});
ModLoader.addLocalization("entity.Mummy.name", "Mummy");
EntityList.entityEggs.put(Integer.valueOf(12), new EntityEggInfo(12, 894731, (new Color(21, 15, 6)).getRGB()));
}
public void addRenderer(Map var1)
{
var1.put(EntityMummy.class, new RenderLiving(new ModelZombie(),.5f));
}
public String getVersion()
{
return "1.4.2";
}
}
error report
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Unexpected error
This error has been saved to C:\Users\Heatblast\Documents\James's Stuff of Awesomeness\MC modding\MCP Chaos Dimension\jars\.\crash-reports\crash-2012-11-09_18.47.29-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT 50f8fd73 --------
Generated 9/11/12 6:47 PM
- Minecraft Version: 1.4.2
- Operating System: Windows Vista (x86) version 6.0
- Java Version: 1.7.0_07, Oracle Corporation
- Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
- Memory: 972136008 bytes (927 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
- ModLoader: Mods loaded: 2
ModLoader 1.4.2
mod_AncientCivilisations 1.4.2
- LWJGL: 2.4.2
- OpenGL: GeForce 8400GS/PCI/SSE2/3DNOW! GL version 3.3.0, NVIDIA Corporation
- Is Modded: Very likely
- Type: Client
- Texture Pack: Default
- Profiler Position: N/A (disabled)
- Vec3 Pool Size: ~ERROR~ NullPointerException: null
java.lang.RuntimeException: java.lang.Exception: Image not found: /egyptian/gladiussword.png
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1694)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1200)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:868)
at net.minecraft.client.Minecraft.run(Minecraft.java:764)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: /egyptian/gladiussword.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1117)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1686)
... 5 more
--- END ERROR REPORT 514cf4d7 ----------
Where it says image not found /egyptian/gladiussword.png has various other textures missing when i startclient
Rollback Post to RevisionRollBack
I eat creepers for breakfast, lunch, dinner and I have it bacon style!
Could someone please help me? When i run startclient to test my mod on MCP is can't find my texture which are in eclipse/client/bin
here is the mod_*** file
package net.minecraft.src;
import java.awt.Color;
import java.util.Map;
public class mod_AncientCivilisations extends BaseMod
{
public static final Item Khopesh = new ItemKhopesh(2003, EnumToolMaterial2.EGYPT).setItemName("Khopesh").setCreativeTab(CreativeTabs.tabCombat);
public static final Item EgyptianAxe = new ItemEgyptianAxe(2004, EnumToolMaterial2.EGYPT).setItemName("Egyptian Axe").setCreativeTab(CreativeTabs.tabCombat);
public static final Item Spear = new ItemSpear(2005).setItemName("Spear").setCreativeTab(CreativeTabs.tabCombat);
public static final Item Gladius = new ItemGladius(2006, EnumToolMaterial2.ROME).setItemName("Gladius").setCreativeTab(CreativeTabs.tabCombat);
public void load()
{
Spear.iconIndex = ModLoader.addOverride("/gui/items.png", "/egyptian/spear.png");
Khopesh.iconIndex = ModLoader.addOverride("/gui/items.png", "/egyptian/khopesh.png");
EgyptianAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/egyptian/egyptianaxe.png");
Gladius.iconIndex = ModLoader.addOverride("/gui/items.png", "/egyptian/gladiussword.png");
ModLoader.addName(Khopesh, "Khopesh");
ModLoader.addName(EgyptianAxe, "Egyptian Axe");
ModLoader.addName(Spear, "Spear");
ModLoader.addName(Gladius, "Gladius");
ModLoader.addRecipe(new ItemStack(Khopesh, 1), new Object [] {" # ", "# ", " $ ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('$'), Item.stick});
ModLoader.addRecipe(new ItemStack(EgyptianAxe, 1), new Object [] {"#$ ", "#$ ", " $ ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('$'), Item.stick});
ModLoader.addRecipe(new ItemStack(Spear, 4), new Object [] {"# ", " $ ", " $", Character.valueOf('#'), Item.ingotIron, Character.valueOf('$'), Item.stick});
ModLoader.addRecipe(new ItemStack(Gladius, 1), new Object [] {" #", " # ", "$ ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('$'), Item.stick});
ModLoader.registerEntityID(EntityMummy.class, "Mummy", 12);
ModLoader.addSpawn("Mummy", 10, 10, 10, EnumCreatureType.monster, new BiomeGenBase[]
{
BiomeGenBase.desert});
ModLoader.addLocalization("entity.Mummy.name", "Mummy");
EntityList.entityEggs.put(Integer.valueOf(12), new EntityEggInfo(12, 894731, (new Color(21, 15, 6)).getRGB()));
}
public void addRenderer(Map var1)
{
var1.put(EntityMummy.class, new RenderLiving(new ModelZombie(),.5f));
}
public String getVersion()
{
return "1.4.2";
}
}
error report
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Unexpected error
This error has been saved to C:\Users\Heatblast\Documents\James's Stuff of Awesomeness\MC modding\MCP Chaos Dimension\jars\.\crash-reports\crash-2012-11-09_18.47.29-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT 50f8fd73 --------
Generated 9/11/12 6:47 PM
- Minecraft Version: 1.4.2
- Operating System: Windows Vista (x86) version 6.0
- Java Version: 1.7.0_07, Oracle Corporation
- Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
- Memory: 972136008 bytes (927 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
- ModLoader: Mods loaded: 2
ModLoader 1.4.2
mod_AncientCivilisations 1.4.2
- LWJGL: 2.4.2
- OpenGL: GeForce 8400GS/PCI/SSE2/3DNOW! GL version 3.3.0, NVIDIA Corporation
- Is Modded: Very likely
- Type: Client
- Texture Pack: Default
- Profiler Position: N/A (disabled)
- Vec3 Pool Size: ~ERROR~ NullPointerException: null
java.lang.RuntimeException: java.lang.Exception: Image not found: /egyptian/gladiussword.png
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1694)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1200)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:868)
at net.minecraft.client.Minecraft.run(Minecraft.java:764)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: /egyptian/gladiussword.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1117)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1686)
... 5 more
--- END ERROR REPORT 514cf4d7 ----------
Where it says image not found /egyptian/gladiussword.png has various other textures missing when i startclient
are your textures within a folder called egyptian inside of the eclipse/client/bin directory?
Could you add another tutorial showing how to make a new bow and arrow? For instance a bow that goes double the length of a normal bow, double the strength and double the durability.
Could you add another tutorial showing how to make a new bow and arrow? For instance a bow that goes double the length of a normal bow, double the strength and double the durability.
I'm not going to do a bow tutorial at the moment. Here is one that should work in 1.4 though.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I am getting this strange Forge error even though im using Modloader, Even in the code you can see that it should work with modloader since it uses modloader. It works fine in the eclipse client but not in the real game.
mod_CommonMushroomBiome.java
package net.minecraft.src;
public class mod_CommonMushroomBiome extends BaseMod
{
public static final BiomeGenBase MushroomBiome = (new BiomeGenMushroom(25)).setColor(0xffffff).setBiomeName("Common Mushroom Biome");
public void load()
{
ModLoader.addBiome(MushroomBiome);
}
public String getVersion()
{
return "Common Mushroom Biomes 1.4.2";
}
}
package net.minecraft.src;
public class GuiIngameMenu extends GuiScreen
{
/** Also counts the number of updates, not certain as to why yet. */
private int updateCounter2 = 0;
/** Counts the number of screen updates. */
private int updateCounter = 0;
/**
* Adds the buttons (and other controls) to the screen in question.
*/
public void initGui()
{
this.updateCounter2 = 0;
this.controlList.clear();
byte var1 = -16;
this.controlList.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 120 + var1, StatCollector.translateToLocal("menu.returnToMenu")));
if (!this.mc.isIntegratedServerRunning())
{
((GuiButton)this.controlList.get(0)).displayString = StatCollector.translateToLocal("menu.disconnect");
}
this.controlList.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 24 + var1, StatCollector.translateToLocal("menu.returnToGame")));
this.controlList.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + var1, 98, 20, StatCollector.translateToLocal("menu.options")));
GuiButton var3;
this.controlList.add(var3 = new GuiButton(7, this.width / 2 + 2, this.height / 4 + 96 + var1, 98, 20, StatCollector.translateToLocal("menu.shareToLan")));
this.controlList.add(new GuiButton(5, this.width / 2 - 100, this.height / 4 + 48 + var1, 98, 20, StatCollector.translateToLocal("gui.achievements")));
this.controlList.add(new GuiButton(6, this.width / 2 + 2, this.height / 4 + 48 + var1, 98, 20, StatCollector.translateToLocal("gui.stats")));
this.controlList.add(new GuiButton(8, this.width / 2 - 100, this.height / 4 + 72 + var1, StatCollector.translateToLocal("Common Mushroom Biomes Mod Info")));
var3.enabled = this.mc.isSingleplayer() && !this.mc.getIntegratedServer().getPublic();
}
/**
* Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
*/
protected void actionPerformed(GuiButton par1GuiButton)
{
switch (par1GuiButton.id)
{
case 0:
this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
break;
case 1:
par1GuiButton.enabled = false;
this.mc.statFileWriter.readStat(StatList.leaveGameStat, 1);
this.mc.theWorld.sendQuittingDisconnectingPacket();
this.mc.loadWorld((WorldClient)null);
this.mc.displayGuiScreen(new GuiMainMenu());
case 2:
case 3:
default:
break;
case 4:
this.mc.displayGuiScreen((GuiScreen)null);
this.mc.setIngameFocus();
this.mc.sndManager.func_82461_f();
break;
case 5:
this.mc.displayGuiScreen(new GuiAchievements(this.mc.statFileWriter));
break;
case 6:
this.mc.displayGuiScreen(new GuiStats(this, this.mc.statFileWriter));
break;
case 7:
this.mc.displayGuiScreen(new GuiShareToLan(this));
case 8:
this.mc.displayGuiScreen(new GuiHelp());
}
}
/**
* Called from the main game loop to update the screen.
*/
public void updateScreen()
{
super.updateScreen();
++this.updateCounter;
}
/**
* Draws the screen and all the components in it.
*/
public void drawScreen(int par1, int par2, float par3)
{
this.drawDefaultBackground();
this.drawCenteredString(this.fontRenderer, "Game menu", this.width / 2, 40, 16777215);
super.drawScreen(par1, par2, par3);
}
}
GuiHelp.java
package net.minecraft.src;
public class GuiHelp extends GuiScreen{
public GuiHelp() {
}
public void initGui() {
this.controlList.clear();
byte var1 = -16;
this.controlList.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 104 + var1, StatCollector.translateToLocal("menu.returnToGame")));
}
protected void actionPerformed(GuiButton par1GuiButton)
{
switch (par1GuiButton.id)
{
case 4:
this.mc.displayGuiScreen((GuiScreen)null);
this.mc.setIngameFocus();
this.mc.sndManager.func_82461_f();
break;
}
}
public void updateScreen() {
super.updateScreen();
}
public void drawScreen(int par1, int par2, float par3) {
this.drawDefaultBackground();
this.drawCenteredString(fontRenderer, "Common Mushroom Biomes Mod", width / 2, 30, 0x00FF00);
this.drawCenteredString(fontRenderer, "This mod just makes it so that mushroom biomes are generated more often.", width / 2, 50, 0x00FFFF);
this.drawCenteredString(fontRenderer, "If you have any reports post them on the PlanetMinecraft page.", width / 2, 70, 0x00FFFF);
this.drawCenteredString(fontRenderer, "This mod should work with any other mod but I'm not 100% sure so just tell me", width / 2, 90, 0x00FFFF);
this.drawCenteredString(fontRenderer, "if there are any mods that don't work with this one.", width / 2, 110, 0x00FFFF);
this.drawCenteredString(fontRenderer, "Mod Made By TempestCraft at PlanetMinecraft!", width / 2, 130, 0xFF0000);
super.drawScreen(par1, par2, par3);
}
}
Error
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Exception occured in ModLoader
This error has been saved to C:\Users\******\AppData\Roaming\.minecraft\crash-reports\crash-2012-11-10_05.19.20-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT 2a4c2e8b --------
Generated 10/11/12 5:19 AM
- Minecraft Version: 1.4.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.6.0_31, Sun Microsystems Inc.
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
- Memory: 880346512 bytes (839 MB) / 1029046272 bytes (981 MB) up to 1908932608 bytes (1820 MB)
- JVM Flags: 2 total; -Xmx2048m -Xms1024m
- AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
- ModLoader: Mods loaded: 2
ModLoader 1.4.2
mod_CommonMushroomBiome Common Mushroom Biomes 1.4.2
java.lang.NoClassDefFoundError: forge/ICustomItemRenderer
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at ModLoader.addMod(ModLoader.java:367)
at ModLoader.readFromModFolder(ModLoader.java:1381)
at ModLoader.init(ModLoader.java:901)
at ModLoader.addAllRenderers(ModLoader.java:215)
at azw.<init>(RenderManager.java:92)
at azw.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.a(SourceFile:259)
at net.minecraft.client.Minecraft.run(SourceFile:515)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: forge.ICustomItemRenderer
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 20 more
--- END ERROR REPORT 75f3f4f5 ----------
I am getting this strange Forge error even though im using Modloader, Even in the code you can see that it should work with modloader since it uses modloader. It works fine in the eclipse client but not in the real game.
mod_CommonMushroomBiome.java
package net.minecraft.src;
public class mod_CommonMushroomBiome extends BaseMod
{
public static final BiomeGenBase MushroomBiome = (new BiomeGenMushroom(25)).setColor(0xffffff).setBiomeName("Common Mushroom Biome");
public void load()
{
ModLoader.addBiome(MushroomBiome);
}
public String getVersion()
{
return "Common Mushroom Biomes 1.4.2";
}
}
package net.minecraft.src;
public class GuiIngameMenu extends GuiScreen
{
/** Also counts the number of updates, not certain as to why yet. */
private int updateCounter2 = 0;
/** Counts the number of screen updates. */
private int updateCounter = 0;
/**
* Adds the buttons (and other controls) to the screen in question.
*/
public void initGui()
{
this.updateCounter2 = 0;
this.controlList.clear();
byte var1 = -16;
this.controlList.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 120 + var1, StatCollector.translateToLocal("menu.returnToMenu")));
if (!this.mc.isIntegratedServerRunning())
{
((GuiButton)this.controlList.get(0)).displayString = StatCollector.translateToLocal("menu.disconnect");
}
this.controlList.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 24 + var1, StatCollector.translateToLocal("menu.returnToGame")));
this.controlList.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + var1, 98, 20, StatCollector.translateToLocal("menu.options")));
GuiButton var3;
this.controlList.add(var3 = new GuiButton(7, this.width / 2 + 2, this.height / 4 + 96 + var1, 98, 20, StatCollector.translateToLocal("menu.shareToLan")));
this.controlList.add(new GuiButton(5, this.width / 2 - 100, this.height / 4 + 48 + var1, 98, 20, StatCollector.translateToLocal("gui.achievements")));
this.controlList.add(new GuiButton(6, this.width / 2 + 2, this.height / 4 + 48 + var1, 98, 20, StatCollector.translateToLocal("gui.stats")));
this.controlList.add(new GuiButton(8, this.width / 2 - 100, this.height / 4 + 72 + var1, StatCollector.translateToLocal("Common Mushroom Biomes Mod Info")));
var3.enabled = this.mc.isSingleplayer() && !this.mc.getIntegratedServer().getPublic();
}
/**
* Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
*/
protected void actionPerformed(GuiButton par1GuiButton)
{
switch (par1GuiButton.id)
{
case 0:
this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
break;
case 1:
par1GuiButton.enabled = false;
this.mc.statFileWriter.readStat(StatList.leaveGameStat, 1);
this.mc.theWorld.sendQuittingDisconnectingPacket();
this.mc.loadWorld((WorldClient)null);
this.mc.displayGuiScreen(new GuiMainMenu());
case 2:
case 3:
default:
break;
case 4:
this.mc.displayGuiScreen((GuiScreen)null);
this.mc.setIngameFocus();
this.mc.sndManager.func_82461_f();
break;
case 5:
this.mc.displayGuiScreen(new GuiAchievements(this.mc.statFileWriter));
break;
case 6:
this.mc.displayGuiScreen(new GuiStats(this, this.mc.statFileWriter));
break;
case 7:
this.mc.displayGuiScreen(new GuiShareToLan(this));
case 8:
this.mc.displayGuiScreen(new GuiHelp());
}
}
/**
* Called from the main game loop to update the screen.
*/
public void updateScreen()
{
super.updateScreen();
++this.updateCounter;
}
/**
* Draws the screen and all the components in it.
*/
public void drawScreen(int par1, int par2, float par3)
{
this.drawDefaultBackground();
this.drawCenteredString(this.fontRenderer, "Game menu", this.width / 2, 40, 16777215);
super.drawScreen(par1, par2, par3);
}
}
GuiHelp.java
package net.minecraft.src;
public class GuiHelp extends GuiScreen{
public GuiHelp() {
}
public void initGui() {
this.controlList.clear();
byte var1 = -16;
this.controlList.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 104 + var1, StatCollector.translateToLocal("menu.returnToGame")));
}
protected void actionPerformed(GuiButton par1GuiButton)
{
switch (par1GuiButton.id)
{
case 4:
this.mc.displayGuiScreen((GuiScreen)null);
this.mc.setIngameFocus();
this.mc.sndManager.func_82461_f();
break;
}
}
public void updateScreen() {
super.updateScreen();
}
public void drawScreen(int par1, int par2, float par3) {
this.drawDefaultBackground();
this.drawCenteredString(fontRenderer, "Common Mushroom Biomes Mod", width / 2, 30, 0x00FF00);
this.drawCenteredString(fontRenderer, "This mod just makes it so that mushroom biomes are generated more often.", width / 2, 50, 0x00FFFF);
this.drawCenteredString(fontRenderer, "If you have any reports post them on the PlanetMinecraft page.", width / 2, 70, 0x00FFFF);
this.drawCenteredString(fontRenderer, "This mod should work with any other mod but I'm not 100% sure so just tell me", width / 2, 90, 0x00FFFF);
this.drawCenteredString(fontRenderer, "if there are any mods that don't work with this one.", width / 2, 110, 0x00FFFF);
this.drawCenteredString(fontRenderer, "Mod Made By TempestCraft at PlanetMinecraft!", width / 2, 130, 0xFF0000);
super.drawScreen(par1, par2, par3);
}
}
Error
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Exception occured in ModLoader
This error has been saved to C:\Users\******\AppData\Roaming\.minecraft\crash-reports\crash-2012-11-10_05.19.20-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT 2a4c2e8b --------
Generated 10/11/12 5:19 AM
- Minecraft Version: 1.4.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.6.0_31, Sun Microsystems Inc.
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
- Memory: 880346512 bytes (839 MB) / 1029046272 bytes (981 MB) up to 1908932608 bytes (1820 MB)
- JVM Flags: 2 total; -Xmx2048m -Xms1024m
- AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
- ModLoader: Mods loaded: 2
ModLoader 1.4.2
mod_CommonMushroomBiome Common Mushroom Biomes 1.4.2
java.lang.NoClassDefFoundError: forge/ICustomItemRenderer
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at ModLoader.addMod(ModLoader.java:367)
at ModLoader.readFromModFolder(ModLoader.java:1381)
at ModLoader.init(ModLoader.java:901)
at ModLoader.addAllRenderers(ModLoader.java:215)
at azw.<init>(RenderManager.java:92)
at azw.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.a(SourceFile:259)
at net.minecraft.client.Minecraft.run(SourceFile:515)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: forge.ICustomItemRenderer
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 20 more
--- END ERROR REPORT 75f3f4f5 ----------
Have you tried downloading Forge again? A previous version may work. The problem is probably with Forge itself and not your mod.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
To post a comment, please login or register a new account.
//below this is all the AI tasks that specify how the mob will behave mess around with it to see what happens this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityPlayer.class, this.moveSpeed, false)); this.tasks.addTask(2, new EntityAIMoveTwardsRestriction(this, this.moveSpeed)); this.tasks.addTask(3, new EntityAIWander(this, this.moveSpeed)); this.tasks.addTask(4, new EntityAILookIdle(this)); this.tasks.addTask(5, new EntityAIAttackOnCollide(this, EntityLiving.class, this.moveSpeed, false)); this.targetTasks.addTask(0, new EntityAIHurtByTarget(this, false)); this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityLiving.class, 16.0F, 0, false, true, IMob.field_82192_a)); //end of AI tasks-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThanks. I'm pretty sure that NearestAttackableTarget might determine what entities the mobs can attack, and HurtByTarget might determine whether the mob is neutral or not. Wander would make it still move about when idle, LookIdle would make it look around, and I'm not sure what MoveTwardsRestriction does, but it might have something to do with the mob's pathfinding. Swimming is fairly obvious. Thanks, joejoejoe3.
try the "/terrain /foldername/texturename" first
I got it working, by adding the Mods folder to the Jar with the images in it, but thanks for your advice will give it a try as well to see if it is another option.
together they are powerful beyond imagination."
when you are making an ore, which makes a block less rare? say number 1 or a higher number, could you add a scale to your guide to help me and possibly others out when they are coding new ores?
Thanks,
-Vk
there is an example in this video:
and was wondering how I would start it? if someone could give me a hand I would really appreciate it.
Thanks,
-Vk
here is the mod_*** file
package net.minecraft.src; import java.awt.Color; import java.util.Map; public class mod_AncientCivilisations extends BaseMod { public static final Item Khopesh = new ItemKhopesh(2003, EnumToolMaterial2.EGYPT).setItemName("Khopesh").setCreativeTab(CreativeTabs.tabCombat); public static final Item EgyptianAxe = new ItemEgyptianAxe(2004, EnumToolMaterial2.EGYPT).setItemName("Egyptian Axe").setCreativeTab(CreativeTabs.tabCombat); public static final Item Spear = new ItemSpear(2005).setItemName("Spear").setCreativeTab(CreativeTabs.tabCombat); public static final Item Gladius = new ItemGladius(2006, EnumToolMaterial2.ROME).setItemName("Gladius").setCreativeTab(CreativeTabs.tabCombat); public void load() { Spear.iconIndex = ModLoader.addOverride("/gui/items.png", "/egyptian/spear.png"); Khopesh.iconIndex = ModLoader.addOverride("/gui/items.png", "/egyptian/khopesh.png"); EgyptianAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/egyptian/egyptianaxe.png"); Gladius.iconIndex = ModLoader.addOverride("/gui/items.png", "/egyptian/gladiussword.png"); ModLoader.addName(Khopesh, "Khopesh"); ModLoader.addName(EgyptianAxe, "Egyptian Axe"); ModLoader.addName(Spear, "Spear"); ModLoader.addName(Gladius, "Gladius"); ModLoader.addRecipe(new ItemStack(Khopesh, 1), new Object [] {" # ", "# ", " $ ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('$'), Item.stick}); ModLoader.addRecipe(new ItemStack(EgyptianAxe, 1), new Object [] {"#$ ", "#$ ", " $ ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('$'), Item.stick}); ModLoader.addRecipe(new ItemStack(Spear, 4), new Object [] {"# ", " $ ", " $", Character.valueOf('#'), Item.ingotIron, Character.valueOf('$'), Item.stick}); ModLoader.addRecipe(new ItemStack(Gladius, 1), new Object [] {" #", " # ", "$ ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('$'), Item.stick}); ModLoader.registerEntityID(EntityMummy.class, "Mummy", 12); ModLoader.addSpawn("Mummy", 10, 10, 10, EnumCreatureType.monster, new BiomeGenBase[] { BiomeGenBase.desert}); ModLoader.addLocalization("entity.Mummy.name", "Mummy"); EntityList.entityEggs.put(Integer.valueOf(12), new EntityEggInfo(12, 894731, (new Color(21, 15, 6)).getRGB())); } public void addRenderer(Map var1) { var1.put(EntityMummy.class, new RenderLiving(new ModelZombie(),.5f)); } public String getVersion() { return "1.4.2"; } }error report
Minecraft has crashed! ---------------------- Minecraft has stopped running because it encountered a problem; Unexpected error This error has been saved to C:\Users\Heatblast\Documents\James's Stuff of Awesomeness\MC modding\MCP Chaos Dimension\jars\.\crash-reports\crash-2012-11-09_18.47.29-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone. --- BEGIN ERROR REPORT 50f8fd73 -------- Generated 9/11/12 6:47 PM - Minecraft Version: 1.4.2 - Operating System: Windows Vista (x86) version 6.0 - Java Version: 1.7.0_07, Oracle Corporation - Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation - Memory: 972136008 bytes (927 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 - ModLoader: Mods loaded: 2 ModLoader 1.4.2 mod_AncientCivilisations 1.4.2 - LWJGL: 2.4.2 - OpenGL: GeForce 8400GS/PCI/SSE2/3DNOW! GL version 3.3.0, NVIDIA Corporation - Is Modded: Very likely - Type: Client - Texture Pack: Default - Profiler Position: N/A (disabled) - Vec3 Pool Size: ~ERROR~ NullPointerException: null java.lang.RuntimeException: java.lang.Exception: Image not found: /egyptian/gladiussword.png at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1694) at net.minecraft.src.ModLoader.onTick(ModLoader.java:1200) at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:868) at net.minecraft.client.Minecraft.run(Minecraft.java:764) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.Exception: Image not found: /egyptian/gladiussword.png at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1117) at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1686) ... 5 more --- END ERROR REPORT 514cf4d7 ----------Where it says image not found /egyptian/gladiussword.png has various other textures missing when i startclient
I eat creepers for breakfast, lunch, dinner and I have it bacon style!
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumare your textures within a folder called egyptian inside of the eclipse/client/bin directory?
mcp/jars/bin/minecraft.jar
I'm not going to do a bow tutorial at the moment. Here is one that should work in 1.4 though.
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse Premiummod_CommonMushroomBiome.java
package net.minecraft.src; public class mod_CommonMushroomBiome extends BaseMod { public static final BiomeGenBase MushroomBiome = (new BiomeGenMushroom(25)).setColor(0xffffff).setBiomeName("Common Mushroom Biome"); public void load() { ModLoader.addBiome(MushroomBiome); } public String getVersion() { return "Common Mushroom Biomes 1.4.2"; } }package net.minecraft.src; public class BiomeGenMushroom extends BiomeGenBase { public BiomeGenMushroom(int par1) { super(par1); spawnableCreatureList.clear(); this.topBlock = (byte)Block.mycelium.blockID; this.fillerBlock = (byte)Block.dirt.blockID; this.theBiomeDecorator.treesPerChunk = -100; this.theBiomeDecorator.flowersPerChunk = -100; this.theBiomeDecorator.grassPerChunk = -100; this.theBiomeDecorator.mushroomsPerChunk = 1; this.theBiomeDecorator.bigMushroomsPerChunk = 1; this.spawnableMonsterList.clear(); this.spawnableCreatureList.clear(); this.spawnableWaterCreatureList.clear(); this.spawnableCreatureList.add(new SpawnListEntry(EntityMooshroom.class, 8, 4, 8)); } }package net.minecraft.src; public class GuiIngameMenu extends GuiScreen { /** Also counts the number of updates, not certain as to why yet. */ private int updateCounter2 = 0; /** Counts the number of screen updates. */ private int updateCounter = 0; /** * Adds the buttons (and other controls) to the screen in question. */ public void initGui() { this.updateCounter2 = 0; this.controlList.clear(); byte var1 = -16; this.controlList.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 120 + var1, StatCollector.translateToLocal("menu.returnToMenu"))); if (!this.mc.isIntegratedServerRunning()) { ((GuiButton)this.controlList.get(0)).displayString = StatCollector.translateToLocal("menu.disconnect"); } this.controlList.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 24 + var1, StatCollector.translateToLocal("menu.returnToGame"))); this.controlList.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + var1, 98, 20, StatCollector.translateToLocal("menu.options"))); GuiButton var3; this.controlList.add(var3 = new GuiButton(7, this.width / 2 + 2, this.height / 4 + 96 + var1, 98, 20, StatCollector.translateToLocal("menu.shareToLan"))); this.controlList.add(new GuiButton(5, this.width / 2 - 100, this.height / 4 + 48 + var1, 98, 20, StatCollector.translateToLocal("gui.achievements"))); this.controlList.add(new GuiButton(6, this.width / 2 + 2, this.height / 4 + 48 + var1, 98, 20, StatCollector.translateToLocal("gui.stats"))); this.controlList.add(new GuiButton(8, this.width / 2 - 100, this.height / 4 + 72 + var1, StatCollector.translateToLocal("Common Mushroom Biomes Mod Info"))); var3.enabled = this.mc.isSingleplayer() && !this.mc.getIntegratedServer().getPublic(); } /** * Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e). */ protected void actionPerformed(GuiButton par1GuiButton) { switch (par1GuiButton.id) { case 0: this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); break; case 1: par1GuiButton.enabled = false; this.mc.statFileWriter.readStat(StatList.leaveGameStat, 1); this.mc.theWorld.sendQuittingDisconnectingPacket(); this.mc.loadWorld((WorldClient)null); this.mc.displayGuiScreen(new GuiMainMenu()); case 2: case 3: default: break; case 4: this.mc.displayGuiScreen((GuiScreen)null); this.mc.setIngameFocus(); this.mc.sndManager.func_82461_f(); break; case 5: this.mc.displayGuiScreen(new GuiAchievements(this.mc.statFileWriter)); break; case 6: this.mc.displayGuiScreen(new GuiStats(this, this.mc.statFileWriter)); break; case 7: this.mc.displayGuiScreen(new GuiShareToLan(this)); case 8: this.mc.displayGuiScreen(new GuiHelp()); } } /** * Called from the main game loop to update the screen. */ public void updateScreen() { super.updateScreen(); ++this.updateCounter; } /** * Draws the screen and all the components in it. */ public void drawScreen(int par1, int par2, float par3) { this.drawDefaultBackground(); this.drawCenteredString(this.fontRenderer, "Game menu", this.width / 2, 40, 16777215); super.drawScreen(par1, par2, par3); } }package net.minecraft.src; public class GuiHelp extends GuiScreen{ public GuiHelp() { } public void initGui() { this.controlList.clear(); byte var1 = -16; this.controlList.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 104 + var1, StatCollector.translateToLocal("menu.returnToGame"))); } protected void actionPerformed(GuiButton par1GuiButton) { switch (par1GuiButton.id) { case 4: this.mc.displayGuiScreen((GuiScreen)null); this.mc.setIngameFocus(); this.mc.sndManager.func_82461_f(); break; } } public void updateScreen() { super.updateScreen(); } public void drawScreen(int par1, int par2, float par3) { this.drawDefaultBackground(); this.drawCenteredString(fontRenderer, "Common Mushroom Biomes Mod", width / 2, 30, 0x00FF00); this.drawCenteredString(fontRenderer, "This mod just makes it so that mushroom biomes are generated more often.", width / 2, 50, 0x00FFFF); this.drawCenteredString(fontRenderer, "If you have any reports post them on the PlanetMinecraft page.", width / 2, 70, 0x00FFFF); this.drawCenteredString(fontRenderer, "This mod should work with any other mod but I'm not 100% sure so just tell me", width / 2, 90, 0x00FFFF); this.drawCenteredString(fontRenderer, "if there are any mods that don't work with this one.", width / 2, 110, 0x00FFFF); this.drawCenteredString(fontRenderer, "Mod Made By TempestCraft at PlanetMinecraft!", width / 2, 130, 0xFF0000); super.drawScreen(par1, par2, par3); } }Have you tried downloading Forge again? A previous version may work. The problem is probably with Forge itself and not your mod.
together they are powerful beyond imagination."