and excactly where i should put my png's for testing not for final version (just tell me what you do when your testing)
In MCP: go to jars/bin/minecraft.jar then make a folder in the minecraft.jar, name it whatever you want, and put your pictures into it. Then just replace the "pathtoyourfile" to the name of the folder you made.
I'm begging someone to post an exact line/information of the purple beam of light when you kill the ender dragon, I been doing resreach about the purple beams of light for somewhat like 20 hours :(. Please help me I am getting really frustrated, becasue it seems that the OnDeathUpdate() doesn't even have the line!!!!
Someone help please.
help, I made my mod and installed it, but when i wanted to change it i did and went through the recompile thing again, but it doesn't update the class files in the reobf folder and when i deleted them, won't even place them again. In terminal (i am on a mac) this appears
Comp-DG-iMac-2:mcp61 compdg$ bash recompile.sh
== MCP 6.1 (data: 6.1, client: 1.2.4, server: 1.2.4) ==
# found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, param csvs, astyle, astyle config
== Recompiling client ==
> Cleaning bin
> Recompiling
- Done in 18.33 seconds
!! Can not find server sources, try decompiling !!
Hi im new with modding and i need some help: when i install modloader for 1.2.4 and then decompile i always get errors that make no sense. i can decompile with no modloader. i always use a brand new mcp folder and minecraft (bin) folder. i do all the change directory -> MCP, bash cleanup.sh and that stuff, but i always get errors. can you help me fix this? by the way im using a mac
hey me again .. i found oit how to use damage blocks with metadata ..
i got my mod working with all my own textures and all the recipes ..
and when i use the recipes it returns the right block with the right name
but i have 1 problem
for example i have number blocks 0-9 and i whant to place block number9 ... when its placed down it is shown and the null block (the first block in my meta data ...
i think it has somethign to do with this
public int getPlacedBlockMetadata(int par1)
{
return par1;
}
but i dont know ho i cna use that so when i place a block it will place the right block and not the first block in metadata
can you help ?
You need to create an item that places the block and sets its metadata.
iconIndex should be used because it is actually the icon/texture of the item. ItemAFruit should be afruit because that is what you defined your item as being when you initialised it in your public static final line.
All classes will show in mcp/reobf/minecraft once the operation has completed.
Put all of those classes into a zip then into the mods folder in .minecraft that has a jar with ModLoader installed OR put the classes straight into the jar with ModLoader.
help, I made my mod and installed it, but when i wanted to change it i did and went through the recompile thing again, but it doesn't update the class files in the reobf folder and when i deleted them, won't even place them again. In terminal (i am on a mac) this appears
Comp-DG-iMac-2:mcp61 compdg$ bash recompile.sh
== MCP 6.1 (data: 6.1, client: 1.2.4, server: 1.2.4) ==
# found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, param csvs, astyle, astyle config
== Recompiling client ==
> Cleaning bin
> Recompiling
- Done in 18.33 seconds
!! Can not find server sources, try decompiling !!
That is just the recompiler. You need to run the reobfuscator again (reobfuscate.sh).
I don't know if you're taking suggestions for tutorials, but i'd definitely like to see a custom modeled block
tutorial.
I'll add these two to the list of tutorials to make, but I might not get to them for awhile.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
iconIndex should be used because it is actually the icon/texture of the item. ItemAFruit should be afruit because that is what you defined your item as being when you initialised it in your public static final line. Steps:
Run recompile.bat/sh
Run reobfuscate.bat/sh
All classes will show in mcp/reobf/minecraft once the operation has completed.
Put all of those classes into a zip then into the mods folder in .minecraft that has a jar with ModLoader installed OR put the classes straight into the jar with ModLoader.
Done!
That is just the recompiler. You need to run the reobfuscator again (reobfuscate.sh). I'll add these two to the list of tutorials to make, but I might not get to them for awhile.
package net.minecraft.src;
import java.util.Random;
public class BlockBurnstone extends Block
{
public BlockBurnstone(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random rand, int j)
{
return mod_Burnstone.Burnstone.blockID;
}
public int quantityDropped(Random rand)
{
return 1;
}
}
mod_Burnstone
package net.minecraft.src;
import java.util.Random;
public class mod_Burnstone extends BaseMod
{
public static final Block Burnstone = new BlockBurnstone(180,0).setHardness(3f).setBlockName("burnstone");
public void load()
{
ModLoader.registerBlock(Burnstone);
ModLoader.addName(Burnstone,"Burnstone Ore");
Burnstone.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/customBlock.png");
}
public void GenerateSurface(World world, Random rand, int basex, int basez)
{
for(int x = 0; x < 10; x++)
{
int Xcoord = basex + rand.nextInt(5);
int Ycoord = rand.nextInt(40);
int Zcoord = basez = rand.nextInt(5);
(new WorldGenMinable(Burnstone.blockID, 70)).generate(world, rand, Xcoord, Ycoord, Zcoord);
}
}
public String getVersion()
{
return "1.2.4";
}
}
Its not really an error because when I test it, it says that modloader loaded the mod, but it doesn't spawn and its not in the creative menu.
Thanks for any help.
package net.minecraft.src;
import java.util.Random;
public class BlockBurnstone extends Block
{
public BlockBurnstone(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random rand, int j)
{
return mod_Burnstone.Burnstone.blockID;
}
public int quantityDropped(Random rand)
{
return 1;
}
}
mod_Burnstone
package net.minecraft.src;
import java.util.Random;
public class mod_Burnstone extends BaseMod
{
public static final Block Burnstone = new BlockBurnstone(180,0).setHardness(3f).setBlockName("burnstone");
public void load()
{
ModLoader.registerBlock(Burnstone);
ModLoader.addName(Burnstone,"Burnstone Ore");
Burnstone.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/customBlock.png");
}
public void GenerateSurface(World world, Random rand, int basex, int basez)
{
for(int x = 0; x < 10; x++)
{
int Xcoord = basex + rand.nextInt(5);
int Ycoord = rand.nextInt(40);
int Zcoord = basez = rand.nextInt(5);
(new WorldGenMinable(Burnstone.blockID, 70)).generate(world, rand, Xcoord, Ycoord, Zcoord);
}
}
public String getVersion()
{
return "1.2.4";
}
}
Its not really an error because when I test it, it says that modloader loaded the mod, but it doesn't spawn and its not in the creative menu.
Thanks for any help.
Well I can't say I'm too familiar with the spawning in of the block, but I know that unlike TMI, the creative GUI pane requires a whole chunk if code in your mod_Burnstone class. I have an example lying around somewhere, I'll try to find it for you.
package net.minecraft.src;
import java.util.Random;
public class mod_Burnstone extends BaseMod
{
public static final Block Burnstone = new BlockBurnstone(180,0).setHardness(3f).setBlockName("burnstone");
public void load()
{
ModLoader.registerBlock(Burnstone);
ModLoader.addName(Burnstone,"Burnstone Ore");
Burnstone.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/customBlock.png");
}
public void GenerateSurface(World world, Random rand, int basex, int basez)
{
for(int x = 0; x < 10; x++)
{
int Xcoord = basex + rand.nextInt(5);
int Ycoord = rand.nextInt(40);
int Zcoord = basez = rand.nextInt(5);
(new WorldGenMinable(Burnstone.blockID, 70)).generate(world, rand, Xcoord, Ycoord, Zcoord);
}
}
public String getVersion()
{
return "1.2.4";
}
}
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 66ab316a --------
Generated 3/31/12 12:29 PM
Minecraft: Minecraft 1.2.4
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3200 Graphics version 2.1.8794, ATI Technologies Inc.
java.lang.RuntimeException: Already decorating!!
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:177)
at net.minecraft.src.BiomeGenBase.decorate(BiomeGenBase.java:340)
at net.minecraft.src.BiomeGenJungle.decorate(BiomeGenJungle.java:57)
at net.minecraft.src.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:511)
at net.minecraft.src.ChunkProvider.populate(ChunkProvider.java:195)
at net.minecraft.src.Chunk.populateChunk(Chunk.java:1150)
at net.minecraft.src.ChunkProvider.loadChunk(ChunkProvider.java:106)
at net.minecraft.src.ChunkProvider.provideChunk(ChunkProvider.java:119)
at net.minecraft.src.World.getChunkFromChunkCoords(World.java:651)
at net.minecraft.src.World.getChunkFromBlockCoords(World.java:643)
at net.minecraft.src.WorldGenerator.setBlockAndMetadata(WorldGenerator.java:46)
at net.minecraft.src.WorldGenerator.func_50073_a(WorldGenerator.java:34)
at net.minecraft.src.WorldGenTrees.generate(WorldGenTrees.java:83)
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:233)
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:185)
at net.minecraft.src.BiomeGenBase.decorate(BiomeGenBase.java:340)
at net.minecraft.src.BiomeGenJungle.decorate(BiomeGenJungle.java:57)
at net.minecraft.src.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:511)
at net.minecraft.src.ChunkProvider.populate(ChunkProvider.java:195)
at net.minecraft.src.Chunk.populateChunk(Chunk.java:1150)
at net.minecraft.src.ChunkProvider.loadChunk(ChunkProvider.java:106)
at net.minecraft.src.ChunkProvider.provideChunk(ChunkProvider.java:119)
at net.minecraft.src.World.getChunkFromChunkCoords(World.java:651)
at net.minecraft.src.World.getBlockId(World.java:544)
at net.minecraft.client.Minecraft.preloadWorld(Minecraft.java:2278)
at net.minecraft.client.Minecraft.changeWorld(Minecraft.java:2165)
at net.minecraft.client.Minecraft.changeWorld2(Minecraft.java:2112)
at net.minecraft.client.Minecraft.startWorld(Minecraft.java:1992)
at net.minecraft.src.GuiCreateWorld.actionPerformed(GuiCreateWorld.java:217)
at net.minecraft.src.GuiScreen.mouseClicked(GuiScreen.java:108)
at net.minecraft.src.GuiCreateWorld.mouseClicked(GuiCreateWorld.java:327)
at net.minecraft.src.GuiScreen.handleMouseInput(GuiScreen.java:175)
at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:161)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1638)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:890)
at net.minecraft.client.Minecraft.run(Minecraft.java:798)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 89178917 ----------
If you know why please help! By the way I have no errors when i recompile in Eclipse.
Thanks!
Well I can't say I'm too familiar with the spawning in of the block, but I know that unlike TMI, the creative GUI pane requires a whole chunk if code in your mod_Burnstone class. I have an example lying around somewhere, I'll try to find it for you.
Do you know how to use the modloader onTick method?
Or even better, another way in which to force a block to tick every second.
I managed to get a verrrry slow, occasional update with setTickRandomly. It's the only thing I can get to work. Is there a way to flag a block so that the chunk is forced to update it every world tick?
hi sorry if this has been asked already but does anyone no how to make a custom mob only spawn in specific biomes or dimensions like how pigzombies spawn only in the nether great tutorials btw
this is my final problem i get an error when i make my biome:
Mods loaded: 1
ModLoader 1.2.4
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 2f72aab9 --------
Generated 3/31/12 4:42 PM
Minecraft: Minecraft 1.2.4
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce 320M/PCI/SSE2 version 3.2.0, NVIDIA Corporation
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:286)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1278)
at net.minecraft.src.ModLoader.init(ModLoader.java:848)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:156)
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:422)
at net.minecraft.client.Minecraft.run(Minecraft.java:783)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at net.minecraft.src.BiomeGenRedLand.<init>(BiomeGenRedLand.java:12)
at net.minecraft.src.mod_Complete.<clinit>(mod_Complete.java:31)
... 15 more
--- END ERROR REPORT 66f6134c ----------
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
public class mod_Complete extends BaseMod{
//IMAGE PATH
public static int charismaIcon = ModLoader.addOverride("/gui/items.png", "/Pictures/charisma.png");
public static int vampireIcon = ModLoader.addOverride("/gui/items.png", "/Pictures/vampire.png");
public static int zulfigarIcon = ModLoader.addOverride("/gui/items.png", "/Pictures/zulfigar.png");
public static int Part1Icon = ModLoader.addOverride("/gui/items.png", "/Pictures/PART 1.png");
public static int Part2Icon = ModLoader.addOverride("/gui/items.png", "/Pictures/PART 2.png");
public static int Part3Icon = ModLoader.addOverride("/gui/items.png", "/Pictures/PART 3.png");
public static int Part4Icon = ModLoader.addOverride("/gui/items.png", "/Pictures/PART 4.png");
public static int DemonSwordIcon = ModLoader.addOverride("/gui/items.png", "/Pictures/DemonSword.png");
public static int zulfigarStone = ModLoader.addOverride("/gui/items.png", "/Pictures/zulfigarStone.png");
public static int charismaStone = ModLoader.addOverride("/gui/items.png", "/Pictures/charismaStone.png");
public static int vampireStone = ModLoader.addOverride("/gui/items.png", "/Pictures/vampireStone.png");
public static int RedRockIcon = ModLoader.addOverride("terrain.png", "/Pictures/RedRock.png");
public static int rarity = 10000;
//DECLARE ITEM, BLOCK, WEAPON
public static final Item DemonSword = new mo_ItemDemonSword(1693).setItemName("DemonSword");
public static final Item Part1 = new mo_ItemPart1(1689).setItemName("Part1");
public static final Achievement Mystic = new Achievement(4560, "Mystic", 5, 7, Item.diamond, null).registerAchievement();
public static final Item Part2 = new mo_ItemPart2(1690).setItemName("Part2");
public static final Item Part3 = new mo_ItemPart3(1691).setItemName("Part3");
public static final Item Part4 = new mo_ItemPart4(1692).setItemName("Part4");
public static final BiomeGenBase RedLand = new BiomeGenRedLand(200).setColor(0xfa9418).setBiomeName("Biome1");
public static final Item charisma = new mo_ItemCharismaSword(1684).setItemName("charisma");
public static final Item zulfigar = new mo_ItemZulfigarSword(1685).setItemName("zulfigar");
public static final Item vampire = new mo_ItemVampireSword(1686, EnumToolMaterial.IRON, 0).setItemName("vampire");
public static final Block RedRock = new BlockRedRock(160, 0).setBlockName("RedRock").setHardness(3F).setResistance(4F);
public static final Item swordStone = new mo_ItemRock(1687).setItemName("swordStone");
public void load(){
//ACHIEVMENT SECTION!
ModLoader.addAchievementDesc(Mystic, "Year 10000BC in you hands!", "Ancient Demon Sword Created");
//MOB SECTION!
ModLoader.registerEntityID(EntityDemented.class, "Demented", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(EntityDemented.class, 8, 5, 7, EnumCreatureType.monster);
ModLoader.registerEntityID(EntityRedVillager.class, "Red Villager", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(EntityRedVillager.class, 5, 5, 7, EnumCreatureType.creature);
//RECIPE SECTION
ModLoader.addRecipe(new ItemStack(swordStone, 1, 0), new Object [] { "XYZ","Z ", Character.valueOf('X'), Item.enderPearl
, Character.valueOf('Y'), Item.eyeOfEnder, Character.valueOf('Z'), Item.diamond});
ModLoader.addRecipe(new ItemStack(swordStone, 1, 1), new Object [] { "XYZ","Z ", Character.valueOf('X'), Item.appleGold
, Character.valueOf('Y'), Item.beefRaw, Character.valueOf('Z'), Item.diamond});
ModLoader.addRecipe(new ItemStack(swordStone, 1, 2), new Object [] { "XYZ", Character.valueOf('X'), Block.blockDiamond
, Character.valueOf('Y'), Item.flintAndSteel, Character.valueOf('Z'), Block.blockSteel});
ModLoader.addRecipe(new ItemStack(DemonSword, 1), new Object [] {
" 4 ", " 3 ", "1S2", Character.valueOf('4'), mod_Complete.Part4, Character.valueOf('3'), mod_Complete.Part3,
Character.valueOf('2'), mod_Complete.Part2, Character.valueOf('1'), mod_Complete.Part1, Character.valueOf('S'), Item.stick });
//SMELTING SECTION
//BIOME SECTION
ModLoader.addBiome(RedLand);
//DECLARE THE ICON!
zulfigar.iconIndex = zulfigarIcon;
charisma.iconIndex = charismaIcon;
vampire.iconIndex = vampireIcon;
Part1.iconIndex = Part1Icon;
Part2.iconIndex = Part2Icon;
Part3.iconIndex = Part3Icon;
Part4.iconIndex = Part4Icon;
DemonSword.iconIndex = DemonSwordIcon;
RedRock.blockIndexInTexture = RedRockIcon;
//NAME SECTION
ModLoader.addName(vampire, "Vampire Legendary Sword");
ModLoader.addName(zulfigar, "Zulfigar Legendary Sword");
ModLoader.addName(charisma, "Charisma Legendary Sword");
ModLoader.addName(new ItemStack(mod_Complete.swordStone, 1, 0), "Charisma Stone of Power");
ModLoader.addName(new ItemStack(mod_Complete.swordStone, 1, 1), "Vampire Stone of Power");
ModLoader.addName(new ItemStack(mod_Complete.swordStone, 1, 2), "Zulfigar Stone of Power");
ModLoader.addName(Part1, "Demon Piece 1");
ModLoader.addName(Part2, "Demon Piece 2");
ModLoader.addName(Part3, "Demon Piece 3");
ModLoader.addName(Part4, "Demon Piece 4");
ModLoader.addName(DemonSword, "Ancient Demon Sword");
ModLoader.registerBlock(RedRock);
ModLoader.addName(RedRock, "Red Rock");
}
//CRAFITNG INTO ACHIEVMENT
public void takenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory)
{
if(itemstack.itemID == mod_Complete.DemonSword.shiftedIndex)
{
entityplayer.addStat(Mystic, 1);
}
}
//RENDER THE MOBS
public void addRenderer(Map map)
{
map.put(EntityDemented.class, new RenderDemented(new ModelDemented(), 0.5F));
map.put(EntityRedVillager.class, new RenderBiped(new ModelBiped(), 0.5F));
}
//WORLD GENERATION!
public void generateSurface(World world, Random random, int i, int j)
{
for(int k = 0; k < 10; k++)
{
int RandPosX = i + random.nextInt(5);
int RandPosY = random.nextInt(80);
int RandPosZ = j + random.nextInt(5);
(new WorldGenHut()).generate(world, random, RandPosX, RandPosY, RandPosZ);
}
}
public String getVersion(){
return "1.2.4";
}
}
now when i use the mod i use the recipes to craft the block 0-9 .. i get al the blocks and with the right textures and even the right names
so block 0 has texture 0 and name block 0
and block 5 has texture 5 and name block 5
and when i have thmen in my items bar .. and hold block 0 in my hand .. and place it, it wil place a block with texture 0
but when i do this with block 5 and place it .. it wil place ablock with texture 0 .... witch surpose to be texture 5 (like in my hand)
and this will happen with every other block higer than 0 .. i added ..
how can i fix this when using an item to define witch block i whant to place ?? becose that wil need an 2d item in my hand and not like the block 3d .. in my hand .. (and stone slabs still have 3d in hand and as i know so far are not items) but still stoneslab gets the right damage placed
anny way help?
hope you can help
do this
1)learn spelling
2)follow format
3)????
4)Get help = profit
Hello. I have problem of my achievement... When I want to use your own textures to get the error.
Code:
package net.minecraft.src;
import java.util.Random;
import ThulCraft.HalitOre;
import ThulCraft.TCCraft;
import ThulCraft.TCItem;
import ThulCraft.TCBlock;
import ThulCraft.TCRecipes;
public class mod_ThulCraft extends BaseMod {
public static final Achievement Smelter = new Achievement(4560, "Smelter", 5, 7, mod_Smelter.Smelter, null).registerAchievement();
public void load() {
new TCItem();
new TCBlock();
new TCCraft();
TCRecipes.AddRecipes();
ModLoader.addAchievementDesc(Smelter, "Achievement Name", "Achievement Sub-Name");
ModLoader.registerEntityID(ThulCraft.EntityDynamite.class, "EntityDynamite", ModLoader.getUniqueEntityId());
}
public String getVersion() {
return "1.0.0";
}
public void takenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory) {
if(itemstack.itemID == mod_Smelter.Smelter.blockID)
{
entityplayer.addStat(Smelter, 1);
}
}
public void generateSurface(World world, Random rand, int chunkx, int chunkz) {
for(int l = 0; l < 10; l++)
{
int i1 = chunkx + rand.nextInt(16);
int j1 = rand.nextInt(65);
int k1 = chunkz + rand.nextInt(16);
(new WorldGenMinable(TCBlock.HalitOre.blockID, 12)).generate(world, rand, i1, j1, k1);
}
}
}
Error:
Mods loaded: 3
ModLoader 1.2.4
mod_RecipeBook 1.2.4
mod_Smelter null
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT ed211f82 --------
Generated 31.03.12 16:17
Minecraft: Minecraft 1.2.4
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: AMD Radeon HD 6800 Series version 4.2.11399 Compatibility Profile Context, 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:286)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1278)
at net.minecraft.src.ModLoader.init(ModLoader.java:848)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:156)
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:422)
at net.minecraft.client.Minecraft.run(Minecraft.java:783)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at net.minecraft.src.ItemStack.<init>(ItemStack.java:33)
at net.minecraft.src.ItemStack.<init>(ItemStack.java:28)
at net.minecraft.src.Achievement.<init>(Achievement.java:51)
at net.minecraft.src.mod_ThulCraft.<clinit>(mod_ThulCraft.java:12)
... 15 more
--- END ERROR REPORT 354f8e8 ----------
How to use your own textures in achievement?
PS: Sorry for my English.
I'd say that is because the class with the achievement in it is being initialised before the class with the item in it. If you put the achievement in the same class as the item, and put its public static final line below the items, it should work.
Just to ask in Techne i says something about a GUI scale, i put that up to make my monster the corrects size but it comes out smaller and basically floating because of the legs. Help would be much appreciated.
uhmm .. you mean in the mod_class.class ??
or make a item class ??
hmm il look into it but not sure what you mean
but if i make an item for this to place my blocks .. how will it show as an block in my hand ? and not as an 2d item ?
public static final Item block1 = new ItemNamehere(ID, blockName.blockID).setItemName("itemname");
Make that ItemNamehere class extend ItemBlock or ItemReed. Then make it call the blocks metadata. Look in ItemPiston for an example. I did all of this off the top of my head so I could be wrong.
package net.minecraft.src;
import java.util.Random;
public class BlockBurnstone extends Block
{
public BlockBurnstone(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random rand, int j)
{
return mod_Burnstone.Burnstone.blockID;
}
public int quantityDropped(Random rand)
{
return 1;
}
}
mod_Burnstone
package net.minecraft.src;
import java.util.Random;
public class mod_Burnstone extends BaseMod
{
public static final Block Burnstone = new BlockBurnstone(180,0).setHardness(3f).setBlockName("burnstone");
public void load()
{
ModLoader.registerBlock(Burnstone);
ModLoader.addName(Burnstone,"Burnstone Ore");
Burnstone.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/customBlock.png");
}
public void GenerateSurface(World world, Random rand, int basex, int basez)
{
for(int x = 0; x < 10; x++)
{
int Xcoord = basex + rand.nextInt(5);
int Ycoord = rand.nextInt(40);
int Zcoord = basez = rand.nextInt(5);
(new WorldGenMinable(Burnstone.blockID, 70)).generate(world, rand, Xcoord, Ycoord, Zcoord);
}
}
public String getVersion()
{
return "1.2.4";
}
}
Its not really an error because when I test it, it says that modloader loaded the mod, but it doesn't spawn and its not in the creative menu.
Thanks for any help.
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 66ab316a --------
Generated 3/31/12 12:29 PM
Minecraft: Minecraft 1.2.4
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3200 Graphics version 2.1.8794, ATI Technologies Inc.
java.lang.RuntimeException: Already decorating!!
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:177)
at net.minecraft.src.BiomeGenBase.decorate(BiomeGenBase.java:340)
at net.minecraft.src.BiomeGenJungle.decorate(BiomeGenJungle.java:57)
at net.minecraft.src.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:511)
at net.minecraft.src.ChunkProvider.populate(ChunkProvider.java:195)
at net.minecraft.src.Chunk.populateChunk(Chunk.java:1150)
at net.minecraft.src.ChunkProvider.loadChunk(ChunkProvider.java:106)
at net.minecraft.src.ChunkProvider.provideChunk(ChunkProvider.java:119)
at net.minecraft.src.World.getChunkFromChunkCoords(World.java:651)
at net.minecraft.src.World.getChunkFromBlockCoords(World.java:643)
at net.minecraft.src.WorldGenerator.setBlockAndMetadata(WorldGenerator.java:46)
at net.minecraft.src.WorldGenerator.func_50073_a(WorldGenerator.java:34)
at net.minecraft.src.WorldGenTrees.generate(WorldGenTrees.java:83)
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:233)
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:185)
at net.minecraft.src.BiomeGenBase.decorate(BiomeGenBase.java:340)
at net.minecraft.src.BiomeGenJungle.decorate(BiomeGenJungle.java:57)
at net.minecraft.src.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:511)
at net.minecraft.src.ChunkProvider.populate(ChunkProvider.java:195)
at net.minecraft.src.Chunk.populateChunk(Chunk.java:1150)
at net.minecraft.src.ChunkProvider.loadChunk(ChunkProvider.java:106)
at net.minecraft.src.ChunkProvider.provideChunk(ChunkProvider.java:119)
at net.minecraft.src.World.getChunkFromChunkCoords(World.java:651)
at net.minecraft.src.World.getBlockId(World.java:544)
at net.minecraft.client.Minecraft.preloadWorld(Minecraft.java:2278)
at net.minecraft.client.Minecraft.changeWorld(Minecraft.java:2165)
at net.minecraft.client.Minecraft.changeWorld2(Minecraft.java:2112)
at net.minecraft.client.Minecraft.startWorld(Minecraft.java:1992)
at net.minecraft.src.GuiCreateWorld.actionPerformed(GuiCreateWorld.java:217)
at net.minecraft.src.GuiScreen.mouseClicked(GuiScreen.java:108)
at net.minecraft.src.GuiCreateWorld.mouseClicked(GuiCreateWorld.java:327)
at net.minecraft.src.GuiScreen.handleMouseInput(GuiScreen.java:175)
at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:161)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1638)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:890)
at net.minecraft.client.Minecraft.run(Minecraft.java:798)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 89178917 ----------
If you know why please help! By the way I have no errors when i recompile in Eclipse.
Thanks!
Why do you have so many mod_ classes. You should only have one, and have everything in it. It will make it easier to pin-point the issue if you do it.
hi sorry if this has been asked already but does anyone no how to make a custom mob only spawn in specific biomes or dimensions like how pigzombies spawn only in the nether great tutorials btw
People have asked for this a lot so I'll add it into the OP. Here is how you do it anyway.
ModLoader.addSpawn(EntityNamehere.class, 2, 1, 4, EnumCreatureType.monster, new BiomeGenBase[]
{
BiomeGenBase.biomesinhere;
});
If there is more than one, they are separated by a comma. For example:
this is my final problem i get an error when i make my biome:
Mods loaded: 1
ModLoader 1.2.4
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 2f72aab9 --------
Generated 3/31/12 4:42 PM
Minecraft: Minecraft 1.2.4
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce 320M/PCI/SSE2 version 3.2.0, NVIDIA Corporation
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:286)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1278)
at net.minecraft.src.ModLoader.init(ModLoader.java:848)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:156)
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:422)
at net.minecraft.client.Minecraft.run(Minecraft.java:783)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at net.minecraft.src.BiomeGenRedLand.<init>(BiomeGenRedLand.java:12)
at net.minecraft.src.mod_Complete.<clinit>(mod_Complete.java:31)
... 15 more
--- END ERROR REPORT 66f6134c ----------
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
public class mod_Complete extends BaseMod{
//IMAGE PATH
public static int charismaIcon = ModLoader.addOverride("/gui/items.png", "/Pictures/charisma.png");
public static int vampireIcon = ModLoader.addOverride("/gui/items.png", "/Pictures/vampire.png");
public static int zulfigarIcon = ModLoader.addOverride("/gui/items.png", "/Pictures/zulfigar.png");
public static int Part1Icon = ModLoader.addOverride("/gui/items.png", "/Pictures/PART 1.png");
public static int Part2Icon = ModLoader.addOverride("/gui/items.png", "/Pictures/PART 2.png");
public static int Part3Icon = ModLoader.addOverride("/gui/items.png", "/Pictures/PART 3.png");
public static int Part4Icon = ModLoader.addOverride("/gui/items.png", "/Pictures/PART 4.png");
public static int DemonSwordIcon = ModLoader.addOverride("/gui/items.png", "/Pictures/DemonSword.png");
public static int zulfigarStone = ModLoader.addOverride("/gui/items.png", "/Pictures/zulfigarStone.png");
public static int charismaStone = ModLoader.addOverride("/gui/items.png", "/Pictures/charismaStone.png");
public static int vampireStone = ModLoader.addOverride("/gui/items.png", "/Pictures/vampireStone.png");
public static int RedRockIcon = ModLoader.addOverride("terrain.png", "/Pictures/RedRock.png");
public static int rarity = 10000;
//DECLARE ITEM, BLOCK, WEAPON
public static final Item DemonSword = new mo_ItemDemonSword(1693).setItemName("DemonSword");
public static final Item Part1 = new mo_ItemPart1(1689).setItemName("Part1");
public static final Achievement Mystic = new Achievement(4560, "Mystic", 5, 7, Item.diamond, null).registerAchievement();
public static final Item Part2 = new mo_ItemPart2(1690).setItemName("Part2");
public static final Item Part3 = new mo_ItemPart3(1691).setItemName("Part3");
public static final Item Part4 = new mo_ItemPart4(1692).setItemName("Part4");
public static final BiomeGenBase RedLand = new BiomeGenRedLand(200).setColor(0xfa9418).setBiomeName("Biome1");
public static final Item charisma = new mo_ItemCharismaSword(1684).setItemName("charisma");
public static final Item zulfigar = new mo_ItemZulfigarSword(1685).setItemName("zulfigar");
public static final Item vampire = new mo_ItemVampireSword(1686, EnumToolMaterial.IRON, 0).setItemName("vampire");
public static final Block RedRock = new BlockRedRock(160, 0).setBlockName("RedRock").setHardness(3F).setResistance(4F);
public static final Item swordStone = new mo_ItemRock(1687).setItemName("swordStone");
public void load(){
//ACHIEVMENT SECTION!
ModLoader.addAchievementDesc(Mystic, "Year 10000BC in you hands!", "Ancient Demon Sword Created");
//MOB SECTION!
ModLoader.registerEntityID(EntityDemented.class, "Demented", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(EntityDemented.class, 8, 5, 7, EnumCreatureType.monster);
ModLoader.registerEntityID(EntityRedVillager.class, "Red Villager", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(EntityRedVillager.class, 5, 5, 7, EnumCreatureType.creature);
//RECIPE SECTION
ModLoader.addRecipe(new ItemStack(swordStone, 1, 0), new Object [] { "XYZ","Z ", Character.valueOf('X'), Item.enderPearl
, Character.valueOf('Y'), Item.eyeOfEnder, Character.valueOf('Z'), Item.diamond});
ModLoader.addRecipe(new ItemStack(swordStone, 1, 1), new Object [] { "XYZ","Z ", Character.valueOf('X'), Item.appleGold
, Character.valueOf('Y'), Item.beefRaw, Character.valueOf('Z'), Item.diamond});
ModLoader.addRecipe(new ItemStack(swordStone, 1, 2), new Object [] { "XYZ", Character.valueOf('X'), Block.blockDiamond
, Character.valueOf('Y'), Item.flintAndSteel, Character.valueOf('Z'), Block.blockSteel});
ModLoader.addRecipe(new ItemStack(DemonSword, 1), new Object [] {
" 4 ", " 3 ", "1S2", Character.valueOf('4'), mod_Complete.Part4, Character.valueOf('3'), mod_Complete.Part3,
Character.valueOf('2'), mod_Complete.Part2, Character.valueOf('1'), mod_Complete.Part1, Character.valueOf('S'), Item.stick });
//SMELTING SECTION
//BIOME SECTION
ModLoader.addBiome(RedLand);
//DECLARE THE ICON!
zulfigar.iconIndex = zulfigarIcon;
charisma.iconIndex = charismaIcon;
vampire.iconIndex = vampireIcon;
Part1.iconIndex = Part1Icon;
Part2.iconIndex = Part2Icon;
Part3.iconIndex = Part3Icon;
Part4.iconIndex = Part4Icon;
DemonSword.iconIndex = DemonSwordIcon;
RedRock.blockIndexInTexture = RedRockIcon;
//NAME SECTION
ModLoader.addName(vampire, "Vampire Legendary Sword");
ModLoader.addName(zulfigar, "Zulfigar Legendary Sword");
ModLoader.addName(charisma, "Charisma Legendary Sword");
ModLoader.addName(new ItemStack(mod_Complete.swordStone, 1, 0), "Charisma Stone of Power");
ModLoader.addName(new ItemStack(mod_Complete.swordStone, 1, 1), "Vampire Stone of Power");
ModLoader.addName(new ItemStack(mod_Complete.swordStone, 1, 2), "Zulfigar Stone of Power");
ModLoader.addName(Part1, "Demon Piece 1");
ModLoader.addName(Part2, "Demon Piece 2");
ModLoader.addName(Part3, "Demon Piece 3");
ModLoader.addName(Part4, "Demon Piece 4");
ModLoader.addName(DemonSword, "Ancient Demon Sword");
ModLoader.registerBlock(RedRock);
ModLoader.addName(RedRock, "Red Rock");
}
//CRAFITNG INTO ACHIEVMENT
public void takenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory)
{
if(itemstack.itemID == mod_Complete.DemonSword.shiftedIndex)
{
entityplayer.addStat(Mystic, 1);
}
}
//RENDER THE MOBS
public void addRenderer(Map map)
{
map.put(EntityDemented.class, new RenderDemented(new ModelDemented(), 0.5F));
map.put(EntityRedVillager.class, new RenderBiped(new ModelBiped(), 0.5F));
}
//WORLD GENERATION!
public void generateSurface(World world, Random random, int i, int j)
{
for(int k = 0; k < 10; k++)
{
int RandPosX = i + random.nextInt(5);
int RandPosY = random.nextInt(80);
int RandPosZ = j + random.nextInt(5);
(new WorldGenHut()).generate(world, random, RandPosX, RandPosY, RandPosZ);
}
}
public String getVersion(){
return "1.2.4";
}
}
It is because you are initialising the biome before RedBlock which is the topBlock of your biome. Put the biomes public static final line after RedBlock's line and it should work.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I believe that it is because you have "ItemAFruit" and you should have "afruit" (yes java is case sensitive) also, on this line:
I think you need the add a "afruit" so that it looks like this:
In MCP: go to jars/bin/minecraft.jar then make a folder in the minecraft.jar, name it whatever you want, and put your pictures into it. Then just replace the "pathtoyourfile" to the name of the folder you made.
Someone help please.
tutorial.
Can you post the errors?
You need to create an item that places the block and sets its metadata.
This:
should be this:
iconIndex should be used because it is actually the icon/texture of the item.
ItemAFruit should be afruit because that is what you defined your item as being when you initialised it in your public static final line.
Steps:
That is just the recompiler. You need to run the reobfuscator again (reobfuscate.sh).
I'll add these two to the list of tutorials to make, but I might not get to them for awhile.
together they are powerful beyond imagination."
Thanks dude.
Or even better, another way in which to force a block to tick every second.
BlockBurnstone
import java.util.Random;
public class BlockBurnstone extends Block
{
public BlockBurnstone(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random rand, int j)
{
return mod_Burnstone.Burnstone.blockID;
}
public int quantityDropped(Random rand)
{
return 1;
}
}
mod_Burnstone
import java.util.Random;
public class mod_Burnstone extends BaseMod
{
public static final Block Burnstone = new BlockBurnstone(180,0).setHardness(3f).setBlockName("burnstone");
public void load()
{
ModLoader.registerBlock(Burnstone);
ModLoader.addName(Burnstone,"Burnstone Ore");
Burnstone.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/customBlock.png");
}
public void GenerateSurface(World world, Random rand, int basex, int basez)
{
for(int x = 0; x < 10; x++)
{
int Xcoord = basex + rand.nextInt(5);
int Ycoord = rand.nextInt(40);
int Zcoord = basez = rand.nextInt(5);
(new WorldGenMinable(Burnstone.blockID, 70)).generate(world, rand, Xcoord, Ycoord, Zcoord);
}
}
public String getVersion()
{
return "1.2.4";
}
}
Its not really an error because when I test it, it says that modloader loaded the mod, but it doesn't spawn and its not in the creative menu.
Thanks for any help.
Well I can't say I'm too familiar with the spawning in of the block, but I know that unlike TMI, the creative GUI pane requires a whole chunk if code in your mod_Burnstone class. I have an example lying around somewhere, I'll try to find it for you.
GenerateSurface is now generateSurface.
ModLoader 1.2.4
mod_BurntChickenWing 1.2.4
mod_BurntHam 1.2.4
mod_CookedChickenWing 1.2.4
mod_CustomNPC 1.2.4
mod_ExtraExtraSpicyChickenWing 1.2.4
mod_ExtraSpicyChickenWing 1.2.4
mod_HamCooked 1.2.4
mod_HamRaw 1.2.4
mod_HotSauce 1.2.4
mod_HotSauce2 1.2.4
mod_HotSauce3 1.2.4
mod_RawChickenWing 1.2.4
mod_SpicyChickenWing 1.2.4
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 66ab316a --------
Generated 3/31/12 12:29 PM
Minecraft: Minecraft 1.2.4
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3200 Graphics version 2.1.8794, ATI Technologies Inc.
java.lang.RuntimeException: Already decorating!!
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:177)
at net.minecraft.src.BiomeGenBase.decorate(BiomeGenBase.java:340)
at net.minecraft.src.BiomeGenJungle.decorate(BiomeGenJungle.java:57)
at net.minecraft.src.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:511)
at net.minecraft.src.ChunkProvider.populate(ChunkProvider.java:195)
at net.minecraft.src.Chunk.populateChunk(Chunk.java:1150)
at net.minecraft.src.ChunkProvider.loadChunk(ChunkProvider.java:106)
at net.minecraft.src.ChunkProvider.provideChunk(ChunkProvider.java:119)
at net.minecraft.src.World.getChunkFromChunkCoords(World.java:651)
at net.minecraft.src.World.getChunkFromBlockCoords(World.java:643)
at net.minecraft.src.WorldGenerator.setBlockAndMetadata(WorldGenerator.java:46)
at net.minecraft.src.WorldGenerator.func_50073_a(WorldGenerator.java:34)
at net.minecraft.src.WorldGenTrees.generate(WorldGenTrees.java:83)
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:233)
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:185)
at net.minecraft.src.BiomeGenBase.decorate(BiomeGenBase.java:340)
at net.minecraft.src.BiomeGenJungle.decorate(BiomeGenJungle.java:57)
at net.minecraft.src.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:511)
at net.minecraft.src.ChunkProvider.populate(ChunkProvider.java:195)
at net.minecraft.src.Chunk.populateChunk(Chunk.java:1150)
at net.minecraft.src.ChunkProvider.loadChunk(ChunkProvider.java:106)
at net.minecraft.src.ChunkProvider.provideChunk(ChunkProvider.java:119)
at net.minecraft.src.World.getChunkFromChunkCoords(World.java:651)
at net.minecraft.src.World.getBlockId(World.java:544)
at net.minecraft.client.Minecraft.preloadWorld(Minecraft.java:2278)
at net.minecraft.client.Minecraft.changeWorld(Minecraft.java:2165)
at net.minecraft.client.Minecraft.changeWorld2(Minecraft.java:2112)
at net.minecraft.client.Minecraft.startWorld(Minecraft.java:1992)
at net.minecraft.src.GuiCreateWorld.actionPerformed(GuiCreateWorld.java:217)
at net.minecraft.src.GuiScreen.mouseClicked(GuiScreen.java:108)
at net.minecraft.src.GuiCreateWorld.mouseClicked(GuiCreateWorld.java:327)
at net.minecraft.src.GuiScreen.handleMouseInput(GuiScreen.java:175)
at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:161)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1638)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:890)
at net.minecraft.client.Minecraft.run(Minecraft.java:798)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 89178917 ----------
If you know why please help! By the way I have no errors when i recompile in Eclipse.
Thanks!
Thanks, that fixed it.
Cool and I got the generation working.
I managed to get a verrrry slow, occasional update with setTickRandomly. It's the only thing I can get to work. Is there a way to flag a block so that the chunk is forced to update it every world tick?
any help
do this
1)learn spelling
2)follow format
3)????
4)Get help = profit
src/minecraft/net/minecraft/src/RenderPigman.java:13: cannot find symbol
symbol : variable ModelPigman
location: class net.minecraft.src.RenderPigman
modelPigmanmain = ModelPigman;
^
src/minecraft/net/minecraft/src/RenderPigman.java:19: cannot find symbol
symbol : variable ModelPigman
location: class net.minecraft.src.RenderPigman
modelPigmanmain = ModelPigman;
^
2 errors
==================
And this is what the file is-
I'd say that is because the class with the achievement in it is being initialised before the class with the item in it. If you put the achievement in the same class as the item, and put its public static final line below the items, it should work.
Post your code please.
Make that ItemNamehere class extend ItemBlock or ItemReed. Then make it call the blocks metadata. Look in ItemPiston for an example. I did all of this off the top of my head so I could be wrong.
Heaps of people have asked this question. I do not know.
For the creative gui, add this to your mod_ code.
You also need to import List.
Why do you have so many mod_ classes. You should only have one, and have everything in it. It will make it easier to pin-point the issue if you do it.
People have asked for this a lot so I'll add it into the OP. Here is how you do it anyway.
If there is more than one, they are separated by a comma. For example:
It is because you are initialising the biome before RedBlock which is the topBlock of your biome. Put the biomes public static final line after RedBlock's line and it should work.
I've updated the OP with some new Render code. Please let me know if it works.
together they are powerful beyond imagination."