It looks like one of your mods is conflicting. I would remove the majority of them to be safe, but it looks like the "Spike" mod that is causing your problem. :3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected]
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT 8eb08238 --------
Minecraft: Minecraft 1.1
java.lang.NoSuchMethodError: vq.isBlockSolidOnSide(IIII)Z
at eloraam.core.RedPowerLib.canSupportWire(RedPowerLib.java:110)
at eloraam.wiring.TileWiring.refreshBlockSupport(TileWiring.java:194)
at eloraam.wiring.TileWiring.onBlockNeighborChange(TileWiring.java:123)
at eloraam.core.BlockMultipart.a(BlockMultipart.java:50)
at vq.m(World.java:737)
at vq.j(World.java:722)
at vq.f(World.java:612)
at BlockRedstoneWireless.setState(BlockRedstoneWireless.java:43)
at BlockRedstoneWirelessR.updateRedstoneWirelessTick(BlockRedstoneWirelessR.java:128)
at BlockRedstoneWireless.a(BlockRedstoneWireless.java:246)
at BlockRedstoneWirelessR.changeFreq(BlockRedstoneWirelessR.java:48)
at TileEntityRedstoneWirelessR.k_(TileEntityRedstoneWirelessR.java:26)
at vq.m(World.java:1742)
at net.minecraft.client.Minecraft.k(SourceFile:1594)
at net.minecraft.client.Minecraft.x(SourceFile:709)
at net.minecraft.client.Minecraft.run(SourceFile:662)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 10bb3ad7 ----------
Neither of those worked...Upon further inspection I realize it wasn't about the world, it's about the ItemStack variable. I've tried initializing it with something like:
ItemStack itemstack = new ItemStack(mod_Floating.gps);
I've tried many variations of that. But I think it has to do with not being able to read the NBTTagCompound outside the class? Or something?
Revised code:
public void actionPerformed(GuiButton gb)
{
EntityPlayer ep = ModLoader.getMinecraftInstance().thePlayer;
ItemStack itemstack = new ItemStack(mod_Floating.gps);
int i = (int)ep.posX;
int j = (int)ep.posY;
int k = (int)ep.posZ;
if(gb.id == 1)
{
ItemGPS.saveCoords(itemstack, i, j, k);
}
if(gb.id == 2)
{
ModLoader.getMinecraftInstance().thePlayer.addChatMessage("Remove?");
}
if(gb.id == 3)
{
ModLoader.getMinecraftInstance().thePlayer.addChatMessage("Teleporting to:" +i+j+k);
ItemGPS.teleport(itemstack);
}
}
public static void teleport(ItemStack itemstack)
{
EntityPlayer entityplayer = ModLoader.getMinecraftInstance().thePlayer;;
NBTTagCompound tag = itemstack.getTagCompound();
int i = tag.getInteger("x");
int j = tag.getInteger("y");
int k = tag.getInteger("z");
double j1 = j + 2.7;
entityplayer.setPosition(i, j1, k);
entityplayer.addChatMessage("Teleporting to:" + i + j1 + k);
}
Once again, the teleport method works fine within the ItemGPS class, but not if referenced from outside the class.
Run minecraft from the command line (google how to do that). It'll keep minecraft from fail crashing like that and will let you get a good look at the crash report.
So today while fiddling around with GUI's, I was trying to make a button in a gui run a method from another class, thought it would be easy, but errors bombarded me.
public void actionPerformed(GuiButton gb)
{
ItemStack itemstack = new ItemStack(mod_Floating.gps);
EntityPlayer ep = ModLoader.getMinecraftInstance().thePlayer;
int i = (int)ep.posX;
int j = (int)ep.posY;
int k = (int)ep.posZ;
if(gb.id == 1)
{
ItemGPS.saveCoords(itemstack, i, j, k);
}
if(gb.id == 2)
{
ModLoader.getMinecraftInstance().thePlayer.addChatMessage("Remove?");
}
if(gb.id == 3)
{
ModLoader.getMinecraftInstance().thePlayer.addChatMessage("Teleporting to:" +i+j+k);
ItemGPS.teleport(world, ep, itemstack);
}
}
But my problem comes from the world variable in the very bottom line. I just can't seem to get it to run without tossing a Null Pointer Exception that points at the teleport() method in ItemGPS.
Here is that code within the ItemGPS class:
public static void teleport(World world, EntityPlayer entityplayer, ItemStack itemstack)
{
NBTTagCompound Tag = itemstack.getTagCompound();
int i = Tag.getInteger("x");
int j = Tag.getInteger("y");
int k = Tag.getInteger("z");
double j1 = j + 2.7;
entityplayer.setPosition(i, j1, k);
entityplayer.addChatMessage("Teleporting to:" + i + j1 + k);
}
I've tested and re tested this; if i call the method from within the ItemGPS class, it works fine, no null pointer exception. But as soon as I try to use it from the GuiTeleporter class, like when a button is pressed, i get this error:
java.lang.NullPointerException
at net.minecraft.src.ItemGPS.teleport(ItemGPS.java:32)
at net.minecraft.src.GuiTeleporter.actionPerformed(GuiTeleporter.java:35)
at net.minecraft.src.GuiScreen.mouseClicked(GuiScreen.java:98)
at net.minecraft.src.GuiScreen.handleMouseInput(GuiScreen.java:165)
at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:151)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1642)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:891)
at net.minecraft.client.Minecraft.run(Minecraft.java:799)
at java.lang.Thread.run(Unknown Source)
I've looked at a couple tutorials, and they all ask you to put the armor in the jar. I don't want to do that.
Is there no way to make ModLoader read the armor from, for instance, where the rest of the textures for a mod typically are?
If not, someone knowledgeable should show me how I can "install" my rendered armor textures to the armor folder within the minecraft.jar.
The problem I'm having is that when you add custom renders like such, you have to use ModLoader to add them to the game actually, so Minecraft recognizes them (right?). I'm struggling figuring the syntax of that out.
I can't tell if that's part of the block or not, but just think of the enchanting table. When you craft it, there is no book on top of it in the inventory, but when you place it down there is the model of the book; that's what I'm trying to do.
The thing on top is a model within itself, not part of the block model.
The enchanting table classes are only set up to use the book, I suggest you make a model that has the thing you want to spin on top. The book on the enchantment table is not actually part of the block model. It is rendered in.
Yes, I know that. Maybe me original post was unclear, but what I'm struggling with is getting my custom model to render above the block.
0
Thanks! Nice to see some people enjoying it
0
Glad you like it!
I'll look into that !
0
This is a redpower 2 error, go there.
0
0
I've tried many variations of that. But I think it has to do with not being able to read the NBTTagCompound outside the class? Or something?
Revised code:
Once again, the teleport method works fine within the ItemGPS class, but not if referenced from outside the class.
0
0
Here is that code within the ItemGPS class:
0
+1
0
Is there no way to make ModLoader read the armor from, for instance, where the rest of the textures for a mod typically are?
If not, someone knowledgeable should show me how I can "install" my rendered armor textures to the armor folder within the minecraft.jar.
Thanks!
0
Thanks for this tut
Cheers!
0
0
0
0
I can't tell if that's part of the block or not, but just think of the enchanting table. When you craft it, there is no book on top of it in the inventory, but when you place it down there is the model of the book; that's what I'm trying to do.
The thing on top is a model within itself, not part of the block model.
0
Yes, I know that. Maybe me original post was unclear, but what I'm struggling with is getting my custom model to render above the block.