Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mods.crystalia.common;
- import java.lang.reflect.Proxy;
- import net.minecraft.block.Block;
- import net.minecraft.block.material.Material;
- import net.minecraft.item.EnumArmorMaterial;
- import net.minecraft.item.EnumToolMaterial;
- import net.minecraft.item.Item;
- import net.minecraft.item.ItemArmor;
- import net.minecraft.item.ItemStack;
- import net.minecraftforge.common.EnumHelper;
- import cpw.mods.fml.common.Mod;
- import cpw.mods.fml.common.Mod.Init;
- import cpw.mods.fml.common.SidedProxy;
- import cpw.mods.fml.common.event.FMLInitializationEvent;
- import cpw.mods.fml.common.network.NetworkMod;
- import cpw.mods.fml.common.registry.GameRegistry;
- import cpw.mods.fml.common.registry.LanguageRegistry;
- @Mod(modid = "Crystalia", name = "Crystalia", version = "Pre-Alpha 0.0.3")
- @NetworkMod(clientSideRequired = true, serverSideRequired = false)
- public class Crystalia {
- @SidedProxy(clientSide = "mods.crystalia.common.ClientProxy", serverSide = "mods.crystalia.common.ServerProxy")
- public static ServerProxy proxy;
- //Blocks start here
- public static Block baconiteOre;
- int baconiteOreID = 3000;
- public static Block sapphireOre;
- int sapphireOreID = 3001;
- //Items start here
- public static Item baconiteIngot;
- public static Item cloth;
- public static Item blueCloth;
- public static Item greenCloth;
- public static Item redCloth;
- public static Item yellowCloth;
- public static Item brownCloth;
- public static Item blackCloth;
- public static Item sapphire;
- public static Item ruby;
- //tools start here
- public static Item baconiteBow;
- public static Item pickBaconite;
- public static Item axeBaconite;
- public static Item swordBaconite;
- public static Item hoeBaconite;
- public static Item shovelBaconite;
- //armor starts here
- public static Item baconiteHelmet;
- public static Item baconiteChestplate;
- public static Item baconiteLeggings;
- public static Item baconiteBoots;
- @Init
- public void load(FMLInitializationEvent event){
- proxy.registerRenderThings();
- baconiteOre = new BlockBaconiteOre(baconiteOreID, Material.iron).setUnlocalizedName("tilebaconiteore").setHardness(3.0F);
- sapphireOre = new BlockSapphireOre(sapphireOreID, Material.iron).setUnlocalizedName("tilesapphireore").setHardness(3.0F);
- GameRegistry.registerWorldGenerator(new WorldGeneratorCrystalia());
- GameRegistry.registerBlock(baconiteOre, "baconiteore");
- GameRegistry.registerBlock(sapphireOre, "sapphireore");
- LanguageRegistry.addName(baconiteOre, "Baconite Ore");
- LanguageRegistry.addName(sapphireOre, "Sapphire Ore");
- baconiteIngot = new ItemBaconiteIngot(5000).setUnlocalizedName("baconiteIngot");
- LanguageRegistry.addName(baconiteIngot, "Baconite Ingot");
- sapphire = new ItemSapphire(5008).setUnlocalizedName("sapphire");
- LanguageRegistry.addName(sapphire, "Sapphire");
- ruby = new ItemRuby(5016).setUnlocalizedName("ruby");
- LanguageRegistry.addName(ruby, "Ruby");
- //cloth starts here. SO MUCH CLOTH!!!
- redCloth = new ItemRedCloth(5004).setUnlocalizedName("redCloth");
- cloth = new ItemCloth(5001).setUnlocalizedName("cloth");
- greenCloth = new ItemGreenCloth(5003).setUnlocalizedName("greenCloth");
- blueCloth = new ItemBlueCloth(5002).setUnlocalizedName("blueCloth");
- yellowCloth = new ItemYellowCloth(5005).setUnlocalizedName("yellowCloth");
- blackCloth = new ItemBlackCloth(5006).setUnlocalizedName("blackCloth");
- brownCloth = new ItemBrownCloth(5007).setUnlocalizedName("brownCloth");
- LanguageRegistry.addName(cloth, "Cloth");
- LanguageRegistry.addName(blueCloth, "Blue Cloth");
- LanguageRegistry.addName(greenCloth, "Green Cloth");
- LanguageRegistry.addName(redCloth, "Red Cloth");
- LanguageRegistry.addName(yellowCloth, "Yellow Cloth");
- LanguageRegistry.addName(blackCloth, "Black Cloth");
- LanguageRegistry.addName(brownCloth, "Brown Cloth");
- //Smelting!!
- GameRegistry.addSmelting(baconiteOreID, new ItemStack (baconiteIngot), 0.1f);
- //Crafting
- GameRegistry.addRecipe(new ItemStack(baconiteChestplate, 1), new Object[] {
- "T T", "TTT", "TTT", 'T', baconiteIngot
- });
- //tools
- baconiteBow = new BaconiteBow(5010).setUnlocalizedName("Crystalia:baconiteBow");
- LanguageRegistry.addName(baconiteBow, "Baconite Bow");
- EnumToolMaterial BACONITE = EnumHelper.addToolMaterial("Baconite Enum", 3, 2000, 7.0F, 4, 15);
- EnumArmorMaterial BACONITEA = EnumHelper.addArmorMaterial("Baconite Armor", 40, new int[]{3, 8, 6, 3}, 15);
- pickBaconite = new PickaxeBaconite(5011, BACONITE).setUnlocalizedName("crystalia:pickaxeBaconite");
- LanguageRegistry.addName(pickBaconite, "Baconite Pickaxe");
- axeBaconite = new AxeBaconite(5012, BACONITE).setUnlocalizedName("crystalia:hatchetBaconite");
- LanguageRegistry.addName(axeBaconite, "Baconite Axe");
- hoeBaconite = new HoeBaconite(5013, BACONITE).setUnlocalizedName("crystalia:hoeBaconite");
- LanguageRegistry.addName(hoeBaconite, "Baconite Hoe");
- shovelBaconite = new ShovelBaconite(5014, BACONITE).setUnlocalizedName("crystalia:shovelBaconite");
- LanguageRegistry.addName(shovelBaconite, "Baconite Shovel");
- swordBaconite = new SwordBaconite(5015, BACONITE).setUnlocalizedName("crystalia:Baconite Sword");
- LanguageRegistry.addName(swordBaconite, "Baconite Sword");
- //armor
- baconiteHelmet = new BaconiteArmor(6000, BACONITEA, proxy.addArmor("Baconite"), 0).setUnlocalizedName("BaconiteHelmet");
- LanguageRegistry.addName(baconiteHelmet, "Baconite Helmet");
- baconiteChestplate = new BaconiteArmor(6001, BACONITEA, proxy.addArmor("Baconite"), 1).setUnlocalizedName("BaconiteChestplate");
- LanguageRegistry.addName(baconiteChestplate, "Baconite Chestplate");
- baconiteLeggings = new BaconiteArmor(6002, BACONITEA, proxy.addArmor("Baconite"), 2).setUnlocalizedName("BaconiteLeggings");
- LanguageRegistry.addName(baconiteLeggings, "Baconite Leggings");
- baconiteBoots = new BaconiteArmor(6003, BACONITEA, proxy.addArmor("Baconite"), 3).setUnlocalizedName("BaconiteBoots");
- LanguageRegistry.addName(baconiteBoots, "Baconite Boots");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment