Hey Robbie, just finished with making a solar panel. My only problem is that is doesnt update automatically, I have to place a block manually to make the redstone change state.
This is my code(some censored for the secrecy of my mod ;p). Could you please tell me if it looks okay? I followed the tutorial almost to the letter.
package net.minecraft.src;
import java.util.*;
public class BlockSolarPanel extends Block
{
public boolean isSolar;
public BlockSolarPanel(int x, int y)
{
super(x,y, Material.rock);
isSolar = false;
}
public int tickRate()
{
return 120;
}
public void onBlockAdded(World world, int x, int y, int z)
{
if(world.getBlockMetadata(x, y, z) == 0)
{
super.onBlockAdded(world, x, y, z);
}
if(isSolar)
{
notifyNeighbors(world, x, y, z);
}
world.scheduleBlockUpdate(x, y, z, blockID, tickRate());
}
public boolean canProvidePower()
{
return isSolar;
}
public void onBlockDestroyedByPlayer(World world, int x, int y, int z, int a)
{
notifyNeighbors(world, x, y, z);
}
public boolean isIndirectlyPoweringTo(World world, int x, int y, int z, int a)
{
return isPoweringTo(world, x, y, z, a);
}
public void notifyNeighbors(World world, int x, int y, int z)
{
world.notifyBlocksOfNeighborChange(x, y - 1, z, blockID);
world.notifyBlocksOfNeighborChange(x, y + 1, z, blockID);
world.notifyBlocksOfNeighborChange(x - 1, y, z, blockID);
world.notifyBlocksOfNeighborChange(x + 1, y, z, blockID);
world.notifyBlocksOfNeighborChange(x, y, z - 1, blockID);
world.notifyBlocksOfNeighborChange(x, y, z + 1, blockID);
}
public boolean isPoweringTo(IBlockAccess iblockaccess, int x, int y, int z, int a)
{
if (!isSolar)
{
return false;
}
int i = iblockaccess.getBlockMetadata(x, y, z);
if (i == 5 && a == 1)
{
return false;
}
if (i == 3 && a == 3)
{
return false;
}
if (i == 4 && a == 2)
{
return false;
}
if (i == 1 && a == 5)
{
return false;
}
return i != 2 || a != 4;
}
public void updateTick(World world, int x, int y, int z, Random random)
{
isSolar = mod_AltEnergy.isSolar(world, x, y, z, blockID);
notifyNeighbors(world, x, y, z);
world.scheduleBlockUpdate(x, y, z, blockID, tickRate());
}
//modifying block model
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int par2, int par3, int par4)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.3F, 1.0F);
}
public void getCollidingBoundingBoxes(World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, ArrayList par6ArrayList)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.3F, 1.0F);
super.getCollidingBoundingBoxes(par1World, par2, par3, par4, par5AxisAlignedBB, par6ArrayList);
}
public boolean isOpaqueCube()
{
return false;
}
public boolean renderAsNormalBlock()
{
return false;
}
//textures
public int getBlockTextureFromSide(int x)
{
if(x == 1)
return mod_Censored.panelTop;
else
return mod_Censored.panelSide;
}
}
Hey robbie i followed your "how to create a custom armor" and i'm having a problem! I'm having a problem where my armor won't show up and its all white! PLZ HELP ME!! Thank you!
package net.minecraft.src;
import java.util.Random;
public class mod_FireOreBlock extends BaseMod
{
public static final Item FireIngot;
public static final Block FireOreBlock;
public static final Item FireHelmet = new ItemArmor(608, EnumArmorMaterial.FIRE, ModLoader.addArmor("fire"), 0).setItemName("Fire Helmet");
public static final Item FireChest = new ItemArmor(609, EnumArmorMaterial.FIRE, ModLoader.addArmor("fire"), 1).setItemName("Fire Chestplate");
public static final Item FireLegs = new ItemArmor(610, EnumArmorMaterial.FIRE, ModLoader.addArmor("fire"), 2).setItemName("Fire Leggings");
public static final Item FireBoots = new ItemArmor(611, EnumArmorMaterial.FIRE, ModLoader.addArmor("fire"), 3).setItemName("Fire Boots");
static
{
FireOreBlock = (new BlockFireOre(159, ModLoader.addOverride("/terrain.png", "/mods/Blocks/FireOreBlock.png"))).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("FireOreBlock");
FireIngot = (new Item(1000)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/Ingots/FireIngot.png")).setItemName("FireIngot");
//Helmet
ModLoader.addName(FireHelmet, "Fire Helmet");
FireHelmet.iconIndex = ModLoader.addOverride("/gui/items.png", "/mods/FireHelmet.png");
ModLoader.addRecipe(new ItemStack(FireHelmet, 1), new Object[]
{
"XXX", "X X", Character.valueOf('X'), FireIngot
});
//Chest
ModLoader.addName(FireChest, "Fire Chestplate");
FireChest.iconIndex = ModLoader.addOverride("/gui/items.png", "/mods/FireChest.png");
ModLoader.addRecipe(new ItemStack(FireChest, 1), new Object[]
{
"X X", "XXX", "XXX",Character.valueOf('X'), FireIngot
});
//Legs
ModLoader.addName(FireLegs, "Fire Leggings");
FireLegs.iconIndex = ModLoader.addOverride("/gui/items.png", "/mods/FireLegs.png");
ModLoader.addRecipe(new ItemStack(FireLegs, 1), new Object[]
{
"XXX", "X X", "X X",Character.valueOf('X'), FireIngot
});
//Boots
ModLoader.addName(FireBoots, "Fire Boots");
FireBoots.iconIndex = ModLoader.addOverride("/gui/items.png", "/mods/FireBoots.png");
ModLoader.addRecipe(new ItemStack(FireBoots, 1), new Object[]
{
"X X", "X X", Character.valueOf('X'), FireIngot
});
}
public void load()
{
}
public mod_FireOreBlock()
{
ModLoader.addName(FireIngot, "Fire Ingot");
ModLoader.registerBlock(FireOreBlock);
ModLoader.addName(FireOreBlock, "Fire Ore Block");
ModLoader.addSmelting(Block.planks.blockID, new ItemStack(FireOreBlock, 1));
ModLoader.addSmelting(FireOreBlock.blockID, new ItemStack(FireIngot, 1));
//armor
}
public void generateSurface(World world, Random rand, int chunkx, int chunkz)
{
//Fire Ore Block
for(int l = 0; l<16; l++)
{
int i1 = chunkx +rand.nextInt(16);
int j1 = rand.nextInt(40);
int k1 = chunkz + rand.nextInt(16);
(new WorldGenMinable(FireOreBlock.blockID, 6)).generate(world, rand, i1, j1, k1);
}
//end Fire Ore Block
}
public String getVersion()
{
return "Minecraft 1.2.5 and above FireOreBlock Mod";
}
}
When trying to add a new item i keep geting this error both in eclipse and in game
This is the game error
Syntax error on token "iconIndex", VariableDeclaratorId expected after this token
Syntax error on token "(", delete this token
Syntax error on tokens, VariableDeclarator expected instead
at net.minecraft.src.mod_cBlossm.<init>(mod_cBlossm.java:19)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:287)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
at net.minecraft.src.ModLoader.init(ModLoader.java:849)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
When trying to add a new item i keep geting this error both in eclipse and in game
This is the game error
Syntax error on token "iconIndex", VariableDeclaratorId expected after this token
Syntax error on token "(", delete this token
Syntax error on tokens, VariableDeclarator expected instead
at net.minecraft.src.mod_cBlossm.<init>(mod_cBlossm.java:19)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:287)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
at net.minecraft.src.ModLoader.init(ModLoader.java:849)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
Look through your whole code. Make sure each "{" matches up with an opposing "}".
Also, look back at the tutorial on adding an image to an item. I think you may have done something wrong there.
so Robbie im trying to get a block to drop the entityTNTPrimed but following your tutorial for getting it to drop xp orbs (i figured that it would be the same code) i get the error in my code of what should i replace the world.entitySpawnInworld(new EntityTNTPrimed(World par1World, double par2, double par4, double par6)) code with? because using this it doesnt work i get the error when trying to run it of
java.lang.Error: Unresolved compilation problems: world cannot be resolved World cannot be resolved to a variable Syntax error on token "par1World", delete this token Syntax error on token "double", delete this token Syntax error on token "double", delete this token Syntax error on token "double", delete this token Syntax error, insert ";" to complete BlockStatements
at net.minecraft.src.Trollium.dropBlockAsItemWithChance(Trollium.java:22) at net.minecraft.src.Block.dropBlockAsItem(Block.java:649) at net.minecraft.src.Block.harvestBlock(Block.java:1039) at net.minecraft.src.PlayerControllerSP.onPlayerDestroyBlock(PlayerControllerSP.java:64) at net.minecraft.src.PlayerControllerSP.onPlayerDamageBlock(PlayerControllerSP.java:140) at net.minecraft.client.Minecraft.sendClickBlockToController(Minecraft.java:1338) at net.minecraft.client.Minecraft.runTick(Minecraft.java:1844) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:870) at net.minecraft.client.Minecraft.run(Minecraft.java:801) at java.lang.Thread.run(Thread.java:680) --- END ERROR REPORT 69387a16 ----------
so Robbie im trying to get a block to drop the entityTNTPrimed but following your tutorial for getting it to drop xp orbs (i figured that it would be the same code) i get the error in my code of what should i replace the world.entitySpawnInworld(new EntityTNTPrimed(World par1World, double par2, double par4, double par6)) code with? because using this it doesnt work i get the error when trying to run it of
java.lang.Error: Unresolved compilation problems: world cannot be resolved World cannot be resolved to a variable Syntax error on token "par1World", delete this token Syntax error on token "double", delete this token Syntax error on token "double", delete this token Syntax error on token "double", delete this token Syntax error, insert ";" to complete BlockStatements
at net.minecraft.src.Trollium.dropBlockAsItemWithChance(Trollium.java:22) at net.minecraft.src.Block.dropBlockAsItem(Block.java:649) at net.minecraft.src.Block.harvestBlock(Block.java:1039) at net.minecraft.src.PlayerControllerSP.onPlayerDestroyBlock(PlayerControllerSP.java:64) at net.minecraft.src.PlayerControllerSP.onPlayerDamageBlock(PlayerControllerSP.java:140) at net.minecraft.client.Minecraft.sendClickBlockToController(Minecraft.java:1338) at net.minecraft.client.Minecraft.runTick(Minecraft.java:1844) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:870) at net.minecraft.client.Minecraft.run(Minecraft.java:801) at java.lang.Thread.run(Thread.java:680) --- END ERROR REPORT 69387a16 ----------
When trying to add a new item i keep geting this error both in eclipse and in game
This is the game error
Syntax error on token "iconIndex", VariableDeclaratorId expected after this token
Syntax error on token "(", delete this token
Syntax error on tokens, VariableDeclarator expected instead
at net.minecraft.src.mod_cBlossm.<init>(mod_cBlossm.java:19)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:287)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
at net.minecraft.src.ModLoader.init(ModLoader.java:849)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
Does anyone know if there is any change to the block generation code that robbie showed us in his world generation tutorial because i recently updated my mod to 1.2.5 and even though i've removed all the errors that caused my blocks do not generate anymore but they did use to before i updated. Below is the code for one of my blocks... pls help
public static final Block copper = new BlockCopper (250, 168).setHardness(3F).setResistance(5F).setBlockName("Copper");
public mod_Copper()
{
ModLoader.registerBlock(copper);
ModLoader.addName(copper,"Copper Ore");
ModLoader.addSmelting(copper.blockID, new ItemStack(copperBar));
copper.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Mod/Copper.png");
}
public void GenerateSurface(World world, Random rand, int baseX, int baseZ)
{
for(int x = 0; x < 80; x++)
{
int Xccoord = baseX + rand.nextInt(16);
int Yccoord = rand.nextInt(128);
int Zccoord = baseZ + rand.nextInt(16);
(new WorldGenMinable(copper.blockID, 35)).generate(world, rand, Xccoord, Yccoord, Zccoord);
}
}
btw the numbers are so heavily boosted purely for testing...
I forget, which version is the tutorial for? I think it's from before 1.2, right?
If so, then yes. The world generation has changed from 1.1 to 1.2. Remember the anvil stuff? Where the world height was doubled or tripled or something? That also changed how the world generates. So yes, there would be a problem.
I think you should do some more updated videos on how to set up all the stuff for minecraft 1.2.5 and also do some more complex and interesting tutorials like generating custom structures, more dynamic monsters, and other things along these lines! Really hope you see this Robbie and i would love a response.
P.S: I love the series as it is but i would really love to see more!
Does anyone know if there is any change to the block generation code that robbie showed us in his world generation tutorial because i recently updated my mod to 1.2.5 and even though i've removed all the errors that caused my blocks do not generate anymore but they did use to before i updated. Below is the code for one of my blocks... pls help
public static final Block copper = new BlockCopper (250, 168).setHardness(3F).setResistance(5F).setBlockName("Copper");
public mod_Copper()
{
ModLoader.registerBlock(copper);
ModLoader.addName(copper,"Copper Ore");
ModLoader.addSmelting(copper.blockID, new ItemStack(copperBar));
copper.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Mod/Copper.png");
}
public void GenerateSurface(World world, Random rand, int baseX, int baseZ)
{
for(int x = 0; x < 80; x++)
{
int Xccoord = baseX + rand.nextInt(16);
int Yccoord = rand.nextInt(128);
int Zccoord = baseZ + rand.nextInt(16);
(new WorldGenMinable(copper.blockID, 35)).generate(world, rand, Xccoord, Yccoord, Zccoord);
}
}
btw the numbers are so heavily boosted purely for testing...
The G in GenerateSurface needs to be lowercase.
Example:
public void generateSurface(World world, Random rand, int baseX, int baseZ)
my mcp saying I don't have a server sources and try decompile.
I try decompile and redownload mcp again and reinstall everything after I saved my work.
it don't work I played the game and can't find my orc i put it over the surface but nothing.
can someone help me?
before I blow up!!!!!
Umm... unless you want to make a multiplayer mod, you shouldn't have the server sources. The error message shouldn't be a problem, but you should have just kept working.
And you said you "saved your work". Did you just save it in eclipse or make a backup? Because redownloading mcp and stuff will wipe your mod, even if you saved it in eclipse. So the reason your orc isn't showing up is because there is no orc code.
I hope you made a backup, or you will have to start all over.
Umm... unless you want to make a multiplayer mod, you shouldn't have the server sources. The error message shouldn't be a problem, but you should have just kept working.
And you said you "saved your work". Did you just save it in eclipse or make a backup? Because redownloading mcp and stuff will wipe your mod, even if you saved it in eclipse. So the reason your orc isn't showing up is because there is no orc code.
I hope you made a backup, or you will have to start all over.
Do you mean that the orc didn't work before you redownloaded or that the "no server sources" error was showing before you redownloaded?
yes
and can you help me make it work
it below here:
this one is BlockDeathCoal
package net.minecraft.src;
import java.util.Random;
public class BlockDeathCoal extends Block
{
protected BlockDeathCoal(int i, int y)
{
super (i,y, Material.rock);
}
public int idDropped(int i, Random rand)
{
return Item.coal.iconIndex;
}
public int quantityDropped(Random rand)
{
return 5-8;
}
public int idDropped1(int i, Random rand)
{
return Item.diamond.iconIndex;
}
public int quantityDropped1(Random rand)
{
return 0-2;
}
}
this one is Mod_Demon
package net.minecraft.src;
import java.util.Random;
public class Mod_Demon extends BaseMod
{
public static final Block deathCoal = new BlockDeathCoal(150, 0).setHardness(3F).setLightValue(2F).setBlockName("DeathCoal");
public Mod_Demon()
{
ModLoader.registerBlock(deathCoal);
ModLoader.addName(deathCoal, "Death Coal");
deathCoal.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Death Coal.png");
}
public void GenerateSurface(World world, Random rand, int Basej, int Basek)
{
for(int j = 0; j <15; j++)
{
int Xooord = Basej + rand.nextInt(16);
int Yooord = rand.nextInt(55);
int Zooord = Basek + rand.nextInt(11);
(new WorldGenMinable(deathCoal.blockID, 8)).generate(world, rand, Xooord, Yooord, Zooord);
}
}
public String getVersion()
{
return "1.2.5";
}
public void load()
{
}
}
Hey, I have been having a problem loading minecraft with the mod_moreTools class file i made
Here is the Code inside mod_moreTools
package net.minecraft.src;
public class mod_MoreTools extends BaseMod
{
{
final Item ObsidianSword = new ItemSword (603, EnumToolMaterial.OBSIDIAN).setItemName("Obsidian Sword");
final Item ObsidianPickaxe = new ItemPickaxe (604, EnumToolMaterial.OBSIDIAN).setItemName("Obsidain Pickaxe");
final Item ObsidianAxe = new ItemAxe (605, EnumToolMaterial.OBSIDIAN).setItemName("Obsidian Axe");
//Sword
{
ModLoader.addName(ObsidianSword, "Obsidian Sword");
ObsidianSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/ObsidianSword.png");
ModLoader.addRecipe(new ItemStack(ObsidianSword, 1), new Object[]{
" # ", " # ", " X ", Character.valueOf('#'), Block.obsidian, Character.valueOf('X'), Item.stick
});
//Pickaxe
{
ModLoader.addName(ObsidianPickaxe, "Obsidian Pickaxe");
ObsidianPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/ObsidianPickaxe.png");
ModLoader.addRecipe(new ItemStack(ObsidianPickaxe, 1), new Object[]{
"###", " X ", " X ", Character.valueOf('#'), Block.obsidian, Character.valueOf('X'), Item.stick
});
}
//Axe
{
ModLoader.addName(ObsidianAxe, "Obsidian Axe");
ObsidianAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/ObsidianAxe.png");
ModLoader.addRecipe(new ItemStack(ObsidianAxe, 1), new Object[]{
" ##", " X# ", " X ", Character.valueOf('#'), Block.obsidian, Character.valueOf('X'), Item.stick
});
ModLoader.addRecipe(new ItemStack(ObsidianAxe, 1), new Object[]{
" ##", "#X ", " X ", Character.valueOf('#'), Block.obsidian, Character.valueOf('X'), Item.stick
});
//Bug Testing Recipes
ModLoader.addRecipe(new ItemStack(Block.bed), new Object[]{
" ##", Character.valueOf('#'), Block.dirt
});
ModLoader.addRecipe(new ItemStack(Block.chest, 2), new Object[]{
"#", Character.valueOf('#'), Block.dirt
});
}
}
}
@Override
public String getVersion() {
// TODO Auto-generated method stub
return null;
}
@Override
public void load() {
// TODO Auto-generated method stub
}
}
And these are the errors i get when i try to load minecraft.
Mods loaded: 2
ModLoader 1.2.5
mod_MoreTools null
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT cabb55ad --------
Generated 5/29/12 11:51 AM
Minecraft: Minecraft 1.2.5
OS: Mac OS X (x86_64) version 10.6.8
Java: 1.6.0_31, Apple Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
LWJGL: 2.4.2
OpenGL: NVIDIA GeForce GT 330M OpenGL Engine version 2.1 NVIDIA-1.6.40, NVIDIA Corporation
java.lang.RuntimeException: java.lang.Exception: Image not found: /ObsidianSword.png
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1451)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1104)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:922)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.Exception: Image not found: /ObsidianSword.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1024)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1443)
... 5 more
--- END ERROR REPORT 426eff40 ----------
This is my code(some censored for the secrecy of my mod ;p). Could you please tell me if it looks okay? I followed the tutorial almost to the letter.
Thanks in advance
Do you have any errors inside of eclipse?
*Edit - I/we would need to see all of your mod_cBlossm
Look through your whole code. Make sure each "{" matches up with an opposing "}".
Also, look back at the tutorial on adding an image to an item. I think you may have done something wrong there.
java.lang.Error: Unresolved compilation problems:
world cannot be resolved
World cannot be resolved to a variable
Syntax error on token "par1World", delete this token
Syntax error on token "double", delete this token
Syntax error on token "double", delete this token
Syntax error on token "double", delete this token
Syntax error, insert ";" to complete BlockStatements
at net.minecraft.src.Trollium.dropBlockAsItemWithChance(Trollium.java:22)
at net.minecraft.src.Block.dropBlockAsItem(Block.java:649)
at net.minecraft.src.Block.harvestBlock(Block.java:1039)
at net.minecraft.src.PlayerControllerSP.onPlayerDestroyBlock(PlayerControllerSP.java:64)
at net.minecraft.src.PlayerControllerSP.onPlayerDamageBlock(PlayerControllerSP.java:140)
at net.minecraft.client.Minecraft.sendClickBlockToController(Minecraft.java:1338)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1844)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:870)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT 69387a16 ----------
I meant a red underline, anywhere in your code.
Make sure you have a ; everywhere it needs to be.
Lol. I just realized this.
The {}s are backwards. Make it this.
Did you reobfuscate and put the mod files into your minecraft.jar?
I forget, which version is the tutorial for? I think it's from before 1.2, right?
If so, then yes. The world generation has changed from 1.1 to 1.2. Remember the anvil stuff? Where the world height was doubled or tripled or something? That also changed how the world generates. So yes, there would be a problem.
P.S: I love the series as it is but i would really love to see more!
The G in GenerateSurface needs to be lowercase.
Example:
I try decompile and redownload mcp again and reinstall everything after I saved my work.
it don't work I played the game and can't find my orc i put it over the surface but nothing.
can someone help me?
before I blow up!!!!!
Umm... unless you want to make a multiplayer mod, you shouldn't have the server sources. The error message shouldn't be a problem, but you should have just kept working.
And you said you "saved your work". Did you just save it in eclipse or make a backup? Because redownloading mcp and stuff will wipe your mod, even if you saved it in eclipse. So the reason your orc isn't showing up is because there is no orc code.
I hope you made a backup, or you will have to start all over.
it did the same thing before i redownload it
Do you mean that the orc didn't work before you redownloaded or that the "no server sources" error was showing before you redownloaded?
yes
and can you help me make it work
it below here:
this one is BlockDeathCoal
this one is Mod_Demon
because i try to over ride something and it don't work
What are you trying to override?
Here is the Code inside mod_moreTools
And these are the errors i get when i try to load minecraft.
Please help me?