guys, this mod, it's not working AT ALL for me. I try doing everything you guys suggest, nothing works... can't figure it out. I'm resorting to reading the java for dummies page. (wherever that might be) Is it possible they updated JDK when 1.2.3 was released? and I need an update of that? or Mybe a new ModLoader? The last ModLoader I DL'd was with MCP for 1.2.3
one more question, how can i make a mob with a custom shape spawn in the water? I cant figure out how to get this too work. i tried copying the squid's code and changed some of the names but it only spawns a humanoid figure in the water with my narwhal texture on it.
one more question, how can i make a mob with a custom shape spawn in the water? I cant figure out how to get this too work. i tried copying the squid's code and changed some of the names but it only spawns a humanoid figure in the water with my narwhal texture on it.
any help?
pass me ur mob code please so i can have a look at it and test it ;D
guys, this mod, it's not working AT ALL for me. I try doing everything you guys suggest, nothing works... can't figure it out. I'm resorting to reading the java for dummies page. (wherever that might be) Is it possible they updated JDK when 1.2.3 was released? and I need an update of that? or Mybe a new ModLoader? The last ModLoader I DL'd was with MCP for 1.2.3
Nevermind, I Figured out my problem.
but I have a new one. The Spice works, the armor works, they work together.
when I try and add the cookie however, i get this
Mods loaded: 1
ModLoader 1.2.3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT bf8dd11a --------
Generated 3/12/12 1:06 AM
Minecraft: Minecraft 1.2.3
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce 210/PCI/SSE2 version 3.3.0, NVIDIA Corporation
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_everything.<init>(mod_everything.java:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:284)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1290)
at net.minecraft.src.ModLoader.init(ModLoader.java:846)
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(Unknown Source)
--- END ERROR REPORT aabb0ec4 ----------
package net.minecraft.src;
import java.util.Random;
public class mod_everything extends BaseMod
{public static Item PumpkinSpice;
public static final Item PumpkinCookie = (new ItemFood(999, 1, 1F, false)).setIconIndex(ModLoader.addOverride("/gui/Items.png", "/mods/PumpkinCookie.png")).setItemName("PumpkinCookie");
static
{
PumpkinSpice = (new Item(1000)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinSpice.png")).setItemName("PumpkinSpice");
}
public void load()
{
}
public mod_everything()
{
ModLoader.addName(PumpkinSpice, "Pumpkin Spice");
ModLoader.addRecipe(new ItemStack(PumpkinSpice, 3), new Object[]{
"xxx", Character.valueOf('x'), Block.pumpkin
});
ModLoader.addName(PumpkinCookie, "Pumpkin Cookie");
ModLoader.addRecipe(new ItemStack(PumpkinCookie, 8), new Object[]{
"sws", Character.valueOf('s'), Item.PumpkinSpice, Character.valueOf('w'), Item.wheat
});
}
public static Item PumpkinHelmet;
public static Item PumpkinChest;
public static Item PumpkinLegs;
public static Item PumpkinBoots;
static
{
PumpkinHelmet = (new ItemArmor(8000, EnumArmorMaterial.CLOTH, 3, 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinHelmet.png")).setItemName("PumpkinHelmet");
PumpkinChest = (new ItemArmor(8001, EnumArmorMaterial.CLOTH, 3, 1)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinChest.png")).setItemName("PumpkinChest");
PumpkinLegs = (new ItemArmor(8002, EnumArmorMaterial.CLOTH, 3, 2)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinLegs.png")).setItemName("PumpkinLegs");
PumpkinBoots = (new ItemArmor(8003, EnumArmorMaterial.CLOTH, 3, 3)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinBoots.png")).setItemName("PumpkinBoots");
ModLoader.addName(PumpkinHelmet, "Pumpkin Helmet");
ModLoader.addName(PumpkinChest, "Pumpkin Chest");
ModLoader.addName(PumpkinLegs, "Pumpkin Legs");
ModLoader.addName(PumpkinBoots, "Pumpkin Boots");
ModLoader.addArmor("pumpkin");
ModLoader.addRecipe(new ItemStack(PumpkinHelmet, 1), new Object[]
{
"ppp", "p p", Character.valueOf('p'), Block.pumpkin
});
ModLoader.addRecipe(new ItemStack(PumpkinChest, 1), new Object[]
{
"p p", "ppp", "ppp", Character.valueOf('p'), Block.pumpkin
});
ModLoader.addRecipe(new ItemStack(PumpkinLegs, 1), new Object[]
{
"ppp", "p p", "p p", Character.valueOf('p'), Block.pumpkin
});
ModLoader.addRecipe(new ItemStack(PumpkinBoots, 1), new Object[]
{
"p p", "p p", Character.valueOf('p'), Block.pumpkin
});
}@Override
public String getVersion() {
// TODO Auto-generated method stub
return null;
}
}
go on the #risucraft irc cause i had the same problem and now since if forgotten im not able to help once again but people on #risucraft will try there best to help ^-^
go on the #risucraft irc cause i had the same problem and now since if forgotten im not able to help once again but people on #risucraft will try there best to help ^-^
risucraft irc? lol I feel like i should know what that means, but I don't
Nevermind, I Figured out my problem.
but I have a new one. The Spice works, the armor works, they work together.
when I try and add the cookie however, i get this
Mods loaded: 1
ModLoader 1.2.3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT bf8dd11a --------
Generated 3/12/12 1:06 AM
Minecraft: Minecraft 1.2.3
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce 210/PCI/SSE2 version 3.3.0, NVIDIA Corporation
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_everything.<init>(mod_everything.java:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:284)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1290)
at net.minecraft.src.ModLoader.init(ModLoader.java:846)
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(Unknown Source)
--- END ERROR REPORT aabb0ec4 ----------
package net.minecraft.src;
import java.util.Random;
public class mod_everything extends BaseMod
{public static Item PumpkinSpice;
public static final Item PumpkinCookie = (new ItemFood(999, 1, 1F, false)).setIconIndex(ModLoader.addOverride("/gui/Items.png", "/mods/PumpkinCookie.png")).setItemName("PumpkinCookie");
static
{
PumpkinSpice = (new Item(1000)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinSpice.png")).setItemName("PumpkinSpice");
}
public void load()
{
}
public mod_everything()
{
ModLoader.addName(PumpkinSpice, "Pumpkin Spice");
ModLoader.addRecipe(new ItemStack(PumpkinSpice, 3), new Object[]{
"xxx", Character.valueOf('x'), Block.pumpkin
});
ModLoader.addName(PumpkinCookie, "Pumpkin Cookie");
ModLoader.addRecipe(new ItemStack(PumpkinCookie, 8), new Object[]{
"sws", Character.valueOf('s'), Item.PumpkinSpice, Character.valueOf('w'), Item.wheat
});
}
public static Item PumpkinHelmet;
public static Item PumpkinChest;
public static Item PumpkinLegs;
public static Item PumpkinBoots;
static
{
PumpkinHelmet = (new ItemArmor(8000, EnumArmorMaterial.CLOTH, 3, 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinHelmet.png")).setItemName("PumpkinHelmet");
PumpkinChest = (new ItemArmor(8001, EnumArmorMaterial.CLOTH, 3, 1)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinChest.png")).setItemName("PumpkinChest");
PumpkinLegs = (new ItemArmor(8002, EnumArmorMaterial.CLOTH, 3, 2)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinLegs.png")).setItemName("PumpkinLegs");
PumpkinBoots = (new ItemArmor(8003, EnumArmorMaterial.CLOTH, 3, 3)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinBoots.png")).setItemName("PumpkinBoots");
ModLoader.addName(PumpkinHelmet, "Pumpkin Helmet");
ModLoader.addName(PumpkinChest, "Pumpkin Chest");
ModLoader.addName(PumpkinLegs, "Pumpkin Legs");
ModLoader.addName(PumpkinBoots, "Pumpkin Boots");
ModLoader.addArmor("pumpkin");
ModLoader.addRecipe(new ItemStack(PumpkinHelmet, 1), new Object[]
{
"ppp", "p p", Character.valueOf('p'), Block.pumpkin
});
ModLoader.addRecipe(new ItemStack(PumpkinChest, 1), new Object[]
{
"p p", "ppp", "ppp", Character.valueOf('p'), Block.pumpkin
});
ModLoader.addRecipe(new ItemStack(PumpkinLegs, 1), new Object[]
{
"ppp", "p p", "p p", Character.valueOf('p'), Block.pumpkin
});
ModLoader.addRecipe(new ItemStack(PumpkinBoots, 1), new Object[]
{
"p p", "p p", Character.valueOf('p'), Block.pumpkin
});
}@Override
public String getVersion() {
// TODO Auto-generated method stub
return null;
}
}
When your crafting Pumpkin cookie your linking to the wrong files. Pumpkinspice is included in mod_####. It's not included in Items. It should be:
package net.minecraft.src;
import java.util.Random;
import java.util.Map;
public class mod_Randomness extends BaseMod
{
public static Item SteelIngot;
public static final Block SteelOre;
static
{
SteelOre = (new BlockSteelOre(126, ModLoader.addOverride("/terrain.png", "/mods/SteelOre.png"))).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("SteelOre");
SteelIngot = (new Item(100).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/SteelIngot.png"))).setItemName("SteelOre");
}
public void load()
{
}
public mod_Randomness()
{
ModLoader.registerEntityID(EntityNarwhal.class, "Narwhal", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(EntityNarwhal.class, 20, 20, 20, EnumCreatureType.waterCreature);
ModLoader.addName(SteelIngot, "Steel Ingot");
ModLoader.registerBlock(SteelOre);
ModLoader.addName(SteelOre, "Steel Block Ore");
ModLoader.addSmelting(Block.bedrock.blockID, new ItemStack(SteelOre, 1));
ModLoader.addSmelting(SteelOre.blockID, new ItemStack(SteelIngot, 1));
}
public void AddRenderer(Map map)
{
map.put(EntityNarwhal.class, new RenderNarwhal(new ModelNarwhal(), 0.5F));
}
public void generateSurface(World world, Random rand, int chunkx, int chunkz)
{
//Steel Ore
for(int l = 0; l<64; l++)
{
int i1 = chunkx +rand.nextInt(16);
int j1 = rand.nextInt(64);
int k1 = chunkz +rand.nextInt(16);
(new WorldGenMinable(SteelOre.blockID, 20)).generate(world, rand, i1, j1, k1);
}
}
public String getVersion()
{
return"0.01 Alpha";
}
}
thxs for your help!
well i really should do mob tutorial also so i can help you so umm yeah i cant help really until ive done it myself sorry but i will get around to doing mob tutorial very soon im so sorry i was no help mabye ask on the risucraft irc
What is wrong about my code?!
I don't get the block when i try to smelt planks , and i can't find the block in my creative inventory
This is my code please help me
package net.minecraft.src;
public class Mod_prøving extends BaseMod
{
public static final Block HellstoneBlock;
static
{
HellstoneBlock = (new BlockHellstoneBlock(123, ModLoader.addOverride("/terrain.png", "/mods/HellstoneBlock.png"))).setHardness(3F).setResistance(5F);HellstoneBlock.setStepSound(Block.soundStoneFootstep).setBlockName("HellstoneBlock");
I'm trying to make mod with new ores tools and everything but i cant even get the block to work. I have alot of problems with my static line.
package net.minecraft.src;
public class Mod_moreore extends BaseMod
{
public static final net.minecraft.src.BlockPlatinumOre PlatinumOre;
static
{
PlatinumOre = (new BlockPlatinumOre(126, ModLoader.addOveride("/terrain.png", "/moreore/PlatinumOre.png"))).setHardness(5F).setResistance(6F).setBlockName("Platinum Ore");
}
public Mod_moreore()
{
}
public void load()
{
}
public String getVersion()
{
return "Minecraft 1.2.3 moreore mod";
}
}
The errors are:
- The method addOverride(String, String, int) in the type ModLoader is not applicable for the arguments
(String, String)
- The method setHardness(float) is undefined for the type BlockPlatinumOre
- Syntax error, insert ";" to complete BlockStatements
You also didn't make a generatesurface part. If you just watch the videos 1 more time, look carefully for all Capitals and punctuation.I see you miss a ; as 3rd error, try to look for that.
i really dont care for the ; errors i fixed those and im aware of the generatesurface part not being there but that becomes rather pointless if i cant get the block itself to work. i really need these two fixed.
- The method addOverride(String, String, int) in the type ModLoader is not applicable for the arguments
(String, String)
- The method setHardness(float) is undefined for the type BlockPlatinumOre
I'm trying to make mod with new ores tools and everything but i cant even get the block to work. I have alot of problems with my static line.
package net.minecraft.src;
public class Mod_moreore extends BaseMod
{
public static final net.minecraft.src.BlockPlatinumOre PlatinumOre;
static
{
PlatinumOre = (new BlockPlatinumOre(126, ModLoader.addOveride("/terrain.png", "/moreore/PlatinumOre.png"))).setHardness(5F).setResistance(6F).setBlockName("Platinum Ore");
}
public Mod_moreore()
{
}
public void load()
{
}
public String getVersion()
{
return "Minecraft 1.2.3 moreore mod";
}
}
The errors are:
- The method addOverride(String, String, int) in the type ModLoader is not applicable for the arguments
(String, String)
- The method setHardness(float) is undefined for the type BlockPlatinumOre
- Syntax error, insert ";" to complete BlockStatements
I have the same problem
I hope he can say what is wrong about our code
The only difference between your code and my code is that i don't have errors. (I have no idea on how to fix your errors)
I'm trying to make mod with new ores tools and everything but i cant even get the block to work. I have alot of problems with my static line.
package net.minecraft.src;
public class Mod_moreore extends BaseMod
{
public static final net.minecraft.src.BlockPlatinumOre PlatinumOre;
static
{
PlatinumOre = (new BlockPlatinumOre(126, ModLoader.addOveride("/terrain.png", "/moreore/PlatinumOre.png"))).setHardness(5F).setResistance(6F).setBlockName("Platinum Ore");
}
public Mod_moreore()
{
}
public void load()
{
}
public String getVersion()
{
return "Minecraft 1.2.3 moreore mod";
}
}
The errors are:
- The method addOverride(String, String, int) in the type ModLoader is not applicable for the arguments
(String, String)
- The method setHardness(float) is undefined for the type BlockPlatinumOre
- Syntax error, insert ";" to complete BlockStatements
I have the same problem I hope he can say what is wrong about our code The only difference between your code and my code is that i don't have errors. (I have no idea on how to fix your errors)
I managed to fix my errors and hopefully i can help you. If you were to look at my code it said ModLoader.addOveride. While making my coding that was what it(eclipse) said it was supposed to be as opposed to ModLoader.addOverride (one more r) When i typed in the extra r it brought up (string, string, int i) or something like that but if i deleted the int i it wouldnt work. If i deleted the int i and took one r off it still didnt work. What i did do to get it to work was deleting and uninstalling EVERYTHING then going on the internet and downloading the newest versions of everything again then installing it all again just to be safe. I then retyped the code and it worked. I dont know how one r was such a pain but it was. If this doesnt help you i hope will help someone else
any help?
pass me ur mob code please so i can have a look at it and test it ;D
Nevermind, I Figured out my problem.
but I have a new one. The Spice works, the armor works, they work together.
when I try and add the cookie however, i get this
Mods loaded: 1
ModLoader 1.2.3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT bf8dd11a --------
Generated 3/12/12 1:06 AM
Minecraft: Minecraft 1.2.3
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce 210/PCI/SSE2 version 3.3.0, NVIDIA Corporation
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_everything.<init>(mod_everything.java:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:284)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1290)
at net.minecraft.src.ModLoader.init(ModLoader.java:846)
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(Unknown Source)
--- END ERROR REPORT aabb0ec4 ----------
risucraft irc? lol I feel like i should know what that means, but I don't
webchat.esper.net/?channels=#risucraft there
Cool, but nobody is on... :/
When your crafting Pumpkin cookie your linking to the wrong files. Pumpkinspice is included in mod_####. It's not included in Items. It should be:
That guy that makes the wheels turn.. Y'know...
ok thxs here's my enity file code:
here's the render file code
here's my model file code (though you probably wont need it)
and finally here's my mod file
thxs for your help!
well i really should do mob tutorial also so i can help you so umm yeah i cant help really until ive done it myself sorry but i will get around to doing mob tutorial very soon im so sorry i was no help mabye ask on the risucraft irc
I don't get the block when i try to smelt planks , and i can't find the block in my creative inventory
This is my code please help me
package net.minecraft.src;
public class Mod_prøving extends BaseMod
{
public static final Block HellstoneBlock;
static
{
HellstoneBlock = (new BlockHellstoneBlock(123, ModLoader.addOverride("/terrain.png", "/mods/HellstoneBlock.png"))).setHardness(3F).setResistance(5F);HellstoneBlock.setStepSound(Block.soundStoneFootstep).setBlockName("HellstoneBlock");
}
public void load()
{
}
public Mod_prøving()
{
ModLoader.registerBlock(HellstoneBlock);
ModLoader.addName(HellstoneBlock,"Hellstone Ore");
ModLoader.addSmelting(Block.planks.blockID,new ItemStack(HellstoneBlock, 1));
}
public String getVersion()
{
return "Minecraft 1.2 and above Mod";
}
}
The errors are:
- The method addOverride(String, String, int) in the type ModLoader is not applicable for the arguments
(String, String)
- The method setHardness(float) is undefined for the type BlockPlatinumOre
- Syntax error, insert ";" to complete BlockStatements
i really dont care for the ; errors i fixed those and im aware of the generatesurface part not being there but that becomes rather pointless if i cant get the block itself to work. i really need these two fixed.
- The method addOverride(String, String, int) in the type ModLoader is not applicable for the arguments
(String, String)
- The method setHardness(float) is undefined for the type BlockPlatinumOre
I have the same problem
I hope he can say what is wrong about our code
The only difference between your code and my code is that i don't have errors. (I have no idea on how to fix your errors)
I managed to fix my errors and hopefully i can help you. If you were to look at my code it said ModLoader.addOveride. While making my coding that was what it(eclipse) said it was supposed to be as opposed to ModLoader.addOverride (one more r) When i typed in the extra r it brought up (string, string, int i) or something like that but if i deleted the int i it wouldnt work. If i deleted the int i and took one r off it still didnt work. What i did do to get it to work was deleting and uninstalling EVERYTHING then going on the internet and downloading the newest versions of everything again then installing it all again just to be safe. I then retyped the code and it worked. I dont know how one r was such a pain but it was. If this doesnt help you i hope will help someone else