Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package jacobmob.fantasticalfantasycreatures.common;
- import jacobmob.fantasticalfantasycreatures.biome.BiomeTangerine;
- import jacobmob.fantasticalfantasycreatures.block.BlockTangerineGrass;
- import jacobmob.fantasticalfantasycreatures.block.BlockTangerineLeaf;
- import jacobmob.fantasticalfantasycreatures.block.BlockTangerinePlanks;
- import jacobmob.fantasticalfantasycreatures.block.BlockTangerineWood;
- import jacobmob.fantasticalfantasycreatures.creativetab.CreativeTabFantasticalFantasyCreatures;
- import jacobmob.fantasticalfantasycreatures.item.ItemAqueduck;
- import jacobmob.fantasticalfantasycreatures.item.ItemBearFur;
- import jacobmob.fantasticalfantasycreatures.item.ItemBearasaurusClaw;
- import jacobmob.fantasticalfantasycreatures.item.ItemBlubber;
- import jacobmob.fantasticalfantasycreatures.item.ItemCookedAqueduck;
- import jacobmob.fantasticalfantasycreatures.item.ItemCookedCrab;
- import jacobmob.fantasticalfantasycreatures.item.ItemCrab;
- import jacobmob.fantasticalfantasycreatures.item.ItemFrogEye;
- import jacobmob.fantasticalfantasycreatures.item.ItemFrogSkin;
- import jacobmob.fantasticalfantasycreatures.item.ItemLogo;
- import jacobmob.fantasticalfantasycreatures.item.ItemTangerine;
- import jacobmob.fantasticalfantasycreatures.item.ItemTangerineShell;
- import jacobmob.fantasticalfantasycreatures.mobs.EntitySnabical;
- import jacobmob.fantasticalfantasycreatures.mobs.Snabical;
- import jacobmob.fantasticalfantasycreatures.weapon.ItemLightningSword;
- import net.minecraft.block.Block;
- import net.minecraft.block.material.Material;
- import net.minecraft.creativetab.CreativeTabs;
- import net.minecraft.entity.Entity;
- import net.minecraft.entity.EntityEggInfo;
- import net.minecraft.entity.EntityList;
- import net.minecraft.entity.EnumCreatureType;
- import net.minecraft.item.EnumToolMaterial;
- import net.minecraft.item.Item;
- import net.minecraft.world.biome.BiomeGenBase;
- 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.EntityRegistry;
- import cpw.mods.fml.common.registry.GameRegistry;
- import cpw.mods.fml.common.registry.LanguageRegistry;
- @Mod(modid = "FantasticalFantasyCreatures", name = "Fantastic Fantasy Creatures Mod", version = "Alpha Prerelease 1")
- @NetworkMod(clientSideRequired = true, serverSideRequired = false)
- public class FantasticalFantasyCreatures {
- @SidedProxy(clientSide = "jacobmob.fantasticalfantasycreatures.client.ClientProxy", serverSide = "jacobmob.fantasticalfantasycreatures.common.CommonProxy")
- public static CommonProxy proxy;
- //Tool Materials
- //Weapon Materials
- public static EnumToolMaterial toolLightningWeapons = EnumHelper.addToolMaterial("LIGHTNINGWEAPONS", 2, 250, 6.0F, 2.0F, 10);
- //Creative Tab
- public static CreativeTabs TabFantasticalFantasyCreatures = new CreativeTabFantasticalFantasyCreatures(CreativeTabs.getNextID(), "FantasticalFantasyCreatures");
- //Trees
- TreeManager treeManager = new TreeManager();
- //Blocks
- public static Block TangerineLeaf = new BlockTangerineLeaf(3107, Material.leaves).setUnlocalizedName("TangerineLeaf");
- public static Block TangerineWood = new BlockTangerineWood(3108, Material.wood).setUnlocalizedName("TangerineWood");
- public static Block TangerineGrass = new BlockTangerineGrass(176, Material.grass).setUnlocalizedName("TangerineGrass");
- public static Block TangerinePlanks = new BlockTangerinePlanks(3113, Material.wood).setUnlocalizedName("TangerinePlanks");
- //Tangerine Biome
- public static BiomeGenBase TangerineBiome = new BiomeTangerine(41).setBiomeName("TangerineBiome").setMinMaxHeight(0.6F, 1F);
- //Fur/Hide
- public static Item BearFur = new ItemBearFur(3103).setUnlocalizedName("BearFur");
- public static Item FrogSkin = new ItemFrogSkin(3106).setUnlocalizedName("FrogSkin");
- public static Item TangerineShell = new ItemTangerineShell(3110).setUnlocalizedName("TangerineShell");
- //Claw
- public static Item BearasaurusClaw = new ItemBearasaurusClaw(3104).setUnlocalizedName("BearasaurusClaw");
- //Raw Food
- public static Item Crab = new ItemCrab(3100, 4, 4.6F, true).setUnlocalizedName("Crab");
- public static Item Aqueduck = new ItemAqueduck(3102, 4, 2.4F, true).setUnlocalizedName("Aqueduck");
- public static Item Tangerine = new ItemTangerine(3109, 3, 1.8F, false).setUnlocalizedName("Tangerine");
- public static Item FrogEye = new ItemFrogEye(3105, 2, 10.F, false).setUnlocalizedName("FrogEye");
- //Cooked Food
- public static Item CookedCrab = new ItemCookedCrab(3114, 7, 7.2f, true).setUnlocalizedName("CookedCrab");
- public static Item CookedAqueduck = new ItemCookedAqueduck(3115, 11, 13.2F, true).setUnlocalizedName("CookedAqueduck");
- //Misc Drops
- public static Item Blubber = new ItemBlubber(3101).setUnlocalizedName("Blubber");
- //Lightning Weapons
- public static Item LightningSword = new ItemLightningSword(3112, toolLightningWeapons).setUnlocalizedName("LightningSword");
- //Fire Weapons
- //Logo
- public static Item Logo = new ItemLogo(3111).setUnlocalizedName("Logo");
- //Entity Registries
- public static int entityId = 220;
- public static int getEntityId() {
- do {
- entityId++;
- }
- while(EntityList.getStringFromID(entityId)!= null);
- return entityId++;
- }
- //Spawn Eggs
- public static void registerSpawnEgg(Class<? extends Entity> entity, int primaryColor, int secondaryColor) {
- int eggId = getEntityId();
- EntityList.IDtoClassMapping.put(eggId, entity);
- EntityList.entityEggs.put(eggId, new EntityEggInfo(eggId, primaryColor, secondaryColor));
- }
- @Init
- public void load(FMLInitializationEvent event) {
- proxy.registerRenderInformation();
- }
- public FantasticalFantasyCreatures() {
- //Smelting Recipes
- //Entity Registries
- EntityRegistry.registerGlobalEntityID(EntitySnabical.class, "Snabical", 1);
- EntityRegistry.addSpawn(Snabical.class, 4, 1, 4, EnumCreatureType.creature);
- EntityRegistry.findGlobalUniqueEntityId();
- registerSpawnEgg(EntitySnabical.class, 0xFFCCCC, 0xFFFFFF);
- //Items
- LanguageRegistry.addName(Crab, "Crab");
- LanguageRegistry.addName(Blubber, "Blubber");
- LanguageRegistry.addName(Aqueduck, "Aqueduck");
- LanguageRegistry.addName(BearFur, "Bear Fur");
- LanguageRegistry.addName(BearasaurusClaw, "Bearasaurus Rex Claw");
- LanguageRegistry.addName(FrogEye, "Canadian Tropical Rainforest Treefrog Eye");
- LanguageRegistry.addName(FrogSkin, "Canadian Tropical Rainforest Treefrog Skin");
- LanguageRegistry.addName(Tangerine, "Tangerine");
- LanguageRegistry.addName(TangerineShell, "Tangerine Shell");
- LanguageRegistry.addName(CookedCrab, "Cooked Crab");
- LanguageRegistry.addName(CookedAqueduck, "Cooked Aqueduck");
- //Blocks
- GameRegistry.registerBlock(TangerineLeaf);
- LanguageRegistry.addName(TangerineLeaf, "Tangerine Tree Leaves");
- GameRegistry.registerBlock(TangerineWood);
- LanguageRegistry.addName(TangerineWood, "Tangerine Tree Wood");
- GameRegistry.registerBlock(TangerineGrass);
- LanguageRegistry.addName(TangerineGrass, "Tangerine Grass");
- GameRegistry.registerBlock(TangerinePlanks);
- LanguageRegistry.addName(TangerinePlanks, "Tangerine Wood Planks");
- //Biome
- GameRegistry.addBiome(TangerineBiome);
- //Fancy Stuff
- GameRegistry.registerWorldGenerator(treeManager);
- GameRegistry.registerFuelHandler(new FuelHandler());
- //Weapon Registry
- LanguageRegistry.addName(LightningSword, "Lightning Blade");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement