Hey, I'm trying to add a new block and a new recipe but when I recompile I get this error.
sources\minecraft\net\minecraft\src\Block.java:783: cannot find symbol
symbol: class BlockExample
location: class net.minecraft.src.Block
example = (new BlockExample(666,2)).setHardness(1.5F).setResistance(10F).setStepSound(soundStoneFootstep);
1 error.
I'm a coding noob and need help.
Have you made the class "BlockExample.java"? Also, your block ID (666) is way too high for a block. Block IDs must be kept within 1-127 (or 1-255 if you're using Shockah's More Block IDs mod).
- PROWNE
Yes, I made a class called BlockExample.java. I changed the block id to 99 and noticed no change. Heres the code I have for
Block.java
example = (new BlockExample(99, 2)).setHardness(0.5F).setResistance(0.5F).setStepSound(soundGrassFootstep).setBlockName("test");
BlockExample.java
package net.minecraft.src;
import java.util.Random;
public class BlockExample extends Block
{
public BlockExample(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random)
{
return 0;
}
}
CraftingManager.java
addRecipe(new ItemStack(Block.example, 1), new Object[] {"##", "##", Character.valueOf('#'), Block.dirt
});
Hey, I'm trying to add a new block and a new recipe but when I recompile I get this error.
sources\minecraft\net\minecraft\src\Block.java:783: cannot find symbol
symbol: class BlockExample
location: class net.minecraft.src.Block
example = (new BlockExample(666,2)).setHardness(1.5F).setResistance(10F).setStepSound(soundStoneFootstep);
Hey, I'm trying to add a new block and a new recipe but when I recompile I get this error.
sources\minecraft\net\minecraft\src\Block.java:783: cannot find symbol
symbol: class BlockExample
location: class net.minecraft.src.Block
example = (new BlockExample(666,2)).setHardness(1.5F).setResistance(10F).setStepSound(soundStoneFootstep);
in the room with the broken floor and the chest with a redstone torch, you can simply just open the chest from the water. (You don't actually need to make all of the jumps)
hey probably a silly question but how do i get onto the map? i have the file but i don't know how to patch it into the game. :smile.gif: any help would be useful thanks
You open the .rar file with a program call WinRaR. The you extract the folder inside the .rar to you Minecraft saves folder. To find your Minecraft saves folder, go to start, search for Run, open it, type %appdata%, and click OK. Open the .minecraft folder. Now open the saves folder. Put the folder inside the .rar into the saves folder. Start up minecraft and it should be in the list of worlds.
0
Yes, I made a class called BlockExample.java. I changed the block id to 99 and noticed no change. Heres the code I have for
Block.java
BlockExample.java
CraftingManager.java
Help! Please and thanks.
0
sources\minecraft\net\minecraft\src\Block.java:783: cannot find symbol
symbol: class BlockExample
location: class net.minecraft.src.Block
example = (new BlockExample(666,2)).setHardness(1.5F).setResistance(10F).setStepSound(soundStoneFootstep);
1 error.
I'm a coding noob and need help.
0
sources\minecraft\net\minecraft\src\Block.java:783: cannot find symbol
symbol: class BlockExample
location: class net.minecraft.src.Block
example = (new BlockExample(666,2)).setHardness(1.5F).setResistance(10F).setStepSound(soundStoneFootstep);
1 error.
I'm a coding noob and need help.
0
0
0
0
0
0
Zombies would be awesome!
0
You open the .rar file with a program call WinRaR. The you extract the folder inside the .rar to you Minecraft saves folder. To find your Minecraft saves folder, go to start, search for Run, open it, type %appdata%, and click OK. Open the .minecraft folder. Now open the saves folder. Put the folder inside the .rar into the saves folder. Start up minecraft and it should be in the list of worlds.
0
Very fun. :smile.gif: Here's some diamonds.