I checked the file, the semicolons are in there according place, I also ran update_names.bat, no change, errors are still there.
Help, please?
Copy the files you made into your MCP folder. Then run "cleanup.bat", then "updatenames.bat", then decompile again and redo any java files you edited before. Also paste the java files you created back into the src folder.
If you did that and you're still getting errors, please post the code for your java files.
What would I need to do to get a block to destroy the block under it when activated by redstone?
How can I make a block not stay in the air if the block under it is broken?
This is all I need help with and then I'm done this mod.
Minecraft crashes when I try to place the dynamite on the ground.
Crash Log:
--- BEGIN ERROR REPORT a1dce528 --------
Generated 2/12/11 9:40 PM
Minecraft: Minecraft Beta 1.2_02
OS: Windows XP (x86) version 5.1
Java: 1.6.0_23, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 4800 Series version 2.1.7659 Release, ATI Technologies Inc.
java.lang.ArrayIndexOutOfBoundsException: -43
at ib.a(SourceFile:314)
at dn.b(SourceFile:437)
at dn.e(SourceFile:478)
at ItemDynamite.a(ItemDynamite.java:45)
at gm.a(SourceFile:77)
at kb.a(SourceFile:89)
at net.minecraft.client.Minecraft.a(SourceFile:968)
at net.minecraft.client.Minecraft.i(SourceFile:1130)
at net.minecraft.client.Minecraft.run(SourceFile:642)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT d5884eb5 ----------
So if someone could help me finish this mod, I would be really happy.
Looks like the ID is to high. Placable Blocks have to have (afaik) IDs lower than or equal to 127, because at some point in the minecraft code they are addressed like this:
byte x = blockId;
something = array[x];
byte can only hold values from -128 to 127, so if the blockId is bigger than 127, it will "wrap around", e.g. 128 would become -128, 130 would become -126 aso.
That's the problem then, thanks! I had the ID at 213.
I still need help on how to make the item place blockdynamite, and how to make blockdynamite destroy the block it's placed on when activated with redstone.
So is someone planning to make/already making a mod of this? I wouldn't get my hopes up on notch doing this, but in the meantime someone could make this. It would be a pretty simple mod.
I'm reposting this from the last page because no one helped me at all.
Everything works up until this point, I've made the item and block, the item works in-game but minecraft crashes as soon as I try to place the block.
ItemDynamite: I want it to place "BlockDynamite", I don't know how to do that though.
package net.minecraft.src;
public class ItemDynamite extends Item
{
public ItemDynamite(int i)
{
super(i);
maxStackSize = 64;
}
}
BlockDynamite: When I place the block, minecraft crashes. I want to block to be the 1/8th sized block used for minecart tracks and redstone wire, and using the same texturing method. I want the block to instantly destroy the block it was placed on when activated with a redstone circuit, but I don't know what I have to do to make that work.
package net.minecraft.src;
import java.util.Random;
public class BlockDynamite extends Block
{
public BlockDynamite(int i, int j)
{
super(i, j, Material.tnt);
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.125F, 1.0F);
}
public int idDropped(int i, Random random)
{
return 0;
}
}
Minecraft crashes when I try to place the dynamite on the ground.
Crash Log:
--- BEGIN ERROR REPORT a1dce528 --------
Generated 2/12/11 9:40 PM
Minecraft: Minecraft Beta 1.2_02
OS: Windows XP (x86) version 5.1
Java: 1.6.0_23, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 4800 Series version 2.1.7659 Release, ATI Technologies Inc.
java.lang.ArrayIndexOutOfBoundsException: -43
at ib.a(SourceFile:314)
at dn.b(SourceFile:437)
at dn.e(SourceFile:478)
at ItemDynamite.a(ItemDynamite.java:45)
at gm.a(SourceFile:77)
at kb.a(SourceFile:89)
at net.minecraft.client.Minecraft.a(SourceFile:968)
at net.minecraft.client.Minecraft.i(SourceFile:1130)
at net.minecraft.client.Minecraft.run(SourceFile:642)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT d5884eb5 ----------
So if someone could help me finish this mod, I would be really happy.
I was finally able to start making my mod that I wanted to make for so long, but I've got a problem.
I have an item, "ItemDynamite". It is craftable, and the item works fine so far. What I want it to do is place "BlockDynamite" when you right click.
ItemDynamite: I want it to place "BlockDynamite". I really just took the "ItemRedstone" code and edited it. I don't know what to do D:
package net.minecraft.src;
public class ItemDynamite extends Item
{
public ItemDynamite(int i)
{
super(i);
maxStackSize = 64;
}
public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l)
{
if(l == 0)
{
j--;
}
if(l == 1)
{
j++;
}
if(l == 2)
{
k--;
}
if(l == 3)
{
k++;
}
if(l == 4)
{
i--;
}
if(l == 5)
{
i++;
}
if(!world.isAirBlock(i, j, k))
{
return false;
}
if(Block.dynamite.canPlaceBlockAt(world, i, j, k))
{
itemstack.stackSize--;
world.setBlockWithNotify(i, j, k, Block.dynamite.blockID);
}
return true;
}
}
BlockDynamite: I took the block bounds from "BlockRedstoneWire", I want the 1/8th block instead of the full sized block.
package net.minecraft.src;
import java.util.Random;
public class BlockDynamite extends Block
{
public BlockDynamite(int i, int j)
{
super(i, j, Material.tnt);
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.0625F, 1.0F);
}
public int idDropped(int i, Random random)
{
return 0;
}
}
Minecraft crashes when I try to place the dynamite on the ground.
Crash Log:
--- BEGIN ERROR REPORT a1dce528 --------
Generated 2/12/11 9:40 PM
Minecraft: Minecraft Beta 1.2_02
OS: Windows XP (x86) version 5.1
Java: 1.6.0_23, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 4800 Series version 2.1.7659 Release, ATI Technologies Inc.
java.lang.ArrayIndexOutOfBoundsException: -43
at ib.a(SourceFile:314)
at dn.b(SourceFile:437)
at dn.e(SourceFile:478)
at ItemDynamite.a(ItemDynamite.java:45)
at gm.a(SourceFile:77)
at kb.a(SourceFile:89)
at net.minecraft.client.Minecraft.a(SourceFile:968)
at net.minecraft.client.Minecraft.i(SourceFile:1130)
at net.minecraft.client.Minecraft.run(SourceFile:642)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT d5884eb5 ----------
So if someone could help me finish this mod, I would be really happy. I want "BlockDynamite" to instantly destroy the block it was placed on when activated with a redstone circuit, but I don't know what I have to do to make that work.
I want to make a mod. I really don't have any clue where to start though.
The mod is this: Craftable sticks of dynamite that are activated by redstone or punching. It instantly destroys the single block that it was placed on. It sits on top of the block and works the same way as TNT except, it is not a full-sized block. It is placed using the same block as tracks or redstone are used on (1/8th block).
What class files would I need to edit to do this? The tutorials I've been looking at are outdated, and I'd really like to make this.
I'm working on a 16x16 texture pack and I'd like to change the water texture to something different. I changed the water section in my custom terrain.png and it didn't change the water in-game after reloading the client.
So I looked for a water.png file, and I found it in the "misc" folder in minecraft.jar. I changed it to my texture, saved it in the .jar file and in my texture pack and the water still hasn't changed.
Someone please tell me how to change the water texture.
If you read my post, I installed 303's first, and it didn't work. Then I deleted and redownloaded minecraft.jar and THEN installed the OTHER mod loader. I didn't install both at the same time.
I just downloaded the Hookshot mod, 303's Mod Loader, and Risugami's Mod Loader.
I place 303's mod loader into minecraft.jar, and then placed the hookshot mod in minecraft.jar, then deleted META-INF from the minecraft.jar file.
I got a black screen when I logged in, and nothing happened.
I deleted the bin folder and re-downloaded Minecraft, then did the same process again but with Risugami's mod loader.
Mod loader first, hookshot second, then delete meta-inf.
I still got a black screen after doing everything that the instructions say to do, but it doesn't work.
I'm running Windows XP with the most recent version of Minecraft, no other mods are installed and nothing is wrong with my computer.
0
I spawned in a large snow biome with some neat overhangs/mountains around.
images with their respective coordinates;
-89, 71, 17
5, 82, 33
-84, 73, 268
0
You can say that for every thread in this forum.
0
Copy the files you made into your MCP folder. Then run "cleanup.bat", then "updatenames.bat", then decompile again and redo any java files you edited before. Also paste the java files you created back into the src folder.
If you did that and you're still getting errors, please post the code for your java files.
0
How can I make a block not stay in the air if the block under it is broken?
This is all I need help with and then I'm done this mod.
0
However, the block looks like this.
The texture is supposed to be a dynamite stick.
0
That's the problem then, thanks! I had the ID at 213.
I still need help on how to make the item place blockdynamite, and how to make blockdynamite destroy the block it's placed on when activated with redstone.
0
0
Everything works up until this point, I've made the item and block, the item works in-game but minecraft crashes as soon as I try to place the block.
ItemDynamite: I want it to place "BlockDynamite", I don't know how to do that though.
BlockDynamite: When I place the block, minecraft crashes. I want to block to be the 1/8th sized block used for minecart tracks and redstone wire, and using the same texturing method. I want the block to instantly destroy the block it was placed on when activated with a redstone circuit, but I don't know what I have to do to make that work.
Minecraft crashes when I try to place the dynamite on the ground.
Crash Log:
So if someone could help me finish this mod, I would be really happy.
0
I have an item, "ItemDynamite". It is craftable, and the item works fine so far. What I want it to do is place "BlockDynamite" when you right click.
ItemDynamite: I want it to place "BlockDynamite". I really just took the "ItemRedstone" code and edited it. I don't know what to do D:
BlockDynamite: I took the block bounds from "BlockRedstoneWire", I want the 1/8th block instead of the full sized block.
Minecraft crashes when I try to place the dynamite on the ground.
Crash Log:
So if someone could help me finish this mod, I would be really happy. I want "BlockDynamite" to instantly destroy the block it was placed on when activated with a redstone circuit, but I don't know what I have to do to make that work.
0
The mod is this: Craftable sticks of dynamite that are activated by redstone or punching. It instantly destroys the single block that it was placed on. It sits on top of the block and works the same way as TNT except, it is not a full-sized block. It is placed using the same block as tracks or redstone are used on (1/8th block).
What class files would I need to edit to do this? The tutorials I've been looking at are outdated, and I'd really like to make this.
0
Thanks, I'll need to figure out how to animate the texture now.
0
So I looked for a water.png file, and I found it in the "misc" folder in minecraft.jar. I changed it to my texture, saved it in the .jar file and in my texture pack and the water still hasn't changed.
Someone please tell me how to change the water texture.
0
If you read my post, I installed 303's first, and it didn't work. Then I deleted and redownloaded minecraft.jar and THEN installed the OTHER mod loader. I didn't install both at the same time.
0
I place 303's mod loader into minecraft.jar, and then placed the hookshot mod in minecraft.jar, then deleted META-INF from the minecraft.jar file.
I got a black screen when I logged in, and nothing happened.
I deleted the bin folder and re-downloaded Minecraft, then did the same process again but with Risugami's mod loader.
Mod loader first, hookshot second, then delete meta-inf.
I still got a black screen after doing everything that the instructions say to do, but it doesn't work.
I'm running Windows XP with the most recent version of Minecraft, no other mods are installed and nothing is wrong with my computer.
0