> Done in 3.60 seconds
> Recompiling server...
[/code.]
My BlockMythOre:
[code]package net.minpackage net.minecraft.src;
import java.util.Random;
public class BlockMythOre extends Block
{
public BlockMythOre(int i, int j)
{
super(i, j, Material.ground);
}
public int idDropped(int i, Random random)
{
return mod_MythOre.MythOre.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
[/code.]
StartClient Error:
[Code] == MCP v4.3 ==
[17:05] java.lang.NoClassDefFoundError: Start
[17:05] Caused by: java.lang.ClassNotFoundException: Start
[17:05] at java.net.URLClassLoader$1.run(Unknown Source)
[17:05] at java.security.AccessController.doPrivileged(Native Method)
[17:05] at java.net.URLClassLoader.findClass(Unknown Source)
[17:05] at java.lang.ClassLoader.loadClass(Unknown Source)
[17:05] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[17:05] at java.lang.ClassLoader.loadClass(Unknown Source)
[17:05] Could not find the main class: Start. Program will exit.
[17:05] Exception in thread "main"
java.lang.NoClassDefFoundError: Start
Caused by: java.lang.ClassNotFoundException: Start
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: Start. Program will exit.
Exception in thread "main"
Press any key to continue . . .
[/Code.]
Rollback Post to RevisionRollBack
MythOre rocks. I am developing MythicalCraft. It is going to be a gigantic mod.
I have managed to edit some parts of the code, and when I make a portal, it says it is entering my realm, but it simulates for a long time, then crashes.
Sweet. We should work together and see if we can find a solution to this problem. Share your code with me so I can take a look.
package net.minecraft.src;
public class BlockSpanoDirt extends Block
{
protected BlockSpanoDirt(int i, int j)
{
super(i, j, Material.ground);
}
public int idDropped(int i, Random random)//here
{
return mod_SpanoOverHaul.SpanoDirt.blockID;
}
}
2. Cannot find symbol: DimensionBase (I don't have this .java...)
Dimension Spano:
package net.minecraft.src;
public class DimensionSpano extends DimensionBase
{
public DimensionSpano()
{
super(1001,WorldProviderSpano.class,TeleporterSpano.class);
}
}
3. Cannot find symbol: BlockSpanoPortal
mod_SpanoOverHaul:
package net.minecraft.src;
import java.util.Random;
public class mod_SpanoOverHaul extends BaseMod
{
public static final Block crackedBlock = new CrackedBlock(98,1).setHardness(1.5F).setResistance(10F).setBlockName("stonebricktwo");
public static final Block crackedblockStairs = new BlockStairs(99, crackedBlock).setBlockName("stairsCrackedStone").disableNeighborNotifyOnMetadataChange();
public static final Block sandstoneStairs = new BlockStairs(100, Block.sandStone).setBlockName("stairsSandStone").disableNeighborNotifyOnMetadataChange();
public static final Item grenade = new ItemGrenade(400).setItemName("grenade");
public static final Item UltimateHelmet = (new ItemArmor(500, 3, ModLoader.AddArmor("ultimate"), 0)).setItemName("ulHelmet");
public static final Item UltimateBody = (new ItemArmor(501, 3, ModLoader.AddArmor("ultimate"), 1)).setItemName("ulBody");
public static final Item UltimateLegs = (new ItemArmor(502, 3, ModLoader.AddArmor("ultimate"), 2)).setItemName("ulLegs");
public static final Item UltimateBoots = (new ItemArmor(503, 3, ModLoader.AddArmor("ultimate"), 3)).setItemName("ulBoots");
public static final Block SpanoWood = new BlockSpanoWood(101,2).setHardness(2.0F).setStepSound(Block.soundWoodFootstep).setBlockName("SpanoWood");
public static final Block SpanoLeaves = new BlockSpanoLeaves(102,3).setHardness(0.2F).setLightOpacity(1).setStepSound(Block.soundGrassFootstep).setBlockName("SpanoLeaves").disableStats();
public static final Block beanstalk = new BlockBeanstalk(103,4).setHardness(0.8F).setResistance(5.0F).setBlockName("beanstalk");
public static final Block SpanoDirt = new BlockSpanoDirt(104,5).setHardness(0.5F).setStepSound(Block.soundGravelFootstep).setBlockName("spdirt");
public static final Block SpanoGrass = (Block)(new BlockSpanoGrass(105,6)).setHardness(0.6F).setStepSound(Block.soundGrassFootstep).setBlockName("spgrass");
public static final Block SpanoStone = new BlockSpanoStone(106,7).setHardness(1.5F).setResistance(10F).setStepSound(Block.soundStoneFootstep).setBlockName("spstone");
public static final Block SpanoPortal = (BlockPortalSpano)(new BlockSpanoPortal(107, ModLoader.getUniqueSpriteIndex("/terrain.png"))).setHardness(-1F).setStepSound(Block.soundGlassFootstep).setLightValue(0.75F).setBlockName("spPortal");
public static final Block SpanoPortalStarter = new BlockSpanoPortalStarter(108, 8, Material.sponge).setHardness(0.0F).disableStats().disableNeighborNotifyOnMetadataChange().setBlockName("BlockNameherePortalStarter");
public static final Item PortalStarterSpano = new ItemSpanoPortalStarter(401).setIconCoord(5, 0).setItemName("SpanoPortalStarter");
public static int SpanoStoneTexture;
public static int SpanoGrassTexture;
public static int SpanoDirtTexture;
public mod_SpanoOverHaul()
{
new DimensionSpano().name = "Spano";
ModLoader.RegisterBlock(crackedBlock);
crackedBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/crackedstonebrick.png");
ModLoader.AddName(crackedBlock, "Cinderblocks");
ModLoader.RegisterBlock(crackedblockStairs);
crackedblockStairs.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/crackedstonebrick1.png");
ModLoader.AddName(crackedblockStairs, "Cinderblock Stairs");
ModLoader.RegisterBlock(sandstoneStairs);
sandstoneStairs.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/sandstone.png");
ModLoader.AddName(sandstoneStairs, "Sandstone Stairs");
ModLoader.RegisterBlock(SpanoPortalStarter);
SpanoPortalStarter.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/sandstone.png");
//ModLoader.AddName(SpanoPortalStarter, "Spano Portal Starter");
ModLoader.RegisterBlock(SpanoPortal);
ModLoader.RegisterBlock(SpanoWood);
ModLoader.AddName(SpanoWood, "Spanoworld Wood");
ModLoader.RegisterBlock(SpanoLeaves);
ModLoader.AddName(SpanoLeaves, "Spanoworld Leaves");
ModLoader.RegisterBlock(SpanoDirt);
ModLoader.AddName(SpanoDirt, "Spanoworld Dirt");
SpanoDirt.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/spanodirt.png");
ModLoader.RegisterBlock(SpanoGrass);
ModLoader.AddName(SpanoGrass, "Spanoworld Grass");
SpanoGrass.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/spanograss.png");
ModLoader.RegisterBlock(SpanoStone);
ModLoader.AddName(SpanoStone, "Spanoworld Stone");
SpanoStone.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/spanostones.png");
grenade.iconIndex = ModLoader.addOverride("/gui/items.png", "/grenade.png");
ModLoader.AddName(grenade, "Grenade");
UltimateHelmet.iconIndex = ModLoader.addOverride("/gui/items.png", "/ultimatehelmet.png");
ModLoader.AddName(UltimateHelmet, "Ultimate Helmet");
UltimateBody.iconIndex = ModLoader.addOverride("/gui/items.png", "/ultimatebody.png");
ModLoader.AddName(UltimateBody, "Ultimate Chestplate");
UltimateLegs.iconIndex = ModLoader.addOverride("/gui/items.png", "/ultimatelegs.png");
ModLoader.AddName(UltimateLegs, "Ultimate Leggings");
UltimateBoots.iconIndex = ModLoader.addOverride("/gui/items.png", "/ultimateboots.png");
ModLoader.AddName(UltimateBoots, "Ultimate Boots");
ModLoader.RegisterBlock(beanstalk);
beanstalk.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/beanstalk.png");
ModLoader.AddName(beanstalk, "Bean Stalk");
ModLoader.AddRecipe(new ItemStack(crackedBlock, 6), new Object[] {
"@@ ", " @@", "@@ ", Character.valueOf('@'), Block.stone
});
ModLoader.AddRecipe(new ItemStack(crackedblockStairs, 4), new Object[] {
"@ ", "@@ ", "@@@", Character.valueOf('@'), mod_SpanoOverHaul.crackedBlock
});
ModLoader.AddRecipe(new ItemStack(sandstoneStairs, 4), new Object[] {
"@ ", "@@ ", "@@@", Character.valueOf('@'), Block.sandStone
});
ModLoader.AddRecipe(new ItemStack(Item.dyePowder, 2, 3), new Object[] {
"@", "*", Character.valueOf('@'), Block.cloth, Character.valueOf('*'), Block.dirt
});
ModLoader.AddRecipe(new ItemStack(Item.redstone, 64), new Object[] {
"@", Character.valueOf('@'), Block.dirt
});
ModLoader.AddRecipe(new ItemStack(Block.sand, 4), new Object[] {
"@", Character.valueOf('@'), Block.sandStone
});
ModLoader.AddRecipe((new ItemStack(grenade, 6)), new Object[] {
" # ", "#*#", " # ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('*'), Item.gunpowder
});
ModLoader.AddRecipe(new ItemStack(UltimateHelmet, 1), new Object[] {
"@@@", "@ @", Character.valueOf('@'), Item.redstone
});
ModLoader.AddRecipe(new ItemStack(UltimateBody, 1), new Object[] {
"@ @", "@@@", "@@@", Character.valueOf('@'), Item.redstone
});
ModLoader.AddRecipe(new ItemStack(UltimateLegs, 1), new Object[] {
"@@@", "@ @", "@ @", Character.valueOf('@'), Item.redstone
});
ModLoader.AddRecipe(new ItemStack(UltimateBoots, 1), new Object[] {
"@ @", "@ @", Character.valueOf('@'), Item.redstone
});
ModLoader.AddRecipe(new ItemStack(Block.planks, 4), new Object[] {
"#", Character.valueOf('#'), mod_SpanoOverHaul.SpanoWood
});
ModLoader.AddRecipe(new ItemStack(beanstalk, 1), new Object[] {
"@", "@", "@", Character.valueOf('@'), Block.sapling
});
ModLoader.AddRecipe(new ItemStack(SpanoPortalStarter, 14), new Object[] {
"@@", Character.valueOf('@'), Item.flint
});
ModLoader.AddSmelting(SpanoWood.blockID, new ItemStack(Item.coal, 1, 1));
}
public void GenerateSurface(World world, Random random, int i, int j)
{
BiomeGenBase biomegenbase = world.getWorldChunkManager().getBiomeGenAt(i, j);
WorldGenSpanoTrees worldgenspanotrees = new WorldGenSpanoTrees();
if((biomegenbase instanceof BiomeGenRainforest) || (biomegenbase instanceof BiomeGenForest))
{
int k = i + random.nextInt(16) + 8;
int l = j + random.nextInt(16) + 8;
int i1 = world.getHeightValue(k, l);
worldgenspanotrees.func_517_a(1.0D, 1.0D, 1.0D);
worldgenspanotrees.generate(world, random, k, i1, l);
}
if(random.nextInt(20) == 0)
{
for(int k = 0; k < 16; k++)
{
for(int l = 0; l < 16; l++)
{
int i1 = random.nextInt(200);
if(world.getBlockId(i + l, i1, j + k) != Block.grass.blockID || !world.isAirBlock(i + l, i1 + 1, j + k))
{
continue;
}
int j1 = random.nextInt(2);
if(j1 == 0)
{
world.setBlock(i + l, i1 + 1, j + k, beanstalk.blockID);
}
if(j1 == 1)
{
world.setBlock(i + l, i1 + 1, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 2, j + k, beanstalk.blockID);
}
if(j1 == 2)
{
world.setBlock(i + l, i1 + 1, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 2, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 3, j + k, beanstalk.blockID);
}
if(j1 == 3)
{
world.setBlock(i + l, i1 + 1, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 2, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 3, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 4, j + k, beanstalk.blockID);
}
if(j1 == 4)
{
world.setBlock(i + l, i1 + 1, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 2, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 3, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 4, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 5, j + k, beanstalk.blockID);
}
}
}
}
}
public String Version()
{
return "3.14159265";
}
//Dye:
//0: Ink sac 1: Rose Red 2: Cactus Green 3: Cocoa Beans 4: Lapis Lazuli 5: Purple dye 6: Cyan dye 7: Light gray dye 8: Gray dye
//9: Pink dye 10: Lime dye 11: Dandelion Yellow 12: Light Blue dye 13: Magenta dye 14: Orange dye 15: Bone Meal
//Wool:
//0: White 1: Orange 2: Magenta 3: Light Blue 4: Yellow 5: Light Green 6: Pink 7: Gray 8: Light Gray 9: Cyan
//10: Purple 11: Blue 12: Brown 13: Dark Green 14: Red 15: Black
}
4. Cannot find variable: portal
BlockPortalSpano
package net.minecraft.src;
import java.util.Random;
public class BlockPortalSpano extends BlockBreakable
{
public BlockPortalSpano(int i, int j)
{
super(i, j, Material.portal, false);
}
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
{
return null;
}
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int i, int j, int k)
{
if(iblockaccess.getBlockId(i - 1, j, k) == blockID || iblockaccess.getBlockId(i + 1, j, k) == blockID)
{
float f = 0.5F;
float f2 = 0.125F;
setBlockBounds(0.5F - f, 0.0F, 0.5F - f2, 0.5F + f, 1.0F, 0.5F + f2);
} else
{
float f1 = 0.125F;
float f3 = 0.5F;
setBlockBounds(0.5F - f1, 0.0F, 0.5F - f3, 0.5F + f1, 1.0F, 0.5F + f3);
}
}
public boolean isOpaqueCube()
{
return false;
}
public boolean renderAsNormalBlock()
{
return false;
}
public boolean tryToCreatePortal(World world, int i, int j, int k)
{
int l = 0;
int i1 = 0;
if(world.getBlockId(i - 1, j, k) == Block.dirt.blockID || world.getBlockId(i + 1, j, k) == Block.dirt.blockID)
{
l = 1;
}
if(world.getBlockId(i, j, k - 1) == Block.dirt.blockID || world.getBlockId(i, j, k + 1) == Block.dirt.blockID)
{
i1 = 1;
}
if(l == i1)
{
return false;
}
if(world.getBlockId(i - l, j, k - i1) == 0)
{
i -= l;
k -= i1;
}
for(int l1 = -1; l1 <= 2; l1++)
{
for(int j1 = -1; j1 <= 3; j1++)
{
boolean flag = l1 == -1 || l1 == 2 || j1 == -1 || j1 == 3;
if(l1 != -1 && l1 != 2 || j1 != -1 && j1 != 3)
{
int j2 = world.getBlockId(i + l * l1, j + j1, k + i1 * l1);
if(flag)
{
if(j2 != Block.dirt.blockID)
{
return false;
}
} else
if(j2 != 0 && j2 != mod_SpanoOverHaul.SpanoPortal.blockID)
{
return false;
}
}
}
}
world.editingBlocks = true;
for(int i2 = 0; i2 < 2; i2++)
{
for(int k1 = 0; k1 < 3; k1++)
{
world.setBlockWithNotify(i + l * i2, j + k1, k + i1 * i2, mod_SpanoOverHaul.SpanoPortal.blockID);
}
}
world.editingBlocks = false;
return true;
}
public void onNeighborBlockChange(World world, int i, int j, int k, int l)
{
int i1 = 0;
int j1 = 1;
if(world.getBlockId(i - 1, j, k) == blockID || world.getBlockId(i + 1, j, k) == blockID)
{
i1 = 1;
j1 = 0;
}
int k1;
for(k1 = j; world.getBlockId(i, k1 - 1, k) == blockID; k1--) { }
if(world.getBlockId(i, k1 - 1, k) != Block.dirt.blockID)
{
world.setBlockWithNotify(i, j, k, 0);
return;
}
int l1;
for(l1 = 1; l1 < 4 && world.getBlockId(i, k1 + l1, k) == blockID; l1++) { }
if(l1 != 3 || world.getBlockId(i, k1 + l1, k) != Block.dirt.blockID)
{
world.setBlockWithNotify(i, j, k, 0);
return;
}
boolean flag = world.getBlockId(i - 1, j, k) == blockID || world.getBlockId(i + 1, j, k) == blockID;
boolean flag1 = world.getBlockId(i, j, k - 1) == blockID || world.getBlockId(i, j, k + 1) == blockID;
if(flag && flag1)
{
world.setBlockWithNotify(i, j, k, 0);
return;
}
if((world.getBlockId(i + i1, j, k + j1) != Block.dirt.blockID || world.getBlockId(i - i1, j, k - j1) != blockID) && (world.getBlockId(i - i1, j, k - j1) != Block.dirt.blockID || world.getBlockId(i + i1, j, k + j1) != blockID))
{
world.setBlockWithNotify(i, j, k, 0);
return;
} else
{
return;
}
}
public boolean shouldSideBeRendered(IBlockAccess iblockaccess, int i, int j, int k, int l)
{
if(iblockaccess.getBlockId(i, j, k) == blockID)
{
return false;
}
boolean flag = iblockaccess.getBlockId(i - 1, j, k) == blockID && iblockaccess.getBlockId(i - 2, j, k) != blockID;
boolean flag1 = iblockaccess.getBlockId(i + 1, j, k) == blockID && iblockaccess.getBlockId(i + 2, j, k) != blockID;
boolean flag2 = iblockaccess.getBlockId(i, j, k - 1) == blockID && iblockaccess.getBlockId(i, j, k - 2) != blockID;
boolean flag3 = iblockaccess.getBlockId(i, j, k + 1) == blockID && iblockaccess.getBlockId(i, j, k + 2) != blockID;
boolean flag4 = flag || flag1;
boolean flag5 = flag2 || flag3;
if(flag4 && l == 4)
{
return true;
}
if(flag4 && l == 5)
{
return true;
}
if(flag5 && l == 2)
{
return true;
}
return flag5 && l == 3;
}
public int quantityDropped(Random random)
{
return 0;
}
public int getRenderBlockPass()
{
return 1;
}
public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
{
if(entity.ridingEntity == null && entity.riddenByEntity == null)
{
if(entity instanceof EntityPlayerSP)
{
EntityPlayerSP entityplayersp = (EntityPlayerSP)entity;
entityplayersp.portal = getDimNumber();
}
entity.setInPortal();
}
}
public void randomDisplayTick(World world, int i, int j, int k, Random random)
{
if(random.nextInt(100) == 0)
{
world.playSoundEffect((double)i + 0.5D, (double)j + 0.5D, (double)k + 0.5D, "portal.portal", 1.0F, random.nextFloat() * 0.4F + 0.8F);
}
for(int l = 0; l < 4; l++)
{
double d = (float)i + random.nextFloat();
double d1 = (float)j + random.nextFloat();
double d2 = (float)k + random.nextFloat();
double d3 = 0.0D;
double d4 = 0.0D;
double d5 = 0.0D;
int i1 = random.nextInt(2) * 2 - 1;
d3 = ((double)random.nextFloat() - 0.5D) * 0.5D;
d4 = ((double)random.nextFloat() - 0.5D) * 0.5D;
d5 = ((double)random.nextFloat() - 0.5D) * 0.5D;
if(world.getBlockId(i - 1, j, k) == blockID || world.getBlockId(i + 1, j, k) == blockID)
{
d2 = (double)k + 0.5D + 0.25D * (double)i1;
d5 = random.nextFloat() * 2.0F * (float)i1;
} else
{
d = (double)i + 0.5D + 0.25D * (double)i1;
d3 = random.nextFloat() * 2.0F * (float)i1;
}
world.spawnParticle("portal", d, d1, d2, d3, d4, d5);
}
}
public int getDimNumber()
{
return 1001;
}
}
6. Cannot find variable: class net.minecraft.src.DimensionSpano
(in DimensionSpano)
PLEASE FRICKIN HELP! I don't wanna here anything like "you shouldn't try this if you can't figure out errors hurr durp", I want help! PLEASE! (sorry for desperaticy iticy)
package net.minecraft.src;
public class BlockSpanoDirt extends Block
{
protected BlockSpanoDirt(int i, int j)
{
super(i, j, Material.ground);
}
public int idDropped(int i, Random random)//here
{
return mod_SpanoOverHaul.SpanoDirt.blockID;
}
}
2. Cannot find symbol: DimensionBase (I don't have this .java...)
Dimension Spano:
package net.minecraft.src;
public class DimensionSpano extends DimensionBase
{
public DimensionSpano()
{
super(1001,WorldProviderSpano.class,TeleporterSpano.class);
}
}
3. Cannot find symbol: BlockSpanoPortal
mod_SpanoOverHaul:
package net.minecraft.src;
import java.util.Random;
public class mod_SpanoOverHaul extends BaseMod
{
public static final Block crackedBlock = new CrackedBlock(98,1).setHardness(1.5F).setResistance(10F).setBlockName("stonebricktwo");
public static final Block crackedblockStairs = new BlockStairs(99, crackedBlock).setBlockName("stairsCrackedStone").disableNeighborNotifyOnMetadataChange();
public static final Block sandstoneStairs = new BlockStairs(100, Block.sandStone).setBlockName("stairsSandStone").disableNeighborNotifyOnMetadataChange();
public static final Item grenade = new ItemGrenade(400).setItemName("grenade");
public static final Item UltimateHelmet = (new ItemArmor(500, 3, ModLoader.AddArmor("ultimate"), 0)).setItemName("ulHelmet");
public static final Item UltimateBody = (new ItemArmor(501, 3, ModLoader.AddArmor("ultimate"), 1)).setItemName("ulBody");
public static final Item UltimateLegs = (new ItemArmor(502, 3, ModLoader.AddArmor("ultimate"), 2)).setItemName("ulLegs");
public static final Item UltimateBoots = (new ItemArmor(503, 3, ModLoader.AddArmor("ultimate"), 3)).setItemName("ulBoots");
public static final Block SpanoWood = new BlockSpanoWood(101,2).setHardness(2.0F).setStepSound(Block.soundWoodFootstep).setBlockName("SpanoWood");
public static final Block SpanoLeaves = new BlockSpanoLeaves(102,3).setHardness(0.2F).setLightOpacity(1).setStepSound(Block.soundGrassFootstep).setBlockName("SpanoLeaves").disableStats();
public static final Block beanstalk = new BlockBeanstalk(103,4).setHardness(0.8F).setResistance(5.0F).setBlockName("beanstalk");
public static final Block SpanoDirt = new BlockSpanoDirt(104,5).setHardness(0.5F).setStepSound(Block.soundGravelFootstep).setBlockName("spdirt");
public static final Block SpanoGrass = (Block)(new BlockSpanoGrass(105,6)).setHardness(0.6F).setStepSound(Block.soundGrassFootstep).setBlockName("spgrass");
public static final Block SpanoStone = new BlockSpanoStone(106,7).setHardness(1.5F).setResistance(10F).setStepSound(Block.soundStoneFootstep).setBlockName("spstone");
public static final Block SpanoPortal = (BlockPortalSpano)(new BlockSpanoPortal(107, ModLoader.getUniqueSpriteIndex("/terrain.png"))).setHardness(-1F).setStepSound(Block.soundGlassFootstep).setLightValue(0.75F).setBlockName("spPortal");
public static final Block SpanoPortalStarter = new BlockSpanoPortalStarter(108, 8, Material.sponge).setHardness(0.0F).disableStats().disableNeighborNotifyOnMetadataChange().setBlockName("BlockNameherePortalStarter");
public static final Item PortalStarterSpano = new ItemSpanoPortalStarter(401).setIconCoord(5, 0).setItemName("SpanoPortalStarter");
public static int SpanoStoneTexture;
public static int SpanoGrassTexture;
public static int SpanoDirtTexture;
public mod_SpanoOverHaul()
{
new DimensionSpano().name = "Spano";
ModLoader.RegisterBlock(crackedBlock);
crackedBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/crackedstonebrick.png");
ModLoader.AddName(crackedBlock, "Cinderblocks");
ModLoader.RegisterBlock(crackedblockStairs);
crackedblockStairs.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/crackedstonebrick1.png");
ModLoader.AddName(crackedblockStairs, "Cinderblock Stairs");
ModLoader.RegisterBlock(sandstoneStairs);
sandstoneStairs.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/sandstone.png");
ModLoader.AddName(sandstoneStairs, "Sandstone Stairs");
ModLoader.RegisterBlock(SpanoPortalStarter);
SpanoPortalStarter.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/sandstone.png");
//ModLoader.AddName(SpanoPortalStarter, "Spano Portal Starter");
ModLoader.RegisterBlock(SpanoPortal);
ModLoader.RegisterBlock(SpanoWood);
ModLoader.AddName(SpanoWood, "Spanoworld Wood");
ModLoader.RegisterBlock(SpanoLeaves);
ModLoader.AddName(SpanoLeaves, "Spanoworld Leaves");
ModLoader.RegisterBlock(SpanoDirt);
ModLoader.AddName(SpanoDirt, "Spanoworld Dirt");
SpanoDirt.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/spanodirt.png");
ModLoader.RegisterBlock(SpanoGrass);
ModLoader.AddName(SpanoGrass, "Spanoworld Grass");
SpanoGrass.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/spanograss.png");
ModLoader.RegisterBlock(SpanoStone);
ModLoader.AddName(SpanoStone, "Spanoworld Stone");
SpanoStone.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/spanostones.png");
grenade.iconIndex = ModLoader.addOverride("/gui/items.png", "/grenade.png");
ModLoader.AddName(grenade, "Grenade");
UltimateHelmet.iconIndex = ModLoader.addOverride("/gui/items.png", "/ultimatehelmet.png");
ModLoader.AddName(UltimateHelmet, "Ultimate Helmet");
UltimateBody.iconIndex = ModLoader.addOverride("/gui/items.png", "/ultimatebody.png");
ModLoader.AddName(UltimateBody, "Ultimate Chestplate");
UltimateLegs.iconIndex = ModLoader.addOverride("/gui/items.png", "/ultimatelegs.png");
ModLoader.AddName(UltimateLegs, "Ultimate Leggings");
UltimateBoots.iconIndex = ModLoader.addOverride("/gui/items.png", "/ultimateboots.png");
ModLoader.AddName(UltimateBoots, "Ultimate Boots");
ModLoader.RegisterBlock(beanstalk);
beanstalk.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/beanstalk.png");
ModLoader.AddName(beanstalk, "Bean Stalk");
ModLoader.AddRecipe(new ItemStack(crackedBlock, 6), new Object[] {
"@@ ", " @@", "@@ ", Character.valueOf('@'), Block.stone
});
ModLoader.AddRecipe(new ItemStack(crackedblockStairs, 4), new Object[] {
"@ ", "@@ ", "@@@", Character.valueOf('@'), mod_SpanoOverHaul.crackedBlock
});
ModLoader.AddRecipe(new ItemStack(sandstoneStairs, 4), new Object[] {
"@ ", "@@ ", "@@@", Character.valueOf('@'), Block.sandStone
});
ModLoader.AddRecipe(new ItemStack(Item.dyePowder, 2, 3), new Object[] {
"@", "*", Character.valueOf('@'), Block.cloth, Character.valueOf('*'), Block.dirt
});
ModLoader.AddRecipe(new ItemStack(Item.redstone, 64), new Object[] {
"@", Character.valueOf('@'), Block.dirt
});
ModLoader.AddRecipe(new ItemStack(Block.sand, 4), new Object[] {
"@", Character.valueOf('@'), Block.sandStone
});
ModLoader.AddRecipe((new ItemStack(grenade, 6)), new Object[] {
" # ", "#*#", " # ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('*'), Item.gunpowder
});
ModLoader.AddRecipe(new ItemStack(UltimateHelmet, 1), new Object[] {
"@@@", "@ @", Character.valueOf('@'), Item.redstone
});
ModLoader.AddRecipe(new ItemStack(UltimateBody, 1), new Object[] {
"@ @", "@@@", "@@@", Character.valueOf('@'), Item.redstone
});
ModLoader.AddRecipe(new ItemStack(UltimateLegs, 1), new Object[] {
"@@@", "@ @", "@ @", Character.valueOf('@'), Item.redstone
});
ModLoader.AddRecipe(new ItemStack(UltimateBoots, 1), new Object[] {
"@ @", "@ @", Character.valueOf('@'), Item.redstone
});
ModLoader.AddRecipe(new ItemStack(Block.planks, 4), new Object[] {
"#", Character.valueOf('#'), mod_SpanoOverHaul.SpanoWood
});
ModLoader.AddRecipe(new ItemStack(beanstalk, 1), new Object[] {
"@", "@", "@", Character.valueOf('@'), Block.sapling
});
ModLoader.AddRecipe(new ItemStack(SpanoPortalStarter, 14), new Object[] {
"@@", Character.valueOf('@'), Item.flint
});
ModLoader.AddSmelting(SpanoWood.blockID, new ItemStack(Item.coal, 1, 1));
}
public void GenerateSurface(World world, Random random, int i, int j)
{
BiomeGenBase biomegenbase = world.getWorldChunkManager().getBiomeGenAt(i, j);
WorldGenSpanoTrees worldgenspanotrees = new WorldGenSpanoTrees();
if((biomegenbase instanceof BiomeGenRainforest) || (biomegenbase instanceof BiomeGenForest))
{
int k = i + random.nextInt(16) + 8;
int l = j + random.nextInt(16) + 8;
int i1 = world.getHeightValue(k, l);
worldgenspanotrees.func_517_a(1.0D, 1.0D, 1.0D);
worldgenspanotrees.generate(world, random, k, i1, l);
}
if(random.nextInt(20) == 0)
{
for(int k = 0; k < 16; k++)
{
for(int l = 0; l < 16; l++)
{
int i1 = random.nextInt(200);
if(world.getBlockId(i + l, i1, j + k) != Block.grass.blockID || !world.isAirBlock(i + l, i1 + 1, j + k))
{
continue;
}
int j1 = random.nextInt(2);
if(j1 == 0)
{
world.setBlock(i + l, i1 + 1, j + k, beanstalk.blockID);
}
if(j1 == 1)
{
world.setBlock(i + l, i1 + 1, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 2, j + k, beanstalk.blockID);
}
if(j1 == 2)
{
world.setBlock(i + l, i1 + 1, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 2, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 3, j + k, beanstalk.blockID);
}
if(j1 == 3)
{
world.setBlock(i + l, i1 + 1, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 2, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 3, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 4, j + k, beanstalk.blockID);
}
if(j1 == 4)
{
world.setBlock(i + l, i1 + 1, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 2, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 3, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 4, j + k, beanstalk.blockID);
world.setBlock(i + l, i1 + 5, j + k, beanstalk.blockID);
}
}
}
}
}
public String Version()
{
return "3.14159265";
}
//Dye:
//0: Ink sac 1: Rose Red 2: Cactus Green 3: Cocoa Beans 4: Lapis Lazuli 5: Purple dye 6: Cyan dye 7: Light gray dye 8: Gray dye
//9: Pink dye 10: Lime dye 11: Dandelion Yellow 12: Light Blue dye 13: Magenta dye 14: Orange dye 15: Bone Meal
//Wool:
//0: White 1: Orange 2: Magenta 3: Light Blue 4: Yellow 5: Light Green 6: Pink 7: Gray 8: Light Gray 9: Cyan
//10: Purple 11: Blue 12: Brown 13: Dark Green 14: Red 15: Black
}
4. Cannot find variable: portal
BlockPortalSpano
package net.minecraft.src;
import java.util.Random;
public class BlockPortalSpano extends BlockBreakable
{
public BlockPortalSpano(int i, int j)
{
super(i, j, Material.portal, false);
}
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
{
return null;
}
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int i, int j, int k)
{
if(iblockaccess.getBlockId(i - 1, j, k) == blockID || iblockaccess.getBlockId(i + 1, j, k) == blockID)
{
float f = 0.5F;
float f2 = 0.125F;
setBlockBounds(0.5F - f, 0.0F, 0.5F - f2, 0.5F + f, 1.0F, 0.5F + f2);
} else
{
float f1 = 0.125F;
float f3 = 0.5F;
setBlockBounds(0.5F - f1, 0.0F, 0.5F - f3, 0.5F + f1, 1.0F, 0.5F + f3);
}
}
public boolean isOpaqueCube()
{
return false;
}
public boolean renderAsNormalBlock()
{
return false;
}
public boolean tryToCreatePortal(World world, int i, int j, int k)
{
int l = 0;
int i1 = 0;
if(world.getBlockId(i - 1, j, k) == Block.dirt.blockID || world.getBlockId(i + 1, j, k) == Block.dirt.blockID)
{
l = 1;
}
if(world.getBlockId(i, j, k - 1) == Block.dirt.blockID || world.getBlockId(i, j, k + 1) == Block.dirt.blockID)
{
i1 = 1;
}
if(l == i1)
{
return false;
}
if(world.getBlockId(i - l, j, k - i1) == 0)
{
i -= l;
k -= i1;
}
for(int l1 = -1; l1 <= 2; l1++)
{
for(int j1 = -1; j1 <= 3; j1++)
{
boolean flag = l1 == -1 || l1 == 2 || j1 == -1 || j1 == 3;
if(l1 != -1 && l1 != 2 || j1 != -1 && j1 != 3)
{
int j2 = world.getBlockId(i + l * l1, j + j1, k + i1 * l1);
if(flag)
{
if(j2 != Block.dirt.blockID)
{
return false;
}
} else
if(j2 != 0 && j2 != mod_SpanoOverHaul.SpanoPortal.blockID)
{
return false;
}
}
}
}
world.editingBlocks = true;
for(int i2 = 0; i2 < 2; i2++)
{
for(int k1 = 0; k1 < 3; k1++)
{
world.setBlockWithNotify(i + l * i2, j + k1, k + i1 * i2, mod_SpanoOverHaul.SpanoPortal.blockID);
}
}
world.editingBlocks = false;
return true;
}
public void onNeighborBlockChange(World world, int i, int j, int k, int l)
{
int i1 = 0;
int j1 = 1;
if(world.getBlockId(i - 1, j, k) == blockID || world.getBlockId(i + 1, j, k) == blockID)
{
i1 = 1;
j1 = 0;
}
int k1;
for(k1 = j; world.getBlockId(i, k1 - 1, k) == blockID; k1--) { }
if(world.getBlockId(i, k1 - 1, k) != Block.dirt.blockID)
{
world.setBlockWithNotify(i, j, k, 0);
return;
}
int l1;
for(l1 = 1; l1 < 4 && world.getBlockId(i, k1 + l1, k) == blockID; l1++) { }
if(l1 != 3 || world.getBlockId(i, k1 + l1, k) != Block.dirt.blockID)
{
world.setBlockWithNotify(i, j, k, 0);
return;
}
boolean flag = world.getBlockId(i - 1, j, k) == blockID || world.getBlockId(i + 1, j, k) == blockID;
boolean flag1 = world.getBlockId(i, j, k - 1) == blockID || world.getBlockId(i, j, k + 1) == blockID;
if(flag && flag1)
{
world.setBlockWithNotify(i, j, k, 0);
return;
}
if((world.getBlockId(i + i1, j, k + j1) != Block.dirt.blockID || world.getBlockId(i - i1, j, k - j1) != blockID) && (world.getBlockId(i - i1, j, k - j1) != Block.dirt.blockID || world.getBlockId(i + i1, j, k + j1) != blockID))
{
world.setBlockWithNotify(i, j, k, 0);
return;
} else
{
return;
}
}
public boolean shouldSideBeRendered(IBlockAccess iblockaccess, int i, int j, int k, int l)
{
if(iblockaccess.getBlockId(i, j, k) == blockID)
{
return false;
}
boolean flag = iblockaccess.getBlockId(i - 1, j, k) == blockID && iblockaccess.getBlockId(i - 2, j, k) != blockID;
boolean flag1 = iblockaccess.getBlockId(i + 1, j, k) == blockID && iblockaccess.getBlockId(i + 2, j, k) != blockID;
boolean flag2 = iblockaccess.getBlockId(i, j, k - 1) == blockID && iblockaccess.getBlockId(i, j, k - 2) != blockID;
boolean flag3 = iblockaccess.getBlockId(i, j, k + 1) == blockID && iblockaccess.getBlockId(i, j, k + 2) != blockID;
boolean flag4 = flag || flag1;
boolean flag5 = flag2 || flag3;
if(flag4 && l == 4)
{
return true;
}
if(flag4 && l == 5)
{
return true;
}
if(flag5 && l == 2)
{
return true;
}
return flag5 && l == 3;
}
public int quantityDropped(Random random)
{
return 0;
}
public int getRenderBlockPass()
{
return 1;
}
public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
{
if(entity.ridingEntity == null && entity.riddenByEntity == null)
{
if(entity instanceof EntityPlayerSP)
{
EntityPlayerSP entityplayersp = (EntityPlayerSP)entity;
entityplayersp.portal = getDimNumber();
}
entity.setInPortal();
}
}
public void randomDisplayTick(World world, int i, int j, int k, Random random)
{
if(random.nextInt(100) == 0)
{
world.playSoundEffect((double)i + 0.5D, (double)j + 0.5D, (double)k + 0.5D, "portal.portal", 1.0F, random.nextFloat() * 0.4F + 0.8F);
}
for(int l = 0; l < 4; l++)
{
double d = (float)i + random.nextFloat();
double d1 = (float)j + random.nextFloat();
double d2 = (float)k + random.nextFloat();
double d3 = 0.0D;
double d4 = 0.0D;
double d5 = 0.0D;
int i1 = random.nextInt(2) * 2 - 1;
d3 = ((double)random.nextFloat() - 0.5D) * 0.5D;
d4 = ((double)random.nextFloat() - 0.5D) * 0.5D;
d5 = ((double)random.nextFloat() - 0.5D) * 0.5D;
if(world.getBlockId(i - 1, j, k) == blockID || world.getBlockId(i + 1, j, k) == blockID)
{
d2 = (double)k + 0.5D + 0.25D * (double)i1;
d5 = random.nextFloat() * 2.0F * (float)i1;
} else
{
d = (double)i + 0.5D + 0.25D * (double)i1;
d3 = random.nextFloat() * 2.0F * (float)i1;
}
world.spawnParticle("portal", d, d1, d2, d3, d4, d5);
}
}
public int getDimNumber()
{
return 1001;
}
}
6. Cannot find variable: class net.minecraft.src.DimensionSpano
(in DimensionSpano)
PLEASE FRICKIN HELP! I don't wanna here anything like "you shouldn't try this if you can't figure out errors hurr durp", I want help! PLEASE! (sorry for desperaticy iticy)
You want help? Did you not read how Strength says that he will not help anyone with this? And most people here have no idea how the new dimension coding works, including me. If you do not know what the error means, google it. Simple as that.
You want help? Did you not read how Strength says that he will not help anyone with this? And most people here have no idea how the new dimension coding works, including me. If you do not know what the error means, google it. Simple as that.
Strength's code for the dimension tutorial is far, far from perfect. You try getting it to work.
Mods loaded: 3
ModLoader Beta 1.7.3
net.minecraft.src.mod_Hemp 1.7.3
net.minecraft.src.mod_Marijuana 1.7.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 4b8f9697 --------
Generated 27/08/11 9:46 PM
Minecraft: Minecraft Beta 1.7.3
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_26, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce 7025 / nForce 630a/PCI/SSE2/3DNOW! version 2.1.2, NVIDIA Corporation
java.lang.RuntimeException: java.lang.Exception: Image not found: drugs/blocks/Marijuana.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1161)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:882)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:24)
at net.minecraft.client.Minecraft.run(Minecraft.java:514)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: drugs/blocks/Marijuana.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:846)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1153)
... 4 more
--- END ERROR REPORT 6a21842f ----------
Here's my BlockCopperOre code (yes I know copper is unoriginal, but I'm just practicing):
package net.minecraft.src;
import java.util.Random;
public class BlockCopperOre extends Block
{
public BlockCopperOre(int i, int j)
{
super(i, j, Material.ground);
}
public int idDropped(int i, Random random)
{
return mod_Copper.CopperOre.140;
}
public int quantityDropped(Random random)
{
return 1;
}
}
Here's my BlockCopperOre code (yes I know copper is unoriginal, but I'm just practicing):
package net.minecraft.src;
import java.util.Random;
public class BlockCopperOre extends Block
{
public BlockCopperOre(int i, int j)
{
super(i, j, Material.ground);
}
public int idDropped(int i, Random random)
{
return mod_Copper.CopperOre.140;
}
public int quantityDropped(Random random)
{
return 1;
}
}
I am guessing you are new to coding, but since you are acting mature about asking for help, I will not be rude to you. It looks like what is causing it is because of how you typed it out. You need to indent the coding. Here is what it should look like
package net.minecraft.src;
import java.util.Random;
public class BlockCopperOre extends Block
{
public BlockCopperOre(int i, int j)
{
super(i, j, Material.ground);
}
public int idDropped(int i, Random random)
{
return mod_Copper.CopperOre.140;
}
public int quantityDropped(Random random)
{
return 1;
}
}
I get an error saying it cannot find class: Minecraft, in this line:
Any ideas? please help, thanks!
also, dont say look at another .java, if anyone knows how to make blocks have different textures on diff. sides, please do tell! Important(to me)!
to anyone that helps! :smile.gif:
Recompile Error:
> Recompiling client...
javac.exe -g -verbose -classpath "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/jin
put.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d
bin/minecraft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minec
raft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java fai
led.
Return code : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\BlockMythOre.java:1: ';' expected
package net.minpackage net.minecraft.src;
^
1 error
==================
> Done in 3.60 seconds
> Recompiling server...
[/code.]
My BlockMythOre:
import java.util.Random;
public class BlockMythOre extends Block
{
public BlockMythOre(int i, int j)
{
super(i, j, Material.ground);
}
public int idDropped(int i, Random random)
{
return mod_MythOre.MythOre.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
[/code.]
StartClient Error:
[17:05] java.lang.NoClassDefFoundError: Start
[17:05] Caused by: java.lang.ClassNotFoundException: Start
[17:05] at java.net.URLClassLoader$1.run(Unknown Source)
[17:05] at java.security.AccessController.doPrivileged(Native Method)
[17:05] at java.net.URLClassLoader.findClass(Unknown Source)
[17:05] at java.lang.ClassLoader.loadClass(Unknown Source)
[17:05] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[17:05] at java.lang.ClassLoader.loadClass(Unknown Source)
[17:05] Could not find the main class: Start. Program will exit.
[17:05] Exception in thread "main"
java.lang.NoClassDefFoundError: Start
Caused by: java.lang.ClassNotFoundException: Start
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: Start. Program will exit.
Exception in thread "main"
Press any key to continue . . .
[/Code.]
Sweet. We should work together and see if we can find a solution to this problem. Share your code with me so I can take a look.
I get errors saying:
1. It cannot find symbol: Random.
BlockSpanoDirt:
2. Cannot find symbol: DimensionBase (I don't have this .java...)
Dimension Spano:
3. Cannot find symbol: BlockSpanoPortal
mod_SpanoOverHaul:
4. Cannot find variable: portal
BlockPortalSpano
5. Cannot find symbol: method tryToCreatePortal(net.minecraft.src.World,int,int,int)
(in mod_SpanoOverHaul)
6. Cannot find variable: class net.minecraft.src.DimensionSpano
(in DimensionSpano)
PLEASE FRICKIN HELP! I don't wanna here anything like "you shouldn't try this if you can't figure out errors hurr durp", I want help! PLEASE! (sorry for desperaticy iticy)
Can you add a tutorial for how to add a custom biome?
You want help? Did you not read how Strength says that he will not help anyone with this? And most people here have no idea how the new dimension coding works, including me. If you do not know what the error means, google it. Simple as that.
Strength's code for the dimension tutorial is far, far from perfect. You try getting it to work.
can anyone please help me yeah?
Also, check out my YouTube channel: www.YouTube.com/StrongJoshua
Thanks :biggrin.gif:
Check out my Minecraft Modding Tutorials!
Some good ****.
I am not going to try doing that because I know that I do not know what the coding does. Ill look through it for a while and then try.
import java.util.Random;
public class BlockCopperOre extends Block
{
public BlockCopperOre(int i, int j)
{
super(i, j, Material.ground);
}
public int idDropped(int i, Random random)
{
return mod_Copper.CopperOre.140;
}
public int quantityDropped(Random random)
{
return 1;
}
}
Line 14 is this: return mod_Copper.CopperOre.140;
Yet I get the error message:
src\minecraft\net\minecraft\src\BlockCopperOre.java:14: ';' expected
return mod_Copper.CopperOre.140();
^
Help?
I am guessing you are new to coding, but since you are acting mature about asking for help, I will not be rude to you. It looks like what is causing it is because of how you typed it out. You need to indent the coding. Here is what it should look like
Do you have ShockahPI and fernflower.jar installed?
Yes I do, but I fixed all of those errors, it's just these that I can't get rid of:
Any help with those?
Check out my Minecraft Modding Tutorials!