I love these tutorials :tongue.gif:
I'm using the explosive block tut, and I keep getting an error with my explosive.
src\minecraft\net\minecraft\src\mod_SlimeBlock.java:163: cannot find symbol
symbol : class Map
location: class net.minecraft.src.mod_SlimeBlock
public void AddRenderer(Map map)
My code is:
package net.minecraft.src;
import java.util.Random;
public class mod_SlimeBlock extends BaseMod
{
-snip-
}
public void AddRenderer(Map map)
{
map.put(net.minecraft.src.EntityC4Primed.class, new RenderC4Primed());
}
public void load()
{
return;
}
public String getVersion()
{
return "1.0.0";
}
}
What am I doing wrong?
EDIT: Nevermind, I got it fixed. Turns out I forgot to import Map
The Meaning of Life, the Universe, and Everything.
Join Date:
7/5/2011
Posts:
49
Minecraft:
scootzter
Member Details
Hey Strength,
I had a question for you, for your tree tutorial was that made for minecraft 1.7.3? I tried to follow it using 1.8.1 and kept getting errors whenever I tried to break a leave that drops my new saplings and errors when trying to craft my new tree's log into planks...this is the page that I originally posted, a few people have tried to help but whatever I try it keeps failing. The trees generate fine, slightly odd looking but I can mess around with some of the variables defining the growth, but I was wondering what I'm doing wrong.
you've missed a very important "}" to close of the public mod xD also you need to make sure that you close off the bracketing too... using a program like Jcreator highlights linked brackets to help you fix these issues. you also missed a few semi-colons.. remember that you need a semi-colon at almost every line ending.
give this a try :smile.gif:
package net.minecraft.src;
import java.util.*;
public class mod_RoseMod extends BaseMod
{
//New blocks.
public static Block Copper = new BlockCopper(184, 0).setHardness(2.0F).setResistance(2.0F).setLightValue(0.0F).setBlockName("Copper");
public mod_RoseMod()
{
//Register Name
ModLoader.RegisterBlock(BlockCopper);
//Add Name
ModLoader.AddName(BlockCopper, "Copper");
//Add Texture
BlockCopper.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/RoseMod/CopperOre.png");
//Add Crafting Recipe
ModLoader.AddRecipe(new ItemStack(BlockCopper, 1), new Object[] {
"###", "###", "###", Character.valueOf('#'), Item.dirt});
//Add Smelthing Recipe
//Generating Blocks Into Ground
}
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 20; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(120);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_RoseMod.BlockCopper.blockID, 3)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public String Version()
{
return "1.0.0";
}
}
you also forgot to se the rarity on the line "for(int i = 0; i < 20; i++)" you had "for(int i = 0; i < RARITY; i++)" xD no problem though.. i had these issues when i first started (which was only 2 weeks ago :S)
are you using mcp to decompile, recompile and reobfuscate? cause that tells errors properly, if that doesn't spit out any errors then not too sure
Whoops, silly me! Forgot to reobfuscate it. Here's a shiny new error log. It looks like I've done something wrong recipe-wise here, judging from what the error says.
java.lang.ArrayIndexOutOfBoundsException: 4
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:282)
at net.minecraft.src.ModLoader.AddRecipe(ModLoader.java:372)
at net.minecraft.src.mod_Lemonade.<init>(mod_Lemonade.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:265)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1214)
at net.minecraft.src.ModLoader.init(ModLoader.java:733)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:162)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:104)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:42)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:314)
at net.minecraft.client.Minecraft.run(Minecraft.java:613)
at java.lang.Thread.run(Unknown Source)
But the error in the ModLoader.txt file appears to say that it's missing the textures.
Nov 26, 2011 8:23:48 AM net.minecraft.src.ModLoader init
FINE: ModLoader 1.0.0 Initializing...
Nov 26, 2011 8:23:48 AM net.minecraft.src.ModLoader readFromClassPath
FINER: Adding mods from C:\Users\Soren\Desktop\Minecraft Stuff\Mod Making\MCP\bin\minecraft
Nov 26, 2011 8:23:48 AM net.minecraft.src.ModLoader readFromClassPath
FINER: Directory found.
Nov 26, 2011 8:23:48 AM ModLoader getUniqueItemSpriteIndex
FINER: THROW
java.lang.Exception: No registry for this texture: /Lemonade/fire_lemon.png
at net.minecraft.src.ModLoader.getUniqueSpriteIndex(ModLoader.java:580)
at net.minecraft.src.ModLoader.addOverride(ModLoader.java:330)
at net.minecraft.src.mod_Lemonade.<init>(mod_Lemonade.java:12)
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:265)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1214)
at net.minecraft.src.ModLoader.init(ModLoader.java:733)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:162)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:104)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:42)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:314)
at net.minecraft.client.Minecraft.run(Minecraft.java:613)
at java.lang.Thread.run(Unknown Source)
Nov 26, 2011 8:23:48 AM ModLoader getUniqueItemSpriteIndex
FINER: THROW
java.lang.Exception: No registry for this texture: /Lemonade/lemon.png
at net.minecraft.src.ModLoader.getUniqueSpriteIndex(ModLoader.java:580)
at net.minecraft.src.ModLoader.addOverride(ModLoader.java:330)
at net.minecraft.src.mod_Lemonade.<init>(mod_Lemonade.java:22)
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:265)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1214)
at net.minecraft.src.ModLoader.init(ModLoader.java:733)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:162)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:104)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:42)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:314)
at net.minecraft.client.Minecraft.run(Minecraft.java:613)
at java.lang.Thread.run(Unknown Source)
Nov 26, 2011 8:23:48 AM net.minecraft.src.ModLoader addMod
FINE: Mod Initialized: "mod_Lemonade null" from mod_Lemonade.class
Nov 26, 2011 8:23:48 AM net.minecraft.src.ModLoader init
FINE: Mod Loaded: "mod_Lemonade null"
Nov 26, 2011 8:23:48 AM net.minecraft.src.ModLoader AddAllRenderers
FINE: Initialized
Here's my code once again.
package net.minecraft.src;
public class mod_Lemonade extends BaseMod
{
public static Item FireLemon = new ItemFireLemon(31338).setItemName("FireLemon");
public static Item Lemon = new Item(31336).setItemName("Lemon");
public mod_Lemonade()
{
FireLemon.iconIndex = ModLoader.addOverride("/Lemonade/fire_lemon.png", "/fire_lemon.png");
ModLoader.AddName(FireLemon, "Combustible Lemon");
ModLoader.AddRecipe((new ItemStack(FireLemon, 1)), new Object[]
{
"IBI", "#L#", "###", Character.valueOf('#'), Item.gunpowder, Character.valueOf('L'), mod_Lemonade.Lemon, Character.valueOf('B'), Item.blazeRod, Character.valueOf('I'), Item.ingotIron
});
Lemon.iconIndex = ModLoader.addOverride("/Lemonade/lemon.png", "/lemon.png");
ModLoader.AddName(Lemon, "Lemon");
ModLoader.AddRecipe(new ItemStack(Lemon, 1), new Object[]
{
"###", "###", "###", Character.valueOf('#'), Block.bedrock
});
}
public String version()
{
return "1.0.0";
}
@Override
public String getVersion()
{
// TODO Auto-generated method stub
return null;
}
@Override
public void load()
{
// TODO Auto-generated method stub
}
}
hey Strength, I was recently trying your tutorial on making a crop, but i came across this error:
== MCP v5.0 ==
> Recompiling client...
javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
craft\net\minecraft\src\*.java conf/patches/*.java failed.
Return code : 1
== ERRORS FOUND ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Potatocrop.java:17: error: Potatocrop is alr
eady defined in mod_Potatocrop
public static final Item Potatocrop = new ItemPotatocrop(2001, mod_Potatocrop.Po
tatocrop.blockID).setItemName("Potato Crop");
^
src\minecraft\net\minecraft\src\BlockPotatocrop.java:139: error: cannot find sym
bol
return Item.Potato.shiftedIndex;
^
symbol: variable Potato
location: class Item
src\minecraft\net\minecraft\src\mod_Potatocrop.java:25: error: cannot find symbo
l
Potatocrop.iconIndex = ModLoader.addOverride("/gui/items.png", "/Potatocrop.png"
);
^
symbol: variable iconIndex
location: variable Potatocrop of type Block
3 errors
1 warning
==================
> Done in 6.28 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
Here is my mod_Potatocrop:
package net.minecraft.src;
import java.util.*;
public class mod_Potatocrop extends BaseMod
{
public static int growPotatocrop1 = ModLoader.addOverride("/terrain.png", "/growPotatocrop1.png");
public static int growPotatocrop2 = ModLoader.addOverride("/terrain.png", "/growPotatocrop2.png");
public static int growPotatocrop3 = ModLoader.addOverride("/terrain.png", "/growPotatocrop3.png");
public static int growPotatocrop4 = ModLoader.addOverride("/terrain.png", "/growPotatocrop4.png");
public static int growPotatocrop5 = ModLoader.addOverride("/terrain.png", "/growPotatocrop5.png");
public static int growPotatocrop6 = ModLoader.addOverride("/terrain.png", "/growPotatocrop6.png");
public static int growPotatocrop7 = ModLoader.addOverride("/terrain.png", "/growPotatocrop7.png");
public static int growPotatocrop8 = ModLoader.addOverride("/terrain.png", "/growPotatocrop8.png");
public static final Block Potatocrop = new BlockPotatocrop(2002, 0).setBlockName("Potatocrop");
public static final Item Potatocrop = new ItemPotatocrop(2001, mod_Potatocrop.Potatocrop.blockID).setItemName("Potato Crop");
public mod_Potatocrop()
{
ModLoader.AddName(Potatocrop, "Potato Crop");
Potatocrop.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Potatocrop.png");
ModLoader.AddName(Potatocrop, "Potato Crop");
Potatocrop.iconIndex = ModLoader.addOverride("/gui/items.png", "/Potatocrop.png");
}
public String getVersion()
{
return "1.0.0";
}
public void load()
{
}
}
My ItemPotatocrop:
package net.minecraft.src;
public class ItemPotatocrop extends Item
{
public ItemPotatocrop(int i, int j)
{
super(i);
field_318_a = j;
}
public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l)
{
if(l != 1)
{
return false;
}
if(!entityplayer.func_35190_e(i, j, k) || !entityplayer.func_35190_e(i, j + 1, k))
{
return false;
}
int i1 = world.getBlockId(i, j, k);
if(i1 == Block.tilledField.blockID && world.isAirBlock(i, j + 1, k))
{
world.setBlockWithNotify(i, j + 1, k, field_318_a);
itemstack.stackSize--;
return true;
} else
{
return false;
}
}
private int field_318_a;
}
and finally my BlockPotatocrop:
package net.minecraft.src;
import java.util.Random;
public class BlockPotatocrop extends BlockFlower
{
protected BlockPotatocrop(int i, int j)
{
super(i, j);
blockIndexInTexture = j;
setTickOnLoad(true);
float f = 0.5F;
setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.25F, 0.5F + f);
}
protected boolean canThisPlantGrowOnThisBlockID(int i)
{
return i == Block.tilledField.blockID;
}
public void updateTick(World world, int i, int j, int k, Random random)
{
super.updateTick(world, i, j, k, random);
if(world.getBlockLightValue(i, j + 1, k) >= 9)
{
int l = world.getBlockMetadata(i, j, k);
if(l < 7)
{
float f = getGrowthRate(world, i, j, k);
if(random.nextInt((int)(100F / f)) == 0)
{
l++;
world.setBlockMetadataWithNotify(i, j, k, l);
}
}
}
}
public void fertilize(World world, int i, int j, int k)
{
world.setBlockMetadataWithNotify(i, j, k, 7);
}
private float getGrowthRate(World world, int i, int j, int k)
{
float f = 1.0F;
int l = world.getBlockId(i, j, k - 1);
int i1 = world.getBlockId(i, j, k + 1);
int j1 = world.getBlockId(i - 1, j, k);
int k1 = world.getBlockId(i + 1, j, k);
int l1 = world.getBlockId(i - 1, j, k - 1);
int i2 = world.getBlockId(i + 1, j, k - 1);
int j2 = world.getBlockId(i + 1, j, k + 1);
int k2 = world.getBlockId(i - 1, j, k + 1);
boolean flag = j1 == blockID || k1 == blockID;
boolean flag1 = l == blockID || i1 == blockID;
boolean flag2 = l1 == blockID || i2 == blockID || j2 == blockID || k2 == blockID;
for(int l2 = i - 1; l2 <= i + 1; l2++)
{
for(int i3 = k - 1; i3 <= k + 1; i3++)
{
int j3 = world.getBlockId(l2, j - 1, i3);
float f1 = 0.0F;
if(j3 == Block.tilledField.blockID)
{
f1 = 1.0F;
if(world.getBlockMetadata(l2, j - 1, i3) > 0)
{
f1 = 3F;
}
}
if(l2 != i || i3 != k)
{
f1 /= 4F;
}
f += f1;
}
}
if(flag2 || flag && flag1)
{
f /= 2.0F;
}
return f;
}
public int getBlockTextureFromSideAndMetadata(int i, int j)
{
if(j == 0)
{
return blockIndexInTexture;
}
if(j == 1)
{
return mod_Potatocrop.growPotatocrop1;
}
if(j == 2)
{
return mod_Potatocrop.growPotatocrop2;
}
if(j == 3)
{
return mod_Potatocrop.growPotatocrop3;
}
if(j == 4)
{
return mod_Potatocrop.growPotatocrop4;
}
if(j == 5)
{
return mod_Potatocrop.growPotatocrop5;
}
if(j == 6)
{
return mod_Potatocrop.growPotatocrop6;
}
if(j == 7)
{
return mod_Potatocrop.growPotatocrop7;
}
if(j == 8)
{
return mod_Potatocrop.growPotatocrop8;
}
return j;
}
public int getRenderType()
{
return 6;
}
public int idDropped(int i, Random random)
{
if(i == 1)
{
return Item.Potato.shiftedIndex;
} else
{
return -1;
}
}
Whoops, silly me! Forgot to reobfuscate it. Here's a shiny new error log. It looks like I've done something wrong recipe-wise here, judging from what the error says.
java.lang.ArrayIndexOutOfBoundsException: 4
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:282)
at net.minecraft.src.ModLoader.AddRecipe(ModLoader.java:372)
at net.minecraft.src.mod_Lemonade.<init>(mod_Lemonade.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:265)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1214)
at net.minecraft.src.ModLoader.init(ModLoader.java:733)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:162)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:104)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:42)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:314)
at net.minecraft.client.Minecraft.run(Minecraft.java:613)
at java.lang.Thread.run(Unknown Source)
But the error in the ModLoader.txt file appears to say that it's missing the textures.
Nov 26, 2011 8:23:48 AM net.minecraft.src.ModLoader init
FINE: ModLoader 1.0.0 Initializing...
Nov 26, 2011 8:23:48 AM net.minecraft.src.ModLoader readFromClassPath
FINER: Adding mods from C:\Users\Soren\Desktop\Minecraft Stuff\Mod Making\MCP\bin\minecraft
Nov 26, 2011 8:23:48 AM net.minecraft.src.ModLoader readFromClassPath
FINER: Directory found.
Nov 26, 2011 8:23:48 AM ModLoader getUniqueItemSpriteIndex
FINER: THROW
java.lang.Exception: No registry for this texture: /Lemonade/fire_lemon.png
at net.minecraft.src.ModLoader.getUniqueSpriteIndex(ModLoader.java:580)
at net.minecraft.src.ModLoader.addOverride(ModLoader.java:330)
at net.minecraft.src.mod_Lemonade.<init>(mod_Lemonade.java:12)
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:265)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1214)
at net.minecraft.src.ModLoader.init(ModLoader.java:733)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:162)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:104)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:42)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:314)
at net.minecraft.client.Minecraft.run(Minecraft.java:613)
at java.lang.Thread.run(Unknown Source)
Nov 26, 2011 8:23:48 AM ModLoader getUniqueItemSpriteIndex
FINER: THROW
java.lang.Exception: No registry for this texture: /Lemonade/lemon.png
at net.minecraft.src.ModLoader.getUniqueSpriteIndex(ModLoader.java:580)
at net.minecraft.src.ModLoader.addOverride(ModLoader.java:330)
at net.minecraft.src.mod_Lemonade.<init>(mod_Lemonade.java:22)
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:265)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1214)
at net.minecraft.src.ModLoader.init(ModLoader.java:733)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:162)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:104)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:42)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:314)
at net.minecraft.client.Minecraft.run(Minecraft.java:613)
at java.lang.Thread.run(Unknown Source)
Nov 26, 2011 8:23:48 AM net.minecraft.src.ModLoader addMod
FINE: Mod Initialized: "mod_Lemonade null" from mod_Lemonade.class
Nov 26, 2011 8:23:48 AM net.minecraft.src.ModLoader init
FINE: Mod Loaded: "mod_Lemonade null"
Nov 26, 2011 8:23:48 AM net.minecraft.src.ModLoader AddAllRenderers
FINE: Initialized
Here's my code once again.
package net.minecraft.src;
public class mod_Lemonade extends BaseMod
{
public static Item FireLemon = new ItemFireLemon(31338).setItemName("FireLemon");
public static Item Lemon = new Item(31336).setItemName("Lemon");
public mod_Lemonade()
{
FireLemon.iconIndex = ModLoader.addOverride("/Lemonade/fire_lemon.png", "/fire_lemon.png");
ModLoader.AddName(FireLemon, "Combustible Lemon");
ModLoader.AddRecipe((new ItemStack(FireLemon, 1)), new Object[]
{
"IBI", "#L#", "###", Character.valueOf('#'), Item.gunpowder, Character.valueOf('L'), mod_Lemonade.Lemon, Character.valueOf('B'), Item.blazeRod, Character.valueOf('I'), Item.ingotIron
});
Lemon.iconIndex = ModLoader.addOverride("/Lemonade/lemon.png", "/lemon.png");
ModLoader.AddName(Lemon, "Lemon");
ModLoader.AddRecipe(new ItemStack(Lemon, 1), new Object[]
{
"###", "###", "###", Character.valueOf('#'), Block.bedrock
});
}
public String version()
{
return "1.0.0";
}
@Override
public String getVersion()
{
// TODO Auto-generated method stub
return null;
}
@Override
public void load()
{
// TODO Auto-generated method stub
}
}
== MCP v5.0 ==
> Recompiling client...
"C:\Program Files\Java\jdk1.7.0_01\bin\javac.exe" -g -source 1.6 -target 1.6 -cl
asspath "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/jinput.jar;jars/bin/lwjgl.ja
r;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d bin/minecraft src/minecr
aft\net\minecraft\client\*.java src/minecraft\net\minecraft\src\*.java conf/pat
ches/*.java failed.
Return code : 1
== ERRORS FOUND ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\EntityHoneydew.java:4: error: EntityHoneydew is
not abstract and does not override abstract method getMaxHealth() in EntityLivin
g
public class EntityHoneydew extends EntityCreature
^
src\minecraft\net\minecraft\src\mod_Honeydew.java:6: error: mod_Honeydew is not
abstract and does not override abstract method load() in BaseMod
public class mod_Honeydew extends BaseMod
^
src\minecraft\net\minecraft\src\ModelHoneydew.java:11: error: no suitable method
found for render(float,float,float,float,float,float)
super.render(f, f1, f2, f3, f4, f5);
^
method ModelBiped.render(Entity,float,float,float,float,float,float) is not appl
icable
(actual and formal argument lists differ in length)
3 errors
1 warning
==================
> Done in 48.52 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
I'm working on a bow tutorial, complete with shooting animation.
If you make the bow tutorial, can the shooting animation be an addition? Like the armor and the armor effects? I don't want to use the shooting animation in something I want to make, but I don't know how to successfully remove it. Sorry :/
thanks that you helped! i im a beginner in it. but i learned it fast at first time.
but i still got some errors:
-Snip-
If you post your scripts I will be happy to help you :smile.gif: So sorry, noticed you did have your scripts posted. Lets see here...
package net.minecraft.src;
import java.util.*;
public class mod_RoseMod extends BaseMod
{
//New blocks.
public static Block Copper = new BlockCopper(184, 0).setHardness(2.0F).setResistance(2.0F).setLightValue(0.0F).setBlockName("Copper");
public mod_RoseMod()
{
//Register Name
ModLoader.RegisterBlock(BlockCopper);
//Add Name
ModLoader.AddName(BlockCopper, "Copper");
//Add Texture
BlockCopper.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/RoseMod/CopperOre.png");
//Add Crafting Recipe
ModLoader.AddRecipe(new ItemStack(BlockCopper, 1), new Object[] {
"###", "###", "###", Character.valueOf('#'), Item.dirt});
//Add Smelthing Recipe
//Generating Blocks Into Ground
}
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 20; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(120);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_RoseMod.BlockCopper.blockID, 3)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public String Version()
{
return "1.0.0";
}
}
This is the one that was the edited version, yes? I made some corrections to it because most of the time you said BlockCopper when you meant to only put Copper :smile.gif: try this one out:
package net.minecraft.src;
import java.util.*;
public class mod_RoseMod extends BaseMod
{
public static Block Copper = new BlockCopper(184, 0).setHardness(2.0F).setResistance(2.0F).setLightValue(0.0F).setBlockName("Copper");
public mod_RoseMod()
{
ModLoader.RegisterBlock(Copper);
ModLoader.AddName(Copper, "Copper");
Copper.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/RoseMod/CopperOre.png");
ModLoader.AddRecipe(new ItemStack(Copper, 1), new Object[] {
"###", "###", "###", Character.valueOf('#'), Item.dirt});
}
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 20; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(120);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_RoseMod.Copper.blockID, 3)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public String Version()
{
return "1.0.0";
}
}
if you wanted the .png files in /minecraft.jar/Lemons/image.png just change the last parts to bits like this
"/Lemons/lemon.png"
Thank you! It finally works now. I'm just a little confused on how to make the textures load from the "Lemons" folder. For now though, the textures are just in minecraft.jar file. Also, I can't throw one my items. Here's the code for it.
Thank you! It finally works now. I'm just a little confused on how to make the textures load from the "Lemons" folder. For now though, the textures are just in minecraft.jar file. Also, I can't throw one my items. Here's the code for it.
Is this an exploding throwable item? Because if it is, that tutorial hasn't worked for quite a while, and people really haven't gotten an answer on how to fix that one :/
Is this an exploding throwable item? Because if it is, that tutorial hasn't worked for quite a while, and people really haven't gotten an answer on how to fix that one :/
Um... possibly. I didn't know there wasn't a fix for it :\
I'm having a bit of trouble with registering some pieces of armor.
I'm getting this error:
src\minecraft\net\minecraft\src\mod_SlimeBlock.java:52: cannot find symbol
symbol : constructor ItemArmor(int,int,int,int)
location: class net.minecraft.src.ItemArmor
public static Item slimey = (new ItemArmor(2514, ModLoader.AddArmor("slimey"), 2 , 3)).setItemName("slimey");
Here's my code:
public static Item slimeg = (new ItemArmor(2510, ModLoader.AddArmor("slimeg"), 2, 3)).setItemName("slimeg");
public static Item slimer = (new ItemArmor(2511, ModLoader.AddArmor("slimer"), 2, 3)).setItemName("slimer");
public static Item slimep = (new ItemArmor(2512, ModLoader.AddArmor("slimep"), 2, 3)).setItemName("slimep");
public static Item slimeb = (new ItemArmor(2513, ModLoader.AddArmor("slimeb"), 2, 3)).setItemName("slimeb");
public static Item slimey = (new ItemArmor(2514, ModLoader.AddArmor("slimey"), 2, 3)).setItemName("slimey");
I'm having a bit of trouble with registering some pieces of armor.
I'm getting this error:
src\minecraft\net\minecraft\src\mod_SlimeBlock.java:52: cannot find symbol
symbol : constructor ItemArmor(int,int,int,int)
location: class net.minecraft.src.ItemArmor
public static Item slimey = (new ItemArmor(2514, ModLoader.AddArmor("slimey"), 2 , 3)).setItemName("slimey");
Here's my code:
public static Item slimeg = (new ItemArmor(2510, ModLoader.AddArmor("slimeg"), 2, 3)).setItemName("slimeg");
public static Item slimer = (new ItemArmor(2511, ModLoader.AddArmor("slimer"), 2, 3)).setItemName("slimer");
public static Item slimep = (new ItemArmor(2512, ModLoader.AddArmor("slimep"), 2, 3)).setItemName("slimep");
public static Item slimeb = (new ItemArmor(2513, ModLoader.AddArmor("slimeb"), 2, 3)).setItemName("slimeb");
public static Item slimey = (new ItemArmor(2514, ModLoader.AddArmor("slimey"), 2, 3)).setItemName("slimey");
What am I doing wrong here?
theres a whole new armor code since 1.0.0,
i will work on a tutorial for it tomorrow then post it here :smile.gif:
it took me a while to figure it out and my idea on the variables from its stats are still kindof poor but yeah it works.
I'm using the explosive block tut, and I keep getting an error with my explosive.
My code is:
What am I doing wrong?
EDIT: Nevermind, I got it fixed. Turns out I forgot to import Map
I had a question for you, for your tree tutorial was that made for minecraft 1.7.3? I tried to follow it using 1.8.1 and kept getting errors whenever I tried to break a leave that drops my new saplings and errors when trying to craft my new tree's log into planks...this is the page that I originally posted, a few people have tried to help but whatever I try it keeps failing. The trees generate fine, slightly odd looking but I can mess around with some of the variables defining the growth, but I was wondering what I'm doing wrong.
give this a try :smile.gif:
you also forgot to se the rarity on the line "for(int i = 0; i < 20; i++)" you had "for(int i = 0; i < RARITY; i++)" xD no problem though.. i had these issues when i first started (which was only 2 weeks ago :S)
Whoops, silly me! Forgot to reobfuscate it. Here's a shiny new error log. It looks like I've done something wrong recipe-wise here, judging from what the error says.
But the error in the ModLoader.txt file appears to say that it's missing the textures.
Here's my code once again.
Here is my mod_Potatocrop:
Thank you
where you have
and
change them to something like this:
and
this would make it use the texture located at instead of
if you wanted the .png files in /minecraft.jar/Lemons/image.png just change the last parts to bits like this
If you make the bow tutorial, can the shooting animation be an addition? Like the armor and the armor effects? I don't want to use the shooting animation in something I want to make, but I don't know how to successfully remove it. Sorry :/
And...
If you post your scripts I will be happy to help you :smile.gif:So sorry, noticed you did have your scripts posted. Lets see here...This is the one that was the edited version, yes? I made some corrections to it because most of the time you said BlockCopper when you meant to only put Copper :smile.gif: try this one out:
Coming Soon...
Thank you! It finally works now. I'm just a little confused on how to make the textures load from the "Lemons" folder. For now though, the textures are just in minecraft.jar file. Also, I can't throw one my items. Here's the code for it.
I believe how you fix this error is by deleting the lines that say:
So it will look like this:
Coming Soon...
I deleted that line and I still can't throw it...
Is this an exploding throwable item? Because if it is, that tutorial hasn't worked for quite a while, and people really haven't gotten an answer on how to fix that one :/
Coming Soon...
Um... possibly. I didn't know there wasn't a fix for it :\
If anyone would like to play an awesome game I found, register here and try it out!
Link: Heroes of Newerth
It would be great to have a break from modding and play this game with you guys!
I'm getting this error:
Here's my code:
What am I doing wrong here?
theres a whole new armor code since 1.0.0,
i will work on a tutorial for it tomorrow then post it here :smile.gif:
it took me a while to figure it out and my idea on the variables from its stats are still kindof poor but yeah it works.
Millenaire has its cultures set to the specific biomes and I want to make a Nether one...
player.me/felinoel