src\minecraft\net\minecraft\src\World.java:163: error: cannot find symbol
return var3.getBiomeGenForWorldCoords(par1 & 15, par2 & 15, this
.worldProvider.worldChunkMgr);
^
symbol: method getBiomeGenForWorldCoords(int,int,WorldChunkManager)
location: variable var3 of type Chunk
src\minecraft\net\minecraft\src\GuiIngame.java:442: error: cannot find symbol
java.util.List list = netclienthandler.playerNames;
^
symbol: variable playerNames
location: variable netclienthandler of type NetClientHandler
2 errors
==================
Hi its 11darktooth once again :smile.gif:
I today commented out 34 files and then recompiled and then reob'd and it deleted those 34 files.
I use eclipse. i have tried to import them and all but it just wont work, if you know how to do so then please tell me, thanks.
If you dont but you know how to open the plain .class file (yes, i got them from the recycling bin) without eclipse then i can rewrite them all, please tell me if there is a way for me to.
If there is a method for fixing/doing any of these things then if you can tell me +1 for you, even for trying +1 for you.
And finaly when i reob later on how can i make it so that i know what files make what (like mod_********* = part of the ********* mod. But if it was someting like fk.class or cd.class then what is it? (Note the fk and cd.class are real ones from my reob)
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int a = 0; a < 60; a++)
{
int RandPosX = a + rand.nextInt(16);
int RandPosY = rand.nextInt(64);
int RandPosZ = a + rand.nextInt(16);
(new WorldGenAltar()).generate(world, rand, RandPosX, RandPosY, RandPosZ);
}
}
Any clue why? Maybe it doesn't like the air ID. Air for testing purposes with xray texture.
Hi i am just learning how to mod, but i do have a working code for making a hut. I just cant get it to spawn doors, Here it is.
Elementiumhousebuilder.java
public class elementiumhousebuilder extends Block
{
public elementiumhousebuilder(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random)
{
return mod_elementium.elementiumhousebuilder.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
public void onBlockClicked(World world, int i, int j, int k, EntityPlayer entityplayer)
{
int block = Block.planks.blockID;
int block2 = Block.doorWood.blockID;
int block3 = Block.wood.blockID;
int block4 = Block.glass.blockID;
//Log Pillers
world.setBlockWithNotify(i + 5, j + 0, k, block3);
world.setBlockWithNotify(i + 5, j + 1, k, block3);
world.setBlockWithNotify(i + 5, j + 2, k, block3);
world.setBlockWithNotify(i + 5, j + 3, k, block3);
world.setBlockWithNotify(i, j + 0, k + 5, block3);
world.setBlockWithNotify(i, j + 1, k + 5, block3);
world.setBlockWithNotify(i, j + 2, k + 5, block3);
world.setBlockWithNotify(i, j + 3, k + 5, block3);
world.setBlockWithNotify(i + 5, j + 0, k + 5, block3);
world.setBlockWithNotify(i + 5, j + 1, k + 5, block3);
world.setBlockWithNotify(i + 5, j + 2, k + 5, block3);
world.setBlockWithNotify(i + 5, j + 3, k + 5, block3);
world.setBlockWithNotify(i, j + 0, k, block3);
world.setBlockWithNotify(i, j + 1, k, block3);
world.setBlockWithNotify(i, j + 2, k, block3);
world.setBlockWithNotify(i, j + 3, k, block3);
//Walls (Wood)
world.setBlockWithNotify(i + 4, j + 0, k, block);
world.setBlockWithNotify(i + 4, j + 2, k, block);
world.setBlockWithNotify(i + 4, j + 3, k, block);
world.setBlockWithNotify(i + 1, j + 0, k, block);
world.setBlockWithNotify(i + 1, j + 2, k, block);
world.setBlockWithNotify(i + 1, j + 3, k, block);
world.setBlockWithNotify(i + 2, j + 3, k, block);
world.setBlockWithNotify(i + 2, j + 2, k, block);
world.setBlockWithNotify(i + 3, j + 2, k, block);
world.setBlockWithNotify(i + 3, j + 2, k, block);
world.setBlockWithNotify(i, j + 0, k + 1, block);
world.setBlockWithNotify(i, j + 0, k + 2, block);
world.setBlockWithNotify(i, j + 0, k + 3, block);
world.setBlockWithNotify(i, j + 0, k + 4, block);
world.setBlockWithNotify(i, j + 1, k + 1, block);
world.setBlockWithNotify(i, j + 2, k + 1, block);
world.setBlockWithNotify(i, j + 3, k + 1, block);
world.setBlockWithNotify(i, j + 1, k + 4, block);
world.setBlockWithNotify(i, j + 2, k + 4, block);
world.setBlockWithNotify(i, j + 3, k + 4, block);
world.setBlockWithNotify(i, j + 3, k + 2, block);
world.setBlockWithNotify(i, j + 3, k + 3, block);
world.setBlockWithNotify(i + 1, j + 0, k + 5, block);
world.setBlockWithNotify(i + 2, j + 0, k + 5, block);
world.setBlockWithNotify(i + 3, j + 0, k + 5, block);
world.setBlockWithNotify(i + 4, j + 0, k + 5, block);
world.setBlockWithNotify(i + 1, j + 1, k + 5, block);
world.setBlockWithNotify(i + 1, j + 2, k + 5, block);
world.setBlockWithNotify(i + 1, j + 3, k + 5, block);
world.setBlockWithNotify(i + 4, j + 1, k + 5, block);
world.setBlockWithNotify(i + 4, j + 2, k + 5, block);
world.setBlockWithNotify(i + 4, j + 3, k + 5, block);
world.setBlockWithNotify(i + 2, j + 3, k + 5, block);
world.setBlockWithNotify(i + 3, j + 3, k + 5, block);
world.setBlockWithNotify(i + 5, j + 0, k + 1, block);
world.setBlockWithNotify(i + 5, j + 0, k + 2, block);
world.setBlockWithNotify(i + 5, j + 0, k + 3, block);
world.setBlockWithNotify(i + 5, j + 0, k + 4, block);
world.setBlockWithNotify(i + 5, j + 1, k + 1, block);
world.setBlockWithNotify(i + 5, j + 2, k + 1, block);
world.setBlockWithNotify(i + 5, j + 3, k + 1, block);
world.setBlockWithNotify(i + 5, j + 1, k + 4, block);
world.setBlockWithNotify(i + 5, j + 2, k + 4, block);
world.setBlockWithNotify(i + 5, j + 3, k + 4, block);
world.setBlockWithNotify(i + 5, j + 3, k + 2, block);
world.setBlockWithNotify(i + 5, j + 3, k + 3, block);
world.setBlockWithNotify(i + 3, j + 3, k, block);
//Walls (Glass)
world.setBlockWithNotify(i + 4, j + 1, k, block4);
world.setBlockWithNotify(i + 1, j + 1, k, block4);
world.setBlockWithNotify(i, j + 1, k + 2, block4);
world.setBlockWithNotify(i, j + 1, k + 3, block4);
world.setBlockWithNotify(i, j + 2, k + 2, block4);
world.setBlockWithNotify(i, j + 2, k + 3, block4);
world.setBlockWithNotify(i + 2, j + 1, k + 5, block4);
world.setBlockWithNotify(i + 3, j + 1, k + 5, block4);
world.setBlockWithNotify(i + 2, j + 2, k + 5, block4);
world.setBlockWithNotify(i + 3, j + 2, k + 5, block4);
world.setBlockWithNotify(i + 5, j + 1, k + 2, block4);
world.setBlockWithNotify(i + 5, j + 1, k + 3, block4);
world.setBlockWithNotify(i + 5, j + 2, k + 2, block4);
world.setBlockWithNotify(i + 5, j + 2, k + 3, block4);
//Roof
world.setBlockWithNotify(i + 1, j + 4, k + 1, block);
world.setBlockWithNotify(i + 1, j + 4, k + 2, block);
world.setBlockWithNotify(i + 1, j + 4, k + 3, block);
world.setBlockWithNotify(i + 1, j + 4, k + 4, block);
world.setBlockWithNotify(i + 2, j + 4, k + 1, block);
world.setBlockWithNotify(i + 2, j + 4, k + 2, block);
world.setBlockWithNotify(i + 2, j + 4, k + 3, block);
world.setBlockWithNotify(i + 2, j + 4, k + 4, block);
world.setBlockWithNotify(i + 3, j + 4, k + 1, block);
world.setBlockWithNotify(i + 3, j + 4, k + 2, block);
world.setBlockWithNotify(i + 3, j + 4, k + 3, block);
world.setBlockWithNotify(i + 3, j + 4, k + 4, block);
world.setBlockWithNotify(i + 4, j + 4, k + 1, block);
world.setBlockWithNotify(i + 4, j + 4, k + 2, block);
world.setBlockWithNotify(i + 4, j + 4, k + 3, block);
world.setBlockWithNotify(i + 4, j + 4, k + 4, block);
}
}
And here is the parts of it in mod_elementium:
public static final Block elementiumhousebuilder = new elementiumhousebuilder(197, 0).setHardness(1F).setBlockName("elementiumhousebuilder");
After checking your error stack ( that you posted ) it looks to me, that error happens when it tryes to draw the icon to your inventory. So maybe your icon paths are not correct?
I try'd changing it and it found it but, i still get the same error as last time but thanks for trying
It would just be placed in with all the class's. This is in:
mcp folder> jars > bin > .minecraft(folders need to be made in the .minecraft as well, Also in the code it needs to be .png after and have a / or it will not find it)
Hi, good people of the minecraft form. :smile.gif:
I am trying to make a block that when right clicked on spawns a house. But i am not doing to well at it. I found this code
package net.minecraft.src;
import java.util.Random;
public class elementiumhousebuilder extends Block
{
public elementiumhousebuilder(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random)
{
return mod_elementium.elementiumhousebuilder.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
public void onBlockClicked(World world, int i, int j, int k, EntityPlayer entityplayer)
{
int block = Block.planks.blockID;
int block2 = Block.doorWood.blockID;
int block3 = Block.wood.blockID;
int block4 = Block.glass.blockID;
//Log Pillers
world.setBlockWithNotify(i + 5, j + 0, k, block3);
world.setBlockWithNotify(i + 5, j + 1, k, block3);
world.setBlockWithNotify(i + 5, j + 2, k, block3);
world.setBlockWithNotify(i + 5, j + 3, k, block3);
world.setBlockWithNotify(i, j + 0, k + 5, block3);
world.setBlockWithNotify(i, j + 1, k + 5, block3);
world.setBlockWithNotify(i, j + 2, k + 5, block3);
world.setBlockWithNotify(i, j + 3, k + 5, block3);
world.setBlockWithNotify(i + 5, j + 0, k + 5, block3);
world.setBlockWithNotify(i + 5, j + 1, k + 5, block3);
world.setBlockWithNotify(i + 5, j + 2, k + 5, block3);
world.setBlockWithNotify(i + 5, j + 3, k + 5, block3);
world.setBlockWithNotify(i, j + 0, k, block3);
world.setBlockWithNotify(i, j + 1, k, block3);
world.setBlockWithNotify(i, j + 2, k, block3);
world.setBlockWithNotify(i, j + 3, k, block3);
//Walls (Wood)
world.setBlockWithNotify(i + 4, j + 0, k, block);
world.setBlockWithNotify(i + 4, j + 2, k, block);
world.setBlockWithNotify(i + 4, j + 3, k, block);
world.setBlockWithNotify(i + 1, j + 0, k, block);
world.setBlockWithNotify(i + 1, j + 2, k, block);
world.setBlockWithNotify(i + 1, j + 3, k, block);
world.setBlockWithNotify(i + 2, j + 3, k, block);
world.setBlockWithNotify(i + 2, j + 2, k, block);
world.setBlockWithNotify(i + 3, j + 2, k, block);
world.setBlockWithNotify(i + 3, j + 2, k, block);
world.setBlockWithNotify(i, j + 0, k + 1, block);
world.setBlockWithNotify(i, j + 0, k + 2, block);
world.setBlockWithNotify(i, j + 0, k + 3, block);
world.setBlockWithNotify(i, j + 0, k + 4, block);
world.setBlockWithNotify(i, j + 1, k + 1, block);
world.setBlockWithNotify(i, j + 2, k + 1, block);
world.setBlockWithNotify(i, j + 3, k + 1, block);
world.setBlockWithNotify(i, j + 1, k + 4, block);
world.setBlockWithNotify(i, j + 2, k + 4, block);
world.setBlockWithNotify(i, j + 3, k + 4, block);
world.setBlockWithNotify(i, j + 3, k + 2, block);
world.setBlockWithNotify(i, j + 3, k + 3, block);
world.setBlockWithNotify(i + 1, j + 0, k + 5, block);
world.setBlockWithNotify(i + 2, j + 0, k + 5, block);
world.setBlockWithNotify(i + 3, j + 0, k + 5, block);
world.setBlockWithNotify(i + 4, j + 0, k + 5, block);
world.setBlockWithNotify(i + 1, j + 1, k + 5, block);
world.setBlockWithNotify(i + 1, j + 2, k + 5, block);
world.setBlockWithNotify(i + 1, j + 3, k + 5, block);
world.setBlockWithNotify(i + 4, j + 1, k + 5, block);
world.setBlockWithNotify(i + 4, j + 2, k + 5, block);
world.setBlockWithNotify(i + 4, j + 3, k + 5, block);
world.setBlockWithNotify(i + 2, j + 3, k + 5, block);
world.setBlockWithNotify(i + 3, j + 3, k + 5, block);
world.setBlockWithNotify(i + 5, j + 0, k + 1, block);
world.setBlockWithNotify(i + 5, j + 0, k + 2, block);
world.setBlockWithNotify(i + 5, j + 0, k + 3, block);
world.setBlockWithNotify(i + 5, j + 0, k + 4, block);
world.setBlockWithNotify(i + 5, j + 1, k + 1, block);
world.setBlockWithNotify(i + 5, j + 2, k + 1, block);
world.setBlockWithNotify(i + 5, j + 3, k + 1, block);
world.setBlockWithNotify(i + 5, j + 1, k + 4, block);
world.setBlockWithNotify(i + 5, j + 2, k + 4, block);
world.setBlockWithNotify(i + 5, j + 3, k + 4, block);
world.setBlockWithNotify(i + 5, j + 3, k + 2, block);
world.setBlockWithNotify(i + 5, j + 3, k + 3, block);
world.setBlockWithNotify(i + 3, j + 3, k, block);
//Walls (Glass)
world.setBlockWithNotify(i + 4, j + 1, k, block4);
world.setBlockWithNotify(i + 1, j + 1, k, block4);
world.setBlockWithNotify(i, j + 1, k + 2, block4);
world.setBlockWithNotify(i, j + 1, k + 3, block4);
world.setBlockWithNotify(i, j + 2, k + 2, block4);
world.setBlockWithNotify(i, j + 2, k + 3, block4);
world.setBlockWithNotify(i + 2, j + 1, k + 5, block4);
world.setBlockWithNotify(i + 3, j + 1, k + 5, block4);
world.setBlockWithNotify(i + 2, j + 2, k + 5, block4);
world.setBlockWithNotify(i + 3, j + 2, k + 5, block4);
world.setBlockWithNotify(i + 5, j + 1, k + 2, block4);
world.setBlockWithNotify(i + 5, j + 1, k + 3, block4);
world.setBlockWithNotify(i + 5, j + 2, k + 2, block4);
world.setBlockWithNotify(i + 5, j + 2, k + 3, block4);
//Roof
world.setBlockWithNotify(i + 1, j + 4, k + 1, block);
world.setBlockWithNotify(i + 1, j + 4, k + 2, block);
world.setBlockWithNotify(i + 1, j + 4, k + 3, block);
world.setBlockWithNotify(i + 1, j + 4, k + 4, block);
world.setBlockWithNotify(i + 2, j + 4, k + 1, block);
world.setBlockWithNotify(i + 2, j + 4, k + 2, block);
world.setBlockWithNotify(i + 2, j + 4, k + 3, block);
world.setBlockWithNotify(i + 2, j + 4, k + 4, block);
world.setBlockWithNotify(i + 3, j + 4, k + 1, block);
world.setBlockWithNotify(i + 3, j + 4, k + 2, block);
world.setBlockWithNotify(i + 3, j + 4, k + 3, block);
world.setBlockWithNotify(i + 3, j + 4, k + 4, block);
world.setBlockWithNotify(i + 4, j + 4, k + 1, block);
world.setBlockWithNotify(i + 4, j + 4, k + 2, block);
world.setBlockWithNotify(i + 4, j + 4, k + 3, block);
world.setBlockWithNotify(i + 4, j + 4, k + 4, block);
}
}
This was posted in april 2011
i have been working on a block that spawns a building. It is working ok with everything BUT when i craft it i get this error.
Mods loaded: 5
ModLoader 1.1
mod_bronze 1.1
mod_elementium 1.0.1
mod_lightobsidian 1.1
mod_supertree 1.1
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 11a268db --------
Generated 1/18/12 1:43 PM
Minecraft: Minecraft 1.1
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce GTX 570/PCI/SSE2 version 4.1.0, NVIDIA Corporation
java.lang.NullPointerException
at net.minecraft.src.ItemStack.getIconIndex(ItemStack.java:81)
at net.minecraft.src.RenderItem.renderItemIntoGUI(RenderItem.java:229)
at net.minecraft.src.GuiContainer.drawSlotInventory(GuiContainer.java:178)
at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:51)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:797)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:17)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:737)
at net.minecraft.client.Minecraft.run(Minecraft.java:634)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 3ed93639 ----------
But i would like some good, very nice modder would help me learn how to do this. When they do they will get a +1. Here is the main class for all of it
package net.minecraft.src;
import java.util.Random;
import net.minecraft.client.Minecraft;
public class mod_elementium extends BaseMod
{
public static final Block elementiumore = new elementiumore(180, 0).setHardness(1F).setBlockName("elementiumore");
public static final Item elementiumIngot = new ItemelementiumIngot(602).setItemName("elementiumIngot");
public static final Item elementiumbattery = new Itemelementiumbattery(603).setItemName("elementiumbattery");
public static final Item elementiumcoal = new Itemelementiumcoal(604).setItemName("elementiumcoal");
public static final Block elementiumtorch = (new elementiumTorch(184, 0)).setBlockName("elementiumtorch");
public static final Item elementiumxbow = new Itemelementiumcrossbow(500).setItemName("xbow");
public static final Item minorelementiumbattery = new minorelementiumbattery(704).setItemName("minorelementiumbattery");
public static final Block elementiumhousebuilder = new elementiumhousebuilder(197, 0).setHardness(1F).setBlockName("elementiumhousebuilder");
public mod_elementium()
{
}
//Block generator
public void GenerateSurface(World world, Random rand, int baseX, int baseZ)
{
for(int x = 0; x < 30; x++)
{
int Xcoord = baseX + rand.nextInt(5);
int Ycoord = rand.nextInt(65);
int Zcoord = baseZ + rand.nextInt(5);
(new WorldGenMinable(elementiumore.blockID, 35)).generate(world, rand, Xcoord, Ycoord, Zcoord);
}
}
public int AddFuel(int i, int j)
{ //200 = 1 Cycle cycle = 1 done
if (i == elementiumbattery.shiftedIndex)
return 4000;
return 0;
}
public void load()
{
//Modloader stuff
//ore
ModLoader.RegisterBlock(elementiumore);
ModLoader.AddName(elementiumore, "Elementium Ore");
elementiumore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/blockium.png");
// Ingot
ModLoader.AddSmelting(mod_elementium.elementiumore.blockID, new ItemStack(elementiumIngot, 1));
elementiumIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/item/blockiumingot.png" );
ModLoader.AddName(elementiumIngot, "Elementium Ingot");
//battery
ModLoader.AddName(elementiumbattery, "Elementium Battery");
ModLoader.AddRecipe(new ItemStack(elementiumbattery, 1), new Object[]
{
"B B", "III", "BIB", Character.valueOf('B'), mod_elementium.elementiumore, Character.valueOf('I'), mod_elementium.elementiumIngot
});
elementiumbattery.iconIndex = ModLoader.addOverride("/gui/items.png", "/item/blockiumbattery.png");
//blockium coal
ModLoader.AddName(elementiumcoal, "Elementium Coal");
ModLoader.AddRecipe(new ItemStack(elementiumcoal, 1), new Object[]{
"B B", " B ", "B B", Character.valueOf('B'), mod_elementium.elementiumore
});
elementiumcoal.iconIndex = ModLoader.addOverride("/gui/items.png", "/item/blockiumcoal.png");
//torch
ModLoader.AddName(elementiumtorch, "Elementium Torch");
ModLoader.AddRecipe(new ItemStack(elementiumtorch, 10), new Object []{
" C ", " S ", Character.valueOf('C'), elementiumcoal, Character.valueOf('S'), Item.stick
});
elementiumtorch.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/item/blockiumtorch.png");
//xbow
elementiumxbow.iconIndex = ModLoader.addOverride("/gui/items.png", "/item/blockiumxbow.png");
ModLoader.AddName(elementiumxbow, "Elementium Crossbow");
ModLoader.AddRecipe(new ItemStack(elementiumxbow, 1), new Object[]
{
"BBB", "BP ", "B P", Character.valueOf('B'), elementiumIngot, Character.valueOf('P'), Block.planks
});
//minor elementium battery
ModLoader.AddName(minorelementiumbattery, "Minor Elementium Battery");
ModLoader.AddRecipe(new ItemStack(minorelementiumbattery, 1), new Object[]{
"E E", "EEE", "EEE", Character.valueOf('E'), elementiumore
});
minorelementiumbattery.iconIndex = ModLoader.addOverride("/gui/items.png", "/minorelementiumbattery.png");
//elementiumhousebuilder
elementiumhousebuilder.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/elementiumhousebuilder.png");
ModLoader.AddName(elementiumhousebuilder, "Elementium House Builder");
ModLoader.AddRecipe(new ItemStack(elementiumhousebuilder, 1), new Object[]{
"M M", "B B", Character.valueOf('M'), minorelementiumbattery, Character.valueOf('B'), elementiumbattery,
});
//add next one here
}
public String getVersion()
{
return "1.0.1";
}
}
Plz help me get this working and i will be very happy and i will add a thank you part and add your name with your answer.
Thanks for being awesome and helping a learning modder
with your help you also just gave a tutorial to me and others who want to do something like this
Here is a few ideas. I would not add them all.
1. too many items
2.Single player commands
3.Mo's creatures
4.[1.1] [SSP & SMP] ExtraBiomes V1.41 Update! New Autumn Woods and Green Hills!
5.[1.1] Little Blocks Mod [1.8] Now with Pistons and RedStone!
6.[1.1] ComputerCraft 1.21
7.[1.0/1.1][SMP] Forestry for Minecraft, Tree Farms automated
8.Power Craft v1.8
Hi everyone i am trying to add a block to the game that builds a small house.
However i am not to good of a modder. The error i get is this
Mods loaded: 5
ModLoader 1.1
mod_bronze 1.1
mod_elementium 1.0.1
mod_lightobsidian 1.1
mod_supertree 1.1
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 11a268db --------
Generated 1/18/12 10:30 AM
Minecraft: Minecraft 1.1
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce GTX 570/PCI/SSE2 version 4.1.0, NVIDIA Corporation
java.lang.NullPointerException
at net.minecraft.src.ItemStack.getIconIndex(ItemStack.java:81)
at net.minecraft.src.RenderItem.renderItemIntoGUI(RenderItem.java:229)
at net.minecraft.src.GuiContainer.drawSlotInventory(GuiContainer.java:178)
at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:51)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:797)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:17)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:737)
at net.minecraft.client.Minecraft.run(Minecraft.java:634)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 43644cba ----------
Also i only get this error when i craft this block. I will link anything i have to. But i think i found the 2 things that are causing this.
I can only find out dated code like this
package net.minecraft.src;
import java.util.Random;
public class elementiumhousebuilder extends Block
{
public elementiumhousebuilder(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random)
{
return mod_elementium.elementiumhousebuilder.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
public void onBlockClicked(World world, int i, int j, int k, EntityPlayer entityplayer)
{
int block = Block.planks.blockID;
int block2 = Block.doorWood.blockID;
int block3 = Block.wood.blockID;
int block4 = Block.glass.blockID;
//Log Pillers
world.setBlockWithNotify(i + 5, j + 0, k, block3);
world.setBlockWithNotify(i + 5, j + 1, k, block3);
world.setBlockWithNotify(i + 5, j + 2, k, block3);
world.setBlockWithNotify(i + 5, j + 3, k, block3);
world.setBlockWithNotify(i, j + 0, k + 5, block3);
world.setBlockWithNotify(i, j + 1, k + 5, block3);
world.setBlockWithNotify(i, j + 2, k + 5, block3);
world.setBlockWithNotify(i, j + 3, k + 5, block3);
world.setBlockWithNotify(i + 5, j + 0, k + 5, block3);
world.setBlockWithNotify(i + 5, j + 1, k + 5, block3);
world.setBlockWithNotify(i + 5, j + 2, k + 5, block3);
world.setBlockWithNotify(i + 5, j + 3, k + 5, block3);
world.setBlockWithNotify(i, j + 0, k, block3);
world.setBlockWithNotify(i, j + 1, k, block3);
world.setBlockWithNotify(i, j + 2, k, block3);
world.setBlockWithNotify(i, j + 3, k, block3);
//Walls (Wood)
world.setBlockWithNotify(i + 4, j + 0, k, block);
world.setBlockWithNotify(i + 4, j + 2, k, block);
world.setBlockWithNotify(i + 4, j + 3, k, block);
world.setBlockWithNotify(i + 1, j + 0, k, block);
world.setBlockWithNotify(i + 1, j + 2, k, block);
world.setBlockWithNotify(i + 1, j + 3, k, block);
world.setBlockWithNotify(i + 2, j + 3, k, block);
world.setBlockWithNotify(i + 2, j + 2, k, block);
world.setBlockWithNotify(i + 3, j + 2, k, block);
world.setBlockWithNotify(i + 3, j + 2, k, block);
world.setBlockWithNotify(i, j + 0, k + 1, block);
world.setBlockWithNotify(i, j + 0, k + 2, block);
world.setBlockWithNotify(i, j + 0, k + 3, block);
world.setBlockWithNotify(i, j + 0, k + 4, block);
world.setBlockWithNotify(i, j + 1, k + 1, block);
world.setBlockWithNotify(i, j + 2, k + 1, block);
world.setBlockWithNotify(i, j + 3, k + 1, block);
world.setBlockWithNotify(i, j + 1, k + 4, block);
world.setBlockWithNotify(i, j + 2, k + 4, block);
world.setBlockWithNotify(i, j + 3, k + 4, block);
world.setBlockWithNotify(i, j + 3, k + 2, block);
world.setBlockWithNotify(i, j + 3, k + 3, block);
world.setBlockWithNotify(i + 1, j + 0, k + 5, block);
world.setBlockWithNotify(i + 2, j + 0, k + 5, block);
world.setBlockWithNotify(i + 3, j + 0, k + 5, block);
world.setBlockWithNotify(i + 4, j + 0, k + 5, block);
world.setBlockWithNotify(i + 1, j + 1, k + 5, block);
world.setBlockWithNotify(i + 1, j + 2, k + 5, block);
world.setBlockWithNotify(i + 1, j + 3, k + 5, block);
world.setBlockWithNotify(i + 4, j + 1, k + 5, block);
world.setBlockWithNotify(i + 4, j + 2, k + 5, block);
world.setBlockWithNotify(i + 4, j + 3, k + 5, block);
world.setBlockWithNotify(i + 2, j + 3, k + 5, block);
world.setBlockWithNotify(i + 3, j + 3, k + 5, block);
world.setBlockWithNotify(i + 5, j + 0, k + 1, block);
world.setBlockWithNotify(i + 5, j + 0, k + 2, block);
world.setBlockWithNotify(i + 5, j + 0, k + 3, block);
world.setBlockWithNotify(i + 5, j + 0, k + 4, block);
world.setBlockWithNotify(i + 5, j + 1, k + 1, block);
world.setBlockWithNotify(i + 5, j + 2, k + 1, block);
world.setBlockWithNotify(i + 5, j + 3, k + 1, block);
world.setBlockWithNotify(i + 5, j + 1, k + 4, block);
world.setBlockWithNotify(i + 5, j + 2, k + 4, block);
world.setBlockWithNotify(i + 5, j + 3, k + 4, block);
world.setBlockWithNotify(i + 5, j + 3, k + 2, block);
world.setBlockWithNotify(i + 5, j + 3, k + 3, block);
world.setBlockWithNotify(i + 3, j + 3, k, block);
//Walls (Glass)
world.setBlockWithNotify(i + 4, j + 1, k, block4);
world.setBlockWithNotify(i + 1, j + 1, k, block4);
world.setBlockWithNotify(i, j + 1, k + 2, block4);
world.setBlockWithNotify(i, j + 1, k + 3, block4);
world.setBlockWithNotify(i, j + 2, k + 2, block4);
world.setBlockWithNotify(i, j + 2, k + 3, block4);
world.setBlockWithNotify(i + 2, j + 1, k + 5, block4);
world.setBlockWithNotify(i + 3, j + 1, k + 5, block4);
world.setBlockWithNotify(i + 2, j + 2, k + 5, block4);
world.setBlockWithNotify(i + 3, j + 2, k + 5, block4);
world.setBlockWithNotify(i + 5, j + 1, k + 2, block4);
world.setBlockWithNotify(i + 5, j + 1, k + 3, block4);
world.setBlockWithNotify(i + 5, j + 2, k + 2, block4);
world.setBlockWithNotify(i + 5, j + 2, k + 3, block4);
//Roof
world.setBlockWithNotify(i + 1, j + 4, k + 1, block);
world.setBlockWithNotify(i + 1, j + 4, k + 2, block);
world.setBlockWithNotify(i + 1, j + 4, k + 3, block);
world.setBlockWithNotify(i + 1, j + 4, k + 4, block);
world.setBlockWithNotify(i + 2, j + 4, k + 1, block);
world.setBlockWithNotify(i + 2, j + 4, k + 2, block);
world.setBlockWithNotify(i + 2, j + 4, k + 3, block);
world.setBlockWithNotify(i + 2, j + 4, k + 4, block);
world.setBlockWithNotify(i + 3, j + 4, k + 1, block);
world.setBlockWithNotify(i + 3, j + 4, k + 2, block);
world.setBlockWithNotify(i + 3, j + 4, k + 3, block);
world.setBlockWithNotify(i + 3, j + 4, k + 4, block);
world.setBlockWithNotify(i + 4, j + 4, k + 1, block);
world.setBlockWithNotify(i + 4, j + 4, k + 2, block);
world.setBlockWithNotify(i + 4, j + 4, k + 3, block);
world.setBlockWithNotify(i + 4, j + 4, k + 4, block);
}
}
the code for my ore is here
package net.minecraft.src;
import java.util.Random;
import net.minecraft.client.Minecraft;
public class mod_elementium extends BaseMod
{
public static final Block elementiumore = new elementiumore(180, 0).setHardness(1F).setBlockName("elementiumore");
public static final Item elementiumIngot = new ItemelementiumIngot(602).setItemName("elementiumIngot");
public static final Item elementiumbattery = new Itemelementiumbattery(603).setItemName("elementiumbattery");
public static final Item elementiumcoal = new Itemelementiumcoal(604).setItemName("elementiumcoal");
public static final Block elementiumtorch = (new elementiumTorch(184, 0)).setBlockName("elementiumtorch");
public static final Item elementiumxbow = new Itemelementiumcrossbow(500).setItemName("xbow");
public static final Item minorelementiumbattery = new minorelementiumbattery(704).setItemName("minorelementiumbattery");
public static final Block elementiumhousebuilder = new elementiumhousebuilder(197, 0).setHardness(1F).setBlockName("elementiumhousebuilder");
public mod_elementium()
{
}
//Block generator
public void GenerateSurface(World world, Random rand, int baseX, int baseZ)
{
for(int x = 0; x < 30; x++)
{
int Xcoord = baseX + rand.nextInt(5);
int Ycoord = rand.nextInt(65);
int Zcoord = baseZ + rand.nextInt(5);
(new WorldGenMinable(elementiumore.blockID, 35)).generate(world, rand, Xcoord, Ycoord, Zcoord);
}
}
public int AddFuel(int i, int j)
{ //200 = 1 Cycle cycle = 1 done
if (i == elementiumbattery.shiftedIndex)
return 4000;
return 0;
}
public void load()
{
//Modloader stuff
//ore
ModLoader.RegisterBlock(elementiumore);
ModLoader.AddName(elementiumore, "Elementium Ore");
elementiumore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/blockium.png");
// Ingot
ModLoader.AddSmelting(mod_elementium.elementiumore.blockID, new ItemStack(elementiumIngot, 1));
elementiumIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/item/blockiumingot.png" );
ModLoader.AddName(elementiumIngot, "Elementium Ingot");
//battery
ModLoader.AddName(elementiumbattery, "Elementium Battery");
ModLoader.AddRecipe(new ItemStack(elementiumbattery, 1), new Object[]
{
"B B", "III", "BIB", Character.valueOf('B'), mod_elementium.elementiumore, Character.valueOf('I'), mod_elementium.elementiumIngot
});
elementiumbattery.iconIndex = ModLoader.addOverride("/gui/items.png", "/item/blockiumbattery.png");
//blockium coal
ModLoader.AddName(elementiumcoal, "Elementium Coal");
ModLoader.AddRecipe(new ItemStack(elementiumcoal, 1), new Object[]{
"B B", " B ", "B B", Character.valueOf('B'), mod_elementium.elementiumore
});
elementiumcoal.iconIndex = ModLoader.addOverride("/gui/items.png", "/item/blockiumcoal.png");
//torch
ModLoader.AddName(elementiumtorch, "Elementium Torch");
ModLoader.AddRecipe(new ItemStack(elementiumtorch, 10), new Object []{
" C ", " S ", Character.valueOf('C'), elementiumcoal, Character.valueOf('S'), Item.stick
});
elementiumtorch.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/item/blockiumtorch.png");
//xbow
elementiumxbow.iconIndex = ModLoader.addOverride("/gui/items.png", "/item/blockiumxbow.png");
ModLoader.AddName(elementiumxbow, "Elementium Crossbow");
ModLoader.AddRecipe(new ItemStack(elementiumxbow, 1), new Object[]
{
"BBB", "BP ", "B P", Character.valueOf('B'), elementiumIngot, Character.valueOf('P'), Block.planks
});
//minor elementium battery
ModLoader.AddName(minorelementiumbattery, "Minor Elementium Battery");
ModLoader.AddRecipe(new ItemStack(minorelementiumbattery, 1), new Object[]{
"E E", "EEE", "EEE", Character.valueOf('E'), elementiumore
});
minorelementiumbattery.iconIndex = ModLoader.addOverride("/gui/items.png", "/minorelementiumbattery.png");
//elementiumhousebuilder
elementiumhousebuilder.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/elementiumhousebuilder.png");
ModLoader.AddName(elementiumhousebuilder, "Elementium House Builder");
ModLoader.AddRecipe(new ItemStack(elementiumhousebuilder, 1), new Object[]{
"M M", "B B", Character.valueOf('M'), minorelementiumbattery, Character.valueOf('B'), elementiumbattery
});
//add next one here
}
public String getVersion()
{
return "1.0.1";
}
}
everything but this is working so far.
If anyone can post how to do it i will make a "Thanks To" area with there name and tutorial.
Hi all :biggrin.gif:
i am working on adding a blockium torch to the game :smile.gif: Also i code with modloader but i keep getting this one error.... I would like someone to help me fix this so that i can finish this torch.(note i am trying to expand x2robbie2x's code since i have been learning from his tutorials. Dont send me anything about it. i am still learning) :laugh.gif:
i get this error:
Mods loaded: 5
ModLoader 1.1
mod_blockium 1.0.1
mod_bronze 1.1
mod_lightobsidian 1.1
mod_supertree 1.1
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 cb49c0f2 --------
Generated 1/17/12 9:07 PM
Minecraft: Minecraft 1.1
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce GTX 570/PCI/SSE2 version 4.1.0, NVIDIA Corporation
java.lang.NullPointerException
at net.minecraft.src.ItemStack.getIconIndex(ItemStack.java:81)
at net.minecraft.src.RenderItem.renderItemIntoGUI(RenderItem.java:229)
at net.minecraft.src.GuiContainer.drawSlotInventory(GuiContainer.java:178)
at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:51)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:797)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:17)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:737)
at net.minecraft.client.Minecraft.run(Minecraft.java:634)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT c55dcb0d ----------
So really its
java.lang.NullPointerException
The code for the ore/ingot and everything is here
package net.minecraft.src;
import java.util.Random;
import net.minecraft.client.Minecraft;
public class mod_blockium extends BaseMod
{
public static final Block blockium = new blockiumblock(180, 0).setHardness(1F).setBlockName("blockium");
public static final Item blockiumIngot = new ItemBlockiumIngot(602).setItemName("BlockiumIngot");
public static final Item blockiumbattery = new ItemBlockiumbattery(603).setItemName("Blockiumbattery");
public static final Item blockiumcoal = new Itemblockiumcoal(604).setItemName("Blockiumcoal");
public static final Block blockiumtorch = (new BlockiumTorch(184, 0)).setBlockName("blockiumtorch");
public static final Item blockiumxbow = new Itemblockiumcrossbow(500).setItemName("xbow");
public mod_blockium()
{
}
//Block generator
public void GenerateSurface(World world, Random rand, int baseX, int baseZ)
{
for(int x = 0; x < 30; x++)
{
int Xcoord = baseX + rand.nextInt(5);
int Ycoord = rand.nextInt(65);
int Zcoord = baseZ + rand.nextInt(5);
(new WorldGenMinable(blockium.blockID, 35)).generate(world, rand, Xcoord, Ycoord, Zcoord);
}
}
public int AddFuel(int i, int j)
{ //200 = 1 Cycle cycle = 1 done
if (i == blockiumbattery.shiftedIndex)
return 4000;
return 0;
}
public void load()
{
//Modloader stuff
//ore
ModLoader.RegisterBlock(blockium);
ModLoader.AddName(blockium, "Blockium Ore");
blockium.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/blockium.png");
// Ingot
ModLoader.AddSmelting(mod_blockium.blockium.blockID, new ItemStack(blockiumIngot, 1));
blockiumIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/item/blockiumingot.png" );
ModLoader.AddName(blockiumIngot, "Blockium Ingot");
//battery
ModLoader.AddName(blockiumbattery, "Blockium Battery");
ModLoader.AddRecipe(new ItemStack(blockiumbattery, 1), new Object[]
{
"B B", "III", "BIB", Character.valueOf('B'), mod_blockium.blockium, Character.valueOf('I'), mod_blockium.blockiumIngot
});
blockiumbattery.iconIndex = ModLoader.addOverride("/gui/items.png", "/item/blockiumbattery.png");
//blockium coal
ModLoader.AddName(blockiumcoal, "Blockium Coal");
ModLoader.AddRecipe(new ItemStack(blockiumcoal, 1), new Object[]{
"B B", " B ", "B B", Character.valueOf('B'), mod_blockium.blockium
});
blockiumcoal.iconIndex = ModLoader.addOverride("/gui/items.png", "/item/blockiumcoal.png");
//torch
ModLoader.AddName(blockiumtorch, "Blockium Torch");
ModLoader.AddRecipe(new ItemStack(blockiumtorch, 10), new Object []{
" C ", " S ", Character.valueOf('C'), blockiumcoal, Character.valueOf('S'), Item.stick
});
blockiumtorch.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/item/blockiumtorch.png");
//xbow
blockiumxbow.iconIndex = ModLoader.addOverride("/gui/items.png", "/item/blockiumxbow.png");
ModLoader.AddName(blockiumxbow, "Blockium Crossbow");
ModLoader.AddRecipe(new ItemStack(blockiumxbow, 1), new Object[]
{
"BBB", "BP ", "B P", Character.valueOf('B'), blockium, Character.valueOf('P'), Block.planks
});
}
public String getVersion()
{
return "1.0.1";
}
}
And here is the torch code its self :wink.gif:
package net.minecraft.src;
public class BlockiumTorch extends Block
{
protected BlockiumTorch(int i, int j)
{
super(i, j, Material.circuits);
setTickOnLoad(true);
}
}
Note that everything but the torch its self is working fine :cool.gif: i just need to get it to work :sad.gif:
This will be crafted like this:
= blockium ore
= stick
:Coal:= blockiumcoal
= blank
now you have blockium coal
to make the torch:
and then you have your
I am very bad at all this so many thanks for reading this post.
0
0
# found jad, ff, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs
, param csvs, astyle, astyle config
== Recompiling client ==
> Cleaning bin
> Recompiling
'"C:\Program Files\Java\jdk1.7.0_02\bin\javac" -Xlint:-options -deprecation -g -
source 1.6 -target 1....' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\World.java:163: error: cannot find symbol
return var3.getBiomeGenForWorldCoords(par1 & 15, par2 & 15, this
.worldProvider.worldChunkMgr);
^
symbol: method getBiomeGenForWorldCoords(int,int,WorldChunkManager)
location: variable var3 of type Chunk
src\minecraft\net\minecraft\src\GuiIngame.java:442: error: cannot find symbol
java.util.List list = netclienthandler.playerNames;
^
symbol: variable playerNames
location: variable netclienthandler of type NetClientHandler
2 errors
==================
Press any key to continue . . .
any ideas?
0
Also food
0
I today commented out 34 files and then recompiled and then reob'd and it deleted those 34 files.
I use eclipse. i have tried to import them and all but it just wont work, if you know how to do so then please tell me, thanks.
If you dont but you know how to open the plain .class file (yes, i got them from the recycling bin) without eclipse then i can rewrite them all, please tell me if there is a way for me to.
If there is a method for fixing/doing any of these things then if you can tell me +1 for you, even for trying +1 for you.
And finaly when i reob later on how can i make it so that i know what files make what (like mod_********* = part of the ********* mod. But if it was someting like fk.class or cd.class then what is it? (Note the fk and cd.class are real ones from my reob)
-11darktooth
0
yes i did... i finsished this topic a day ago but i dont know hot to delete it
0
Hi i am just learning how to mod, but i do have a working code for making a hut. I just cant get it to spawn doors, Here it is.
Elementiumhousebuilder.java
I don't know if this helps, but when left clicked on it spawns a little hut. Maybe this can help you somehow.
0
I try'd changing it and it found it but, i still get the same error as last time but thanks for trying
0
go into your history folder and look for something that might have it =)
but i really need this done, but if you dont want to you dont need to
0
0
Add this bit of code
And as for a item add this:
say if you where adding a block in a folder called "Block" it would be(this is part of my mod) :
and you would put the .png in the folder Block in that example.
as for just something like this:
It would just be placed in with all the class's. This is in:
mcp folder> jars > bin > .minecraft(folders need to be made in the .minecraft as well, Also in the code it needs to be .png after and have a / or it will not find it)
11darktooth
0
I am trying to make a block that when right clicked on spawns a house. But i am not doing to well at it. I found this code
i have been working on a block that spawns a building. It is working ok with everything BUT when i craft it i get this error.
But i would like some good, very nice modder would help me learn how to do this. When they do they will get a +1. Here is the main class for all of it
with your help you also just gave a tutorial to me and others who want to do something like this
0
1. too many items
2.Single player commands
3.Mo's creatures
4.[1.1] [SSP & SMP] ExtraBiomes V1.41 Update! New Autumn Woods and Green Hills!
5.[1.1] Little Blocks Mod [1.8] Now with Pistons and RedStone!
6.[1.1] ComputerCraft 1.21
7.[1.0/1.1][SMP] Forestry for Minecraft, Tree Farms automated
8.Power Craft v1.8
0
However i am not to good of a modder. The error i get is this
I can only find out dated code like this
the code for my ore is here
If anyone can post how to do it i will make a "Thanks To" area with there name and tutorial.
0
i am working on adding a blockium torch to the game :smile.gif: Also i code with modloader but i keep getting this one error.... I would like someone to help me fix this so that i can finish this torch.(note i am trying to expand x2robbie2x's code since i have been learning from his tutorials. Dont send me anything about it. i am still learning) :laugh.gif:
i get this error:
The code for the ore/ingot and everything is here
And here is the torch code its self :wink.gif:
This will be crafted like this:
= blockium ore
= stick
:Coal:= blockiumcoal
= blank
now you have blockium coal
to make the torch:
and then you have your
0
Also here is a code to one of my mods that is a work in progress