Using glass bottles in a crafting recipe is causing 6 recompile errors. I don't get why...I've done crafting recipes before. http://i.imgur.com/5H3IX.png
Using glass bottles in a crafting recipe is causing 6 recompile errors. I don't get why...I've done crafting recipes before. http://i.imgur.com/5H3IX.png
Mods loaded: 1
ModLoader 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 9f578458 --------
Generated 6/20/12 10:34 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_25, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3450 version 2.1.8787, ATI Technologies Inc.
java.lang.Error: Unresolved compilation problems:
Syntax error on token ",", Expression expected after this token
Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )
Invalid character constant
at net.minecraft.src.mod_Block.<init>(mod_Block.java:6)
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:287)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
at net.minecraft.src.ModLoader.init(ModLoader.java:849)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
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:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 4e9f13f1 ----------
My two classes I made for the mod:
package net.minecraft.src;
public class mod_Block extends BaseMod
{
public static final Block CobblestoneBrick = new BlockCobblestoneBrick(123, 0,).setHardness(3F).setResistance(4F).setLightValue(1F).setBlockName("Cobblestone Brick");
public void load()
{
CobblestoneBrick.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "C:\Users\USERNAME\Desktop\mcp\mcp62\eclipse\Client\bin\Paranoidweazle's CastleMod v1.0/CobblestoneBrick.png");
ModLoader.registerBlock(CobblestoneBrick);
ModLoader.addName(CobblestoneBrick, "Cobblestone Brick");
ModLoader.addRecipe(new ItemStack(CobblestoneBrick, 4), new Object [] {"##", "##", Character.valueOf('#'), Block.cobblestone});
}
public String getVersion()
{
return "1.2.5";
}
}
package net.minecraft.src;
import java.util.Random;
public class BlockCobblestoneBrick
{
public BlockCobblestoneBrick(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random, int j)
{
return mod_Block.CobblestoneBrick.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
run on eclipse to see all the errors
I think the main problem is that the variables, I and J have not been defined on BlockCobblestoneBrick.Java ( I could not understand that part of the tutorial on what im supposed to type)
also if someone could look into making it one class, if possible, that would be appreciated
also can you check the texture path, to see if it is correctly written? (you might have to change/ remove to run the code as I have not provided the actual pic.
I need some help. I had a mob spawning in my custom biome. I added a second mob to spawn, and now neither will spawn. Can I have some help? The two mobs in question are "alienruffian" and "alienarcher".
mod_MangMod
package net.minecraft.src;
import java.util.Map;
import net.minecraft.client.Minecraft;
import java.util.List;
public class mod_MangMod extends BaseMod
{
public static final Block aliengrass = new aliengrass(125, 0).setBlockName("aliengrass").setHardness(0.5F).setResistance(4F);
public static int aliengrassbottom = ModLoader.addOverride("/terrain.png", "/mangmod/aliengrassbottom.png");
public static int aliengrasstop = ModLoader.addOverride("/terrain.png", "/mangmod/aliengrasstop.png");
public static int aliengrassside = ModLoader.addOverride("/terrain.png", "/mangmod/aliengrassside.png");
public static final Block aliendirt = new aliendirt(126, 0).setBlockName("aliendirt").setHardness(0.5F).setResistance(4F);
public static final Item cactusjuice = new Item(5000).setItemName("cactusjuice");
public static final Item applejuice = new Item(5001).setItemName("applejuice");
public static final Item donut = new ItemFood(5002, 4, 2F, false).setItemName("donut");
public static final Item glazeddonut = new ItemFood(5003, 6, 1F, false).setItemName("glazeddonut");
public static final Item diamondbucket = new Item(5004).setItemName("diamondbucket");
public static final Item orange = new ItemFood(5005, 4, 4F, false).setItemName("orange");
public static final Item bacon = new ItemFood(5006, 9, 1F, false).setItemName("bacon");
public static final Item eggsandwich = new ItemFood(5007, 11, 1F, false).setItemName("eggsandwich");
public static final Item tinyalien = new Item(5008).setItemName("tinyalien");
public static final Item tinyzombie = new tinyzombie(5009).setItemName("tinyzombie");
public static final Item alienflesh = new Item(5010).setItemName("alienflesh");
public static final Item lemon = new lemon(5011).setItemName("lemon");
public void load()
{
ModLoader.registerEntityID(innocentvillager.class, "innocentvillager", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(innocentvillager.class, 5, 1, 1, EnumCreatureType.creature, new BiomeGenBase[]
{
BiomeGenBase.plains,
BiomeGenBase.desert,
BiomeGenBase.desertHills,
BiomeGenBase.beach,
BiomeGenBase.extremeHills,
BiomeGenBase.extremeHillsEdge,
BiomeGenBase.forest,
BiomeGenBase.forestHills,
BiomeGenBase.taiga,
BiomeGenBase.taigaHills,
BiomeGenBase.swampland,
BiomeGenBase.river,
BiomeGenBase.jungle,
BiomeGenBase.jungleHills
});
ModLoader.registerEntityID(alienruffian.class, "alienruffian", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(alienruffian.class, 35, 1, 1, EnumCreatureType.creature, new BiomeGenBase[]
{
mod_AlienBiome.alienbiome
});
ModLoader.registerEntityID(alienarcher.class, "alienarcher", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(alienarcher.class, 100, 1, 5, EnumCreatureType.creature, new BiomeGenBase[]
{
mod_AlienBiome.alienbiome
});
ModLoader.registerEntityID(tinyzombie2.class, "Tiny Zombie", ModLoader.getUniqueEntityId());
ModLoader.registerBlock(aliengrass);
ModLoader.addName(aliengrass, "Alien Grass");
ModLoader.addRecipe(new ItemStack(aliengrass, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
aliendirt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mangmod/aliendirt.png");
ModLoader.registerBlock(aliendirt);
ModLoader.addName(aliendirt, "Alien Dirt");
cactusjuice.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/cactusjuice.png");
ModLoader.addName(cactusjuice, "Cactus Juice");
ModLoader.addRecipe(new ItemStack(cactusjuice, 1), new Object [] {"#", "#", "%", Character.valueOf('#'), Block.cactus, Character.valueOf('%'), Item.glassBottle});
applejuice.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/applejuice.png");
ModLoader.addName(applejuice, "Apple Juice");
ModLoader.addRecipe(new ItemStack(applejuice, 1), new Object [] {"#", "#", "%", Character.valueOf('#'), Item.appleRed, Character.valueOf('%'), Item.glassBottle});
donut.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/donut.png");
ModLoader.addName(donut, "Donut");
ModLoader.addRecipe(new ItemStack(donut, 4), new Object [] {"###", "# #", "###", Character.valueOf('#'), Item.wheat});
glazeddonut.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/glazeddonut.png");
ModLoader.addName(glazeddonut, "Glazed Donut");
ModLoader.addRecipe(new ItemStack(glazeddonut, 1), new Object [] {"#", "%", Character.valueOf('#'), Item.sugar, Character.valueOf('%'), donut});
diamondbucket.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/diamondbucket.png");
ModLoader.addName(diamondbucket, "Diamond Bucket");
ModLoader.addRecipe(new ItemStack(diamondbucket, 1), new Object [] {"# #", " # ", Character.valueOf('#'), Item.diamond});
orange.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/orange.png");
ModLoader.addName(orange, "Orange");
bacon.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/bacon.png");
ModLoader.addName(bacon, "Bacon");
ModLoader.addSmelting(Item.porkCooked.shiftedIndex, new ItemStack(bacon, 1));
eggsandwich.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/eggsandwich.png");
ModLoader.addName(eggsandwich, "Egg Sandwich");
ModLoader.addRecipe(new ItemStack(eggsandwich, 1), new Object [] {"#", "%", "#", Character.valueOf('#'), Item.bread, Character.valueOf('%'), Item.egg});
tinyalien.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/tinyalien.png");
ModLoader.addName(tinyalien, "Tiny Alien");
ModLoader.addRecipe(new ItemStack(tinyalien, 1), new Object [] {"#", "%", Character.valueOf('#'), alienflesh, Character.valueOf('%'), Item.diamond});
tinyzombie.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/tinyzombie.png");
ModLoader.addName(tinyzombie, "Tiny Zombie");
ModLoader.addRecipe(new ItemStack(tinyzombie, 1), new Object [] {"#", "%", Character.valueOf('#'), Item.rottenFlesh, Character.valueOf('%'), Item.diamond});
alienflesh.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/alienflesh.png");
ModLoader.addName(alienflesh, "Alien Flesh");
lemon.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/lemon.png");
ModLoader.addName(lemon, "Lemon");
}
public void addRenderer(Map map)
{
map.put(innocentvillager.class, new RenderBiped(new ModelBiped(), 0.5F));
map.put(tinyzombie2.class, new RenderBiped(new ModelZombie(), 0.5F));
}
public String getVersion()
{
return "1.2.5";
}
}
Mods loaded: 1
ModLoader 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 9f578458 --------
Generated 6/20/12 10:34 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_25, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3450 version 2.1.8787, ATI Technologies Inc.
java.lang.Error: Unresolved compilation problems:
Syntax error on token ",", Expression expected after this token
Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )
Invalid character constant
at net.minecraft.src.mod_Block.<init>(mod_Block.java:6)
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:287)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
at net.minecraft.src.ModLoader.init(ModLoader.java:849)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
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:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 4e9f13f1 ----------
My two classes I made for the mod:
package net.minecraft.src;
public class mod_Block extends BaseMod
{
public static final Block CobblestoneBrick = new BlockCobblestoneBrick(123, 0,).setHardness(3F).setResistance(4F).setLightValue(1F).setBlockName("Cobblestone Brick");
public void load()
{
CobblestoneBrick.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "C:\Users\USERNAME\Desktop\mcp\mcp62\eclipse\Client\bin\Paranoidweazle's CastleMod v1.0/CobblestoneBrick.png");
ModLoader.registerBlock(CobblestoneBrick);
ModLoader.addName(CobblestoneBrick, "Cobblestone Brick");
ModLoader.addRecipe(new ItemStack(CobblestoneBrick, 4), new Object [] {"##", "##", Character.valueOf('#'), Block.cobblestone});
}
public String getVersion()
{
return "1.2.5";
}
}
package net.minecraft.src;
import java.util.Random;
public class BlockCobblestoneBrick
{
public BlockCobblestoneBrick(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random, int j)
{
return mod_Block.CobblestoneBrick.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
run on eclipse to see all the errors
I think the main problem is that the variables, I and J have not been defined on BlockCobblestoneBrick.Java ( I could not understand that part of the tutorial on what im supposed to type)
also if someone could look into making it one class, if possible, that would be appreciated
also can you check the texture path, to see if it is correctly written? (you might have to change/ remove to run the code as I have not provided the actual pic.
thanks in advance for any help
get rid of the comma after the zero in this code-(123,0,)
This is the correct code:
public static final Block CobblestoneBrick = new BlockCobblestoneBrick(123, 0).setHardness(3F).setResistance(4F).setLightValue(1F).setBlockName("Cobblestone Brick");
get rid of the comma after the zero in this code-(123,0,)-:
that just gives me another error.
dont know, why but it tells me .setHardness (or whatever happens to be after the bracket) that it's not a method, run it on eclipse, to see it
Mods loaded: 1
ModLoader 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 9f578458 --------
Generated 6/20/12 10:34 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_25, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3450 version 2.1.8787, ATI Technologies Inc.
java.lang.Error: Unresolved compilation problems:
Syntax error on token ",", Expression expected after this token
Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )
Invalid character constant
at net.minecraft.src.mod_Block.<init>(mod_Block.java:6)
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:287)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
at net.minecraft.src.ModLoader.init(ModLoader.java:849)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
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:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 4e9f13f1 ----------
My two classes I made for the mod:
package net.minecraft.src;
public class mod_Block extends BaseMod
{
public static final Block CobblestoneBrick = new BlockCobblestoneBrick(123, 0,).setHardness(3F).setResistance(4F).setLightValue(1F).setBlockName("Cobblestone Brick");
public void load()
{
CobblestoneBrick.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "C:\Users\USERNAME\Desktop\mcp\mcp62\eclipse\Client\bin\Paranoidweazle's CastleMod v1.0/CobblestoneBrick.png");
ModLoader.registerBlock(CobblestoneBrick);
ModLoader.addName(CobblestoneBrick, "Cobblestone Brick");
ModLoader.addRecipe(new ItemStack(CobblestoneBrick, 4), new Object [] {"##", "##", Character.valueOf('#'), Block.cobblestone});
}
public String getVersion()
{
return "1.2.5";
}
}
package net.minecraft.src;
import java.util.Random;
public class BlockCobblestoneBrick
{
public BlockCobblestoneBrick(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random, int j)
{
return mod_Block.CobblestoneBrick.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
run on eclipse to see all the errors
I think the main problem is that the variables, I and J have not been defined on BlockCobblestoneBrick.Java ( I could not understand that part of the tutorial on what im supposed to type)
also if someone could look into making it one class, if possible, that would be appreciated
also can you check the texture path, to see if it is correctly written? (you might have to change/ remove to run the code as I have not provided the actual pic.
many thanks
but however there is now a problem with the way I pathed my texture file
new error log
Mods loaded: 1
ModLoader 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 9f578458 --------
Generated 6/21/12 1:01 AM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_25, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3450 version 2.1.8787, ATI Technologies Inc.
java.lang.ExceptionInInitializerError
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:287)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
at net.minecraft.src.ModLoader.init(ModLoader.java:849)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
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:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Slot 123 is already occupied by [email protected] when adding [email protected]
at net.minecraft.src.Block.<init>(Block.java:232)
at net.minecraft.src.Block.<init>(Block.java:267)
at net.minecraft.src.BlockCobblestoneBrick.<init>(BlockCobblestoneBrick.java:9)
at net.minecraft.src.mod_Block.<clinit>(mod_Block.java:6)
... 15 more
--- END ERROR REPORT 55c9d955 ----------
once again thanks, I've been trying to solve this problem by myself for about a week, and if someone could help on this it would be grand
many thanks
but however there is now a problem with the way I pathed my texture file
new error log
Mods loaded: 1
ModLoader 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 9f578458 --------
Generated 6/21/12 1:01 AM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_25, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3450 version 2.1.8787, ATI Technologies Inc.
java.lang.ExceptionInInitializerError
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:287)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
at net.minecraft.src.ModLoader.init(ModLoader.java:849)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
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:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Slot 123 is already occupied by [email protected] when adding [email protected]
at net.minecraft.src.Block.<init>(Block.java:232)
at net.minecraft.src.Block.<init>(Block.java:267)
at net.minecraft.src.BlockCobblestoneBrick.<init>(BlockCobblestoneBrick.java:9)
at net.minecraft.src.mod_Block.<clinit>(mod_Block.java:6)
... 15 more
--- END ERROR REPORT 55c9d955 ----------
once again thanks, I've been trying to solve this problem by myself for about a week, and if someone could help on this it would be grand
for the path just do /paranoidyadaydayda/cobblestonebrick.png..
for your blocks, you need to change the id to something like 160+
thanks for noticing that, Id is changed
but, I'm still having trouble with the texture path:
here is the image directory:
C:\Users\Mike Papanikolaou\Desktop\mcp\mcp62\eclipse\Client\bin\mods
here is what I put in:
Mods loaded: 2
ModLoader 1.2.5
mod_Block 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 27d8df75 --------
Generated 6/21/12 2:20 AM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_25, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3450 version 2.1.8787, ATI Technologies Inc.
java.lang.RuntimeException: java.lang.Exception: Image not found: mcp62/eclipse/Client/bin/mods/CobblestoneBrick.png
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1451)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1104)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:922)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: mcp62/eclipse/Client/bin/mods/CobblestoneBrick.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1024)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1443)
... 5 more
--- END ERROR REPORT aceaa472 ----------
also, why does it say 2 mods loaded? (edit: unless modloader counts as a mod,in that case disregard this)
I have been a bit absent from the tutorials the last few days. I've had a look through the pages and I think everyone's issues have been solved. Please let me know if yours hasn't and I will look into 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."
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I have been a bit absent from the tutorials the last few days. I've had a look through the pages and I think everyone's issues have been solved. Please let me know if yours hasn't and I will look into it.
I saw a more simple code once before...I would prefer using that. Plus, I want each item to have the exact same chance of being dropped as the other, not common, then semi common, then rare.
I saw a more simple code once before...I would prefer using that. Plus, I want each item to have the exact same chance of being dropped as the other, not common, then semi common, then rare.
Not sure, but this may work(took it from the cow, modified it so it should drop 1 or 2 items per death but might not work):
protected void dropFewItems(boolean par1, int par2)
{
int i = rand.nextInt(3) + 1 + rand.nextInt(1 + par2);
for (int j = 0; j < i; j++)
{
dropItem(Item.leather.shiftedIndex, 1);
}
i = rand.nextInt(3) + 1 + rand.nextInt(1 + par2);
for (int k = 0; k < i; k++)
{
if (isBurning())
{
dropItem(Item.beefCooked.shiftedIndex, 1);
}
else
{
dropItem(Item.beefRaw.shiftedIndex, 1);
}
}
}
Okay I just tested that and it was pretty random, but never dropped nothing.
For the ore generation can you be more specific on how to edit the size of the vien. I don't see any 3's inside of a bracket (like you said) when I'm trying to mod my ore generation. I've tested it out, and your default code gives me more ore in the vien than a coal vien for my ore which is rarer than diamonds. I would really like to know how to fix this. Thanks =].
Rollback Post to RevisionRollBack
-AstramG
To post a comment, please login or register a new account.
Oh okay. I understand now. Well I'll take your code and see if I can get it to work, okay?
Are they completely not being added, or just not being added to creative menu?
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumcactusjuice.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/cactusjuice.png"); ModLoader.addName(cactusjuice, "Cactus Juice"); ModLoader.addRecipe(new ItemStack(cactusjuice, 1), new Object [] {""#", "#", "%", Character.valueOf('#'), Block.Cactus, Character.valueOf('%'), Item.GlassBottle}); applejuice.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/applejuice.png"); ModLoader.addName(applejuice, "Apple Juice"); ModLoader.addRecipe(new ItemStack(applejuice, 1), new Object [] {"#", "#", "%", Character.valueOf('#'), Item.appleRed, Character.valueOf('%'), Item.GlassBottle});-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI think this is just a typo:
ModLoader.addRecipe(new ItemStack(cactusjuice, 1), new Object [] {""#", "#", "%", Character.valueOf('#'), Block.Cactus, Character.valueOf('%'), Item.GlassBottle});has 2 quotes right after the Object [] {, there should be only one. Better use Eclipse or something similar. it helps a lot!-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThanks, it's working now.
error report:
My two classes I made for the mod:
package net.minecraft.src; public class mod_Block extends BaseMod { public static final Block CobblestoneBrick = new BlockCobblestoneBrick(123, 0,).setHardness(3F).setResistance(4F).setLightValue(1F).setBlockName("Cobblestone Brick"); public void load() { CobblestoneBrick.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "C:\Users\USERNAME\Desktop\mcp\mcp62\eclipse\Client\bin\Paranoidweazle's CastleMod v1.0/CobblestoneBrick.png"); ModLoader.registerBlock(CobblestoneBrick); ModLoader.addName(CobblestoneBrick, "Cobblestone Brick"); ModLoader.addRecipe(new ItemStack(CobblestoneBrick, 4), new Object [] {"##", "##", Character.valueOf('#'), Block.cobblestone}); } public String getVersion() { return "1.2.5"; } }package net.minecraft.src; import java.util.Random; public class BlockCobblestoneBrick { public BlockCobblestoneBrick(int i, int j) { super(i, j, Material.rock); } public int idDropped(int i, Random random, int j) { return mod_Block.CobblestoneBrick.blockID; } public int quantityDropped(Random random) { return 1; } }run on eclipse to see all the errors
I think the main problem is that the variables, I and J have not been defined on BlockCobblestoneBrick.Java ( I could not understand that part of the tutorial on what im supposed to type)
also if someone could look into making it one class, if possible, that would be appreciated
also can you check the texture path, to see if it is correctly written? (you might have to change/ remove to run the code as I have not provided the actual pic.
thanks in advance for any help
-
View User Profile
-
View Posts
-
Send Message
Curse Premiummod_MangMod
package net.minecraft.src; import java.util.Map; import net.minecraft.client.Minecraft; import java.util.List; public class mod_MangMod extends BaseMod { public static final Block aliengrass = new aliengrass(125, 0).setBlockName("aliengrass").setHardness(0.5F).setResistance(4F); public static int aliengrassbottom = ModLoader.addOverride("/terrain.png", "/mangmod/aliengrassbottom.png"); public static int aliengrasstop = ModLoader.addOverride("/terrain.png", "/mangmod/aliengrasstop.png"); public static int aliengrassside = ModLoader.addOverride("/terrain.png", "/mangmod/aliengrassside.png"); public static final Block aliendirt = new aliendirt(126, 0).setBlockName("aliendirt").setHardness(0.5F).setResistance(4F); public static final Item cactusjuice = new Item(5000).setItemName("cactusjuice"); public static final Item applejuice = new Item(5001).setItemName("applejuice"); public static final Item donut = new ItemFood(5002, 4, 2F, false).setItemName("donut"); public static final Item glazeddonut = new ItemFood(5003, 6, 1F, false).setItemName("glazeddonut"); public static final Item diamondbucket = new Item(5004).setItemName("diamondbucket"); public static final Item orange = new ItemFood(5005, 4, 4F, false).setItemName("orange"); public static final Item bacon = new ItemFood(5006, 9, 1F, false).setItemName("bacon"); public static final Item eggsandwich = new ItemFood(5007, 11, 1F, false).setItemName("eggsandwich"); public static final Item tinyalien = new Item(5008).setItemName("tinyalien"); public static final Item tinyzombie = new tinyzombie(5009).setItemName("tinyzombie"); public static final Item alienflesh = new Item(5010).setItemName("alienflesh"); public static final Item lemon = new lemon(5011).setItemName("lemon"); public void load() { ModLoader.registerEntityID(innocentvillager.class, "innocentvillager", ModLoader.getUniqueEntityId()); ModLoader.addSpawn(innocentvillager.class, 5, 1, 1, EnumCreatureType.creature, new BiomeGenBase[] { BiomeGenBase.plains, BiomeGenBase.desert, BiomeGenBase.desertHills, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.taiga, BiomeGenBase.taigaHills, BiomeGenBase.swampland, BiomeGenBase.river, BiomeGenBase.jungle, BiomeGenBase.jungleHills }); ModLoader.registerEntityID(alienruffian.class, "alienruffian", ModLoader.getUniqueEntityId()); ModLoader.addSpawn(alienruffian.class, 35, 1, 1, EnumCreatureType.creature, new BiomeGenBase[] { mod_AlienBiome.alienbiome }); ModLoader.registerEntityID(alienarcher.class, "alienarcher", ModLoader.getUniqueEntityId()); ModLoader.addSpawn(alienarcher.class, 100, 1, 5, EnumCreatureType.creature, new BiomeGenBase[] { mod_AlienBiome.alienbiome }); ModLoader.registerEntityID(tinyzombie2.class, "Tiny Zombie", ModLoader.getUniqueEntityId()); ModLoader.registerBlock(aliengrass); ModLoader.addName(aliengrass, "Alien Grass"); ModLoader.addRecipe(new ItemStack(aliengrass, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt}); aliendirt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mangmod/aliendirt.png"); ModLoader.registerBlock(aliendirt); ModLoader.addName(aliendirt, "Alien Dirt"); cactusjuice.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/cactusjuice.png"); ModLoader.addName(cactusjuice, "Cactus Juice"); ModLoader.addRecipe(new ItemStack(cactusjuice, 1), new Object [] {"#", "#", "%", Character.valueOf('#'), Block.cactus, Character.valueOf('%'), Item.glassBottle}); applejuice.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/applejuice.png"); ModLoader.addName(applejuice, "Apple Juice"); ModLoader.addRecipe(new ItemStack(applejuice, 1), new Object [] {"#", "#", "%", Character.valueOf('#'), Item.appleRed, Character.valueOf('%'), Item.glassBottle}); donut.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/donut.png"); ModLoader.addName(donut, "Donut"); ModLoader.addRecipe(new ItemStack(donut, 4), new Object [] {"###", "# #", "###", Character.valueOf('#'), Item.wheat}); glazeddonut.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/glazeddonut.png"); ModLoader.addName(glazeddonut, "Glazed Donut"); ModLoader.addRecipe(new ItemStack(glazeddonut, 1), new Object [] {"#", "%", Character.valueOf('#'), Item.sugar, Character.valueOf('%'), donut}); diamondbucket.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/diamondbucket.png"); ModLoader.addName(diamondbucket, "Diamond Bucket"); ModLoader.addRecipe(new ItemStack(diamondbucket, 1), new Object [] {"# #", " # ", Character.valueOf('#'), Item.diamond}); orange.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/orange.png"); ModLoader.addName(orange, "Orange"); bacon.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/bacon.png"); ModLoader.addName(bacon, "Bacon"); ModLoader.addSmelting(Item.porkCooked.shiftedIndex, new ItemStack(bacon, 1)); eggsandwich.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/eggsandwich.png"); ModLoader.addName(eggsandwich, "Egg Sandwich"); ModLoader.addRecipe(new ItemStack(eggsandwich, 1), new Object [] {"#", "%", "#", Character.valueOf('#'), Item.bread, Character.valueOf('%'), Item.egg}); tinyalien.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/tinyalien.png"); ModLoader.addName(tinyalien, "Tiny Alien"); ModLoader.addRecipe(new ItemStack(tinyalien, 1), new Object [] {"#", "%", Character.valueOf('#'), alienflesh, Character.valueOf('%'), Item.diamond}); tinyzombie.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/tinyzombie.png"); ModLoader.addName(tinyzombie, "Tiny Zombie"); ModLoader.addRecipe(new ItemStack(tinyzombie, 1), new Object [] {"#", "%", Character.valueOf('#'), Item.rottenFlesh, Character.valueOf('%'), Item.diamond}); alienflesh.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/alienflesh.png"); ModLoader.addName(alienflesh, "Alien Flesh"); lemon.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/lemon.png"); ModLoader.addName(lemon, "Lemon"); } public void addRenderer(Map map) { map.put(innocentvillager.class, new RenderBiped(new ModelBiped(), 0.5F)); map.put(tinyzombie2.class, new RenderBiped(new ModelZombie(), 0.5F)); } public String getVersion() { return "1.2.5"; } }get rid of the comma after the zero in this code-(123,0,)
This is the correct code:
public static final Block CobblestoneBrick = new BlockCobblestoneBrick(123, 0).setHardness(3F).setResistance(4F).setLightValue(1F).setBlockName("Cobblestone Brick");that just gives me another error.
dont know, why but it tells me .setHardness (or whatever happens to be after the bracket) that it's not a method, run it on eclipse, to see it
add the "extends Block" to your block file.
many thanks
but however there is now a problem with the way I pathed my texture file
new error log
edit: the line of code for the texture:
CobblestoneBrick.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "C:\Users\USERNAME\Desktop\mcp\mcp62\eclipse\Client\bin\Paranoidweazle's CastleMod v1.0/CobblestoneBrick.png");it is the exact path to my image, with the exception of USERNAME which replaces my user name
for the path just do /paranoidyadaydayda/cobblestonebrick.png..
for your blocks, you need to change the id to something like 160+
thanks for noticing that, Id is changed
but, I'm still having trouble with the texture path:
here is the image directory:
C:\Users\Mike Papanikolaou\Desktop\mcp\mcp62\eclipse\Client\bin\mods
here is what I put in:
CobblestoneBrick.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "mcp62/eclipse/Client/bin/mods/CobblestoneBrick.png");and here is the error report:
I have been a bit absent from the tutorials the last few days. I've had a look through the pages and I think everyone's issues have been solved. Please let me know if yours hasn't and I will look into it.
together they are powerful beyond imagination."
mod_ classes must have a lowercase.
instead of
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI tried to help as much as I could
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumNot sure, but this may work(took it from the cow, modified it so it should drop 1 or 2 items per death but might not work):
protected void dropFewItems(boolean par1, int par2) { int i = rand.nextInt(3) + 1 + rand.nextInt(1 + par2); for (int j = 0; j < i; j++) { dropItem(Item.leather.shiftedIndex, 1); } i = rand.nextInt(3) + 1 + rand.nextInt(1 + par2); for (int k = 0; k < i; k++) { if (isBurning()) { dropItem(Item.beefCooked.shiftedIndex, 1); } else { dropItem(Item.beefRaw.shiftedIndex, 1); } } }Okay I just tested that and it was pretty random, but never dropped nothing.
-
View User Profile
-
View Posts
-
Send Message
Curse Premium-
View User Profile
-
View Posts
-
Send Message
Curse Premium