I need help. In my mod_BLOCKNAME.java there's an annoying error.
package net.minecraft.src;
import net.minecraft.client.Minecraft;
import java.util.List;
public class mod_BLOCKNAME extends BaseMod
{
public static final Block BLOCKNAME = new BLOCKNAME(160, 0).setBlockName("Giacomo").setHardness(3F).setResistance(4F).setLightValue(1F);
public void load()
{
ModLoader.setInGameHook(this, true, false);
ModLoader.setInGUIHook(this, true, false);
BLOCKNAME.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Desktop/lamb.png");
ModLoader.registerBlock(BLOCKNAME);
ModLoader.addName(BLOCKNAME, "Block!");
ModLoader.addRecipe(new ItemStack(BLOCKNAME, 1), new Object [] {"#", Character.valueOf('#'), Block.blockGold});
}
public boolean onTickInGame(float f, Minecraft minecraft)
{
if (minecraft.currentScreen == null)
{
creativeInventory = null;
}
return true;
}
public boolean onTickInGUI(float f, Minecraft minecraft, GuiScreen guiscreen)
{
if ((guiscreen instanceof GuiContainerCreative) && !(creativeInventory instanceof GuiContainerCreative) && !minecraft.theWorld.isRemote)
{
Container container = ((GuiContainer)guiscreen).inventorySlots;
List list = ((ContainerCreative)container).itemList;
int i = 0;
list.add(new ItemStack(BLOCKNAME, 1, i));
}
creativeInventory = guiscreen;
return true;
}
private static GuiScreen creativeInventory;
public String getVersion()
{
return "1.2.5";
}
The error is in
public static final Block BLOCKNAME = new [b]BLOCKNAME[/b](160, 0).setBlockName("BLOCKNAME").setHardness(3F).setResistance(4F).setLightValue(1F);
and it is where the bold text is.
when i highlight over it, it says:
BLOCKNAME couldn't be resolved to a type
Create Class BLOCKNAME
Fix porject setup
please heglp
If your block has it's own class, your code would look like this:
public static final Block giacomo = new BlockGiacomo(160, 0).setBlockName("Giacomo").setHardness(3F).setResistance(4F).setLightValue(1F);
That's because it would refer to the class (BlockGiacomo.java) you made for that block to get it's material type.
But if your block doesn't have any special properties beyond being a new block, (or doesn't have its own class) then your code should look something like this:
public static final Block BLOCKNAME = new Block(127, Material.rock).setBlockName("BLOCKNAME").setHardness(2.0F).setResistance(10F).setStepSound(Block.soundStoneFootstep);
The Meaning of Life, the Universe, and Everything.
Join Date:
5/15/2011
Posts:
46
Minecraft:
PlasmaMaster
Member Details
Is there any way I can make my structure always generate from the ground up and not floating in the sky? Here's a snippet of my current code:
WorldGenTower:
package net.minecraft.src;
import java.util.Random;
public class WorldGenTower extends WorldGenerator
{
public WorldGenTower()
{
}
public boolean generate(World world, Random random, int i, int j, int k)
{
int cobblestone = Block.cobblestone.blockID;
int mossyCobblestone = Block.cobblestoneMossy.blockID;
world.setBlockWithNotify(i + 3, j + 7, k - 4, cobblestone);
world.setBlockWithNotify(i + 3, j + 8, k - 4, cobblestone);
world.setBlockWithNotify(i + 3, j + 9, k - 4, cobblestone);
world.setBlockWithNotify(i + 4, j + 8, k - 5, mossyCobblestone);
return true;
}
}
mod_worldGen
package net.minecraft.src;
import java.util.Random;
public class mod_WorldGen extends BaseMod
{
public void load()
{
}
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int k = 0; k < 1; k++)
{
int RandPosX = chunkX + random.nextInt(3);
int RandPosY = random.nextInt(80);
int RandPosZ = chunkZ + random.nextInt(3);
(new WorldGenTower()).generate(world, random, RandPosX, RandPosY, RandPosZ);
}
}
public String getVersion()
{
return "1.2.5";
}
}
If your block has it's own class, your code would look like this:
public static final Block giacomo = new BlockGiacomo(160, 0).setBlockName("Giacomo").setHardness(3F).setResistance(4F).setLightValue(1F);
That's because it would refer to the class (BlockGiacomo.java) you made for that block to get it's material type.
But if your block doesn't have any special properties beyond being a new block, (or doesn't have its own class) then your code should look something like this:
public static final Block BLOCKNAME = new Block(127, Material.rock).setBlockName("BLOCKNAME").setHardness(2.0F).setResistance(10F).setStepSound(Block.soundStoneFootstep);
I hope that helps...
Thank you! Can you tell me how the path works? In my image path there is, .addOverride("/terrain.png,"/lamb.png"); My imgae, lamb.png is on my Desktop. How do I write the path?
Thank you! Can you tell me how the path works? In my image path there is, .addOverride("/terrain.png,"/lamb.png"); My imgae, lamb.png is on my Desktop. How do I write the path?
you need to put your image inside your minecraft.jar thats in mcp, after that you write your path like this '/FolderYourImageIsIn/lamb.png' and it should work!
Thank you! Can you tell me how the path works? In my image path there is, .addOverride("/terrain.png,"/lamb.png"); My imgae, lamb.png is on my Desktop. How do I write the path?
To add it to the test environment(recompile/startclient testing), you need to put it in Your MCP Directory > bin > minecraft. For organizational purposes, it might be best to make a folder for this so that you can simply add more images to that. (Your MCP Directory > bin > minecraft > FolderName)
I got a very weird error: When I scroll down to my blocks in the creative inventory, my minecraft suddenly crashes!
I have no idea what's wrong so maybe somebody can help me here.
My code:
package net.minecraft.src;
import java.util.Random;
import java.util.Map;
import net.minecraft.client.Minecraft;
import java.util.List;
//The "ArcadiaCraft" Mod was created by.[Nicholas Mitrenga-Abreu and Falco Rainier van der Meulen]
//The Mod(ArcadiaCraft)'s Code:
public class mod_ArcadiaCraft extends BaseMod
{
//declaration
//Arcraphys Items and Blocks
public static final Block ArcraphysBlock = new BlockArcraphysBlock(160, 0).setBlockName("Arcraphys Block").setHardness(5F).setResistance(20F);
public static final Item Arcraphys = new ItemArcraphys(5000).setItemName("Arcraphys");
public static final Block ArcraphysStairs = new BlockArcraphysStairs(161, 0).setBlockName("Arcraphys Stairs").setHardness(5F).setResistance(20F);
public static final Block ArcraphysSlab = new BlockArcraphysSlab(162, 0).setBlockName("Arcraphys Slab").setHardness(5F).setResistance(20F);
public static final Block ArcraphysBrick = new BlockArcraphysBrick(163, 0).setBlockName("Arcraphys Bricks").setHardness(10F).setResistance(40F);
public static final Block ArcBrickStairs = new BlockArcBrickStairs(164, 0).setBlockName("Arcraphys Brick Stairs").setHardness(5F).setResistance(20F);
public static final Block ArcBrickSlab = new BlockArcBrickSlab(165, 0).setBlockName("Arcraphys Brick Slab").setHardness(5F).setResistance(20F);
//Copper Blocks
public static final Block CopperBlock = new BlockArcraphysBlock(166, 0).setBlockName("Copper Block").setHardness(2F).setResistance(9F);
public static final Block CopperStairs = new BlockArcraphysStairs(167, 0).setBlockName("Copper Stairs").setHardness(2F).setResistance(9F);
public static final Block CopperSlab = new BlockArcraphysSlab(168, 0).setBlockName("Copper Slab").setHardness(2F).setResistance(9F);
//Silver Blocks
public static final Block SilverBlock = new BlockArcraphysBlock(169, 0).setBlockName("Silver Block").setHardness(9F).setResistance(20F);
public static final Block SilverStairs = new BlockArcraphysStairs(170, 0).setBlockName("Silver Stairs").setHardness(9F).setResistance(20F);
public static final Block SilverSlab = new BlockArcraphysSlab(171, 0).setBlockName("Silver Slab").setHardness(9F).setResistance(20F);
//Skywill Stuff
public static final Block Diphos = new BlockFlower(172, 0).setBlockName("Diphos");
//public static final Block SkyGrass = new BlockSkyGrass(173, 0).setBlockName("Sky Dirt").setHardness(5F).setResistance(5F);
public static final Block SkyWood = new BlockSkyWood(174).setBlockName("Sky Wood").setHardness(10F).setResistance(10F).setStepSound(Block.soundWoodFootstep);
public static final Block SkyPlanks = new Block(175, 0, Material.wood).setBlockName("Sky Planks").setHardness(7F).setResistance(7F);
public static final Item SkySticks = new Item(5051).setItemName("Sky Sticks");
public static final Block SkySapling = new BlockSkySapling(176, 0).setBlockName("Sky Sapling");
public static final Block SkyLeaf = new SkyLeaf(177, 0).setBlockName("Sky Leaf");
public static final Item SkyApple = new ItemFood(5052, 4, 1F, false).setItemName("Sky Apple");
//Tools and Weapons
// -Arcraphys Tools & Weapons:
public static final Item ArcSword = new ItemModSword(5001, EnumToolMaterialMod.ARCRAPHYSII).setItemName("Arcraphys Sword");
public static final Item ArcGreatSword = new ItemModSword(5002, EnumToolMaterialMod.ARCRAPHYSIII).setItemName("Arcraphys GreatSword");
public static final Item ArcDagger = new ItemModSword(5003, EnumToolMaterialMod.ARCRAPHYSI).setItemName("Arcraphys Dagger");
public static final Item ArcSledge = new ItemModSword(5005, EnumToolMaterialMod.ARCRAPHYSIII).setItemName("Arcraphys SledgeHammer");
public static final Item ArcPickaxe = new ItemModPickaxe(5006, EnumToolMaterialMod.ARCRAPHYSI).setItemName("Arcraphys Pickaxe");
public static final Item ArcAxe = new ItemModAxe(5007, EnumToolMaterialMod.ARCRAPHYSI).setItemName("Arcraphys Axe");
public static final Item ArcShovel = new ItemModShovel(5008, EnumToolMaterialMod.ARCRAPHYSI).setItemName("Arcraphys Shovel");
public static final Item ArcHoe = new ItemModHoe(5009, EnumToolMaterialMod.ARCRAPHYSI).setItemName("Arcraphys Hoe");
public static final Item ArcSickle = new ItemModHoe(5010, EnumToolMaterialMod.ARCRAPHYSI).setItemName("Arcraphys Sickle");
// -Copper Tools & Weapons:
public static final Item CopSword = new ItemModSword(5012, EnumToolMaterialMod.COPPER).setItemName("Copper Sword");
public static final Item CopPickaxe = new ItemModPickaxe(5013, EnumToolMaterialMod.COPPER).setItemName("Copper Pickaxe");
public static final Item CopAxe = new ItemModAxe(5014, EnumToolMaterialMod.COPPER).setItemName("Copper Axe");
public static final Item CopShovel = new ItemModShovel(5015, EnumToolMaterialMod.COPPER).setItemName("Copper Shovel");
public static final Item CopHoe = new ItemModHoe(5016, EnumToolMaterialMod.COPPER).setItemName("Copper Hoe");
// -Silver Tools & Weapons:
public static final Item SilSword = new ItemModSword(5017, EnumToolMaterialMod.SILVER).setItemName("Silver Sword");
public static final Item SilPickaxe = new ItemModPickaxe(5018, EnumToolMaterialMod.SILVER).setItemName("Silver Pickaxe");
public static final Item SilAxe = new ItemModAxe(5019, EnumToolMaterialMod.SILVER).setItemName("Silver Axe");
public static final Item SilShovel = new ItemModShovel(5020, EnumToolMaterialMod.SILVER).setItemName("Silver Shovel");
public static final Item SilHoe = new ItemModHoe(5021, EnumToolMaterialMod.SILVER).setItemName("Silver Hoe");
// -Platinum Tools & Weapons:
public static final Item PlatSword = new ItemModSword(5022, EnumToolMaterialMod.PLATINUM).setItemName("Platinum Sword");
public static final Item PlatPickaxe = new ItemModPickaxe(5023, EnumToolMaterialMod.PLATINUM).setItemName("Platinum Pickaxe");
public static final Item PlatAxe = new ItemModAxe(5024, EnumToolMaterialMod.PLATINUM).setItemName("Platinum Axe");
public static final Item PlatShovel = new ItemModShovel(5025, EnumToolMaterialMod.PLATINUM).setItemName("Platinum Shovel");
public static final Item PlatHoe = new ItemModHoe(5026, EnumToolMaterialMod.PLATINUM).setItemName("Platinum Hoe");
// -Cobalt Tool & Weapons:
public static final Item ColSword = new ItemModSword(5027, EnumToolMaterialMod.COBALT).setItemName("Cobalt Sword");
public static final Item ColPickaxe = new ItemModPickaxe(5028, EnumToolMaterialMod.COBALT).setItemName("Cobalt Pickaxe");
public static final Item ColAxe = new ItemModAxe(5029, EnumToolMaterialMod.COBALT).setItemName("Cobalt Axe");
public static final Item ColShovel = new ItemModShovel(5030, EnumToolMaterialMod.COBALT).setItemName("Cobalt Shovel");
public static final Item ColHoe = new ItemModHoe(5031, EnumToolMaterialMod.COBALT).setItemName("Cobalt Hoe");
//Derflinger
public static final Item Derflinger = new ItemModSword(5032, EnumToolMaterialMod.DERFLINGER).setItemName("Derflinger");
public static final Item AncientHandle = new Item(5033).setItemName("Ancient Handle");
public static final Item AncientBlade = new Item(5034).setItemName("Ancient Blade");
public static final Item AncientHilt = new Item(5035).setItemName("Ancient Hilt");
//Ingots
public static final Item SilverIngot = new Item(5036).setItemName("Silver Ingot");
public static final Item CopperIngot = new Item(5037).setItemName("Copper Ingot");
public static final Item PlatinumIngot = new Item(5038).setItemName("Platinum Ingot");
public static final Item CobaltIngot = new Item(5039).setItemName("Cobalt Ingot");
//Coming Soon
//public static final Item ShineDust = new Item(5014).setItemName("Shine Dust");
//public static final Item SkyApple = new Item(5014).setItemName("Skywill Apple");
//public static final Item Hammer = new Item(5015).setItemName("Hammer");
//public static final Block ShineArcBlock = new BlockShineArcBlock(178, 0).setBlockName("Shiny Arcraphys Block").setHardness(5F).setResistance(20F).setLightValue(1F);
//Armor sets
// -Arcraphys Armor
public static final Item ArcHelmet = (new OreModItemArmor(5040, OreModArmorMaterial.ARCRAPHYS, ModLoader.addArmor("Arcraphys"), 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/arc/Armour/arcHelm.png")).setItemName("ArcraphysHelmet");
public static final Item ArcChest = (new OreModItemArmor(5041, OreModArmorMaterial.ARCRAPHYS, ModLoader.addArmor("Arcraphys"), 1)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/arc/Armour/arcChest.png")).setItemName("ArcraphysChestplate");
public static final Item ArcPants = (new OreModItemArmor(5042, OreModArmorMaterial.ARCRAPHYS, ModLoader.addArmor("Arcraphys"), 2)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/arc/Armour/arcLeggings.png")).setItemName("ArcraphysLeggings");
public static final Item ArcBoots = (new OreModItemArmor(5043, OreModArmorMaterial.ARCRAPHYS, ModLoader.addArmor("Arcraphys"), 3)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/arc/Armour/arcBoots.png")).setItemName("ArcraphysBoots");
// -Copper Armor
public static final Item CopHelmet = (new OreModItemArmor(5044, OreModArmorMaterial.COPPER, ModLoader.addArmor("Copper"), 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/arc/Armour/copHelm.png")).setItemName("CopperHelmet");
public static final Item CopChest = (new OreModItemArmor(5045, OreModArmorMaterial.COPPER, ModLoader.addArmor("Copper"), 1)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/arc/Armour/copChest.png")).setItemName("CopperChestplate");
public static final Item CopPants = (new OreModItemArmor(5046, OreModArmorMaterial.COPPER, ModLoader.addArmor("Copper"), 2)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/arc/Armour/copLeggings.png")).setItemName("CopperLeggings");
public static final Item CopBoots = (new OreModItemArmor(5047, OreModArmorMaterial.COPPER, ModLoader.addArmor("Copper"), 3)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/arc/Armour/copBoots.png")).setItemName("CopperBoots");
// -Silver Armor
public static final Item SilHelmet = (new OreModItemArmor(5048, OreModArmorMaterial.SILVER, ModLoader.addArmor("Silver"), 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/arc/Armour/silHelm.png")).setItemName("SilverHelmet");
public static final Item SilChest = (new OreModItemArmor(5049, OreModArmorMaterial.SILVER, ModLoader.addArmor("Silver"), 1)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/arc/Armour/silChest.png")).setItemName("SilverChestplate");
public static final Item SilPants = (new OreModItemArmor(5050, OreModArmorMaterial.SILVER, ModLoader.addArmor("Silver"), 2)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/arc/Armour/silLeggings.png")).setItemName("SilverLeggings");
public static final Item SilBoots = (new OreModItemArmor(5051, OreModArmorMaterial.SILVER, ModLoader.addArmor("Silver"), 3)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/arc/Armour/silBoots.png")).setItemName("SilverBoots");
//MISC
public static final Block WonderStone = new BlockWonderStone(179, 0).setBlockName("WonderStone").setHardness(10F).setResistance(40F).setLightValue(1F);
public static final Item ak47 = new Item(5052).setFull3D().setItemName("Soldier's AK47");
public static final Block Obsidianfence = new BlockOreModFences(180, 0).setBlockName("Obsidian Fence").setHardness(20F).setResistance(40F);
//Nether Melon
public static final Block NetherMelon = new BlockNetherMelon(181, 0).setBlockName("NetherMelon").setHardness(1F).setResistance(1F);
public static final Item NetherMelonSlice = new ItemFood(5053, 6, 1F, false).setPotionEffect(Potion.regeneration.id, 20, 0, 0.8F).setItemName("NetherMelonSlice");
//ArcraphysII
public static final Item ArcUltimantX = new ItemModSword(5054, EnumToolMaterialMod.ARCRAPHYSV).setItemName("Arcraphys GreatSword [Gem Form]");
public static final Item ArcUltimantX1 = new ItemModSword(5055, EnumToolMaterialMod.ARCRAPHYSV).setItemName("Arcraphys GreatSword [Dual Form]");
public static final Item ArcUltimantX2 = new ItemModSword(5056, EnumToolMaterialMod.ARCRAPHYSV).setItemName("Arcraphys GreatSword [Derfslayer Form]");
//Records
public static Item recordGain = new ItemRecord(5057, "ArcadiaCraft - Gain").setItemName("record");
public static Item recordVillage = new ItemRecord(5058, "ArcadiaCraft - Village").setItemName("record");
public static Item recordSnowgolems = new ItemRecord(5059, "ArcadiaCraft - Snowgolems").setItemName("record");
public static Item record15 = new ItemRecord(5060, "ArcadiaCraft - 15").setItemName("record");
public static Item recordNightEscape = new ItemRecord (5061, "ArcadiaCraft - Friday Night Escape").setItemName("record");
//Ores
public static final Block ArcraphysOre = new BlockArcraphysOre(182, 0).setBlockName("Arcraphys Ore").setHardness(5F).setResistance(20F);
public static final Block CobaltOre = new BlockCobaltOre(183, 0).setBlockName("Cobalt Ore").setHardness(3F).setResistance(10F);
public static final Block CopperOre = new BlockCopperOre(184, 0).setBlockName("Copper Ore").setHardness(2F).setResistance(9F);
public static final Block SilverOre = new BlockSilverOre(185, 0).setBlockName("Silver Ore").setHardness(5F).setResistance(13F);
public static final Block PlatinumOre = new BlockPlatinumOre(186, 0).setBlockName("Platinum Ore").setHardness(9F).setResistance(25F);
//Multi-Textures
public static int NetherMelonBottom = ModLoader.addOverride("/terrain.png", "/arc/Blocks/NetherMelonTop.png");
public static int NetherMelonTop = ModLoader.addOverride("/terrain.png", "/arc/Blocks/NetherMelonTop.png");
public static int NetherMelonSides = ModLoader.addOverride("/terrain.png", "/arc/Blocks/NetherMelonSide.png");
public static int SkyWoodTop = ModLoader.addOverride("/terrain.png", "/arc/Blocks/Skywill/SkyWoodTop.png");
public static int SkyWoodSide = ModLoader.addOverride("/terrain.png", "/arc/Blocks/Skywill/SkyWoodSide.png");
//Food+
public static final Item AppleDanish = new ItemFood(5063, 6, 1F, false).setItemName("Appple Danish");
public static final Item CherryDanish = new ItemFood(5064, 6, 1F, false).setItemName("Cherry Danish");
public static final Item EnderDanish = new ItemFood(5065, 6, 1F, false).setPotionEffect(Potion.jump.id, 13, 0, 0.8F).setItemName("Ender Danish");
public static final Item NetherMelonDanish = new ItemFood(5066, 6, 1F, false).setPotionEffect(Potion.regeneration.id, 13, 0, 0.8F).setItemName("Nether Melon Danish");
public static final Item MelonDanish = new ItemFood(5067, 6, 1F, false).setItemName("Melon Danish");
public static final Item Cherry = new ItemFood(5068, 6, 1F, false).setItemName("Cherry");
public static final Item ObsidianStick = new Item(5069).setFull3D().setItemName("Obsidian Stick");
public static final Item LapizThing = new Item(5070).setItemName("Lapiz Talisman");
public static final Item BlazeThing = new Item(5071).setItemName("Blaze Talisman");
public static final Item BlackThing = new Item(5072).setItemName("Black Talisman");
public static final Item SlushieCup = new ItemGlassBottle(5073).setItemName("Froster Cup TM");
public void load()
{
//Texture Overrides
// -Arcraphys Blocks:
ArcraphysBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/arcBlock.png");
Arcraphys.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/arcraphys.png");
ArcraphysOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/arcOre.png");
ArcBrickStairs.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/arcBrickStairs.png");
ArcBrickSlab.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/arcBrickSlabs.png");
ArcraphysStairs.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/arcBlockStairs.png");
ArcraphysSlab.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/arcBlockSlabs.png");
ArcraphysBrick.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/arcBricks.png");
// -Arcraphys Tools & Weapons [Texture Overrides]:
ArcSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/arcSword.png");
ArcGreatSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/arcGreatSword.png");
ArcDagger.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/arcDagger.png");
ArcSledge.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/arcSledge.png");
ArcPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/arcPickaxe.png");
ArcAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/arcAxe.png");
ArcShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/arcShovel.png");
ArcHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/arcHoe.png");
ArcSickle.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/arcSickle.png");
// -ArcraphysII:
ArcUltimantX.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/arcGemSword.png");
ArcUltimantX1.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/arcDualSword.png");
ArcUltimantX2.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/arcDerfslayer.png");
//Records:
recordGain.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/Music/Gain.png");
recordVillage.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/Music/Village.png");
recordSnowgolems.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/Music/Snowgolem.png");
record15.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/Music/15.png");
recordNightEscape.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/Music/NightEscape.png");
// -Copper Blocks:
CopperBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/copBlock.png");
CopperSlab.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/copSlab.png");
CopperStairs.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/copStairs.png");
// -Silver Blocks:
SilverBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/silvBlock.png");
SilverSlab.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/silvSlab.png");
SilverStairs.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/silvStairs.png");
// -Copper Tools & Weapons [Texture Overrides]:
CopSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/copSword.png");
CopPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/copPickaxe.png");
CopAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/copAxe.png");
CopShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/copShovel.png");
CopHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/copHoe.png");
// -Copper Blocks:
CopperOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/copperOre.png");
CopperIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/copIngot.png");
// -Silver Tools & Weapons:
SilSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/silSword.png");
SilPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/silPickaxe.png");
SilAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/silAxe.png");
SilShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/silShovel.png");
SilHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/silHoe.png");
// -Platinum Tools & Weapons:
PlatSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/platSword.png");
PlatPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/platPickaxe.png");
PlatAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/platAxe.png");
PlatShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/platShovel.png");
PlatHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/platHoe.png");
// -Cobalt Tools & Weapons:
ColSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/colSword.png");
ColPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/colPickaxe.png");
ColAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/colAxe.png");
ColShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/colShovel.png");
ColHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/colHoe.png");
// -Derflinger:
Derflinger.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/derflinger.png");
AncientHandle.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/derfHandle.png");
AncientBlade.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/derfBlade.png");
AncientHilt.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/derfHilt.png");
//Diphos.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Plants/Diphos.png");
// -Silver:
SilverOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/silvOre.png");
SilverIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/SilIngot.png");
// -Cobalt:
CobaltOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/cobaltOre.png");
CobaltIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/colIngot.png");
// -Platinum:
PlatinumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/platOre.png");
PlatinumIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/platIngot.png");
// Unused:
//ShineDust.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/ShineDust.png");
//Hammer.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/Hammer.png");
//ShineArcBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/ShineArcBlock.png");
// MISC
WonderStone.blockIndexInTexture = ModLoader.addOverride("/gui/items.png", "/arc/Blocks/wonderStone.png");
ak47.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Weapons/ak47.png");
LapizThing.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/Lapiz Talisman.png");
BlazeThing.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/Blaze Talisman.png");
BlackThing.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/Black Talisman.png");
// -Nether+:
NetherMelonSlice.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/NetherMelonSlice.png");
ObsidianStick.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/obsidianStick.png");
Obsidianfence.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/Obsidian.png");
// -Food+
AppleDanish.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/AppleDanish.png");
CherryDanish.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/CherryDanish.png");
EnderDanish.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/EnderDanish.png");
NetherMelonDanish.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/NetherMelonrDanish.png");
MelonDanish.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/MelonDanish.png");
Cherry.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/Cherry.png");
SlushieCup.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/FrosterCup.png");
//Register Blocks
ModLoader.registerBlock(ArcraphysBlock);
ModLoader.registerBlock(ArcraphysOre);
//ModLoader.registerBlock(Diphos);
ModLoader.registerBlock(ArcraphysStairs);
ModLoader.registerBlock(ArcraphysSlab);
ModLoader.registerBlock(ArcraphysBrick);
//ModLoader.registerBlock(ShineArcBlock);
ModLoader.registerBlock(CopperBlock);
ModLoader.registerBlock(CopperSlab);
ModLoader.registerBlock(CopperStairs);
ModLoader.registerBlock(SilverBlock);
ModLoader.registerBlock(SilverSlab);
ModLoader.registerBlock(SilverStairs);
ModLoader.registerBlock(WonderStone);
ModLoader.registerBlock(NetherMelon);
ModLoader.registerBlock(CobaltOre);
ModLoader.registerBlock(CopperOre);
ModLoader.registerBlock(SilverOre);
ModLoader.registerBlock(ArcBrickStairs);
ModLoader.registerBlock(ArcBrickSlab);
ModLoader.registerBlock(PlatinumOre);
ModLoader.registerBlock(Obsidianfence);
//Add Names
ModLoader.addName(ArcraphysBlock, "Block of Arcraphys");
ModLoader.addName(Arcraphys, "Arcraphys");
ModLoader.addName(ArcraphysOre, "Arcraphys Ore");
ModLoader.addName(ArcSword, "Arcraphys Sword");
ModLoader.addName(ArcGreatSword, "Arcraphys Greatsword");
ModLoader.addName(ArcDagger, "Arcraphys Dagger");
ModLoader.addName(ArcSledge, "Arcraphys Sledgehammer");
ModLoader.addName(ArcPickaxe, "Arcraphys Pickaxe");
ModLoader.addName(ArcAxe, "Arcraphys Axe");
ModLoader.addName(ArcShovel, "Arcraphys Shovel");
ModLoader.addName(ArcHoe, "Arcraphys Hoe");
ModLoader.addName(ArcSickle, "Arcraphys Sickle");
ModLoader.addName(CopperBlock, "Block of Copper");
ModLoader.addName(CopperStairs, "Copper Stairs");
ModLoader.addName(CopperSlab, "Copper Slab");
ModLoader.addName(SilverBlock, "Block of Silver");
ModLoader.addName(SilverStairs, "Silver Stairs");
ModLoader.addName(SilverSlab, "Silver Slab");
ModLoader.addName(CopSword, "Copper Sword");
ModLoader.addName(CopPickaxe, "Copper Pickaxe");
ModLoader.addName(CopAxe, "Copper Axe");
ModLoader.addName(CopShovel, "Copper Shovel");
ModLoader.addName(CopHoe, "Copper Hoe");
ModLoader.addName(ColSword, "Colbalt Sword");
ModLoader.addName(ColPickaxe, "Colbalt Pickaxe");
ModLoader.addName(ColAxe, "Colbalt Axe");
ModLoader.addName(ColShovel, "Colbalt Shovel");
ModLoader.addName(ColHoe, "Colbalt Hoe");
ModLoader.addName(SilSword, "Silver Sword");
ModLoader.addName(SilPickaxe, "Silver Pickaxe");
ModLoader.addName(SilAxe, "Silver Axe");
ModLoader.addName(SilShovel, "Silver Shovel");
ModLoader.addName(SilHoe, "Silver Hoe");
ModLoader.addName(PlatSword, "Platinum Sword");
ModLoader.addName(PlatPickaxe, "Platinum Pickaxe");
ModLoader.addName(PlatAxe, "Platinum Axe");
ModLoader.addName(PlatShovel, "Platinum Shovel");
ModLoader.addName(PlatHoe, "Platinum Hoe");
ModLoader.addName(Derflinger, "Derflinger");
ModLoader.addName(AncientHandle, "Ancient Handle");
ModLoader.addName(AncientBlade, "Ancient Blade");
ModLoader.addName(AncientHilt, "Ancient Hilt");
ModLoader.addName(ArcraphysStairs, "Arcraphys Stairs");
ModLoader.addName(ArcraphysSlab, "Arcraphys Slab");
ModLoader.addName(ArcraphysBrick, "Arcraphys Bricks");
//ModLoader.addName(ShineDust, "Shine Dust");
//ModLoader.addName(Hammer, "Hammer");
//ModLoader.addName(ShineArcBlock, "Shining Block of Arcraphys");
ModLoader.addName(SilverIngot, "Silver Ingot");
ModLoader.addName(ArcHelmet, "Arcraphys Helmet");
ModLoader.addName(ArcChest, "Arcraphys Chestplate");
ModLoader.addName(ArcPants, "Arcraphys Leggings");
ModLoader.addName(ArcBoots, "Arcraphys Boots");
ModLoader.addName(WonderStone, "Wonder Stone");
ModLoader.addName(NetherMelon, "Nether Melon");
ModLoader.addName(NetherMelonSlice, "Nether Melon");
ModLoader.addName(CobaltOre, "Cobalt Ore");
ModLoader.addName(CobaltIngot, "Cobalt Ingot");
ModLoader.addName(CopperOre, "Copper Ore");
ModLoader.addName(SilverOre, "Silver Ore");
ModLoader.addName(ArcBrickStairs, "Arcraphys Brick Stairs");
ModLoader.addName(ArcBrickSlab, "Arcraphys Brick Slab");
ModLoader.addName(CopperIngot, "Copper Ingot");
ModLoader.addName(CopBoots, "Copper Boots");
ModLoader.addName(CopChest, "Copper Chestplate");
ModLoader.addName(CopPants, "Copper Leggings");
ModLoader.addName(CopHelmet, "Copper Helmet");
ModLoader.addName(SilBoots, "Silver Boots");
ModLoader.addName(SilChest, "Silver Chestplate");
ModLoader.addName(SilPants, "Silver Leggings");
ModLoader.addName(SilHelmet, "Silver Helmet");
ModLoader.addName(ak47, "Soldier's AK47");
ModLoader.addName(ArcUltimantX, "Arcraphys GreatSword [Gem Form]");
ModLoader.addName(ArcUltimantX1, "Arcraphys GreatSword [Dual Form]");
ModLoader.addName(ArcUltimantX2, "Arcraphys GreatSword [Derfslayer Form]");
ModLoader.addName(PlatinumOre, "Platinum Ore");
ModLoader.addName(PlatinumIngot, "Platinum Ingot");
ModLoader.addName(ObsidianStick, "Obsidian Stick");
ModLoader.addName(Obsidianfence, "Obsidian Fence");
ModLoader.addName(AppleDanish, "Apple Danish");
ModLoader.addName(CherryDanish, "Cherry Danish");
ModLoader.addName(EnderDanish, "Ender Danish");
ModLoader.addName(NetherMelonDanish, "Nether Melon Danish");
ModLoader.addName(MelonDanish, "Melon Danish");
ModLoader.addName(Cherry, "Cherry");
ModLoader.addName(LapizThing, "Lapiz Talizman");
ModLoader.addName(BlazeThing, "Blaze Talizman");
ModLoader.addName(BlackThing, "Black Talizman");
ModLoader.addName(SlushieCup, "Empty Froster Cup");
//Crafting Recipes
// -Arcraphys Crafting:
ModLoader.addRecipe(new ItemStack(Arcraphys, 9), new Object [] {"#", '#', ArcraphysBlock});
ModLoader.addRecipe(new ItemStack(ArcraphysBlock, 1), new Object [] {"###", "###", "###", '#', Arcraphys});
ModLoader.addRecipe(new ItemStack(ArcSword, 1), new Object [] {" # ", " # ", " @ ", '#', Arcraphys, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(ArcGreatSword, 1), new Object [] {" # ", "###", " @ ", '#', Arcraphys, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(ArcDagger, 1), new Object [] {" # ", " @ ", " @ ", '#', Arcraphys, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(ArcSledge, 1), new Object [] {"###", " # ", " @ ", '#', Arcraphys, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(ArcPickaxe, 1), new Object [] {"###", " @ ", " @ ", '#', Arcraphys, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(ArcAxe, 1), new Object [] {"## ", "#@ ", " @ ", '#', Arcraphys, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(ArcShovel, 1), new Object [] {" # ", " @ ", " @ ", '#', Arcraphys, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(ArcHoe, 1), new Object [] {"## ", " @ ", " @ ", '#', Arcraphys, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(ArcSickle, 1), new Object [] {"XX " , "XS ", " S ", 'X', Arcraphys, 'S', Item.stick});
// -Copper Crafting:
ModLoader.addRecipe(new ItemStack(CopperBlock, 1), new Object [] {"###", "###", "###", '#', CopperIngot});
ModLoader.addRecipe(new ItemStack(CopperStairs, 4), new Object [] {"# ", "## ", "###", '#', CopperBlock});
ModLoader.addRecipe(new ItemStack(CopperSlab, 6), new Object [] {"###", '#', CopperBlock});
ModLoader.addRecipe(new ItemStack(CopSword, 1), new Object [] {" # ", " # ", " @ ", '#', CopperIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(CopPickaxe, 1), new Object [] {"###", " @ ", " @ ", '#', CopperIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(CopAxe, 1), new Object [] {"## ", "#@ ", " @ ", '#', CopperIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(CopShovel, 1), new Object [] {" # ", " @ ", " @ ", '#', CopperIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(CopHoe, 1), new Object [] {"## ", " @ ", " @ ", '#', CopperIngot, '@', Item.stick});
// -Silver Crafting:
ModLoader.addRecipe(new ItemStack(SilverBlock, 1), new Object [] {"###", "###", "###", '#', SilverIngot});
ModLoader.addRecipe(new ItemStack(SilverStairs, 4), new Object [] {"# ", "## ", "###", '#', SilverBlock});
ModLoader.addRecipe(new ItemStack(SilverSlab, 6), new Object [] {"###", '#', SilverBlock});
ModLoader.addRecipe(new ItemStack(SilSword, 1), new Object [] {" # ", " # ", " @ ", '#', SilverIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(SilPickaxe, 1), new Object [] {"###", " @ ", " @ ", '#', SilverIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(SilAxe, 1), new Object [] {"## ", "#@ ", " @ ", '#', SilverIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(SilShovel, 1), new Object [] {" # ", " @ ", " @ ", '#', SilverIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(SilHoe, 1), new Object [] {"## ", " @ ", " @ ", '#', SilverIngot, '@', Item.stick});
// -Cobalt Crafting:
ModLoader.addRecipe(new ItemStack(ColSword, 1), new Object [] {" # ", " # ", " @ ", '#', CobaltIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(ColPickaxe, 1), new Object [] {"###", " @ ", " @ ", '#', CobaltIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(ColAxe, 1), new Object [] {"## ", "#@ ", " @ ", '#', CobaltIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(ColShovel, 1), new Object [] {" # ", " @ ", " @ ", '#', CobaltIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(ColHoe, 1), new Object [] {"## ", " @ ", " @ ", '#', CobaltIngot, '@', Item.stick});
// -Platinum Crafting:
ModLoader.addRecipe(new ItemStack(PlatSword, 1), new Object [] {" # ", " # ", " @ ", '#', PlatinumIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(PlatPickaxe, 1), new Object [] {"###", " @ ", " @ ", '#', PlatinumIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(PlatAxe, 1), new Object [] {"## ", "#@ ", " @ ", '#', PlatinumIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(PlatShovel, 1), new Object [] {" # ", " @ ", " @ ", '#', PlatinumIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(PlatHoe, 1), new Object [] {"## ", " @ ", " @ ", '#', PlatinumIngot, '@', Item.stick});
ModLoader.addRecipe(new ItemStack(Derflinger, 1), new Object [] {" # ", " @ ", " ! ", '#', AncientBlade, '@', AncientHilt, '!', AncientHandle});
ModLoader.addRecipe(new ItemStack(ArcraphysStairs, 4), new Object [] {"# ", "## ", "###", '#', Arcraphys});
ModLoader.addRecipe(new ItemStack(ArcraphysSlab, 6), new Object [] {"###", '#', Arcraphys});
ModLoader.addRecipe(new ItemStack(ArcraphysBrick, 1), new Object [] {"##", "##", '#', ArcraphysBlock});
//ModLoader.addRecipe(new ItemStack(ShineDust, 8), new Object [] {"@#", '@', Hammer, '#', Block.glowStone});
//ModLoader.addRecipe(new ItemStack(Hammer, 1), new Object [] {" # ", "@ ", '#', Item.ingotIron, '@', Item.stick});
//ModLoader.addRecipe(new ItemStack(ShineArcBlock, 1), new Object [] {"###", "#@#", "###", '#', ShineDust, '@', ArcraphysBlock});
ModLoader.addRecipe(new ItemStack(ArcHelmet, 1), (new Object[] {"XXX", "X X", 'X', Arcraphys}));
ModLoader.addRecipe(new ItemStack(ArcChest, 1), (new Object[] {"X X", "XXX", "XXX", 'X', Arcraphys}));
ModLoader.addRecipe(new ItemStack(ArcPants, 1), (new Object[] {"XXX", "X X", "X X", 'X', Arcraphys}));
ModLoader.addRecipe(new ItemStack(ArcBoots, 1), (new Object[] {"X X", "X X", 'X', Arcraphys}));
//ModLoader.addRecipe(new ItemStack(WonderStone, 1), new Object [] {"@$@", "#%#", "$&$", '#', ShineDust, '@', Item.redstone, '$', NetherMelonSlice, '%', Arcraphys});
ModLoader.addRecipe(new ItemStack(NetherMelon, 1), new Object [] {"###", "###", "###", '#', NetherMelonSlice});
ModLoader.addRecipe(new ItemStack(NetherMelonSlice, 1), new Object [] {"#", '#', NetherMelonSlice});
ModLoader.addRecipe(new ItemStack(ArcBrickStairs, 4), new Object [] {"# ", "## ", "###", '#', ArcraphysBrick});
ModLoader.addRecipe(new ItemStack(ArcBrickSlab, 6), new Object [] {"###", '#', ArcraphysBrick});
ModLoader.addRecipe(new ItemStack(CopHelmet, 1), (new Object[] {"XXX", "X X", 'X', CopperIngot}));
ModLoader.addRecipe(new ItemStack(CopChest, 1), (new Object[] {"X X", "XXX", "XXX", 'X', CopperIngot}));
ModLoader.addRecipe(new ItemStack(CopPants, 1), (new Object[] {"XXX", "X X", "X X", 'X', CopperIngot}));
ModLoader.addRecipe(new ItemStack(CopBoots, 1), (new Object[] {"X X", "X X", 'X', CopperIngot}));
ModLoader.addRecipe(new ItemStack(SilHelmet, 1), (new Object[] {"XXX", "X X", 'X', SilverIngot}));
ModLoader.addRecipe(new ItemStack(SilChest, 1), (new Object[] {"X X", "XXX", "XXX", 'X', SilverIngot}));
ModLoader.addRecipe(new ItemStack(SilPants, 1), (new Object[] {"XXX", "X X", "X X", 'X', SilverIngot}));
ModLoader.addRecipe(new ItemStack(SilBoots, 1), (new Object[] {"X X", "X X", 'X', SilverIngot}));
ModLoader.addRecipe(new ItemStack(ObsidianStick, 3), (new Object[] {" X ", " X ", 'X', Block.obsidian}));
ModLoader.addRecipe(new ItemStack(Obsidianfence, 6), (new Object[] {"XX", 'X', ObsidianStick}));
//ArcraphysII:
ModLoader.addRecipe(new ItemStack(ArcUltimantX, 1), new Object [] {"#O#", "#O#", " @ ", '#', Arcraphys, '@', ArcSword, 'O', Item.diamond});
ModLoader.addRecipe(new ItemStack(ArcUltimantX1, 1), new Object [] {"# #", "###", " @ ", '#', Arcraphys, '@', ArcSword,});
ModLoader.addRecipe(new ItemStack(ArcUltimantX2, 1), new Object [] {"###", "#@#", "###", '#', Arcraphys, '@', Derflinger,});
ModLoader.addRecipe(new ItemStack(AppleDanish, 2), new Object [] {"###", "#@#", "###", '#', Item.bread, '@', Item.appleRed,});
ModLoader.addRecipe(new ItemStack(CherryDanish, 2), new Object [] {"###", "#@#", "###", '#', Item.bread, '@', Cherry,});
ModLoader.addRecipe(new ItemStack(EnderDanish, 2), new Object [] {"###", "#@#", "###", '#', Item.bread, '@', Item.enderPearl,});
ModLoader.addRecipe(new ItemStack(MelonDanish, 2), new Object [] {"###", "#@#", "###", '#', Item.bread, '@', Item.melon,});
ModLoader.addRecipe(new ItemStack(NetherMelonDanish, 2), new Object [] {"###", "#@#", "###", '#', Item.bread, '@', NetherMelonSlice,});
ModLoader.addRecipe(new ItemStack(LapizThing, 1), new Object[] {" X ","X@X", " X ", 'X', Item.appleRed, '@', Arcraphys,});
ModLoader.addRecipe(new ItemStack(BlazeThing, 1), new Object[] {" X ","X@X", " X ", 'X', Item.blazeRod, '@', Arcraphys,});
ModLoader.addRecipe(new ItemStack(BlackThing, 1), new Object[] {" X ","X@X", " X ", 'X', Item.coal, '@', Arcraphys,});
ModLoader.addRecipe(new ItemStack(SlushieCup, 1), (new Object[] {"X X", "X X", "XXX", 'X', Block.glass}));
//Smelting Recipes
ModLoader.addSmelting(SilverOre.blockID, new ItemStack(SilverIngot, 1));
ModLoader.addSmelting(CopperOre.blockID, new ItemStack(CopperIngot, 1));
ModLoader.addSmelting(PlatinumOre.blockID, new ItemStack(PlatinumIngot, 1));
ModLoader.addSmelting(CobaltOre.blockID, new ItemStack(CobaltIngot, 1));
ModLoader.addSmelting(Block.obsidian.blockID, new ItemStack(recordNightEscape, 1));
//Register Entity IDs
//Soldier
ModLoader.registerEntityID(EntitySoldier.class, "Soldier", ModLoader.getUniqueEntityId());
//Add Spawns
ModLoader.addSpawn(EntitySoldier.class, 1, 4, 6, EnumCreatureType.creature);
//Add Blocks to Creative Inventory (Don't edit!)
ModLoader.setInGameHook(this, true, false);
ModLoader.setInGUIHook(this, true, false);
}
public boolean onTickInGame(float f, Minecraft minecraft)
{
if(minecraft.currentScreen == null)
{
creativeInventory = null;
}
return true;
}
public boolean onTickInGUI(float f, Minecraft minecraft, GuiScreen guiscreen)
{
if((guiscreen instanceof GuiContainerCreative) && !(creativeInventory instanceof GuiContainerCreative) && !minecraft.theWorld.isRemote)
{
Container container = ((GuiContainer)guiscreen).inventorySlots;
List list = ((ContainerCreative)container).itemList;
int i = 0;
list.add(new ItemStack(ArcraphysBlock, 1, i));
list.add(new ItemStack(ArcraphysStairs, 1, i));
list.add(new ItemStack(ArcraphysSlab, 1, i));
list.add(new ItemStack(ArcraphysBrick, 1, i));
list.add(new ItemStack(ArcBrickStairs, 1, i));
list.add(new ItemStack(ArcBrickSlab, 1, i));
list.add(new ItemStack(ArcraphysOre, 1, i));
list.add(new ItemStack(CobaltOre, 1, i));
list.add(new ItemStack(CopperOre, 1, i));
list.add(new ItemStack(Diphos, 1, i));
list.add(new ItemStack(NetherMelon, 1, i));
list.add(new ItemStack(PlatinumOre, 1, i));
list.add(new ItemStack(WonderStone, 1, i));
list.add(new ItemStack(SilverOre, 1, i));
list.add(new ItemStack(SkySapling, 1, i));
list.add(new ItemStack(SkyWood, 1, i));
list.add(new ItemStack(SkyPlanks, 1, i));
list.add(new ItemStack(SkyLeaf, 1, i));
list.add(new ItemStack(CopperBlock, 1, i));
list.add(new ItemStack(CopperStairs, 1, i));
list.add(new ItemStack(CopperSlab, 1, i));
list.add(new ItemStack(SilverBlock, 1, i));
list.add(new ItemStack(SilverStairs, 1, i));
list.add(new ItemStack(SilverSlab, 1, i));
}
creativeInventory = guiscreen;
return true;
}
private static GuiScreen creativeInventory;
//Blocks in Creative Inventory End
//Add Renderers
public void addRenderer(Map map)
{
map.put(EntitySoldier.class, new RenderBiped(new ModelBiped(), 0.5F));
}
//Ore Generation
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
//Start Arcraphys Ore
for (int i = 0; i < 7; i++)
{
int randPosX = chunkX + random.nextInt(10);
int randPosY = random.nextInt(19 - 3);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(ArcraphysOre.blockID, 10)).generate(world, random, randPosX, randPosY, randPosZ);
}
//end Arcraphys Ore
//Start Cobalt Ore
for (int i = 0; i < 14; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(40 - 20);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(CobaltOre.blockID, 12)).generate(world, random, randPosX, randPosY, randPosZ);
}
//End Cobalt Ore
//Start Copper Ore
for (int i = 0; i < 17; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(50 - 10);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(CopperOre.blockID, 14)).generate(world, random, randPosX, randPosY, randPosZ);
}
//End Copper Ore
//Start Silver Ore
for (int i = 0; i < 12; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(60 - 10);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(SilverOre.blockID, 13)).generate(world, random, randPosX, randPosY, randPosZ);
}
//End Silver Ore
//Start Platinum Ore
for (int i = 0; i < 13; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(30 - 10);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(PlatinumOre.blockID, 13)).generate(world, random, randPosX, randPosY, randPosZ);
}
//End Platinum Ore
}
public String getVersion()
{
return "1.2.5";
}
}
The Crash:
Mods loaded: 2
ModLoader 1.2.5
mod_ArcadiaCraft 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT a53061f --------
Generated 5-6-12 2:00
Minecraft: Minecraft 1.2.5
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode, sharing), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel 965/963 Graphics Media Accelerator version 2.0.0 - Build 8.14.10.1930, Intel
java.lang.NullPointerException
at net.minecraft.src.ItemStack.getIconIndex(ItemStack.java:105)
at net.minecraft.src.RenderItem.renderItemIntoGUI(RenderItem.java:270)
at net.minecraft.src.GuiContainer.drawSlotInventory(GuiContainer.java:228)
at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:74)
at net.minecraft.src.GuiContainerCreative.drawScreen(GuiContainerCreative.java:235)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1008)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:20)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:922)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT aa43da49 ----------
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I can't get flowers to generate naturally in my world... Apparently this code doesn't work like it used to:
public void WorldGenFlowers(World var1, Random var2, int var3, int var4)
{
int var5;
int var6;
int var7;
int var8;
for (var5 = 0; var5 < 2; ++var5)
{
var6 = var3 + var2.nextInt(16);
var7 = var2.nextInt(128);
var8 = var4 + var2.nextInt(16 + 8);
(new WorldGenFlowers(blockColumbine.blockID)).generate(var1, var2, var6, var7, var8);
}
}
Not that I expect it to work with the exact properties from a flower already in-game, I just want to get it to at least appear in my world without creative.
I've also tried altering some of your other generation code to fit the flower, but I don't think I'm doing it right. I'm sorry if this is something you don't/won't cover. Any help would be appreciated.
My flower is already declared and all that. But at the moment, it's only possible to get it in creative. >.>
public boolean generate(World par1World, Random par2Random, int /*x*/par3, int /*y*/par4, int /*z*/par5)
{
for (int var6 = 0; var6 < 64; ++var6)
{
int var7 = par3 + par2Random.nextInt(8) - par2Random.nextInt(8);
int var8 = par4 + par2Random.nextInt(4) - par2Random.nextInt(4);
int var9 = par5 + par2Random.nextInt(8) - par2Random.nextInt(8);
if (par1World.isAirBlock(var7, var8, var9) && ((BlockFlower)Block.blocksList[this.plantBlockId]).canBlockStay(par1World, var7, var8, var9))
{
par1World.setBlock(var7, var8, var9, this.plantBlockId);
}
}
return true;
}
thats the worldflowergen.java BTW
so, from what i understand, your code should work,
just,
try this code
havent tested it, so it might not work
public void generateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 35; i++)
{
int randPosX = chunkX + rand.nextInt(20);
int randPosY = rand.nextInt(70);
int randPosZ = chunkZ + rand.nextInt(20);
(new WorldGenFlowers(blockColumbine.blockID)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
package net.minecraft.src;
public class mod_Item extends BaseMod
{
public static final Item Deflesher = new ItemDeflesher(87).setItemName("Deflesher");
public void load()
{
Deflesher.iconIndex = ModLoader.addOverride("/gui/items.png", "/mods/deflesher.png");
ModLoader.addName(Deflesher, "Deflesher");
ModLoader.addRecipe(new ItemStack(Item.Deflesher, 1), new Object [] {"#", "A", Character.valueOf('#'), Item.redstone, Character.valueOf('A'), Item.ingotIron});
ModLoader.addRecipe(new ItemStack(Item.porkCooked, 1), new Object [] {"#A", Character.valueOf('#'), Deflesher, Character.valueOf('A'), Item.rottenFlesh});
}
public String getVersion()
{
return "1.2.5";
}
}
Error report that I'm getting:
Mods loaded: 2
ModLoader 1.2.5
mod_Item 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT f986175f --------
Generated 05/06/12 13:32
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 6310 Graphics version 4.1.10834 Compatibility Profile Context, ATI Technologies Inc.
java.lang.NullPointerException
at net.minecraft.src.ItemStack.<init>(ItemStack.java:48)
at net.minecraft.src.mod_Item.load(mod_Item.java:11)
at net.minecraft.src.ModLoader.init(ModLoader.java:856)
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)
--- END ERROR REPORT 9dcd4ca5 ----------
Change the output item in this line to just Deflesher:
Also, you can't use 87 as the id for your item. It is taken already.
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, recently I started to use Eclipse instead of Notepad++, and it is great, one problem though.When I try to compile it in mcp it doesn't let me, because it has errors in it, although the errors are not a problem and the mod works like a charm in eclipse. Any way I can compile it even if it has errors in it? Don't tell me to fix them, it's too much
Techguy, about that forge and dimensions, can you make it smp with forge? Are you gonna do tutorial about it? This was not request, just asking if you do.
EDIT: i cant find a tutorial for dimensions with forge, so if you have found one, can you link it to me?
I'm probably going to start making my dimension tomorrow. I'm fairly sure you can make it SMP. If I run into no problems or issues I will show you how to do it, probably won't make a tutorial for it yet.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
You are missing a closing bracket in your TileEntityBox class. Check them and post the code if you can't find 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."
public class mod_Toolmod extends BaseMod
{
//tools
public static final Item ObsidianPickaxe = new ItemPickaxe(20001, EnumToolMaterial.OBSIDIAN).setItemName("ObsidianPickaxe");
public static final Item ObsidianSpade = new ItemSpade(20002, EnumToolMaterial.OBSIDIAN).setItemName("ObsidianSpade");
public static final Item ObsidianAxe = new ItemAxe(20003, EnumToolMaterial.OBSIDIAN).setItemName("ObsidianAxe");
public static final Item ObsidianHoe = new ItemHoe(20004, EnumToolMaterial.OBSIDIAN).setItemName("ObsidianHoe");
public static final Item ObsidianSword = new ItemSword(20005, EnumToolMaterial.OBSIDIAN).setItemName("ObsidianSword");
public static final Item LapisPickaxe = new ItemPickaxe(20006, EnumToolMaterial.LAPIS).setItemName("LapisPickaxe");
public static final Item LapisSpade = new ItemSpade(20007, EnumToolMaterial.LAPIS).setItemName("LapisSpade");
public static final Item LapisAxe = new ItemAxe(20008, EnumToolMaterial.LAPIS).setItemName("LapisAxe");
public static final Item LapisHoe = new ItemHoe(20009, EnumToolMaterial.LAPIS).setItemName("LapisHoe");
public static final Item LapisSword = new ItemSword(20010, EnumToolMaterial.LAPIS).setItemName("LapisSword");
public static final Item RedstonePickaxe = new ItemPickaxe(20011, EnumToolMaterial.REDSTONE).setItemName("RedstonePickaxe");
public static final Item RedstoneSpade = new ItemSpade(20012, EnumToolMaterial.REDSTONE).setItemName("RedstoneSpade");
public static final Item RedstoneAxe = new ItemAxe(20013, EnumToolMaterial.REDSTONE).setItemName("RedstoneAxe");
public static final Item RedstoneHoe = new ItemHoe(20014, EnumToolMaterial.REDSTONE).setItemName("RedstoneHoe");
public static final Item RedstoneSword = new ItemSword(20015, EnumToolMaterial.REDSTONE).setItemName("RedstoneSword");
public static final Item FlintPickaxe = new ItemPickaxe(20016, EnumToolMaterial.FLINT).setItemName("FlintPickaxe");
public static final Item FlintSpade = new ItemSpade(20017, EnumToolMaterial.FLINT).setItemName("FlintSpade");
public static final Item FlintAxe = new ItemAxe(20018, EnumToolMaterial.FLINT).setItemName("FlintAxe");
public static final Item FlintHoe = new ItemHoe(20019, EnumToolMaterial.FLINT).setItemName("FlintHoe");
public static final Item FlintSword = new ItemSword(20020, EnumToolMaterial.FLINT).setItemName("FlintSword");
public static final Item SteelPickaxe = new ItemPickaxe(20021, EnumToolMaterial.STEEL).setItemName("SteelPickaxe");
public static final Item SteelSpade = new ItemSpade(20022, EnumToolMaterial.STEEL).setItemName("SteelSpade");
public static final Item SteelAxe = new ItemAxe(20023, EnumToolMaterial.STEEL).setItemName("SteelAxe");
public static final Item SteelHoe = new ItemHoe(20024, EnumToolMaterial.STEEL).setItemName("SteelHoe");
public static final Item SteelSword = new ItemSword(20025, EnumToolMaterial.STEEL).setItemName("SteelSword");
public static final Item CrystalPickaxe = new ItemPickaxe(20026, EnumToolMaterial.CRYSTAL).setItemName("CrystalPickaxe");
public static final Item CrystalSpade = new ItemSpade(20027, EnumToolMaterial.CRYSTAL).setItemName("CrystalSpade");
public static final Item CrystalAxe = new ItemAxe(20028, EnumToolMaterial.CRYSTAL).setItemName("CrystalAxe");
public static final Item CrystalHoe = new ItemHoe(20029, EnumToolMaterial.CRYSTAL).setItemName("CrystalHoe");
public static final Item CrystalSword = new ItemSword(20030, EnumToolMaterial.CRYSTAL).setItemName("CrystalSword");
//items
public static final Item Steel = new ItemSteel(30001).setItemName("Steel");
public static final Item Crystal = new ItemCrystal(30002).setItemName("Crystal");
public static final Item Ruby = new ItemRuby(30003).setItemName("Ruby");
public static final Item Sapphire = new ItemSapphire(30004).setItemName("Sapphire");
//blocks or ores
public static final Block RedstoneBlock = new RedstoneBlock(200, 0).setBlockName("RedstoneBlock").setHardness(3F).setResistance(15F).setLightValue(1F);
public static final Block CrystalOre = new CrystalOre(201, 0).setBlockName("CrystalOre").setHardness(3F).setResistance(15F).setLightValue(0F);
public static final Block RubyOre = new RubyOre(202, 0).setBlockName("RubyOre").setHardness(4F).setResistance(15F).setLightValue(0F);
public static final Block SapphireOre = new SapphireOre(203, 0).setBlockName("SapphireOre").setHardness(4F).setResistance(15F).setLightValue(0F);
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 5; i++)
{
int randPosX = chunkX + random.nextInt(20);
int randPosY = random.nextInt(32);
int randPosZ = chunkZ + random.nextInt(20);
(new WorldGenMinable(CrystalOre.blockID, 4)).generate(world, random, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 2; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(24);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(RubyOre.blockID, 3)).generate(world, random, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 2; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(24);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(SapphireOre.blockID, 3)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion()
{
return "1.2.5";
}
}
It should work. Put up the generation rates temporarily just to test.
I coded a block correctly, but when I press run and try and craft it, nothing happens. Help?
Code:
package net.minecraft.src;
public class mod_Test
{
public static final Block Test = new Block(160,
0, Material.wood).setBlockName("test").setHardness(3F).setResistance(4F);
public void load()
{
Test.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "C:/Users/Tommy/Desktop/Stuff/Minecraft/Mods/Mod Making/test/Textures/test.png");
ModLoader.registerBlock(Test);
ModLoader.addName(Test, "TestBlock");
ModLoader.addRecipe(new ItemStack(Test, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
}
public String getVersion()
{
return "1.2.5";
}
}
The class need to extend BaseMod.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Where do I put the codes that let me add new recipes? And where do I put my custom mod files? In the source? In a special folder?? I read the I can only use one mod_ class...but what if i want blocks and items? Wouldn't I need a mod_block and a mod_item? Do the mod_ files need to be .class or .java? If I want to make a block called Cheese, would the class file be mod_block or mod_Cheese?
Download the "Source" from this site, put the folder named forge in a fresh mcp, go in to the forge folder and run install.cmd. It decompiles the minecraft.jar and installs forge. Then you can copy the source code from your earlier mod.
Where do I put the codes that let me add new recipes? And where do I put my custom mod files? In the source? In a special folder?? I read the I can only use one mod_ class...but what if i want blocks and items? Wouldn't I need a mod_block and a mod_item? Do the mod_ files need to be .class or .java? If I want to make a block called Cheese, would the class file be mod_block or mod_Cheese?
The .java classes go in mcp/src/net/minecraft/src. If you can't understand classes and the naming of them, you need to go and read up on Java programming.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
That is correct. Download from here for the latest version though.
The .java classes go in mcp/src/net/minecraft/src. If you can't understand classes and the naming of them, you need to go and read up on Java programming.
Could you please answer the questions? I asked enough questions to start me on modding...I don't want to read a whole bunch of stuff on Java just to find info on classes. If I just know what I am looking for, I can claw myself the rest of the way.
My game crashes if I open creative menu and scroll to the bottom :/ I'll see if it occurs if I see the block naturally spawn.
EDIT: Nope, found the block, it didn't crash. I'll post my code in a sec. I think it's a problem with the creative code so I'll post my mod_ class. Tell me if you need anything else.
package net.minecraft.src;
import java.util.List;
import net.minecraft.client.Minecraft;
import java.util.Random;
public class mod_AlxMod extends BaseMod
{
public static final Block CraftiumOre = new CraftiumOre(128, 0).setBlockName("Craftium Ore").setHardness(3F).setResistance(5F);
public static final Block MiniumOre = new MiniumOre(129, 0).setBlockName("Minium Ore").setHardness(3F).setResistance(5F);
public static final Block Box = new Box(126).setBlockName("box").setHardness(2F).setResistance(3F);
public static final Block Peat = new Peat(127, 0).setBlockName("peat").setHardness(0.5F).setResistance(1F);
public static final Item Briquette = new Item(5000).setItemName("Briquette");
public static final Item MiniumBits = new Item(5001).setItemName("Bits of Minium");
public static final Item CraftiumBits = new Item(5002).setItemName("Bits of Craftium");
public static final Item MinecraftiumBits = new Item(5003).setItemName("Bits of Minecraftium");
public void load()
{
ModLoader.addName(MiniumOre, "Minium Ore");
ModLoader.addName(CraftiumOre, "Craftium Ore");
ModLoader.addName(Box, "Crate");
ModLoader.addName(Peat, "Peat");
ModLoader.addName(Briquette, "Briquette");
CraftiumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/craftium.png");
MiniumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/minium.png");
Box.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/box.png");
Peat.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/peat.png");
Briquette.iconIndex = ModLoader.addOverride("/gui/items.png", "/briquette.png");
MiniumBits.iconIndex = ModLoader.addOverride("/gui/items.png", "/miniumbits.png");
CraftiumBits.iconIndex = ModLoader.addOverride("/gui/items.png", "/craftiumbits.png");
MinecraftiumBits.iconIndex = ModLoader.addOverride("/gui/items.png", "/minecraftiumbits.png");
ModLoader.registerBlock(Box);
ModLoader.registerBlock(Peat);
ModLoader.registerTileEntity(net.minecraft.src.TileEntityBox.class, "box");
ModLoader.setInGUIHook(this, true, false);
ModLoader.setInGameHook(this, true, false);
ModLoader.addRecipe(new ItemStack(Box, 1), new Object[] {
"@£@", "£££", "@£@", Character.valueOf('@'), Block.planks, Character.valueOf('£'), Item.stick
});
ModLoader.addRecipe(new ItemStack(Briquette, 2), new Object[] {
"!!!", "!!!","!!!", Character.valueOf('!'), Peat
});
ModLoader.addShapelessRecipe(new ItemStack(MinecraftiumBits, 1), new Object[] {new ItemStack(MiniumBits,1), new ItemStack(CraftiumBits, 1)});
}
public int addFuel(int i, int j)
{
if(i == Briquette.shiftedIndex)
return 1200;
return 0;
}
public boolean onTickInGame(float f, Minecraft minecraft)
{
if(minecraft.currentScreen == null)
{
creativeInventory = null;
}
return true;
}
public boolean onTickInGUI(float f, Minecraft minecraft, GuiScreen guiscreen)
{
if((guiscreen instanceof GuiContainerCreative) && !(creativeInventory instanceof GuiContainerCreative) && !minecraft.theWorld.isRemote)
{
Container container = ((GuiContainer)guiscreen).inventorySlots;
List list = ((ContainerCreative)container).itemList;
int i = 0;
list.add(new ItemStack(Box, 1, i));
list.add(new ItemStack(Peat, 1, i));
list.add(new ItemStack(MiniumOre, 1, i));
list.add(new ItemStack(CraftiumOre, 1, i));
}
creativeInventory = guiscreen;
return true;
}
private static GuiScreen creativeInventory;
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 3; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(10);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(MiniumOre.blockID, 3)).generate(world, random, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < 3; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(20);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(CraftiumOre.blockID, 3)).generate(world, random, randPosX, randPosY, randPosZ);
}
BiomeGenBase biomegenbase = world.getWorldChunkManager().getBiomeGenAt(chunkX, chunkZ);
WorldGenPeat worldgenpeat = new WorldGenPeat(Peat.blockID);
if(biomegenbase instanceof BiomeGenSwamp)
{
for(int i = 0; i < 800; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(63);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenPeat(Peat.blockID)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
}
public String getVersion()
{
return "1.2.5";
}
}
You didn't register Minium and Craftium.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Your Mod_Medabots class shouldn't have the word "Mod" capitalized. It should just be "mod_Medabots".
[RESOLVED]
The error is in
and it is where the bold text is.
when i highlight over it, it says:
BLOCKNAME couldn't be resolved to a type
Create Class BLOCKNAME
Fix porject setup
please heglp
If your block has it's own class, your code would look like this:
That's because it would refer to the class (BlockGiacomo.java) you made for that block to get it's material type.
But if your block doesn't have any special properties beyond being a new block, (or doesn't have its own class) then your code should look something like this:
I hope that helps...
WorldGenTower:
Thank you! Can you tell me how the path works? In my image path there is, .addOverride("/terrain.png,"/lamb.png"); My imgae, lamb.png is on my Desktop. How do I write the path?
you need to put your image inside your minecraft.jar thats in mcp, after that you write your path like this '/FolderYourImageIsIn/lamb.png' and it should work!
To add it to the test environment (recompile/startclient testing), you need to put it in Your MCP Directory > bin > minecraft. For organizational purposes, it might be best to make a folder for this so that you can simply add more images to that. (Your MCP Directory > bin > minecraft > FolderName)
So, your would look like this:
Replace "FolderName" with whatever you like.
Your file isn't named the same thing as you have declared inside it.
You have probably forgotten to register a block.
Not taking requests
together they are powerful beyond imagination."
Well, I noticed that your
is a block, but you have it set to override the items texture...
I've also tried altering some of your other generation code to fit the flower, but I don't think I'm doing it right. I'm sorry if this is something you don't/won't cover. Any help would be appreciated.
My flower is already declared and all that. But at the moment, it's only possible to get it in creative. >.>
thats the worldflowergen.java BTW
so, from what i understand, your code should work,
just,
try this code
havent tested it, so it might not work
Change the output item in this line to just Deflesher:
It isn't created in Item so you don't reference to it being there. -->
Also, you can't use 87 as the id for your item. It is taken already.
together they are powerful beyond imagination."
Post the errors please.
I'm probably going to start making my dimension tomorrow. I'm fairly sure you can make it SMP. If I run into no problems or issues I will show you how to do it, probably won't make a tutorial for it yet.
together they are powerful beyond imagination."
You are missing a closing bracket in your TileEntityBox class. Check them and post the code if you can't find it.
together they are powerful beyond imagination."
Code:
It should work. Put up the generation rates temporarily just to test.
The class need to extend BaseMod.
together they are powerful beyond imagination."
That is correct. Download from here for the latest version though. The .java classes go in mcp/src/net/minecraft/src. If you can't understand classes and the naming of them, you need to go and read up on Java programming.
together they are powerful beyond imagination."
Could you please answer the questions? I asked enough questions to start me on modding...I don't want to read a whole bunch of stuff on Java just to find info on classes. If I just know what I am looking for, I can claw myself the rest of the way.
You didn't register Minium and Craftium.
together they are powerful beyond imagination."