hemmm did you read the second spoiler? it's all explained in it ._.
i'll repost it
I have scott tools, but the speedore's tools worked great until i added the Magmite Ore and the Shard :sad.gif:
Item declaration:
public static final Block SpeedOre = new BlockSpeedOre(123, 0).setBlockName("SpeedOre").setHardness(1F).setResistance(1F);
public static final Block SpeedBlock = new BlockSpeedBlock(124, 0).setBlockName("SpeedBlock").setHardness(1F).setResistance(1F);
public static final Item SpeedGem = new Item(2000).setItemName("SpeedGem");
public ToolMaterial SpeedTools;
public Item SpeedAxe;
public Item SpeedPickaxe;
public Item SpeedShovel;
public static final Block VoidiumOre = new BlockVoidiumOre(125, 0).setBlockName("VoidiumOre").setHardness(60F).setResistance(15F);
public static final Item VoidiumIngot = new Item(2004).setItemName("VoidiumIngot");
public static final Block MagmaniteOre = new BlockMagmaniteOre(126, 0).setBlockName("MagmaniteOre").setHardness(5F).setResistance(7F);
public static final Item MagmaniteShard = new Item(2005).setItemName("MagmaniteShard");
Sprite Override (eclipse tell me that the error is in this)
SpeedOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SnO_Opzzzz/SpeedOre.png");
SpeedBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SnO_Opzzzz/SpeedBlock.png");
SpeedGem.iconIndex = ModLoader.addOverride("/gui/items.png", "/SnO_Opzzzz/SpeedGem.png");
SpeedAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/SnO_Opzzzz/SpeedAxe.png"); //i tried starting mc without this line, but the error goes on the pickaxe. only removing all the overrides from the axe make the game start properly (sorry for my bad english :/)
SpeedPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/SnO_Opzzzz/SpeedPick.png");
SpeedShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/SnO_Opzzzz/SpeedShovel.png");
VoidiumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SnO_Opzzzz/VoidiumOre.png");
VoidiumIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/SnO_Opzzzz/VoidiumIngot.png");
MagmaniteOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SnO_Opzzzz/MagmaniteOre.png");
MagmaniteShard.iconIndex = ModLoader.addOverride("/gui/items.png", "/SnO_Opzzzz/MagmaniteShard.png");
I need to see the whole class to be able to help. I can't check what I need to with only certain parts of it.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
How do I make a recipe with a particular dye like coco beans or lapiz lazuli?
Added it under the Crafting & Smelting Recipes section. Let me know if you need more of an explanation.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
hey, I'm going to no matter what, but just to set precedent should we credit you when we post our mods on the forum?
You can if you really really want to. But I don't mind. I'm just happy that I can teach people to make mods, whether I get credit or not :smile.gif:
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Hey can you please make a tutorial for tools and armor? I can't seem to figure out armor because of the enchantment updates causing the rest of the material to be outdated
Your tutorials are great, but I have a problem.
When I use decompile.bat it freezes at "Applying Retroguard to client".
What I did wrong?
Is it a brand new MCP? and are you using the correct version of minecraft with the correct version of MCP. MCP56 should be used with a Minecraft 1.1 jar with ModLoader in it.
Hey can you please make a tutorial for tools and armor? I can't seem to figure out armor because of the enchantment updates causing the rest of the material to be outdated
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Modified the block tutorial with a few more methods. Simple ones that allow you to choose your drop, ect. Custom mob tutorial tomorrow?
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
GENERATION 26: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment. Quote me if you are expecting a reply so I get notified
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
package net.minecraft.src;
import java.util.Random;
public class BlockClearGlass extends Block
{
public BlockClearGlass(int i, int j)
{
super(i, j, Material.glass);
}
public boolean isOpaqueCube()
{
return false;
}
public int idDropped(int i, Random random, int j)
{
return mod_Home.clear.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
package net.minecraft.src;
public class mod_Home extends BaseMod
{
public static final Block woodCrate = new BlockWoodCrate(160, 0).setBlockName("Wood Crate").setHardness(3F).setResistance(4F);
public static final Block clear = new BlockClearGlass(161, 0).setBlockName("Clear Glass").setHardness(1F).setResistance(2F);
public void load()
{
woodCrate.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/Decorations/crate.png");
ModLoader.RegisterBlock(woodCrate);
ModLoader.AddName(woodCrate, "Wooden Crate");
ModLoader.AddRecipe(new ItemStack(woodCrate, 1), new Object [] {"###","###","###", Character.valueOf('#'), Block.planks});
}
{
clear.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/Decorations/glass.png");
ModLoader.RegisterBlock(clear);
ModLoader.AddName(clear, "Wooden Vase");
ModLoader.AddRecipe(new ItemStack(clear, 1), new Object [] {" $ ","$#$","$ ", Character.valueOf('$'), Item.bone,Character.valueOf('#'), Block.glass});
}
public String getVersion()
{
return "1.1";
}
}
and when i run the game,it keeps the wood material instead of glass
What's the best way to have a block that has a different icon in your inventory than its in-game texture. Would I have to create an item for the block, and when you use the item it creates the block?
Rollback Post to RevisionRollBack
GENERATION 26: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment. Quote me if you are expecting a reply so I get notified
package net.minecraft.src;
import java.util.Random;
public class BlockClearGlass extends Block
{
public BlockClearGlass(int i, int j)
{
super(i, j, Material.glass);
}
public boolean isOpaqueCube()
{
return false;
}
public int idDropped(int i, Random random, int j)
{
return mod_Home.clear.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
package net.minecraft.src;
public class mod_Home extends BaseMod
{
public static final Block woodCrate = new BlockWoodCrate(160, 0).setBlockName("Wood Crate").setHardness(3F).setResistance(4F);
public static final Block clear = new BlockClearGlass(161, 0).setBlockName("Clear Glass").setHardness(1F).setResistance(2F);
public void load()
{
woodCrate.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/Decorations/crate.png");
ModLoader.RegisterBlock(woodCrate);
ModLoader.AddName(woodCrate, "Wooden Crate");
ModLoader.AddRecipe(new ItemStack(woodCrate, 1), new Object [] {"###","###","###", Character.valueOf('#'), Block.planks});
}
{
clear.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/Decorations/glass.png");
ModLoader.RegisterBlock(clear);
ModLoader.AddName(clear, "Wooden Vase");
ModLoader.AddRecipe(new ItemStack(clear, 1), new Object [] {" $ ","$#{:content:}quot;,"$ ", Character.valueOf('), Item.bone,Character.valueOf('#'), Block.glass});
}
public String getVersion()
{
return "1.1";
}
}
and when i run the game,it keeps the wood material instead of glass
What do you mean? Does it still drop a block when you break it?
What's the best way to have a block that has a different icon in your inventory than its in-game texture. Would I have to create an item for the block, and when you use the item it creates the block?
Yeh, I would make an item for that. Just use this as your public static line
public static final Item Namehere = new ItemReed(id, BlockNamehere)).setItemName("itemnamehere");
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I need to see the whole class to be able to help. I can't check what I need to with only certain parts of it.
together they are powerful beyond imagination."
Added it under the Crafting & Smelting Recipes section. Let me know if you need more of an explanation.
together they are powerful beyond imagination."
You can if you really really want to. But I don't mind. I'm just happy that I can teach people to make mods, whether I get credit or not :smile.gif:
together they are powerful beyond imagination."
ONLY PEOPLE WHO CAN HELP COUNTINUE ON (IM NEW TO MODING AND SRRY FOR CAPS)
12:50:18 -
12:50:18 - warning: [options] bootstrap class path not set in conjunction with -source 1.6
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:9: error: illegal character: \160
12:50:18 - public BlockMKGG(int i, int j)
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:9: error: illegal character: \160
12:50:18 - public BlockMKGG(int i, int j)
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:10: error: illegal character: \160
12:50:18 - {
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:10: error: illegal character: \160
12:50:18 - {
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: illegal character: \160
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: illegal character: \160
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: illegal character: \160
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: illegal character: \160
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: ';' expected
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: ')' expected
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: not a statement
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: not a statement
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: ';' expected
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: not a statement
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: ';' expected
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: illegal character: \160
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: illegal character: \160
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: illegal character: \160
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: illegal character: \160
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: illegal character: \160
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:11: error: illegal character: \160
12:50:18 - super(i, j, Material.ground);
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:12: error: illegal character: \160
12:50:18 - }
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:12: error: illegal character: \160
12:50:18 - }
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:12: error: ';' expected
12:50:18 - }
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:13: error: illegal character: \160
12:50:18 - public int idDropped(int i, Random random)
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:13: error: illegal character: \160
12:50:18 - public int idDropped(int i, Random random)
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:13: error: illegal start of expression
12:50:18 - public int idDropped(int i, Random random)
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:13: error: ';' expected
12:50:18 - public int idDropped(int i, Random random)
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:13: error: '.class' expected
12:50:18 - public int idDropped(int i, Random random)
12:50:18 - ^
12:50:18 -
12:50:18 - src\minecraft\net\minecraft\src\BlockMKGG.java:13: error: ';' expected
12:50:18 - public int idDropped(int i, Random random)
12:50:18 - ^
12:50:18 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:13: error: ';' expected
12:50:19 - public int idDropped(int i, Random random)
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:14: error: illegal character: \160
12:50:19 - {
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:14: error: illegal character: \160
12:50:19 - {
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:15: error: illegal character: \160
12:50:19 - return mod_MKGG.MKGG.blockID;
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:15: error: illegal character: \160
12:50:19 - return mod_MKGG.MKGG.blockID;
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:15: error: illegal character: \160
12:50:19 - return mod_MKGG.MKGG.blockID;
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:15: error: illegal character: \160
12:50:19 - return mod_MKGG.MKGG.blockID;
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:15: error: ';' expected
12:50:19 - return mod_MKGG.MKGG.blockID;
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:15: error: not a statement
12:50:19 - return mod_MKGG.MKGG.blockID;
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:16: error: illegal character: \160
12:50:19 - }
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:16: error: illegal character: \160
12:50:19 - }
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:16: error: ';' expected
12:50:19 - }
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:17: error: illegal character: \160
12:50:19 - public int quantityDropped(Random random)
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:17: error: illegal character: \160
12:50:19 - public int quantityDropped(Random random)
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:17: error: illegal start of expression
12:50:19 - public int quantityDropped(Random random)
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:17: error: ';' expected
12:50:19 - public int quantityDropped(Random random)
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:17: error: ')' expected
12:50:19 - public int quantityDropped(Random random)
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:17: error: illegal start of expression
12:50:19 - public int quantityDropped(Random random)
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:18: error: illegal character: \160
12:50:19 - {
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:18: error: illegal character: \160
12:50:19 - {
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:18: error: ';' expected
12:50:19 - {
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:19: error: illegal character: \160
12:50:19 - return 3;
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:19: error: illegal character: \160
12:50:19 - return 3;
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:19: error: illegal character: \160
12:50:19 - return 3;
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:19: error: illegal character: \160
12:50:19 - return 3;
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:19: error: illegal character: \160
12:50:19 - return 3;
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:19: error: illegal character: \160
12:50:19 - return 3;
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:20: error: illegal character: \160
12:50:19 - }
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:20: error: illegal character: \160
12:50:19 - }
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:20: error: ';' expected
12:50:19 - }
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\BlockMKGG.java:21: error: reached end of file while parsing
12:50:19 - }
12:50:19 - ^
12:50:19 -
12:50:19 - src\minecraft\net\minecraft\src\mod_MKGG.java:14: error: invalid method declaration; return type required
12:50:19 - public mod_MKGG()
12:50:19 - ^
12:50:19 -
12:50:19 - 62 errors
12:50:19 - 1 warning
12:50:19 - ==================
12:50:19 -
12:50:19 - FATAL ERROR
Traceback (most recent call last):
File "runtime\recompile.py", line 31, in recompile
commands.recompile(CLIENT)
File "C:\Users\Kaleb\Desktop\mcp56\runtime\commands.py", line 736, in recompile
self.runcmd(forkcmd)
File "C:\Users\Kaleb\Desktop\mcp56\runtime\commands.py", line 779, in runcmd
raise CalledProcessError(returncode, forkcmd, output)
CalledProcessError: Command '"C:\Program Files\Java\jdk1.7.0\bin\javac.exe" -g -source 1.6 -target 1.6 -classpath "lib;lib\*;jars\bin\minecraft.jar;jars\bin\jinput.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\minecraft\isom\*.java src\minecraft\net\minecraft\src\*.java conf\patches\ga.java conf\patches\Start.java' returned non-zero exit status 1
============================================
Post your code please.
Is it a brand new MCP? and are you using the correct version of minecraft with the correct version of MCP. MCP56 should be used with a Minecraft 1.1 jar with ModLoader in it.
The whole bin folder. So then the path to the minecraft.jar that will be used by MCP would be mcp/jars/bin/minecraft.jar
It's on the list to do.
together they are powerful beyond imagination."
together they are powerful beyond imagination."
Great tutorials
Have you only got ModLoader installed in that jar? No other mods, and 1.1 ModLoader?
Added to the list
You need to put .blockID after the blocks name. The error messages sometimes don't make sense like that.
I think that's right, I'm not sure what vou've done with the 567 though? If this doesn't work, post your code please/
Thanks :smile.gif: It's on the list.
together they are powerful beyond imagination."
and when i run the game,it keeps the wood material instead of glass
What do you mean? Does it still drop a block when you break it?
Yeh, I would make an item for that. Just use this as your public static line
It needs to stay as ''new ItemReed''
together they are powerful beyond imagination."
Try setting the step sound to glass.
together they are powerful beyond imagination."