package net.minecraft.src;
import java.util.Map;
public class mod_CheesModel extends BaseMod
{
public String getVersion()
{
return "1.2.3";
}
public mod_CheesModel()
{
ModLoader.registerEntityID(EntityCheesModel.class, "CheesModel", 117);
}
public void load()
{
}
public void AddRenderer(Map map)
{
map.put(EntityCheesModel.class, new RenderCheesModel(new ModelCheesModel(), 0.5F));
}
}
EntityCheesModel
package net.minecraft.src;
public abstract class EntityCheesModel extends EntityAnimal
{
public EntityCheesModel(World world)
{
super(world);
texture = "/Chees/CheesModel.png";
moveSpeed = 0.5F;
}
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
{
super.writeEntityToNBT(nbttagcompound); // this saves the mob to disk, so it can be loaded later
}
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
{
super.readEntityFromNBT(nbttagcompound); // this retrieves saved data about the mob from the hard drive
}
protected boolean canDespawn()
{
return false;
}
protected int getDropItemId()
{
return 0;
}
public int getMaxHealth()
{
return 12;
}
protected void func_40145_a(EntityAnimal entityanimal)
{
}
}
Thanks so much TechGuy you helped me make a mod!!! forget the last post about me having trouble i just was dumb and forgot to name something the right thing. Also if you didn't tell me a mistake that you saw I wouldve never seen that! I made a fiew mobs and ores but how do i make an audio file for my mobs?
Anyone who knows how to audio please tell me the code. Thanks!
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT a11ab2b --------
Generated 3/10/12 10:00 PM
Minecraft: Minecraft 1.2.3
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3200 Graphics version 2.1.8794, ATI Technologies Inc.
java.lang.NullPointerException
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:386)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:409)
at net.minecraft.src.mod_Food2.load(mod_Food2.java:11)
at net.minecraft.src.ModLoader.init(ModLoader.java:853)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:154)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:423)
at net.minecraft.client.Minecraft.run(Minecraft.java:784)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT 6ecaf22b ----------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT a11ab2b --------
Generated 3/10/12 10:00 PM
Minecraft: Minecraft 1.2.3
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3200 Graphics version 2.1.8794, ATI Technologies Inc.
java.lang.NullPointerException
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:386)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:409)
at net.minecraft.src.mod_Food2.load(mod_Food2.java:11)
at net.minecraft.src.ModLoader.init(ModLoader.java:853)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:154)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:423)
at net.minecraft.client.Minecraft.run(Minecraft.java:784)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT 6ecaf22b ----------
There is something wrong with your recipe. Make sure there are an even amount of spaces in each set of " ".
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
-The method addOverride(string, string) is undefined for the type Modloader
-The method addName(item, string) is undefined for the type Modloader
-The method addRecipie(ItemStack, Object[]) is undefined for the type Modloader
-The method addOverride(string, string) is undefined for the type Modloader
-The method addName(item, string) is undefined for the type Modloader
-The method addRecipie(ItemStack, Object[]) is undefined for the type Modloader
-The method addOverride(string, string) is undefined for the type Modloader
-The method addName(item, string) is undefined for the type Modloader
-The method addRecipie(ItemStack, Object[]) is undefined for the type Modloader
Please halp!
Make sure you have the newest ModLoader installed.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Alright, I'm going to try re-downloading it, thanks for the help!
Nope, that's not the problem. Just realised you are using
Modloader
instead of
ModLoader
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Yeh, just post it here. Or PM me if you don't want to post it.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Thanks so much for the audio and as for your help on my code Thanks also. I've narrowed it down to the "mod_Food2" I took it out and I could run my mod fine but when I put it back in Minecraft crashes heres my code on the "mod_Food2"
package net.minecraft.src;
public class mod_Food2 extends BaseMod
{
public static final Item Pizza2 = new ItemFood(5004, 20, 15F, false).setPotionEffect(Potion.regeneration.id, 180, 0, 0.8F).setPotionEffect(Potion.fireResistance.id, 180, 0, 0.8F).setItemName("Pizza2");
Thanks so much for the audio and as for your help on my code Thanks also. I've narrowed it down to the "mod_Food2" I took it out and I could run my mod fine but when I put it back in Minecraft crashes heres my code on the "mod_Food2"
package net.minecraft.src;
public class mod_Food2 extends BaseMod
{
public static final Item Pizza2 = new ItemFood(5004, 20, 15F, false).setPotionEffect(Potion.regeneration.id, 180, 0, 0.8F).setPotionEffect(Potion.fireResistance.id, 180, 0, 0.8F).setItemName("Pizza2");
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Ow and btw, when i try to run the client i get an error saying: Java.nullpointerexception... it says internal error... so i just think its from Eclipse itself and actually need to reinstall Eclipse?
Look at my tutorials for mobs. Use the ModLoader.addSpawn line.
Have a look at this tutorial for audio.
together they are powerful beyond imagination."
Can you make a tut for a new dimension?
I'm guessing you need it for your Time Travel mod? I'll get one made eventually, once I get a dimension of my own working.
together they are powerful beyond imagination."
Yea, I made one once but i had to edit base files.
Mods loaded: 9
ModLoader 1.2.3
mod_Achievement 1.2.3
mod_BedStone 1.2.3
mod_Food 1.2.3
mod_Food2 1.2.3
mod_HumanNPC 1.2.3
mod_HumanNPC2 1.2.3
mod_Ore 1.2.3
mod_WorldGen 1.2.3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT a11ab2b --------
Generated 3/10/12 10:00 PM
Minecraft: Minecraft 1.2.3
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3200 Graphics version 2.1.8794, ATI Technologies Inc.
java.lang.NullPointerException
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:386)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:409)
at net.minecraft.src.mod_Food2.load(mod_Food2.java:11)
at net.minecraft.src.ModLoader.init(ModLoader.java:853)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:154)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:423)
at net.minecraft.client.Minecraft.run(Minecraft.java:784)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT 6ecaf22b ----------
There is something wrong with your recipe. Make sure there are an even amount of spaces in each set of " ".
together they are powerful beyond imagination."
-The method addOverride(string, string) is undefined for the type Modloader
-The method addName(item, string) is undefined for the type Modloader
-The method addRecipie(ItemStack, Object[]) is undefined for the type Modloader
Please halp!
Did you correctly install modloader?
Make sure you have the newest ModLoader installed.
together they are powerful beyond imagination."
Alright, I'm going to try re-downloading it, thanks for the help!
Nope, that's not the problem. Just realised you are using
instead of
together they are powerful beyond imagination."
Actually, it was both. But now there's another error: (insert tool here) cannot be resolved to a variable.
Should i just send you the code?
together they are powerful beyond imagination."
alright, i'll PM it.
package net.minecraft.src;
public class mod_Food2 extends BaseMod
{
public static final Item Pizza2 = new ItemFood(5004, 20, 15F, false).setPotionEffect(Potion.regeneration.id, 180, 0, 0.8F).setPotionEffect(Potion.fireResistance.id, 180, 0, 0.8F).setItemName("Pizza2");
public void load()
{
Pizza2.iconIndex = ModLoader.addOverride("/gui/items.png", "/Pizza2.png");
ModLoader.addName(Pizza2, "Pizza");
ModLoader.addRecipe(new ItemStack(Pizza2, 1), new Object [] {"###", "# #", "###", Character.valueOf('#'), mod_Food.Pizza.shiftedIndex});
}
public String getVersion()
{
return "1.2.3";
}
}
So sorry for just pushing so many problems at you I'm just excited to finally make a mod! You can take as much time as you need I can wait
my question was: "How to make a Door?"
but assuming that nobody is responding to it i just post it again in the hope that people will actually comment.
-IHVD
http://www.minecraftsao.org/
Check it out!
Can you post the crash report please. If the game closes too quickly, it will be in the ModLoader.txt in the jars folder.
Why don't you look at the door code.
together they are powerful beyond imagination."
My guess is you just copy-paste the iron/wooden door code and change the texture with ModLoader.
http://www.minecraftsao.org/
Check it out!