Jump to content

Recommended Posts

Posted

From the sounds of it, this mod will be harder to use (with regards to making items) than Thaum or EE. It also sounds like the really high value and really low value items won't be able to be created.

You can make almost any item from essence, but not eveything can be made into essence.

  • Replies 112
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Ahhh, that sounds like a great way to keep the balance.

Exactly. Here's full list of item that can not be turned into essence:

Dirt

Cobblestone

Stone

Stone Bricks

Wood

Planks

Sticks

Ladders

Fences

Fence Gates

Trapdoors

Wooden Doors

Torches

Charcoal

Sand

Sandstone

Netherrack

Netherbrick

Soul Sand

Gravel

Flint

Feathers

Arrows

Leather

Eggs

Saplings

Apples

Seeds

Wheat

Cocoa Beans

Vines

Leaves

Melons

Melon Seeds

Pumpkins

Pumpkin Seeds

Sugar Cane

Paper

Books

Crafting Tables

Chests

Furnaces

Levers

Buttons

Wood Buttons

Wooden Pressure Plates

Stone Pressure Plates

Cobblestone Slabs

Wooden Slabs

Stone Slabs

Stone Brick Slabs

Sandstone Slabs

Cobblestone Stairs

Stone Stairs

Stone Brick Stairs

Sandstone Stairs

Wooden Stairs

String

Bows

Fishing Rods

Gunpowder

Bones

Rotten Flesh

Spider Eyes

Red Mushrooms

Brown Mushrooms

Mushroom Stew

Wooden Bowls

Glass

Glass Bottles

Nether Wart

Blaze Rods

Blaze Powder

Slime Balls

Magma Cream

Ghast Tears

Potions

Bottles of Water

Wool

Pork-chops

Steak

Chicken

Fish

Emeralds

Diamonds

Posted

no, it is in development try actually thinking first before you post

Unless he personally talked to GW about it, he has no real way to know whether he started coding or not.

  • 2 weeks later...
Posted

I've been having some issues with Eclipse and Java. I'm going to have to uninstall everything (Eclipse, MCP, Forge, and Java) reinstall it, and then try again. The whole process will take several hours, which, when you add the time needed to compile the code, means that I'm unfortunately gonna have to wait till tomorrow to upload. I can post the source code here for you guys, and let you mess around with it and try to compile it on your own. Most of this stuff hasn't been run through syntax checking yet, so you might want to put it through Eclipse and important any missing classes with ctrl+o.

Here's the source code. (Code is appended with the name of the class file)

This code goes into the Common folder in a package called greenwolf13.magecraft

MageCraft

package greenwolf13.magecraft;



import net.minecraft.src.Block;

import net.minecraft.src.CraftingManager;

import net.minecraft.src.CreativeTabs;

import net.minecraft.src.Item;

import net.minecraft.src.ItemStack;

import net.minecraft.src.Material;

import net.minecraftforge.common.ForgeHooks;

import net.minecraftforge.common.MinecraftForge;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.Init;

import cpw.mods.fml.common.Mod.Instance;

import cpw.mods.fml.common.Mod.PostInit;

import cpw.mods.fml.common.Mod.PreInit;

import cpw.mods.fml.common.SidedProxy;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.event.FMLPostInitializationEvent;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;



@Mod(modid="MageCraftCore", name="MageCraft", version="Alpha 0.1.0")

@NetworkMod(clientSideRequired=true, serverSideRequired=false)

public class MageCraft {

	private final static Item itemEssenceMageCraft = new MageCraftItem(26201, 64, CreativeTabs.tabMisc, 1, "itemEssenceMageCraft");

	private final static Item itemEssence2MageCraft = new MageCraftItem(26202, 64, CreativeTabs.tabMisc, 1, "itemEssence2MageCraft");

	private final static Item itemEssence3MageCraft = new MageCraftItem(26203, 64, CreativeTabs.tabMisc, 1, "itemEssence3MageCraft");

	private final static Item itemLeadIngotMageCraft = new MageCraftItem(26204, 64, CreativeTabs.tabMisc, 1, "itemLeadIngotMageCraft");

	private final static Item itemSilverIngotMageCraft = new MageCraftItem(26205, 64, CreativeTabs.tabMisc, 1, "itemSilverIngotMageCraft");

	private final static Item itemMithrilIngotMageCraft = new MageCraftItem(26206, 64, CreativeTabs.tabMisc, 1, "itemMithrilIngotMageCraft");

	private final static Item itemAdamantIngotMageCraft = new MageCraftItem(26207, 64, CreativeTabs.tabMisc, 1, "itemAdamantIngotMageCraft");

	private final static Item itemElectrumIngotMageCraft = new MageCraftItem(26208, 64, CreativeTabs.tabMisc, 1, "itemElectrumIngotMageCraft");

	private final static Item itemSaltpeterMageCraft = new MageCraftItem(26209, 64, CreativeTabs.tabMisc, 1, "itemSaltpeterMageCraft");

	private final static Item itemSulphurMageCraft = new MageCraftItem(26210, 64, CreativeTabs.tabMisc, 1, "itemSulphurMageCraft");

	private final static Item itemApatiteMageCraft = new MageCraftItem(26211, 64, CreativeTabs.tabMisc, 1, "itemApatiteMageCraft");

	private final static Item itemOnyxMageCraft = new MageCraftItem(26212, 64, CreativeTabs.tabMisc, 1, "itemOnyxMageCraft");

	private final static Item itemRubyMageCraft = new MageCraftItem(26213, 64, CreativeTabs.tabMisc, 1, "itemRubyMageCraft");

	private final static Item itemSapphireMageCraft = new MageCraftItem(26214, 64, CreativeTabs.tabMisc, 1, "itemSapphireMageCraft");

	private final static Item itemQuartzMageCraft = new MageCraftItem(26215, 64, CreativeTabs.tabMisc, 1, "itemQuartzMageCraft");

	private final static Item itemTopazMageCraft = new MageCraftItem(26216, 64, CreativeTabs.tabMisc, 1, "itemTopazMageCraft");

	private final static Item itemAmethystMageCraft = new MageCraftItem(26217, 64, CreativeTabs.tabMisc, 1, "itemAmethystMageCraft");

	private final static Item itemGarnetMageCraft = new MageCraftItem(26218, 64, CreativeTabs.tabMisc, 1, "itemGarnetMageCraft");

	private final static Item itemPotashMageCraft = new MageCraftItem(26219, 64, CreativeTabs.tabMisc, 1, "itemPotashMageCraft");

	private final static Item itemSulphurPowderMageCraft = new MageCraftItem(26220, 64, CreativeTabs.tabMisc, 1, "itemSulphurPowderMageCraft");

	private final static Item itemPhosphateMageCraft = new MageCraftItem(26221, 64, CreativeTabs.tabMisc, 1, "itemPhosphateMageCraft");

	private final static Item itemNetherPowderMageCraft = new MageCraftItem(26222, 64, CreativeTabs.tabMisc, 1, "itemNetherPowderMageCraft");

	private final static Item itemQuicklimeMageCraft = new MageCraftItem(26223, 64, CreativeTabs.tabMisc, 1, "itemQuicklimeMageCraft");

	private final static Item itemVitriolMageCraft = new MageCraftItem(26224, 1, CreativeTabs.tabMisc, 1, "itemVitriolMageCraft");

	itemVitriolMageCraft.setContainerItem(Item.glassBottle);

	private final static Item itemPhosphoricAcidMageCraft = new MageCraftItem(26225, 1, CreativeTabs.tabMisc, 1, "itemPhosphoricAcidMageCraft");

	itemPhosphoricAcidMageCraft.setContainerItem(Item.glassBottle);

	private final static Item itemBrimstoneMageCraft = new MageCraftItem(26226, 64, CreativeTabs.tabMisc, 1, "itemBrimstoneMageCraft");

	private final static Item itemMortarPestleMageCraft = new MageCraftItem(26227, 1, CreativeTabs.tabMisc, 1, "itemMortarPestleMageCraft");

	itemMortarPestleMageCraft.setContainerItem(itemMortarPestleMageCraft);

	private final static Item itemGreekFireMageCraft = new MageCraftItem(26228, 8, CreativeTabs.tabMisc, 1, "itemGreekFireMageCraft");

	private final static Item itemPrismMageCraft = new MageCraftItem(26229, 64, CreativeTabs.tabMisc, 1, "itemPrismMageCraft");

	private final static Item itemBlankScrollMageCraft = new MageCraftItem(26230, 64, CreativeTabs.tabMisc, 1, "itemBlankScrollMageCraft");

	private final static Item itemScrollMageCraft = new MageCraftItem(26231, 1, CreativeTabs.tabMisc, 1, "itemScrollMageCraft");

	private final static Item itemFocusMageCraft = new MageCraftItem(26232, 1, CreativeTabs.tabMisc, 1, "itemFocusMageCraft");

	private final static Item itemPhilospherStoneMageCraft = new MageCraftItem(26233, 1, CreativeTabs.tabMisc, 1, "itemPhilosopherStone");

	private final static Item itemCharlatanWandMageCraft = new MageCraftItem(26234, 1, CreativeTabs.tabMisc, 1, "itemCharlatanWandMageCraft");

	private final static Item itemScryingMirrorMageCraft = new MageCraftItem(26235, 1, CreativeTabs.tabMisc, 1, "itemScryingMirrorMageCraft");

	private final static Item itemExcaliburMageCraft = new MageCraftItem(26236, 1, CreativeTabs.tabMisc, 1, "itemExcaliburMageCraft");

	private final static Item itemMjolnirMageCraft = new MageCraftItem(26237, 1, CreativeTabs.tabMisc, 1, "itemMjolnirMageCraft");

	private final static Item itemMagicUrnMageCraft = new MageCraftItem(26238, 1, CreativeTabs.tabMisc, 1, "itemMagicUrnMageCraft");

	private final static Item itemCrystalManaMageCraft = new MageCraftItem(26239, 16, CreativeTabs.tabMisc, 1, "itemCrystalManaMageCraft");

	private final static Item itemMageJournalMageCraft = new MageCraftItem(26240, 1, CreativeTabs.tabMisc, 1, "itemMageJournalMageCraft");

	private final static Item itemManaCrystal1MageCraft = new MageCraftItem(26241, 1, CreativeTabs.tabMisc, 1, "itemManaCrystal1MageCraft");

	private final static Item itemManaCrystal2MageCraft = new MageCraftItem(26242, 1, CreativeTabs.tabMisc, 1, "itemManaCrystal2MageCraft");

	private final static Item itemManaCrystal3MageCraft = new MageCraftItem(26243, 1, CreativeTabs.tabMisc, 1, "itemManaCrystal3MageCraft");

	public final static Block blockLeadOreMageCraft = new MageCraftBlock(2621, 1, Material.rock, CreativeTabs.tabBlock, "blockLeadOreMageCraft") .setHardness(3F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockSilverOreMageCraft = new MageCraftBlock(2622, 1, Material.rock, CreativeTabs.tabBlock, "blockSilverOreMageCraft") .setHardness(3F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockOnyxOreMageCraft = new MageCraftOnyxOreBlock(2623, 1, Material.rock, CreativeTabs.tabBlock, "blockOnyxOreMageCraft") .setHardness(3F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockRubyOreMageCraft = new MageCraftRubyOreBlock(2624, 1, Material.rock, CreativeTabs.tabBlock, "blockRubyOreMageCraft") .setHardness(3F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockSapphireOreMageCraft = new MageCraftSapphireOreBlock(2625, 1, Material.rock, CreativeTabs.tabBlock, "blockSapphireOreMageCraft") .setHardness(3F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockQuartzOreMageCraft = new MageCraftQuartzOreBlock(2626, 1, Material.rock, CreativeTabs.tabBlock, "blockQuartzOreMageCraft") .setHardness(3F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockTopazOreMageCraft = new MageCraftTopazOreBlock(2627, 1, Material.rock, CreativeTabs.tabBlock, "blockTopazOreMageCraft") .setHardness(3F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockAmethystOreMageCraft = new MageCraftAmethystOreBlock(2628, 1, Material.rock, CreativeTabs.tabBlock, "blockAmethystOreMageCraft") .setHardness(3F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockGarnetOreMageCraft = new MageCraftGarnetOreBlock(2629, 1, Material.rock, CreativeTabs.tabMisc, "blockGarnetOreMageCraft") .setHardness(3F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockSaltpeterOreMageCraft = new MageCraftSaltpeterOreBlock(2630, 1, Material.rock, CreativeTabs.tabBlock, "blockSaltpeterOreMageCraft") .setHardness(3F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockApatiteOreMageCraft = new MageCraftApatiteOreBlock(2631, 1, Material.rock, CreativeTabs.tabBlock, "blockApatiteOreMageCraft") .setHardness(3F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockSulphurOreMageCraft = new MageCraftSulphurOreBlock(2632, 1, Material.rock, CreativeTabs.tabBlock, "blockSulphurOreMageCraft") .setHardness(3F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockLimestoneOreMageCraft = new MageCraftBlock(2633, 1, Material.rock, CreativeTabs.tabBlock, "blockLimestoneOreMageCraft") .setHardness(3F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockAlchemistWorktableMageCraft = new MageCraftBlock(2634, 1, Material.wood, CreativeTabs.tabBlock, "blockAlchemistWorktableMageCraft") .setHardness(2.5F).setStepSound(Block.soundWoodFootstep);

	public final static Block blockWritingDeskMageCraft = new MageCraftBlock(2635, 1, Material.wood, CreativeTabs.tabBlock, "blockWritingDeskMageCraft") .setHardness(2.5F).setStepSound(Block.soundWoodFootstep);

	public final static Block blockArcaneInfuserMageCraft = new MageCraftBlock(2636, 1, Material.rock, CreativeTabs.tabBlock, "blockArcaneInfuserMageCraft") .setHardness(3.5F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockSteamInfuserMageCraft = new MageCraftBlock(2637, 1, Material.rock, CreativeTabs.tabBlock, "blockSteamInfuserMageCraft") .setHardness(3.5F).setStepSound(Block.soundStoneFootstep);

	public final static Block blockGreekFireMageCraft = new MageCraftBlock(2638, 1, Material.glass, CreativeTabs.tabBlock, "blockGreekFireMageCraft") .setHardness(0.3F).setStepSound(Block.soundGlassFootstep);



	@Instance("MageCraftCore")

	public static MageCraft instance;

	

	@SidedProxy(clientSide="greenwolf13.magecraft.client.ClientProxy", serverSide="greenwolf13.magecraft.CommonProxy")

	public static CommonProxy proxy;

	

	@PreInit

	public void preInit(FMLPreInitializationEvent event) {

	}

	

	@Init

	public void load(FMLInitializationEvent event) {

		GameRegistry.addShapelessRecipe(new ItemStack(itemPotashMageCraft, 1), new ItemStack(itemMortarPestleMageCraft), new ItemStack(itemSaltpeterMageCraft));

		GameRegistry.addShapelessRecipe(new ItemStack(itemSulphurPowderMageCraft, 1), new ItemStack(itemMortarPestleMageCraft), new ItemStack(itemSulphurMageCraft));

		GameRegistry.addShapelessRecipe(new ItemStack(itemPhosphateMageCraft, 1), new ItemStack(itemMortarPestleMageCraft), new ItemStack(itemApatiteMageCraft));

		GameRegistry.addShapelessRecipe(new ItemStack(itemNetherPowderCraft, 1), new ItemStack(itemMortarPestleMageCraft), new ItemStack(Block.hellrock));

		GameRegistry.addShapelessRecipe(new ItemStack(itemVitriolMageCraft, 1), new ItemStack(itemPotashMageCraft), new ItemStack(itemSulphurPowderMageCraft), new ItemStack(Item.potion));

		GameRegistry.addShapelessRecipe(new ItemStack(itemPhosphoricAcidMageCraft, 1), new ItemStack(itemPhosphateMageCraft), new ItemStack(Item.potion));

		GameRegistry.addShapelessRecipe(new ItemStack(itemBrimstoneMageCraft, 1), new ItemStack(itemSulphurPowderMageCraft), new ItemStack(itemPhosphateMageCraft), new ItemStack(itemNetherPowderMageCraft));

		GameRegistry.addShapelessRecipe(new ItemStack(itemMortarPestleMageCraft, 1), new ItemStack(Item.stick), new ItemStack(Item.bowl));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 1), new ItemStack(itemVitriolMageCraft), new ItemStack(item.ingotIron));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 1), new ItemStack(itemPhosphoricAcidMageCraft), new ItemStack(item.ingotIron));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 1), new ItemStack(itemVitriolMageCraft), new ItemStack(item.coal), new ItemStack(item.coal));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 1), new ItemStack(itemPhosphoricAcidMageCraft), new ItemStack(item.coal), new ItemStack(item.coal));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 2), new ItemStack(itemVitriolMageCraft), new ItemStack(itemLeadIngotMageCraft));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 2), new ItemStack(itemPhosphoricAcidMageCraft), new ItemStack(itemLeadIngotMageCraft));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 3), new ItemStack(itemVitriolMageCraft), new ItemStack(itemSilverIngotMageCraft));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 3), new ItemStack(itemPhosphoricAcidMageCraft), new ItemStack(itemSilverIngotMageCraft));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 4), new ItemStack(itemVitriolMageCraft), new ItemStack(itemElectrumIngotMageCraft));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 4), new ItemStack(itemPhosphoricAcidMageCraft), new ItemStack(itemElectrumIngotMageCraft));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 5), new ItemStack(itemVitriolMageCraft), new ItemStack(item.ingotGold));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 5), new ItemStack(itemPhosphoricAcidMageCraft), new ItemStack(item.ingotGold));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 6), new ItemStack(itemVitriolMageCraft), new ItemStack(itemMithrilIngotMageCraft));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 6), new ItemStack(itemPhosphoricAcidMageCraft), new ItemStack(itemMithrilIngotMageCraft));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 7), new ItemStack(itemVitriolMageCraft), new ItemStack(itemAdamantIngotMageCraft));

		GameRegistry.addShapelessRecipe(new ItemStack(itemEssenceMageCraft, 7), new ItemStack(itemPhosphoricAcidMageCraft), new ItemStack(itemAdamantIngotMageCraft));

		GameRegistry.addRecipe(new ItemStack(item.ingotIron, 1), "x  ", "   ", "   ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(itemLeadIngotMageCraft, 1), "xx ", "   ", "   ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(itemSilverIngotMageCraft, 1), "xxx", "   ", "   ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(itemElectrumIngotMageCraft, 1), "xxx", "x  ", "   ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(item.ingotGold, 1), "xxx", "xx ", "   ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(itemMithrilIngotMageCraft, 1), "xxx", "xxx", "   ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(itemAdamantIngotMageCraft, 1), "xxx", "xxx", "x  ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(item.diamond, 1), "xxx", "xxx", "xxx", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(item.coal, 2), "   ", "   ", "  x", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(item.emerald, 1), "xxx", "xxx", "xx ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(itemRubyMageCraft, 1), "xxx", "xxx", "x x", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(item.SapphireMageCraft, 1), "xxx", "xxx", " xx", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(itemQuartzMageCraft, 1), "xxx", "xx ", "xxx", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(item.enderPearl, 1), "xxx", "x x", "xxx", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(item.appleGold, 1), "xxx", " xx", "xxx", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(item.carrotGolden, 1), "xx ", "xxx", "xxx", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(item.bucketLava, 1), "x x", "xxx", "xxx", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(item.mycel, 1), " xx", "xxx", "xxx", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(block.hellrock, 32), " x ", "   ", "   ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(block.stonebrick, 32), "  x", "   ", "   ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(block.sand, 16), "   ", "x  ", "   ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(block.gravel, 16), "   ", " x ", "   ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(block.log, 8), "   ", "  x", "   ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(block.stoneMoss, 1), "   ", "   ", "x  ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(block.hellsand, 16), "   ", "   ", " x ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(item.yellowDust, 1), "x x", "   ", "   ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.addRecipe(new ItemStack(item.diamond, 1), "x  ", "x  ", "   ", 'x', new ItemStack(itemEssenceMageCraft));

		GameRegistry.registerBlock(blockLeadOreMageCraft);

		GameRegistry.registerBlock(blockSilverOreMageCraft);

		GameRegistry.registerBlock(blockOnyxOreMageCraft);

		GameRegistry.registerBlock(blockRubyOreMageCraft);

		GameRegistry.registerBlock(blockSapphireOreMageCraft);

		GameRegistry.registerBlock(blockQuartzOreMageCraft);

		GameRegistry.registerBlock(blockTopazOreMageCraft);

		GameRegistry.registerBlock(blockAmethystOreMageCraft);

		GameRegistry.registerBlock(blockGarnetMageCraft);

		GameRegistry.registerBlock(blockSaltpeterOreMageCraft);

		GameRegistry.registerBlock(blockApatiteOreMageCraft);

		GameRegistry.registerBlock(blockSulphurOreMageCraft);

		GameRegistry.registerBlock(blockLimestoneOreMageCraft);

		GameRegistry.registerBlock(blockAlchemistWorktableMageCraft);

		GameRegistry.registerBlock(blockWritingDeskMageCraft);

		GameRegistry.registerBlock(blockArcaneInfuserMageCraft);

		GameRegistry.registerBlock(blockHeatInfuserMageCraft);

		GameRegistry.registerBlock(blockGreekFireMageCraft);

		MinecraftForge.setBlockHarvestLevel(blockLeadOreMageCraft, "pickaxe", 2);

		MinecraftForge.setBlockHarvestLevel(blockSilverOreMageCraft, "pickaxe", 2);

		MinecraftForge.setBlockHarvestLevel(blockOnyxOreMageCraft, "pickaxe", 2);

		MinecraftForge.setBlockHarvestLevel(blockRubyOreMageCraft, "pickaxe", 2);

		MinecraftForge.setBlockHarvestLevel(blockSapphireOreMageCraft, "pickaxe", 2);

		MinecraftForge.setBlockHarvestLevel(blockQuartzOreMageCraft, "pickaxe", 2);

		MinecraftForge.setBlockHarvestLevel(blockTopazOreMageCraft, "pickaxe", 2);

		MinecraftForge.setBlockHarvestLevel(blockAmethystOreMageCraft, "pickaxe", 2);

		MinecraftForge.setBlockHarvestLevel(blockGarnetOreMageCraft, "pickaxe", 2);

		MinecraftForge.setBlockHarvestLevel(blockSaltpeterOreMageCraft, "pickaxe", 0);

		MinecraftForge.setBlockHarvestLevel(blockApatiteOreMageCraft, "pickaxe", 0);

		MinecraftForge.setBlockHarvestLevel(blockSulphurOreMageCraft, "pickaxe", 0);

		MinecraftForge.setBlockHarvestLevel(blockLimestoneOreMageCraft, "pickaxe", 0);

		LanguageRegistry.addName(blockLeadOreMageCraft, "Lead Ore");

		LanguageRegistry.addName(blockSilverOreMageCraft, "Silver Ore");

		LanguageRegistry.addName(blockOnyxOreMageCraft, "Onyx Ore");

		LanguageRegistry.addName(blockRubyOreMageCraft, "Ruby Ore");

		LanguageRegistry.addName(blockSapphireOreMageCraft, "Sapphire Ore");

		LanguageRegistry.addName(blockQuartzOreMageCraft, "Quartz Ore");

		LanguageRegistry.addName(blockTopazOreMageCraft, "Topaz Ore");

		LanguageRegistry.addName(blockAmethystOreMageCraft, "Amethyst Ore");

		LanguageRegistry.addName(blockGarnetOreMageCraft, "Garnet Ore");

		LanguageRegistry.addName(blockSaltpeterOreMageCraft, "Saltpeter Crystal");

		LanguageRegistry.addName(blockApatiteOreMageCraft, "Apatite Crystal");

		LanguageRegistry.addName(blockSulphurOreMageCraft, "Sulphur Crystal");

		LanguageRegistry.addName(blockLimestoneOreMageCraft, "Limestone");

		LanguageRegistry.addName(blockAlchmistWorktableMageCraft, "Alchemist Worktable");

		LanguageRegistry.addName(blockWritingDeskMageCraft, "Writing Desk");

		LanguageRegistry.addName(blockArcaneInfuserMageCraft, "Arcane Infuser");

		LanguageRegistry.addName(blockHeatInfuserMageCraft, "Thermionic Infuser");

		LanguageRegistry.addName(blockGreekFireMageCraft, "Greek Fire");

		LanguageRegistry.addName(itemEssenceMageCraft, "Low Essence");

		LanguageRegistry.addName(itemEssence2MageCraft, "Medium Essence");

		LanguageRegistry.addName(itemEssence3MageCraft, "High Essence");

		LanguageRegistry.addName(itemLeadIngotMageCraft, "Lead Ingot");

		LanguageRegistry.addName(itemSilverIngotMageCraft, "Silver Ingot");

		LanguageRegistry.addName(itemMithrilIngotMageCraft, "Mithril Ingot");

		LanguageRegistry.addName(itemAdamantIngotMageCraft, "Adamant Ingot");

		LanguageRegistry.addName(itemElectrumIngotMageCraft, "Electrum Ingot");

		LanguageRegistry.addName(itemSaltpeterMageCraft, "Saltpeter");

		LanguageRegistry.addName(itemSulphurMageCraft, "Sulphur");

		LanguageRegistry.addName(itemApatiteMageCraft, "Apatite");

		LanguageRegistry.addName(itemOnyxMageCraft, "Onyx");

		LanguageRegistry.addName(itemRubyMageCraft, "Ruby");

		LanguageRegistry.addName(itemSapphireMageCraft, "Sapphire");

		LanguageRegistry.addName(itemQuartzMageCraft, "Quartz");

		LanguageRegistry.addName(itemTopazMageCraft, "Topaz");

		LanguageRegistry.addName(itemAmethystMageCraft, "Amethyst");

		LanguageRegistry.addName(itemGarnetMageCraft, "Garnet");

		LanguageRegistry.addName(itemPotashMageCraft, "Nitrate of Potash");

		LanguageRegistry.addName(itemSulphurPowderMageCraft, "Sulphur Powder");

		LanguageRegistry.addName(itemPhosphateMageCraft, "Phosphate");

		LanguageRegistry.addName(itemNetherPowderMageCraft, "Nether Powder");

		LanguageRegistry.addName(itemQuicklimeMageCraft, "Quicklime");

		LanguageRegistry.addName(itemVitriolMageCraft, "Oil of Vitriol");

		LanguageRegistry.addName(itemPhosphoricAcidMageCraft, "Phosphoric Acid");

		LanguageRegistry.addName(itemBrimstoneMageCraft, "Brimstone");

		LanguageRegistry.addName(itemMortarPestleMageCraft, "Mortar and Pestle");

		LanguageRegistry.addName(itemGreekFireMageCraft, "Greek Fire");

		LanguageRegistry.addName(itemPrismMageCraft, "Prism");

		LanguageRegistry.addName(itemBlankScrollMageCraft, "Blank Scroll");

		LanguageRegistry.addName(itemScrollMageCraft, "Scroll");

		LanguageRegistry.addName(itemFocusMageCraft, "Focus");

		LanguageRegistry.addName(itemPhilospherStoneMageCraft, "Philosopher's Stone");

		LanguageRegistry.addName(itemCharlatanWandMageCraft, "Charlatan's Wand");

		LanguageRegistry.addName(itemScryingMirrorMageCraft, "Dr. John Dee's Scrying Mirror");

		LanguageRegistry.addName(itemExcaliburMageCraft, "Excalibur");

		LanguageRegistry.addName(itemMjolnirMageCraft, "Mjölnir");

		LanguageRegistry.addName(itemMagicUrnMageCraft, "Magic Urn");

		LanguageRegistry.addName(itemCrystalManaMageCraft, "Crystalized Mana Star");

		LanguageRegistry.addName(itemMageJournalMageCraft, "Mage Journal");

		LanguageRegistry.addName(blockManaCrystal1MageCraft, "Low Mana Crystal");

		LanguageRegistry.addName(blockManaCrystal2MageCraft, "Medium Mana Crystal");

		LanguageRegistry.addName(blockManaCrystal3MageCraft, "High Mana Crystal");

		proxy.registerRenderers();

		GameRegistry.registerWorldGenerator(new WorldgeneratorMageCraft());

	}

	

	@PostInit

	public void postInit(FMLPostInitializationEvent event) {

	}

}





WorldgeneratorMageCraft

(Special thanks to SimpleGuy for cleaning up the preexisting world gen code.)

package greenwolf13.magecraft;

 

import java.util.Random;

 

import net.minecraft.src.IChunkProvider;

import net.minecraft.src.World;

import net.minecraft.src.WorldGenMinable;

import cpw.mods.fml.common.IWorldGenerator;

 

public class WorldgeneratorMageCraft implements IWorldGenerator {

        private static final int SHALLOW = 60;

        private static final int DEEP = 30;

        private static final int CHUNK_SIZE = 16;

 

        public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {

                switch (world.provider.dimensionId) {

                        case -1:

                                generateNether(world, random, chunkX*CHUNK_SIZE, chunkZ*CHUNK_SIZE);

                                break;

                        case 0:

                                generateSurface(world, random, chunkX*CHUNK_SIZE, chunkZ*CHUNK_SIZE);

                                break;

                }

        }

 

        private void generateSurface(World world, Random random, int blockX, int blockZ) {

                (new WorldGenMinable(blockLeadOreMageCraft.2621, 10)).generate(world, random, blockX + random.nextInt(CHUNK_SIZE), random.nextInt(SHALLOW), blockZ + random.nextInt(CHUNK_SIZE));

                (new WorldGenMinable(blockSilverOreMageCraft.2622, 5)).generate(world, random, blockX + random.nextInt(CHUNK_SIZE), random.nextInt(DEEP), blockZ + random.nextInt(CHUNK_SIZE));

                (new WorldGenMinable(blockOnyxOreMageCraft.2623, 10)).generate(world, random, blockX + random.nextInt(CHUNK_SIZE), random.nextInt(SHALLOW), blockZ + random.nextInt(CHUNK_SIZE));

                (new WorldGenMinable(blockRubyOreMageCraft.2624, 10)).generate(world, random, blockX + random.nextInt(CHUNK_SIZE), random.nextInt(SHALLOW), blockZ + random.nextInt(CHUNK_SIZE));

                (new WorldGenMinable(blockSapphireOreMageCraft.2625, 10)).generate(world, random, blockX + random.nextInt(CHUNK_SIZE), random.nextInt(SHALLOW), blockZ + random.nextInt(CHUNK_SIZE));

                (new WorldGenMinable(blockQuartzOreMageCraft.2626, 10)).generate(world, random, blockX + random.nextInt(CHUNK_SIZE), random.nextInt(SHALLOW), blockZ + random.nextInt(CHUNK_SIZE));

                (new WorldGenMinable(blockTopazOreMageCraft.2627, 10)).generate(world, random, blockX + random.nextInt(CHUNK_SIZE), random.nextInt(SHALLOW), blockZ + random.nextInt(CHUNK_SIZE));

                (new WorldGenMinable(blockAmethystOreMageCraft.2628, 10)).generate(world, random, blockX + random.nextInt(CHUNK_SIZE), random.nextInt(SHALLOW), blockZ + random.nextInt(CHUNK_SIZE));

                (new WorldGenMinable(blockGarnetOreMageCraft.2629, 10)).generate(world, random, blockX + random.nextInt(CHUNK_SIZE), random.nextInt(SHALLOW), blockZ + random.nextInt(CHUNK_SIZE));

                (new WorldGenMinable(blockSaltpeterOreMageCraft.26DEEP, 10)).generate(world, random, blockX + random.nextInt(CHUNK_SIZE), random.nextInt(SHALLOW), blockZ + random.nextInt(CHUNK_SIZE));

                (new WorldGenMinable(blockApatiteOreMageCraft.2631, 10)).generate(world, random, blockX + random.nextInt(CHUNK_SIZE), random.nextInt(SHALLOW), blockZ + random.nextInt(CHUNK_SIZE));

                (new WorldGenMinable(blockSulphurOreMageCraft.2632, 10)).generate(world, random, blockX + random.nextInt(CHUNK_SIZE), random.nextInt(SHALLOW), blockZ + random.nextInt(CHUNK_SIZE));

                (new WorldGenMinable(blockLimestoneOreMageCraft.2633, 10)).generate(world, random, blockX + random.nextInt(CHUNK_SIZE), random.nextInt(SHALLOW), blockZ + random.nextInt(CHUNK_SIZE));

        }

 

        private void generateNether(World world, Random random, int blockX, int blockZ) {

 

        }

}





MageCraftItem



package greenwolf13.magecraft;



import net.minecraft.src.Item;



public class MageCraftItem extends Item {

	

	public MageCraftItem(int id, int maxStackSize, CreativeTabs tab, int texture, String name) {

		super(id);

		setMaxStackSize(maxStackSize);

		setCreativeTab(tab);

		setIconIndex(texture);

		setItemName(name);

		}



	}



}





MageCraftBlock





package greenwolf13.magecraft;



import net.minecraft.src.Block;

import net.minecraft.src.Material;



public class MageCraftBlock extends Block {



	public MageCraftBlock (int id, int texture, Material material, CreativeTabs tab, String name,) {

		super(id, texture, material);

		setCreativeTab(tab);

		setBlockName(name);

	}

	

	@Override

	public String getTextureFile () {

		return CommonProxy.BLOCK_PNG;

	}



}





CommonProxy





package greenwolf13.magecraft;



public class CommonProxy {

	public static String ITEMS_PNG = "/greenwolf13/magecraft/items.png";

	public static String BLOCK_PNG = "/greenwolf13/magecraft/block.png";

	

	

	public void registerRenderers() {

		

	}

}





MageCraftSulphurOreBlock





package greenwolf13.magecraft;



import net.minecraft.src.Block;

import net.minecraft.src.Material;



public class MageCraftSulphurOreBlock extends Block {



	public MageCraftBlock (int id, int texture, Material material, CreativeTabs tab, String name,) {

		super(id, texture, material);

		setCreativeTab(tab);

		setBlockName(name);

	}

	

	@Override

	public String getTextureFile () {

		return CommonProxy.BLOCK_PNG;

	}



	public int idDropped(int par1, Random random, int par2) {

		return MageCraft.itemSulphurMageCraft.shiftedIndex;

	}



}





MageCraftApatiteOreBlock





package greenwolf13.magecraft;



import net.minecraft.src.Block;

import net.minecraft.src.Material;



public class MageCraftApatiteOreBlock extends Block {



	public MageCraftBlock (int id, int texture, Material material, CreativeTabs tab, String name,) {

		super(id, texture, material);

		setCreativeTab(tab);

		setBlockName(name);

	}

	

	@Override

	public String getTextureFile () {

		return CommonProxy.BLOCK_PNG;

	}



	public int idDropped(int par1, Random random, int par2) {

		return MageCraft.itemApatiteMageCraft.shiftedIndex;

	}



}





MageCraftSaltpeterOreBlock





package greenwolf13.magecraft;



import net.minecraft.src.Block;

import net.minecraft.src.Material;



public class MageCraftApatiteOreBlock extends Block {



	public MageCraftBlock (int id, int texture, Material material, CreativeTabs tab, String name,) {

		super(id, texture, material);

		setCreativeTab(tab);

		setBlockName(name);

	}

	

	@Override

	public String getTextureFile () {

		return CommonProxy.BLOCK_PNG;

	}



	public int idDropped(int par1, Random random, int par2) {

		return MageCraft.itemApatiteMageCraft.shiftedIndex;

	}



}





MageCraftRubyOreBlock



package greenwolf13.magecraft;



import net.minecraft.src.Block;

import net.minecraft.src.Material;



public class MageCraftRubyOreBlock extends Block {



	public MageCraftBlock (int id, int texture, Material material, CreativeTabs tab, String name,) {

		super(id, texture, material);

		setCreativeTab(tab);

		setBlockName(name);

	}

	

	@Override

	public String getTextureFile () {

		return CommonProxy.BLOCK_PNG;

	}



	public int idDropped(int par1, Random random, int par2) {

		return MageCraft.itemRubyMageCraft.shiftedIndex;

	}



}





MageCraftOnyxOreBlock



package greenwolf13.magecraft;



import net.minecraft.src.Block;

import net.minecraft.src.Material;



public class MageCraftOnyxOreBlock extends Block {



	public MageCraftBlock (int id, int texture, Material material, CreativeTabs tab, String name,) {

		super(id, texture, material);

		setCreativeTab(tab);

		setBlockName(name);

	}

	

	@Override

	public String getTextureFile () {

		return CommonProxy.BLOCK_PNG;

	}



	public int idDropped(int par1, Random random, int par2) {

		return MageCraft.itemOnyxMageCraft.shiftedIndex;

	}





}





MageCraftSapphireOreBlock



package greenwolf13.magecraft;



import net.minecraft.src.Block;

import net.minecraft.src.Material;



public class MageCraftSapphireOreBlock extends Block {



	public MageCraftBlock (int id, int texture, Material material, CreativeTabs tab, String name,) {

		super(id, texture, material);

		setCreativeTab(tab);

		setBlockName(name);

	}

	

	@Override

	public String getTextureFile () {

		return CommonProxy.BLOCK_PNG;

	}



	public int idDropped(int par1, Random random, int par2) {

		return MageCraft.itemSapphireMageCraft.shiftedIndex;

	}



}





MageCraftQuartzOreBlock



package greenwolf13.magecraft;



import net.minecraft.src.Block;

import net.minecraft.src.Material;



public class MageCraftQuartzOreBlock extends Block {



	public MageCraftBlock (int id, int texture, Material material, CreativeTabs tab, String name,) {

		super(id, texture, material);

		setCreativeTab(tab);

		setBlockName(name);

	}

	

	@Override

	public String getTextureFile () {

		return CommonProxy.BLOCK_PNG;

	}



	public int idDropped(int par1, Random random, int par2) {

		return MageCraft.itemQuartzMageCraft.shiftedIndex;

	}



}





MageCraftTopazOreBlock



package greenwolf13.magecraft;



import net.minecraft.src.Block;

import net.minecraft.src.Material;



public class MageCraftTopazOreBlock extends Block {



	public MageCraftBlock (int id, int texture, Material material, CreativeTabs tab, String name,) {

		super(id, texture, material);

		setCreativeTab(tab);

		setBlockName(name);

	}

	

	@Override

	public String getTextureFile () {

		return CommonProxy.BLOCK_PNG;

	}



	public int idDropped(int par1, Random random, int par2) {

		return MageCraft.itemTopazMageCraft.shiftedIndex;

	}



}





MageCraftAmethystOreBlock



package greenwolf13.magecraft;



import net.minecraft.src.Block;

import net.minecraft.src.Material;



public class MageCraftAmethystOreBlock extends Block {



	public MageCraftBlock (int id, int texture, Material material, CreativeTabs tab, String name,) {

		super(id, texture, material);

		setCreativeTab(tab);

		setBlockName(name);

	}

	

	@Override

	public String getTextureFile () {

		return CommonProxy.BLOCK_PNG;

	}



	public int idDropped(int par1, Random random, int par2) {

		return MageCraft.itemAmethystMageCraft.shiftedIndex;

	}



}





MageCraftGarnetOreBlock



package greenwolf13.magecraft;



import net.minecraft.src.Block;

import net.minecraft.src.Material;



public class MageCraftGarnetOreBlock extends Block {



	public MageCraftBlock (int id, int texture, Material material, CreativeTabs tab, String name,) {

		super(id, texture, material);

		setCreativeTab(tab);

		setBlockName(name);

	}

	

	@Override

	public String getTextureFile () {

		return CommonProxy.BLOCK_PNG;

	}



	public int idDropped(int par1, Random random, int par2) {

		return MageCraft.itemGarnetMageCraft.shiftedIndex;

	}



}







Then the files that go in the src folder in the package greenwolf13.magecraft.client



ClientProxy



package greenwolf13.magecraft.client;



import net.minecraftforge.client.MinecraftForgeClient;

import greenwolf13.magecraft.CommonProxy;



public class ClientProxy extends CommonProxy {

	public void registerRenderers () {

		MinecraftForgeClient.preloadTexture(ITEMS_PNG);

		MinecraftForgeClient.preloadTexture(BLOCK_PNG);

	}

}

Just a quick note. None of the items or blocks are textured yet (I have textures for some of the blocks, but I haven't uploaded them yet. Also, the Essence crafting recipes are temporary, and all the ore spawn (except for silver) is set the same. If you guys compile it and run it, give me some feedback on the ore spawn rate (i.e. it's too high, it's too low, it's fine).

Posted

Greenwolf, you should really get a GitHub going to help provide some sort of version control history. It'll also make it easier for you to keep your code safe in case your tablet goes boom boom.

It's relatively straightforward to learn, and once you get the eclipse plugin makes developing really smooth with a small learning curve.

Posted

Greenwolf, you should really get a GitHub going to help provide some sort of version control history. It'll also make it easier for you to keep your code safe in case your tablet goes boom boom.

It's relatively straightforward to learn, and once you get the eclipse plugin makes developing really smooth with a small learning curve.

*cough* https://github.com/MageCraft-Development *cough* This damn cold just won't go away!

He hasn't added anything yet, but it is there

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements

  • Anything claiming to be official Technic servers are not allowed here, for obvious reasons



×
×
  • Create New...