Wait how come i cant find how to make a mob to be honest i think i can do this mostly myself i just want to know the program to make the mob and edit the skin
Rollback Post to RevisionRollBack
THIIS IS RED, BOLD, CAPITALIZED, AND UNDERLINED.. THEREFORE IT IS IMPORTANT!!
Wait how come i cant find how to make a mob to be honest i think i can do this mostly myself i just want to know the program to make the mob and edit the skin
Did you recompile? (Dumb question, but this is how you troubleshoot) Are you using the MCP test version? Or did you reobfuscate and install into the actual game?
I recompiled and tried both. i had this issue before and then i fixed it but know i have know idea on how to do it now,
originally it was because i had Mod_Tools, i changed it to mod_Tools and it worked. but now i dont know what to do
I recompiled and tried both. i had this issue before and then i fixed it but know i have know idea on how to do it now,
originally it was because i had Mod_Tools, i changed it to mod_Tools and it worked. but now i dont know what to do
Can I see the code? There's probably one little mistake you made that's causing all the trouble. I used to have this issue as well, but I'm not sure how I fixed it either.
Hi,
I want to create a new block, and so I had make everyhing, I pressed the play button in eclipse but now how can I get the .class files? because I want to publish the mod :smile.gif:
Recompile and reobfuscate.
Then in the reobf file there should be your modded classes.
and I recompile and reobfuscatr in what .bat files? (This is my first day modding)
EDIT: I had saw the 2 .bat files xD, but to the mod works good only needs the .class files? Or I need the terrain.png? (Because I had add some new blocks to the game)
package net.minecraft.src;
import java.util.Random;
public class mod_Tools extends BaseMod
{
public static final Item Pickaxe = new ItemPickaxe(1210,EnumToolMaterial.BLACKSTONE).setItemName("1");
public static final Item Axe = new ItemAxe(1220,EnumToolMaterial.BLACKSTONE).setItemName("12");
public static final Item Spade = new ItemSpade(1250,EnumToolMaterial.BLACKSTONE).setItemName("13");
public static final Item Hoe = new ItemHoe(1260,EnumToolMaterial.BLACKSTONE).setItemName("14");
public static final Item Sword = new ItemSword(1280,EnumToolMaterial.BLACKSTONE).setItemName("15");
public mod_Tools()
{
Pickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/Pick.png");
Axe.iconIndex = ModLoader.addOverride("/gui/items.png", "/Axe.png");
Spade.iconIndex = ModLoader.addOverride("/gui/items.png", "/Spade.png");
Hoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/Hoe.png");
Sword.iconIndex = ModLoader.addOverride("/gui/items.png", "/Sword.png");
ModLoader.AddName(Pickaxe, "BlackStone Pickaxe");
ModLoader.AddName(Axe, "BlackStone Axe");
ModLoader.AddName(Spade, "BlackStone Shovel");
ModLoader.AddName(Hoe, "BlackStone Hoe");
ModLoader.AddName(Sword, "BlackStone Sword");
ModLoader.AddRecipe(new ItemStack(Pickaxe, 1), new Object[]{
"###", " * ", " * ", Character.valueOf('#'), mod_Item.itemblackstone, Character.valueOf('*'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(Axe, 1), new Object[]{
"## ", "** ", " * ", Character.valueOf('#'), mod_Item.itemblackstone, Character.valueOf('*'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(Spade, 1), new Object[]{
" # ", " * ", " * ", Character.valueOf('#'), mod_Item.itemblackstone, Character.valueOf('*'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(Hoe, 1), new Object[]{
"## ", " * ", " * ", Character.valueOf('#'), mod_Item.itemblackstone, Character.valueOf('*'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(Sword, 1), new Object[]{
" # ", " # ", " * ", Character.valueOf('#'), mod_Item.itemblackstone, Character.valueOf('*'), Item.stick
});
}
public String Version()
{
return "3.14159265";
}
}
ORE GEN
package net.minecraft.src;
import java.util.Random;
public class mod_Ore extends BaseMod
{
public static final Block blackstoneore = new BlockBlackstoneore(97, 0).setHardness(7F).setLightValue(0F).setResistance(150F).setBlockName("Icanfly");
//The Blocks name ect.
public mod_Ore()
{
ModLoader.RegisterBlock(blackstoneore);
blackstoneore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Blackstoneore.png");
ModLoader.AddName(blackstoneore, "Black Stone Ore");
}
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
//The generator for ores
{
for(int i = 0; i <25; i++)
{
int randPosX = chunkX + rand.nextInt(3);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ = rand.nextInt(3);
(new WorldGenMinable(blackstoneore.blockID, 50)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public String Version()
{
return "3.14159265";
}
}
Hi I used scottools and added a tool and everything worked fine till I started minecraft
PLEASE HELP I'M BEGGING YOU
and got an error this is what the error said
Mods loaded: 1
ModLoader Beta 1.7.3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT e9df3db --------
Generated 11/08/11 10:45 PM
Minecraft: Minecraft Beta 1.7.3
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_26, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 4800 Series version 3.3.10907 Compatibility Profile Context, ATI Technologies Inc.
java.lang.StringIndexOutOfBoundsException: String index out of range: 5
at java.lang.String.charAt(Unknown Source)
at hk.a(SourceFile:459)
at ModLoader.AddRecipe(ModLoader.java:370)
at mod_MinecraftMore.<init>(mod_MinecraftMore.java:150)
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 ModLoader.addMod(ModLoader.java:272)
at ModLoader.readFromClassPath(ModLoader.java:1104)
at ModLoader.init(ModLoader.java:812)
at ModLoader.AddAllRenderers(ModLoader.java:183)
at th.<init>(th.java:60)
at th.<clinit>(th.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:318)
at net.minecraft.client.Minecraft.run(SourceFile:716)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 669d519e ----------
My code sigh
package net.minecraft.src;
import java.util.Random;
public class mod_MinecraftMore extends BaseMod
{
public static final ToolMaterial COPPER = new ToolMaterial(1, 220, 12F, 3);
public static final Block densedirt = new BlockDensedirt(97, 0).setHardness(3F).setResistance(4.0F).setBlockName("densedirt");
public static final Block claydirt = new BlockClaydirt(98, 0).setHardness(2F).setResistance(2.0F).setBlockName("claydirt");
public static final Block lightdirt = new BlockLightdirt(99, 0).setHardness(1F).setBlockName("lightdirt");
public static final Block copperore = new BlockCopperOre(100, 0).setHardness(3F).setResistance(3.0F).setBlockName("copperore");
public static final Block platinumore = new BlockPlatinumOre(101, 0).setHardness(3F).setResistance(3.0F).setBlockName("platinumore");
public static final Block titaniumore = new BlockTitaniumOre(102, 0).setHardness(3F).setResistance(5.0F).setBlockName("titaniumore");
public static final Block tinore = new BlockTinOre(103, 0).setHardness(3F).setResistance(5.0F).setBlockName("tinore");
public static final Block unknownore = new BlockUnknownOre(104, 0).setHardness(3F).setResistance(5.0F).setBlockName("unknownore");
public static final Block graphiteore = new BlockGraphiteOre(105, 0).setHardness(3F).setResistance(5.0F).setBlockName("graphiteore");
public static final Block copperbricks = new BlockCopperBricks(106, 0).setHardness(2F).setResistance(10F).setBlockName("copperbricks");
public static final Block ironbricks = new BlockIronBricks(107, 0).setHardness(2F).setResistance(10F).setBlockName("ironbricks");
public static final Block goldbricks = new BlockGoldBricks(108, 0).setHardness(2F).setResistance(10F).setBlockName("goldbricks");
public static final Block redstonebricks = new BlockRedstoneBricks(109, 0).setHardness(2F).setResistance(10F).setBlockName("redstonebricks");
public static final Block coalbricks = new BlockCoalBricks(110, 0).setHardness(2F).setResistance(10F).setBlockName("coalbricks");
public static final Block copperblock = new BlockCopperBlock(111, 0).setHardness(3F).setResistance(12F).setBlockName("copperblock");
public static final Block coalblock = new BlockCoalBlock(112, 0).setHardness(3F).setResistance(12F).setBlockName("coalblock");
public static final Block redstoneblock = new BlockRedstoneBlock(113, 0).setHardness(3F).setResistance(12F).setBlockName("redstoneblock");
public static final Item platinumball = new Item(10000).setItemName("platinumball");
public static final Item copperbar = new Item(10001).setItemName("copperbar");
public static final Item titaniumbar = new Item(10002).setItemName("titaniumbar");
public static final Item tinbar = new Item(10003).setItemName("tinbar");
public static Item titaniumboots = (new ItemArmor(10004, 3, ModLoader.AddArmor("titanium"), 3).setItemName("titaniumboots"));
public static Item titaniumleggings = (new ItemArmor(10005, 3, ModLoader.AddArmor("titanium"), 2).setItemName("titaniumleggings"));
public static Item titaniumchestplate = (new ItemArmor(10006, 3, ModLoader.AddArmor("titanium"), 1).setItemName("titaniumchestplate"));
public static Item titaniumhelmet = (new ItemArmor(10007, 3, ModLoader.AddArmor("titanium"), 0).setItemName("titaniumhelmet"));
public static final Item pickaxecopper = new ItemCustomPickaxe(603, 2, COPPER).setItemName("pickaxecopper");
public String Version()
{
return "1.7.3";
}
public mod_MinecraftMore ()
{
densedirt.blockIndexInTexture = ModLoader.addOverride("/terrain.png" ,"/MinecraftMore/Densedirt.png");
claydirt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/Claydirt.png");
lightdirt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/Lightdirt.png");
copperore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/CopperOre.png");
platinumore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/PlatinumOre.png");
titaniumore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/TitaniumOre.png");
tinore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/TinOre.png");
unknownore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/UnknownOre.png");
graphiteore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/GraphiteOre.png");
copperbricks.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/CopperBricks.png");
ironbricks.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/IronBricks.png");
goldbricks.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/GoldBricks.png");
redstonebricks.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/RedstoneBricks.png");
coalbricks.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/CoalBricks.png");
copperblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/CopperBlock.png");
coalblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/CoalBlock.png");
redstoneblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/RedstoneBlock.png");
platinumball.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/PlatinumBall.png");
copperbar.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/CopperBar.png");
titaniumbar.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/TitaniumBar.png");
tinbar.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/TinBar.png");
titaniumboots.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/TitaniumBoots.png");
titaniumleggings.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/TitaniumLeggings.png");
titaniumchestplate.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/TitaniumChestplate.png");
titaniumhelmet.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/TitaniumHelmet.png");
pickaxecopper.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/CopperPickaxe.png");
ModLoader.RegisterBlock(densedirt);
ModLoader.RegisterBlock(claydirt);
ModLoader.RegisterBlock(lightdirt);
ModLoader.RegisterBlock(copperore);
ModLoader.RegisterBlock(platinumore);
ModLoader.RegisterBlock(titaniumore);
ModLoader.RegisterBlock(tinore);
ModLoader.RegisterBlock(unknownore);
ModLoader.RegisterBlock(graphiteore);
ModLoader.RegisterBlock(copperbricks);
ModLoader.RegisterBlock(ironbricks);
ModLoader.RegisterBlock(goldbricks);
ModLoader.RegisterBlock(redstonebricks);
ModLoader.RegisterBlock(coalbricks);
ModLoader.RegisterBlock(copperblock);
ModLoader.RegisterBlock(coalblock);
ModLoader.RegisterBlock(redstoneblock);
ModLoader.AddName(densedirt, "Dense Dirt");
ModLoader.AddName(claydirt, "Clay Dirt");
ModLoader.AddName(lightdirt, "Light Dirt");
ModLoader.AddName(copperore, "Copper Ore");
ModLoader.AddName(platinumore, "Platinum Ore");
ModLoader.AddName(titaniumore, "Titanium Ore");
ModLoader.AddName(tinore, "Tin Ore");
ModLoader.AddName(unknownore, "Unknown Ore");
ModLoader.AddName(graphiteore, "Graphite Ore");
ModLoader.AddName(copperbricks, "Copper Bricks");
ModLoader.AddName(ironbricks, "Iron Bricks");
ModLoader.AddName(goldbricks, "Gold Bricks");
ModLoader.AddName(redstonebricks, "Redstone Bricks");
ModLoader.AddName(coalbricks, "Coal Bricks");
ModLoader.AddName(copperblock, "Copper Block");
ModLoader.AddName(coalblock, "Coal Block");
ModLoader.AddName(redstoneblock, "Redstone Block");
ModLoader.AddName(platinumball, "Platinum Ball");
ModLoader.AddName(copperbar, "Copper Bar");
ModLoader.AddName(titaniumbar, "Titanium Bar");
ModLoader.AddName(tinbar, "Tin Bar");
ModLoader.AddName(titaniumboots, "Titanium Boots");
ModLoader.AddName(titaniumleggings, "Titanium Leggings");
ModLoader.AddName(titaniumchestplate, "Titanium Chest Plate");
ModLoader.AddName(titaniumhelmet, "Titanium Helmet");
ModLoader.AddName(pickaxecopper, "Copper Pickaxe");
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.densedirt, 1),
new Object[] {"XX", "XX", Character.valueOf('X'), Block.dirt,});
ModLoader.AddRecipe(new ItemStack(Item.clay, 3),
new Object[] {"X", Character.valueOf('X'), mod_MinecraftMore.claydirt,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.lightdirt, 1),
new Object[] {"XXX", "XOX", "XXX", Character.valueOf('X'), Block.dirt, Character.valueOf('O'), Item.lightStoneDust,});
ModLoader.AddRecipe(new ItemStack(Block.dirt, 4),
new Object[] {"X", Character.valueOf('X'), mod_MinecraftMore.densedirt,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.titaniumboots, 1),
new Object[] {"X X", "X X", Character.valueOf('X'), mod_MinecraftMore.titaniumbar,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.titaniumleggings, 1),
new Object[] {"XXX", "X X", "X X", Character.valueOf('X'), mod_MinecraftMore.titaniumbar,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.titaniumchestplate, 1),
new Object[] {"X X", "XXX", "XXX", Character.valueOf('X'), mod_MinecraftMore.titaniumbar,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.titaniumhelmet, 1),
new Object[] {"XXX", "X X", Character.valueOf('X'), mod_MinecraftMore.titaniumbar,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.copperbricks, 4),
new Object[] {"XX", "XO", Character.valueOf('X'), mod_MinecraftMore.copperbar, Character.valueOf('O'), Item.clay,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.ironbricks, 4),
new Object[] {"XX", "XO", Character.valueOf('X'), Item.ingotIron, Character.valueOf('O'), Item.clay,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.goldbricks, 8),
new Object[] {"XX", "XO", Character.valueOf('X'), Item.ingotGold, Character.valueOf('O'), Item.clay,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.redstonebricks, 4),
new Object[] {"X", "O", "X", Character.valueOf('X'), Item.redstone, Character.valueOf('O'), Block.brick,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.coalbricks, 4),
new Object[] {"X", "O", Character.valueOf('X'), Item.coal, Character.valueOf('O'), Block.brick,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.copperblock, 1),
new Object[] {"OOO", "OOO", "OOO", Character.valueOf('O'), mod_MinecraftMore.copperbar,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.coalblock, 1),
new Object[] {"OOO", "OOO", "OOO", Character.valueOf('O'), Item.coal,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.coalblock, 1),
new Object[] {"OOO", "OOO", "OOO", Character.valueOf('O'), Item.coal,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.redstoneblock, 1),
new Object[] {"OOO", "OOO", "OOO", Character.valueOf('O'), Item.redstone,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.pickaxecopper, 1),
new Object[] {"O", "O", "XXX", Character.valueOf('X'), Item.stick, Character.valueOf('O'), mod_MinecraftMore.copperbar,});
ModLoader.AddSmelting(mod_MinecraftMore.copperore.blockID, new ItemStack(mod_MinecraftMore.copperbar, 1));
ModLoader.AddSmelting(mod_MinecraftMore.titaniumore.blockID, new ItemStack(mod_MinecraftMore.titaniumbar, 1));
ModLoader.AddSmelting(mod_MinecraftMore.tinore.blockID, new ItemStack(mod_MinecraftMore.tinbar, 1));
}
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 15; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(80);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.claydirt.blockID, 16)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 6; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(40);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.platinumore.blockID, 3)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 3; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(30);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.titaniumore.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 18; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(60);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.copperore.blockID, 6)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 17; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(60);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.tinore.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 16; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(80);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.unknownore.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 6; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(40);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(Block.blockGold.blockID, 1)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 7; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(50);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.coalblock.blockID, 2)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 8; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(40);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.redstoneblock.blockID, 2)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 15; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(80);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.unknownore.blockID, 7)).generate(world, rand, randPosX, randPosY, randPosZ);
}
ScotTools.AddBlocks(new Block[] { mod_MinecraftMore.titaniumore }, 3);
ScotTools.AddBlocks(new Block[] { mod_MinecraftMore.platinumore }, 2);
ScotTools.AddBlocks(new Block[] { mod_MinecraftMore.unknownore, mod_MinecraftMore.graphiteore, mod_MinecraftMore.tinore, mod_MinecraftMore.copperore, mod_MinecraftMore.copperblock }, 1);
ScotTools.AddBlocks(new Block[] { mod_MinecraftMore.claydirt, mod_MinecraftMore.densedirt, mod_MinecraftMore.lightdirt }, 1);
}
}
Hi I used scottools and added a tool and everything worked fine till I started minecraft
PLEASE HELP I'M BEGGING YOU
and got an error this is what the error said
Mods loaded: 1
ModLoader Beta 1.7.3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT e9df3db --------
Generated 11/08/11 10:45 PM
Minecraft: Minecraft Beta 1.7.3
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_26, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 4800 Series version 3.3.10907 Compatibility Profile Context, ATI Technologies Inc.
java.lang.StringIndexOutOfBoundsException: String index out of range: 5
at java.lang.String.charAt(Unknown Source)
at hk.a(SourceFile:459)
at ModLoader.AddRecipe(ModLoader.java:370)
at mod_MinecraftMore.<init>(mod_MinecraftMore.java:150)
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 ModLoader.addMod(ModLoader.java:272)
at ModLoader.readFromClassPath(ModLoader.java:1104)
at ModLoader.init(ModLoader.java:812)
at ModLoader.AddAllRenderers(ModLoader.java:183)
at th.<init>(th.java:60)
at th.<clinit>(th.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:318)
at net.minecraft.client.Minecraft.run(SourceFile:716)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 669d519e ----------
My code sigh
package net.minecraft.src;
import java.util.Random;
public class mod_MinecraftMore extends BaseMod
{
public static final ToolMaterial COPPER = new ToolMaterial(1, 220, 12F, 3);
public static final Block densedirt = new BlockDensedirt(97, 0).setHardness(3F).setResistance(4.0F).setBlockName("densedirt");
public static final Block claydirt = new BlockClaydirt(98, 0).setHardness(2F).setResistance(2.0F).setBlockName("claydirt");
public static final Block lightdirt = new BlockLightdirt(99, 0).setHardness(1F).setBlockName("lightdirt");
public static final Block copperore = new BlockCopperOre(100, 0).setHardness(3F).setResistance(3.0F).setBlockName("copperore");
public static final Block platinumore = new BlockPlatinumOre(101, 0).setHardness(3F).setResistance(3.0F).setBlockName("platinumore");
public static final Block titaniumore = new BlockTitaniumOre(102, 0).setHardness(3F).setResistance(5.0F).setBlockName("titaniumore");
public static final Block tinore = new BlockTinOre(103, 0).setHardness(3F).setResistance(5.0F).setBlockName("tinore");
public static final Block unknownore = new BlockUnknownOre(104, 0).setHardness(3F).setResistance(5.0F).setBlockName("unknownore");
public static final Block graphiteore = new BlockGraphiteOre(105, 0).setHardness(3F).setResistance(5.0F).setBlockName("graphiteore");
public static final Block copperbricks = new BlockCopperBricks(106, 0).setHardness(2F).setResistance(10F).setBlockName("copperbricks");
public static final Block ironbricks = new BlockIronBricks(107, 0).setHardness(2F).setResistance(10F).setBlockName("ironbricks");
public static final Block goldbricks = new BlockGoldBricks(108, 0).setHardness(2F).setResistance(10F).setBlockName("goldbricks");
public static final Block redstonebricks = new BlockRedstoneBricks(109, 0).setHardness(2F).setResistance(10F).setBlockName("redstonebricks");
public static final Block coalbricks = new BlockCoalBricks(110, 0).setHardness(2F).setResistance(10F).setBlockName("coalbricks");
public static final Block copperblock = new BlockCopperBlock(111, 0).setHardness(3F).setResistance(12F).setBlockName("copperblock");
public static final Block coalblock = new BlockCoalBlock(112, 0).setHardness(3F).setResistance(12F).setBlockName("coalblock");
public static final Block redstoneblock = new BlockRedstoneBlock(113, 0).setHardness(3F).setResistance(12F).setBlockName("redstoneblock");
public static final Item platinumball = new Item(10000).setItemName("platinumball");
public static final Item copperbar = new Item(10001).setItemName("copperbar");
public static final Item titaniumbar = new Item(10002).setItemName("titaniumbar");
public static final Item tinbar = new Item(10003).setItemName("tinbar");
public static Item titaniumboots = (new ItemArmor(10004, 3, ModLoader.AddArmor("titanium"), 3).setItemName("titaniumboots"));
public static Item titaniumleggings = (new ItemArmor(10005, 3, ModLoader.AddArmor("titanium"), 2).setItemName("titaniumleggings"));
public static Item titaniumchestplate = (new ItemArmor(10006, 3, ModLoader.AddArmor("titanium"), 1).setItemName("titaniumchestplate"));
public static Item titaniumhelmet = (new ItemArmor(10007, 3, ModLoader.AddArmor("titanium"), 0).setItemName("titaniumhelmet"));
public static final Item pickaxecopper = new ItemCustomPickaxe(603, 2, COPPER).setItemName("pickaxecopper");
public String Version()
{
return "1.7.3";
}
public mod_MinecraftMore ()
{
densedirt.blockIndexInTexture = ModLoader.addOverride("/terrain.png" ,"/MinecraftMore/Densedirt.png");
claydirt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/Claydirt.png");
lightdirt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/Lightdirt.png");
copperore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/CopperOre.png");
platinumore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/PlatinumOre.png");
titaniumore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/TitaniumOre.png");
tinore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/TinOre.png");
unknownore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/UnknownOre.png");
graphiteore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/GraphiteOre.png");
copperbricks.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/CopperBricks.png");
ironbricks.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/IronBricks.png");
goldbricks.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/GoldBricks.png");
redstonebricks.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/RedstoneBricks.png");
coalbricks.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/CoalBricks.png");
copperblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/CopperBlock.png");
coalblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/CoalBlock.png");
redstoneblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MinecraftMore/RedstoneBlock.png");
platinumball.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/PlatinumBall.png");
copperbar.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/CopperBar.png");
titaniumbar.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/TitaniumBar.png");
tinbar.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/TinBar.png");
titaniumboots.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/TitaniumBoots.png");
titaniumleggings.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/TitaniumLeggings.png");
titaniumchestplate.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/TitaniumChestplate.png");
titaniumhelmet.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/TitaniumHelmet.png");
pickaxecopper.iconIndex = ModLoader.addOverride("/gui/items.png", "/MinecraftMore/CopperPickaxe.png");
ModLoader.RegisterBlock(densedirt);
ModLoader.RegisterBlock(claydirt);
ModLoader.RegisterBlock(lightdirt);
ModLoader.RegisterBlock(copperore);
ModLoader.RegisterBlock(platinumore);
ModLoader.RegisterBlock(titaniumore);
ModLoader.RegisterBlock(tinore);
ModLoader.RegisterBlock(unknownore);
ModLoader.RegisterBlock(graphiteore);
ModLoader.RegisterBlock(copperbricks);
ModLoader.RegisterBlock(ironbricks);
ModLoader.RegisterBlock(goldbricks);
ModLoader.RegisterBlock(redstonebricks);
ModLoader.RegisterBlock(coalbricks);
ModLoader.RegisterBlock(copperblock);
ModLoader.RegisterBlock(coalblock);
ModLoader.RegisterBlock(redstoneblock);
ModLoader.AddName(densedirt, "Dense Dirt");
ModLoader.AddName(claydirt, "Clay Dirt");
ModLoader.AddName(lightdirt, "Light Dirt");
ModLoader.AddName(copperore, "Copper Ore");
ModLoader.AddName(platinumore, "Platinum Ore");
ModLoader.AddName(titaniumore, "Titanium Ore");
ModLoader.AddName(tinore, "Tin Ore");
ModLoader.AddName(unknownore, "Unknown Ore");
ModLoader.AddName(graphiteore, "Graphite Ore");
ModLoader.AddName(copperbricks, "Copper Bricks");
ModLoader.AddName(ironbricks, "Iron Bricks");
ModLoader.AddName(goldbricks, "Gold Bricks");
ModLoader.AddName(redstonebricks, "Redstone Bricks");
ModLoader.AddName(coalbricks, "Coal Bricks");
ModLoader.AddName(copperblock, "Copper Block");
ModLoader.AddName(coalblock, "Coal Block");
ModLoader.AddName(redstoneblock, "Redstone Block");
ModLoader.AddName(platinumball, "Platinum Ball");
ModLoader.AddName(copperbar, "Copper Bar");
ModLoader.AddName(titaniumbar, "Titanium Bar");
ModLoader.AddName(tinbar, "Tin Bar");
ModLoader.AddName(titaniumboots, "Titanium Boots");
ModLoader.AddName(titaniumleggings, "Titanium Leggings");
ModLoader.AddName(titaniumchestplate, "Titanium Chest Plate");
ModLoader.AddName(titaniumhelmet, "Titanium Helmet");
ModLoader.AddName(pickaxecopper, "Copper Pickaxe");
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.densedirt, 1),
new Object[] {"XX", "XX", Character.valueOf('X'), Block.dirt,});
ModLoader.AddRecipe(new ItemStack(Item.clay, 3),
new Object[] {"X", Character.valueOf('X'), mod_MinecraftMore.claydirt,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.lightdirt, 1),
new Object[] {"XXX", "XOX", "XXX", Character.valueOf('X'), Block.dirt, Character.valueOf('O'), Item.lightStoneDust,});
ModLoader.AddRecipe(new ItemStack(Block.dirt, 4),
new Object[] {"X", Character.valueOf('X'), mod_MinecraftMore.densedirt,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.titaniumboots, 1),
new Object[] {"X X", "X X", Character.valueOf('X'), mod_MinecraftMore.titaniumbar,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.titaniumleggings, 1),
new Object[] {"XXX", "X X", "X X", Character.valueOf('X'), mod_MinecraftMore.titaniumbar,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.titaniumchestplate, 1),
new Object[] {"X X", "XXX", "XXX", Character.valueOf('X'), mod_MinecraftMore.titaniumbar,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.titaniumhelmet, 1),
new Object[] {"XXX", "X X", Character.valueOf('X'), mod_MinecraftMore.titaniumbar,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.copperbricks, 4),
new Object[] {"XX", "XO", Character.valueOf('X'), mod_MinecraftMore.copperbar, Character.valueOf('O'), Item.clay,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.ironbricks, 4),
new Object[] {"XX", "XO", Character.valueOf('X'), Item.ingotIron, Character.valueOf('O'), Item.clay,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.goldbricks, 8),
new Object[] {"XX", "XO", Character.valueOf('X'), Item.ingotGold, Character.valueOf('O'), Item.clay,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.redstonebricks, 4),
new Object[] {"X", "O", "X", Character.valueOf('X'), Item.redstone, Character.valueOf('O'), Block.brick,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.coalbricks, 4),
new Object[] {"X", "O", Character.valueOf('X'), Item.coal, Character.valueOf('O'), Block.brick,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.copperblock, 1),
new Object[] {"OOO", "OOO", "OOO", Character.valueOf('O'), mod_MinecraftMore.copperbar,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.coalblock, 1),
new Object[] {"OOO", "OOO", "OOO", Character.valueOf('O'), Item.coal,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.coalblock, 1),
new Object[] {"OOO", "OOO", "OOO", Character.valueOf('O'), Item.coal,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.redstoneblock, 1),
new Object[] {"OOO", "OOO", "OOO", Character.valueOf('O'), Item.redstone,});
ModLoader.AddRecipe(new ItemStack(mod_MinecraftMore.pickaxecopper, 1),
new Object[] {"O", "O", "XXX", Character.valueOf('X'), Item.stick, Character.valueOf('O'), mod_MinecraftMore.copperbar,});
ModLoader.AddSmelting(mod_MinecraftMore.copperore.blockID, new ItemStack(mod_MinecraftMore.copperbar, 1));
ModLoader.AddSmelting(mod_MinecraftMore.titaniumore.blockID, new ItemStack(mod_MinecraftMore.titaniumbar, 1));
ModLoader.AddSmelting(mod_MinecraftMore.tinore.blockID, new ItemStack(mod_MinecraftMore.tinbar, 1));
}
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 15; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(80);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.claydirt.blockID, 16)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 6; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(40);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.platinumore.blockID, 3)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 3; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(30);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.titaniumore.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 18; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(60);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.copperore.blockID, 6)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 17; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(60);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.tinore.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 16; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(80);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.unknownore.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 6; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(40);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(Block.blockGold.blockID, 1)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 7; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(50);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.coalblock.blockID, 2)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 8; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(40);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.redstoneblock.blockID, 2)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 15; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(80);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MinecraftMore.unknownore.blockID, 7)).generate(world, rand, randPosX, randPosY, randPosZ);
}
ScotTools.AddBlocks(new Block[] { mod_MinecraftMore.titaniumore }, 3);
ScotTools.AddBlocks(new Block[] { mod_MinecraftMore.platinumore }, 2);
ScotTools.AddBlocks(new Block[] { mod_MinecraftMore.unknownore, mod_MinecraftMore.graphiteore, mod_MinecraftMore.tinore, mod_MinecraftMore.copperore, mod_MinecraftMore.copperblock }, 1);
ScotTools.AddBlocks(new Block[] { mod_MinecraftMore.claydirt, mod_MinecraftMore.densedirt, mod_MinecraftMore.lightdirt }, 1);
}
}
Hmm thanks, now I have another questions:
1 - How can the block name be show on the game;
2 - How to make a block that can be coloured with dyes;
3 - I had created a simple block, can be breaked with a pickaxe, but the speed is = for all the picks (ex. the speed of a wooden pick its = to the speed of a diamond pick...)
1. With ModLoader add this function:
ModLoader.addName(<item to add name to>, "<Name that shows in game>");
Example:
ModLoader.addName(oreTutorial, "Tutorial Ore");
2. A little complex... Look at how wool does it in BlockWool.java and RecipesDyes.java.
3. Look in ItemPickaxe.java in the blocksEffectiveAgainst[]. Or, learn a tools API like ScotTools or ShockAhPI.
I don't have it up yet.
I recompiled and tried both. i had this issue before and then i fixed it but know i have know idea on how to do it now,
originally it was because i had Mod_Tools, i changed it to mod_Tools and it worked. but now i dont know what to do
Can I see the code? There's probably one little mistake you made that's causing all the trouble. I used to have this issue as well, but I'm not sure how I fixed it either.
No, i use mod loader my self. what you do is you type (this is a pickaxe example)
ModLoader.AddRecipe(new ItemStack(Pickaxe, 1), new Object[]{
"***", " * ", " * ", Character.valueOf('*'), Block.dirt
)};
I'm assuming the closing parts should be there as well.
Thanks, I thought it was something within the mod_whatever.java file and not the CraftingManager one, as that would get replaced everytime if one did.
Recompile and reobfuscate.
Then in the reobf file there should be your modded classes.
You'll need your edited terrain.png as well, yes.
http://raptr.com/UrbanNinja6?src=em_gamesm" target=""
TOOLS
ORE GEN
http://raptr.com/UrbanNinja6?src=em_gamesm" target=""
PLEASE HELP I'M BEGGING YOU
and got an error this is what the error said
My code sigh
Try putting your mod in then modloader
with modloader you dont need to have the editted terrain.png you use
sword ex.
1. With ModLoader add this function:
Example:
2. A little complex... Look at how wool does it in BlockWool.java and RecipesDyes.java.
3. Look in ItemPickaxe.java in the blocksEffectiveAgainst[]. Or, learn a tools API like ScotTools or ShockAhPI.
In your constructor, where you registered your blocks.
i fixed it. it was something wrong with the mcp