Jump to content

[1.7.10] Minecraft not rendering entity (trying to make bullets)


Recommended Posts

Posted

Hello,

          I am trying to make a gun that will shoot bullets, I made the entity, render, and model file. I did everything I did for my other mobs yet it still doesn't work. The entity does extend entitythrowable instead of EntityTameable or EntityMob or whatever. I know the texture is in the right path. Its not a missing texture, there is just nothing there. Sorry if I am missing something but in my bio it says Im not new to java but I am a noob. Anyways here is ALL of my code.

 

Main Class Code: http://pastebin.com/sukkhF5b

Proxy Class Code: http://pastebin.com/nMuczFu3

Entity Class Code: http://pastebin.com/YGu8KPVS

Render Class Code: http://pastebin.com/z0hVnwak

Model Class Code: http://pastebin.com/QjTn1iiX

 

Thanks for you're help

Posted

Have you got the ServerProxy and ClientProxy classes?

 

yes, I was just showing the specific code i had in the classes. Here is the full client proxy class.

 

/**

* Used to register sounds and textures that we want to load before our Mod is initialized

*/

 

package mymod.proxies;

 

import mymod.entity.BeardedDragon.EntityBeardedDragon;

import mymod.entity.BeardedDragon.ModelBeardedDragon;

import mymod.entity.BeardedDragon.RenderBeardedDragon;

import mymod.entity.EntityRifleBolt.EntityRifleBolt;

import mymod.entity.EntityRifleBolt.ModelRifleBolt;

import mymod.entity.EntityRifleBolt.RenderRifleBolt;

import mymod.entity.ape.MyEntityApe;

import mymod.entity.ape.MyModelApe;

import mymod.entity.ape.MyRenderApe;

import mymod.entity.ogre.MyEntityOgre;

import mymod.entity.ogre.MyModelOgre;

import mymod.entity.ogre.MyRenderOgre;

import cpw.mods.fml.client.registry.RenderingRegistry;

 

public class ClientProxy extends CommonProxy {

 

 

 

public void registerRenderInformation(){

RenderingRegistry.registerEntityRenderingHandler(MyEntityOgre.class, new MyRenderOgre(new MyModelOgre(), 0.3F));

        RenderingRegistry.registerEntityRenderingHandler(MyEntityApe.class, new MyRenderApe(new MyModelApe(), 0.3F));

            RenderingRegistry.registerEntityRenderingHandler(EntityBeardedDragon.class, new RenderBeardedDragon(new ModelBeardedDragon(), 0.3F));

            RenderingRegistry.registerEntityRenderingHandler(EntityRifleBolt.class, new RenderRifleBolt(new ModelRifleBolt(), 0.3F));

       

}

}

 

and here is the commonproxy

 

/**

* Used to register sounds and textures that we want to load before our Mod is initialized

*/

 

package mymod.proxies;

 

public class CommonProxy {

public void registerRenderInformation(){

}

 

}

Posted

Post your entire main class.

 

package mymod.main;

 

import java.awt.Color;

 

import mymod.armor.MyArmor;

import mymod.armor.MyArmor_2;

import mymod.armor.MyArmor_3;

import mymod.armor.MyArmor_4;

import mymod.armor.MyArmor_5;

import mymod.armor.MyArmor_6;

import mymod.armor.orcanArmor;

import mymod.biome.MyBiome_1;

import mymod.biome.NioBiome;

import mymod.blocks.MyBlock;

import mymod.blocks.MyBlockGen;

import mymod.blocks.MyBlockGenRuby;

import mymod.blocks.MyBlock_2;

import mymod.blocks.orcanBlock;

import mymod.blocks.orcanBlockGen;

import mymod.entity.BeardedDragon.EntityBeardedDragon;

import mymod.entity.EntityRifleBolt.EntityRifleBolt;

import mymod.entity.ape.MyEntityApe;

import mymod.entity.ogre.MyEntityOgre;

import mymod.items.MyAxe;

import mymod.items.MyFood;

import mymod.items.MyItem;

import mymod.items.MyPickaxe;

import mymod.items.MyShovel;

import mymod.items.MySword;

import mymod.proxies.CommonProxy;

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.client.Minecraft;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.Entity;

import net.minecraft.entity.EntityList;

import net.minecraft.entity.EntityList.EntityEggInfo;

import net.minecraft.entity.EnumCreatureType;

import net.minecraft.entity.monster.EntityCreeper;

import net.minecraft.init.Blocks;

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.item.Item.ToolMaterial;

import net.minecraft.item.ItemArmor.ArmorMaterial;

import net.minecraft.item.ItemStack;

import net.minecraft.stats.Achievement;

import net.minecraft.stats.AchievementList;

import net.minecraft.world.biome.BiomeGenBase;

import net.minecraftforge.common.AchievementPage;

import net.minecraftforge.common.BiomeManager;

import net.minecraftforge.common.BiomeManager.BiomeEntry;

import net.minecraftforge.common.MinecraftForge;

import net.minecraftforge.common.util.EnumHelper;

import net.minecraftforge.oredict.OreDictionary;

import net.minecraftforge.oredict.ShapedOreRecipe;

import cpw.mods.fml.common.Mod;

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

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

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.registry.EntityRegistry;

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

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

import cpw.mods.fml.relauncher.Side;

 

 

/* MOD INFO */

@Mod(modid = mymod.main.Main.MODID, version = Main.VERSION)

 

 

 

public class Main {

 

 

 

 

 

/* PROXY INFO */

@SidedProxy(clientSide="mymod.proxies.ClientProxy", serverSide="mymod.proxies.CommonProxy")

public static CommonProxy proxy;

 

 

 

/**

* DECLARATION SECTION

* *********************************************************** */

    public static final String MODID = "InfiniCraft";

public static final String VERSION = "1.1";

 

 

/**Ideas**/

/**Pulse Items**/

 

 

 

//Pulse Bow

public static Item pulseRifle;

 

//Fire Staff

public static Item fireStaff;

 

 

//  DECLARE THE BIOME

    public static  BiomeGenBase MyBiome_1;

// Declare Nio

    public static BiomeGenBase NioBiome;

   

    public static Item orcanAxe;

   

    public static Item orcanShovel;

   

    //declare orcan pickaxe

    public static Item orcanPickaxe;

   

    //declare orcan ingot

    public static Item orcanIngot;

   

    //declare orcan block

    public static Block orcanBlock;

   

  //Declare Orcan Sword

    public static Item orcanSword;

   

    //Blocks

    public static  Block MyBlock_1 = (Block)Block.blockRegistry.getObject("MyBlock_1");

    public static  Block MyBlock_2 = (Block)Block.blockRegistry.getObject("MyBlock_2");

    public static  Block MyBlock_3 = (Block)Block.blockRegistry.getObject("MyBlock_3");

   

    public static final BiomeGenBase.Height height_Nio = new BiomeGenBase.Height(0.9F, 1.3F);

   

   

public static Item MyArmor_1;

 

//DECLARE RUBY AXE

public static Item MyAxe_4;

 

//DECLARE END AXE

public static Item MyAxe_6;

 

// DECLARE END SHARD

public static Item MyItem_6;

 

//  DECLARE THE SWORD 2

        public static Item MySword_2;

       

        //DECLARE NEW TOOL MATERIAL 4

        /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability*/

        public static ToolMaterial MyToolMaterial4 = EnumHelper.addToolMaterial("Ruby", 1, 136, 8.0F,2.0F, 15);

       

        //DECLARE NEW TOOL MATERIAL 4

        /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability*/

        public static ToolMaterial MyToolMaterial9 = EnumHelper.addToolMaterial("End", 2, 854, 12.0F,2.5F, 18);

       

       

       

//DECLARE THE SWORD 3

public static Item MySword_3;

 

//  DECLARE NEW TOOL MATERIAL 3

        /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */

        public static ToolMaterial MyToolMaterial3 = EnumHelper.addToolMaterial("GlowStone", 1, 136, 8.0F, 2.0F, 15);

       

        //  DECLARE NEW TOOL MATERIAL 3

        /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */

        public static ToolMaterial MyToolMaterial8 = EnumHelper.addToolMaterial("NOPE", 3, 9999, 500.0F, 46.0F, 15);

       

       

        //  Bow tool Mat

        /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */

        public static ToolMaterial PulseBowToolMaterial = EnumHelper.addToolMaterial("Pulse Bow Material", 3, 9999, 500.0F, 10.0F, 15);

 

//DECLARE TAH SWORD

public static Item MySword_7;

 

//  DECLARE THE SWORD

        public static Item MySword_1;

 

//  DECLARE THE PICKAXE

        public static Item MyPickaxe_1;

 

//DECLARE NEW SHOVEl

public static Item MyShovel6;

 

//DECLARE NEW SHOVEl

public static Item MyShovel7;

 

//DECLARE THE PICKAXE 3

public static Item MyPickaxe_3;

 

//  DECLARE THE PICKAXE

        public static Item MyPickaxe_2;

 

// DECLARE AXE 3

public static Item MyAxe_3;

 

//  DECLARE THE AXE

        public static Item MyAxe;

 

//  DECLARE NEW TOOL MATERIAL

        /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */

        public static ToolMaterial MyToolMaterial = EnumHelper.addToolMaterial("Sapphire", 3, 10000, 20.0F, 50.0F, 15);

       

        //  DECLARE NEW TOOL MATERIAL

        /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */

        public static ToolMaterial MyToolMaterial5 = EnumHelper.addToolMaterial("Ruby", 3, 1568, 16.0F, 7.0F, 15);

       

        //  DECLARE NEW TOOL MATERIAL 2

        /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */

        public static ToolMaterial MyToolMaterial2 = EnumHelper.addToolMaterial("Mega Stone", 3, 5000, 150.0F, 500.0F, 12);

 

    // Declare Orcan Material

        /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */

        public static ToolMaterial orcanToolMaterial = EnumHelper.addToolMaterial("Orcan", 2, 325, 6.0F, 4.0F, 7);

       

 

// DECLARE NEW TOOL MATERIAL 2

        /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */

        public static ToolMaterial MyToolMaterial6 = EnumHelper.addToolMaterial("Night Shard", 3, 500, 150.0F, 36.0F, 21);

       

        // DECLARE NEW TOOL MATERIAL 2

        /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */

        public static ToolMaterial MyToolMaterial10 = EnumHelper.addToolMaterial("Take em'", 3, 750, 15.0F, 4.0F, 21);

       

        // DECLARE NEW TOOL MATERIAL 2

        /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */

        public static ToolMaterial MyToolMaterial7 = EnumHelper.addToolMaterial("netherrack", 2, 158, 10.0F, 1.0F, 6);

 

//DECLARE NEW SWORD 6

public static Item MySword_6;

 

// DECLARE THE SWORD 5

public static Item MySword_5;

 

// DECLARE THE ITEM

public static Item MyItem_4;

 

//DECLARE NEW AXE

public static Item MyAxe_5;

 

//  DECLARE THE ITEM

        public static Item MyItem_1;

       

        //  DECLARE THE ITEM 2

        public static Item MyItem_2;

       

        // DECLARE THE SWORD 8

        public static Item MySword_8;

       

        //  DECLARE THE ITEM 2

        public static Item MyItem_3;

       

//  DECLARE THE FOOD

        public static Item MyFood_1;

       

        //DECLARE THE FOOD 2

        public static Item MyFood_2;

       

 

       

//Orcan Armor

        public static Item orcanHelmet;

        public static Item orcanChestplate;

        public static Item orcanLeggings;

        public static Item orcanBoots;

       

    //  DECLARE THE ARMOR MATERIAL

/** maxDamageFactor, damageReductionAmountArray, enchantability*/

public static ArmorMaterial orcanArmorMaterial = EnumHelper.addArmorMaterial("orcan", 200, new int[]{3, 9, 8, 3}, 10);

 

       

       

     

        //  DECLARE THE ARMOR

        public static Item MyHelmet_1;

        public static Item MyChest_1;

        public static Item MyLeggings_1;

        public static Item MyBoots_1;

       

        //  DECLARE THE ARMOR

        public static Item MyHelmet_6;

        public static Item MyChest_6;

        public static Item MyLeggings_6;

        public static Item MyBoots_6;

       

        //  DECLARE THE ARMOR

        public static Item MyHelmet_2;

        public static Item MyChest_2;

        public static Item MyLeggings_2;

        public static Item MyBoots_2;

 

//  DECLARE THE ARMOR

        public static Item MyHelmet_3;

        public static Item MyChest_3;

        public static Item MyLeggings_3;

        public static Item MyBoots_3;

       

        //  DECLARE THE ARMOR

        public static Item MyHelmet_4;

        public static Item MyChest_4;

        public static Item MyLeggings_4;

        public static Item MyBoots_4;

 

    //  DECLARE THE ARMOR

        public static Item MyHelmet_5;

        public static Item MyChest_5;

        public static Item MyLeggings_5;

        public static Item MyBoots_5;

 

                //  DECLARE THE ARMOR MATERIAL

        /** maxDamageFactor, damageReductionAmountArray, enchantability*/

        public static ArmorMaterial MyArmorMaterial_1 = EnumHelper.addArmorMaterial("Sapphire", 500, new int[]{5, 10, 8, 5}, 50);

 

//  DECLARE THE ARMOR MATERIAL

        /** maxDamageFactor, damageReductionAmountArray, enchantability*/

        public static ArmorMaterial MyArmorMaterial_2 = EnumHelper.addArmorMaterial("Mega Stone", 5000, new int[]{25, 30, 30, 25}, 100);

 

//  DECLARE THE ARMOR MATERIAL

        /** maxDamageFactor, damageReductionAmountArray, enchantability*/

        public static ArmorMaterial MyArmorMaterial_6 = EnumHelper.addArmorMaterial("End", 25, new int[]{3, 6, 5, 4}, 14);

 

//  DECLARE THE ARMOR MATERIAL

        /** maxDamageFactor, damageReductionAmountArray, enchantability*/

        public static ArmorMaterial MyArmorMaterial_3 = EnumHelper.addArmorMaterial("GlowStone Shard", 50, new int[]{2, 3, 3, 2}, 30);

       

       

       

        //  DECLARE THE ARMOR MATERIAL

        /** maxDamageFactor, damageReductionAmountArray, enchantability*/

        public static ArmorMaterial MyArmorMaterial_4 = EnumHelper.addArmorMaterial("Ruby", 100, new int[]{4, 8, 7, 5}, 10);

       

        //  DECLARE THE ARMOR MATERIAL

        /** maxDamageFactor, damageReductionAmountArray, enchantability*/

        public static ArmorMaterial MyArmorMaterial_5 = EnumHelper.addArmorMaterial("netherrack", 8, new int[]{1, 4, 3, 1}, 15);

       

       

// DECLARE ENDER STAFF

        public static Item MyEnderStaff;

 

 

       

 

       

       

        //  DECLARE THE MOD ID

        static int MyEntityID = 300;

   

    //  SEARCH FOR UNIQUE ID   

        public static int getUniqueEntityId() {

            do {

                MyEntityID++;

            }

            while (EntityList.getStringFromID(MyEntityID) != null);

            return MyEntityID++;

        }

   

    //  DECLARE A NEW EGG

        public static void registerEntityEgg(Class <? extends Entity> entity, int PrimaryColor, int secondaryColor) {

            int id = getUniqueEntityId();

            EntityList.IDtoClassMapping.put(id, entity);

            EntityList.entityEggs.put(id, new EntityEggInfo(id, PrimaryColor, secondaryColor));

        }

 

//DECLARE NETHER SHARD

public static Item MyItem_5;

 

// DECLARE RUBY SWORD

public static Item MySword_4;

 

// DECLARE SHOVEL 2

public static Item MyShovel2;

 

// DECLARE MOB

 

 

//DECLARE N SHOVEL

public static Item MyShovel5;

 

// DECLARE SHOVEL

  public static Item MyShovel;

 

  // DECLARE AXE 2

      public static Item MyAxe2;

 

// DECLARE SHOVEL 3

public static Item MyShovel3;

 

// DECLARE PICKAXE 4

public static Item MyPickaxe_4;

 

//DECLARE FOOD 3

public static Item MyFood_3;

 

//DECLARE SHOVEL 4

public static Item MyShovel4;

 

//DECLARE NEW PICKAXE

public static Item MyPickaxe_5;

 

//declare new pick

public static Item MyPickaxe_6;

 

// DECLARE THE NEW ACHIEVEMENTS

    public static Achievement MyAchievement_1;

   

// DECLARE THE NEW ACHIEVEMENTS

  public static Achievement MyAchievement_2;

  public static Achievement MyAchievement_3;

 

        //  DECLARE A NEW CREATIVE TAB 

        public static CreativeTabs MyCreativeTab_1;

/* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */

 

 

@EventHandler

public void preInit( FMLPreInitializationEvent event)

{

    //  LOAD BIOME

    MyBiome_1 = new MyBiome_1(100);

    BiomeManager.icyBiomes.add(new BiomeEntry(MyBiome_1, 100));

    //  LOAD BIOME

    NioBiome = new NioBiome(101);

    BiomeManager.icyBiomes.add(new BiomeEntry(NioBiome, 101));

 

}

 

 

 

/**

* OreDictionary

*/

 

        @Instance(value="InfiniCraft")

        public static mymod.main.Main instance;

       

        @EventHandler

        //1.3.2 @Init

        public void load(FMLInitializationEvent event)

        {

                addNames();

                oreRegistration();

                addOreRecipes();

        }

       

        public static void addNames()

        {

             

                  LanguageRegistry.addName(MyItem_1, "Sapphire");

                  LanguageRegistry.addName(MyItem_3, "Ruby");

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

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

                 

               

        }

       

        public static void oreRegistration()

        {

               

              OreDictionary.registerOre("gemSapphire", MyItem_1);

                OreDictionary.registerOre("oreSapphire", MyBlock_1);

                OreDictionary.registerOre("oreRuby", MyBlock_3);

                OreDictionary.registerOre("gemRuby", MyItem_3);

                 

               

        }

       

        public static void addOreRecipes()

        {

               

                GameRegistry.addRecipe(new ShapedOreRecipe(MyHelmet_4, true, new Object[]{

                                "FF", Character.valueOf('F'), "gemRuby"}));

                               

                                GameRegistry.addRecipe(new ShapedOreRecipe(MyChest_4, true, new Object[]{

                                "FF", Character.valueOf('F'), "gemRuby"}));

                                GameRegistry.addRecipe(new ShapedOreRecipe(MyLeggings_4, true, new Object[]{

                                "FF", Character.valueOf('F'), "gemRuby"}));

                                GameRegistry.addRecipe(new ShapedOreRecipe(MyBoots_4, true, new Object[]{

                                "FF", Character.valueOf('F'), "gemRuby"}));

                                GameRegistry.addRecipe(new ShapedOreRecipe(MySword_4, true, new Object[]{

                                "FF", Character.valueOf('F'), "gemRuby"}));

                                GameRegistry.addRecipe(new ShapedOreRecipe(MyShovel4, true, new Object[]{

                                "FF", Character.valueOf('F'), "gemRuby"}));

                                GameRegistry.addRecipe(new ShapedOreRecipe(MyHelmet_1, true, new Object[]{

                                "FF", Character.valueOf('F'), "gemSapphire"}));

                                  GameRegistry.addRecipe(new ShapedOreRecipe(MyChest_1, true, new Object[]{

                                "FF", Character.valueOf('F'), "gemSapphire"}));

                                  GameRegistry.addRecipe(new ShapedOreRecipe(MyLeggings_1, true, new Object[]{

                                "FF", Character.valueOf('F'), "gemSapphire"}));

                                  GameRegistry.addRecipe(new ShapedOreRecipe(MyBoots_1, true, new Object[]{

                                "FF", Character.valueOf('F'), "gemSapphire"}));

               

        }

        {

 

 

/**

* LOAD SECTION

* *********************************************************** */

 

 

 

 

       

           

//  LOAD THE CREATIVE TAB

        MyCreativeTab_1 = new CreativeTabs("MyCreativeTab_1") {

            public ItemStack getIconItemStack() {

                return new ItemStack(MyBlock_1, 1, 0);  // Icon, Stack Size, Tab Position

            }

 

@Override

public Item getTabIconItem() {

 

return null;

}

        };

       

       

       

        // LOAD THE BOW

        pulseRifle = new mymod.items.pulseRifle(0, "pulseRifle").setCreativeTab(MyCreativeTab_1).setMaxStackSize(1).setTextureName("pulseRifle.png");

        GameRegistry.registerItem(pulseRifle, "pulseRifle");

        LanguageRegistry.addName(pulseRifle, "Pulse Rifle");

       

 

       

 

// LOAD THE PICKAXE 4

  MyPickaxe_4 = new MyPickaxe( 0, MyToolMaterial5, "MyPickaxe_4").setCreativeTab(MyCreativeTab_1);

GameRegistry.registerItem(MyPickaxe_4, "MyPickaxe_4");

LanguageRegistry.addName(MyPickaxe_4, "Ruby Pickaxe");

 

// LOAD THE PICKAXE 6

  MyPickaxe_6 = new MyPickaxe( 0, MyToolMaterial9, "MyPickaxe_6").setCreativeTab(MyCreativeTab_1);

GameRegistry.registerItem(MyPickaxe_6, "MyPickaxe_6");

LanguageRegistry.addName(MyPickaxe_6, "Endstone Pickaxe");

 

  // LOAD THE PICKAXE 5

  MyPickaxe_5 = new MyPickaxe( 0, MyToolMaterial7, "MyPickaxe_5").setCreativeTab(MyCreativeTab_1);

GameRegistry.registerItem(MyPickaxe_5, "MyPickaxe_5");

LanguageRegistry.addName(MyPickaxe_5, "Netherrack Pickaxe");

 

// LOAD THE SHOVEL 2

  MyShovel2 = new MyShovel( 0, MyToolMaterial, "MyShovel2").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(MyShovel2, "MyShovel2");

  LanguageRegistry.addName(MyShovel2, "Sapphire Shovel");

 

  // LOAD THE SHOVEL 2

  MyShovel5 = new MyShovel( 0, MyToolMaterial7, "MyShovel5").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(MyShovel5, "MyShovel5");

  LanguageRegistry.addName(MyShovel5, "Netherrack Shovel");

 

  // LOAD THE SHOVEL 4

  MyShovel4 = new MyShovel( 0, MyToolMaterial5, "MyShovel4").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(MyShovel4, "MyShovel4");

  LanguageRegistry.addName(MyShovel4, "Ruby Shovel");

 

  // LOAD THE SWORD 7

  MySword_7 = new MySword( 0, MyToolMaterial9, "MySword_7").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(MySword_7, "MySword_7");

  LanguageRegistry.addName(MySword_7, "Endstone Sword");

 

// LOAD ORCAN PICKAXE

  orcanPickaxe = new MyPickaxe( 0, orcanToolMaterial, "orcanPickaxe").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(orcanPickaxe, "orcanPickaxe");

  LanguageRegistry.addName(orcanPickaxe, "Orcan Pickaxe");

 

// LOAD THE ITEM

  orcanIngot = new MyItem( 0, "orcanIngot").setCreativeTab(MyCreativeTab_1).setMaxStackSize(64);

  GameRegistry.registerItem(orcanIngot, "orcanIngot");

  LanguageRegistry.addName(orcanIngot, "Orcan Ingot");

 

  //  LOAD THE BLOCK

  orcanBlock = new orcanBlock( 0, Material.rock, "orcanBlock").setLightLevel(0.1F).setResistance(7.0F).setHardness(2.0F).setStepSound(Block.soundTypeStone).setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerBlock(orcanBlock, "orcanBlock");

  LanguageRegistry.addName(orcanBlock, "Orcan Block");

 

  // LOAD THE SWORD 7

  orcanSword = new MySword( 0, orcanToolMaterial, "orcanSword").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(orcanSword, "orcanSword");

  LanguageRegistry.addName(orcanSword, "Orcan Sword");

 

  // LOAD THE SHOVEL 4

  orcanShovel = new MyShovel( 0, orcanToolMaterial, "orcanShovel").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(orcanShovel, "orcanShovel");

  LanguageRegistry.addName(orcanShovel, "Orcan Shovel");

 

  // LOAD THE SHOVEL 4

  orcanAxe = new MyAxe( 0, orcanToolMaterial, "orcanAxe").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(orcanAxe, "orcanAxe");

  LanguageRegistry.addName(orcanAxe, "Orcan Axe");

 

  orcanHelmet = new orcanArmor(0, orcanArmorMaterial, 0, 0, "orcanArmor").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(orcanHelmet, "orcanHelmet");

  LanguageRegistry.addName(orcanHelmet, "Orcan Helmet");

 

  orcanChestplate = new orcanArmor(0, orcanArmorMaterial, 0, 1, "orcanArmor").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(orcanChestplate, "orcanChestplate");

  LanguageRegistry.addName(orcanChestplate, "Orcan Chestplate");

 

  orcanLeggings = new orcanArmor(0, orcanArmorMaterial, 0, 2, "orcanArmor").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(orcanLeggings, "orcanLeggings");

  LanguageRegistry.addName(orcanLeggings, "Orcan Leggings");

 

  orcanBoots = new orcanArmor(0, orcanArmorMaterial, 0, 3, "orcanArmor").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(orcanBoots, "orcanBoots");

  LanguageRegistry.addName(orcanBoots, "Orcan Boots");

 

 

 

 

  // LOAD THE SHOVEL 4

  MyShovel6 = new MyShovel( 0, MyToolMaterial8, "MyShovel6").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(MyShovel6, "MyShovel6");

  LanguageRegistry.addName(MyShovel6, "The NOPE Shovel");

 

  // LOAD THE SHOVEL 4

  MyShovel7 = new MyShovel( 0, MyToolMaterial9, "MyShovel7").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(MyShovel7, "MyShovel7");

  LanguageRegistry.addName(MyShovel7, "End Shovel");

 

 

// LOAD THE SHOVEL 3

  MyShovel3 = new MyShovel( 0, MyToolMaterial3, "MyShovel3").setCreativeTab(MyCreativeTab_1);

  GameRegistry.registerItem(MyShovel3, "MyShovel3");

  LanguageRegistry.addName(MyShovel3, "GlowStone Shovel");

 

 

 

//  LOAD THE ITEM

        MyItem_6 = new MyItem( 0, "MyItem_6").setCreativeTab(MyCreativeTab_1).setMaxStackSize(64);

        GameRegistry.registerItem(MyItem_6, "MyItem_6");

        LanguageRegistry.addName(MyItem_6, "End Shard");

 

// LOAD THE AXE 2

 

    MyAxe2 = new MyAxe( 0, MyToolMaterial, "MyAxe2").setCreativeTab(MyCreativeTab_1);

    GameRegistry.registerItem(MyAxe2, "MyAxe2");

    LanguageRegistry.addName(MyAxe2, "Sapphire Axe");

 

// LOAD THE AXE 4

    MyAxe_4 = new MyAxe(0, MyToolMaterial5, "MyAxe_4").setCreativeTab(MyCreativeTab_1);

    GameRegistry.registerItem(MyAxe_4, "MyAxe_4");

    LanguageRegistry.addName(MyAxe_4, "Ruby Axe");

 

// LOAD THE AXE 2

 

    MyAxe_5 = new MyAxe(0, MyToolMaterial7, "MyAxe_5").setCreativeTab(MyCreativeTab_1);

    GameRegistry.registerItem(MyAxe_5, "MyAxe_5");

    LanguageRegistry.addName(MyAxe_5, "Netherrack Axe");

 

// LOAD THE AXE 2

 

    MyAxe_3 = new MyAxe(0, MyToolMaterial3, "MyAxe_3").setCreativeTab(MyCreativeTab_1);

    GameRegistry.registerItem(MyAxe_3, "MyAxe_3");

    LanguageRegistry.addName(MyAxe_3, "GlowStone Axe");

 

// LOAD THE AXE

    MyAxe = new MyAxe(0, MyToolMaterial2, "MyAxe").setCreativeTab(MyCreativeTab_1);

    GameRegistry.registerItem(MyAxe, "MyAxe");

    LanguageRegistry.addName(MyAxe, "Mega Axe");

 

// LOAD PICKAXE 3

MyPickaxe_3 = new MyPickaxe(0, MyToolMaterial3, "MyPickaxe_3").setCreativeTab(MyCreativeTab_1);

GameRegistry.registerItem(MyPickaxe_3, "MyPickaxe_3");

LanguageRegistry.addName(MyPickaxe_3, "GlowStone Pickaxe");

 

 

//  LOAD THE SWORD 2

        MySword_2 = new MySword(0, MyToolMaterial2, "MySword_2").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MySword_2, "MySword_2");

        LanguageRegistry.addName(MySword_2, "MegaKiller");

 

//  LOAD THE SWORD 6

        MySword_6 = new MySword(0, MyToolMaterial7, "MySword_6").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MySword_6, "MySword_6");

        LanguageRegistry.addName(MySword_6, "Netherrack Sword");

 

// LOAD THE SWORD 3

    MySword_3 = new MySword(0, MyToolMaterial3, "MySword_3").setCreativeTab(MyCreativeTab_1);

    GameRegistry.registerItem(MySword_3, "MySword_3");

    LanguageRegistry.addName(MySword_3, "Glowstone Sword");

 

//  LOAD THE SWORD

        MySword_1 = new MySword(0, MyToolMaterial, "MySword_1").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MySword_1, "MySword_1");

        LanguageRegistry.addName(MySword_1, "A Baccas Dream");

       

        //  LOAD THE SWORD 8

        MySword_8 = new mymod.items.MySword2(0, MyToolMaterial10, "MySword_8").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MySword_8, "MySword_8");

        LanguageRegistry.addName(MySword_8, "Take em' Sword");

       

        //  LOAD THE SWORD

        MySword_4 = new MySword(0, MyToolMaterial5, "MySword_4").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MySword_4, "MySword_4");

        LanguageRegistry.addName(MySword_4, "Ruby Sword");

 

//  LOAD THE SWORD

        MySword_5 = new MySword(0, MyToolMaterial6, "MySword_5").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MySword_5, "MySword_5");

        LanguageRegistry.addName(MySword_5, "Nights Edge");

       

        //  LOAD THE SWORD

        MyAxe_6 = new MyAxe(0, MyToolMaterial9, "MyAxe_6").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyAxe_6, "MyAxe_6");

        LanguageRegistry.addName(MyAxe_6, "EndStone Axe");

 

//  LOAD THE PICKAXE

        MyPickaxe_1 = new MyPickaxe(0, MyToolMaterial, "MyPickaxe_1").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyPickaxe_1, "MyPickaxe_1");

        LanguageRegistry.addName(MyPickaxe_1, "Sapphire Pickaxe");

       

        //  LOAD THE PICKAXE 2

        MyPickaxe_2 = new MyPickaxe(0, MyToolMaterial2, "MyPickaxe_2").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyPickaxe_2, "MyPickaxe_2");

        LanguageRegistry.addName(MyPickaxe_2, "Mega Pickaxe");

       

        //  LOAD THE ITEM

        MyItem_5 = new MyItem(0, "MyItem_5").setCreativeTab(MyCreativeTab_1).setMaxStackSize(64);

        GameRegistry.registerItem(MyItem_5, "MyItem_5");

        LanguageRegistry.addName(MyItem_5, "Nether Shard");

       

       

//  LOAD THE ITEM

        MyItem_1 = new MyItem(0, "MyItem_1").setCreativeTab(MyCreativeTab_1).setMaxStackSize(64);

        GameRegistry.registerItem(MyItem_1, "MyItem_1");

        LanguageRegistry.addName(MyItem_1, "Sapphire");

       

        //  LOAD THE ITEM 4

        MyItem_4 = new MyItem(0, "MyItem_4").setCreativeTab(MyCreativeTab_1).setMaxStackSize(64);

        GameRegistry.registerItem(MyItem_4, "MyItem_4");

        LanguageRegistry.addName(MyItem_4, "Night Shard");

       

        //  LOAD THE ITEM 2

        MyItem_2 = new MyItem(0, "MyItem_2").setCreativeTab(MyCreativeTab_1).setMaxStackSize(64);

        GameRegistry.registerItem(MyItem_2, "MyItem_2");

        LanguageRegistry.addName(MyItem_2, "Mega Stone");

       

        //  LOAD THE ITEM 2

        MyItem_3 = new MyItem(0, "MyItem_3").setCreativeTab(MyCreativeTab_1).setMaxStackSize(64);

        GameRegistry.registerItem(MyItem_3, "MyItem_3");

        LanguageRegistry.addName(MyItem_3, "Ruby");

       

       

        //  LOAD THE ITEM 2

        MyEnderStaff = new mymod.items.MyEnderStaff(0, "MyEnderStaff").setCreativeTab(MyCreativeTab_1).setMaxStackSize(1);

        GameRegistry.registerItem(MyEnderStaff, "MyEnderStaff");

        LanguageRegistry.addName(MyEnderStaff, "Ender Staff");

     

        //LOAD FIRE STAFF

        fireStaff = new mymod.items.fireStaff(0, "fireStaff").setCreativeTab(MyCreativeTab_1).setMaxStackSize(1);

        GameRegistry.registerItem(fireStaff, "fireStaff");

        LanguageRegistry.addName(fireStaff, "Fire Staff");

       

        //  LOAD THE FOOD

        /** itemID, healAmount, SaturationModifier (F) isWolfsFavoriteMeat, Texture Name */

        MyFood_1 = new MyFood(0, 12, 6.0F, true, "MyFood_1").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyFood_1, "MyFood_1");

        LanguageRegistry.addName(MyFood_1, "Burger");

       

        //  LOAD THE FOOD 2

        /** itemID, healAmount, SaturationModifier (F) isWolfsFavoriteMeat, Texture Name */

        MyFood_2 = new MyFood(0, 4, 2.0F, false, "MyFood_2").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyFood_2, "MyFood_2");

        LanguageRegistry.addName(MyFood_2, "Bacon Cupcake");

       

        //  LOAD THE FOOD 2

        /** itemID, healAmount, SaturationModifier (F) isWolfsFavoriteMeat, Texture Name */

        MyFood_3 = new MyFood(0, 6, 3.0F, true, "MyFood_3").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyFood_3, "MyFood_3");

        LanguageRegistry.addName(MyFood_3, "Bacon");

       

     

       

        //  LOAD THE BLOCK

        MyBlock_1 = new MyBlock( 0, Material.rock, "MyBlock_1").setLightLevel(0.8F).setResistance(10.0F).setHardness(3.0F).setStepSound(Block.soundTypeStone).setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerBlock(MyBlock_1, "MyBlock_1");

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

 

 

//  LOAD THE BLOCK 2

        MyBlock_2 = new MyBlock_2( 0, Material.rock, "MyBlock_2").setLightLevel(0.8F).setResistance(10.0F).setHardness(3.0F).setStepSound(Block.soundTypeStone).setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerBlock(MyBlock_2, "MyBlock_2");

        LanguageRegistry.addName(MyBlock_2, "Nio Block");

 

 

//  LOAD THE BLOCK 2

        MyBlock_3 = new mymod.blocks.MyBlock_3( 0, Material.rock, "MyBlock_3").setLightLevel(0.8F).setResistance(10.0F).setHardness(3.0F).setStepSound(Block.soundTypeStone).setCreativeTab(MyCreativeTab_1).setBlockTextureName("MyBlock_3");

        GameRegistry.registerBlock(MyBlock_3, "MyBlock_3");

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

 

 

//  LOAD CHESTPLATE

        MyChest_3 = new MyArmor_3(0, MyArmorMaterial_3, 0, 1, "myarmor3").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyChest_3, "MyChest_3");

        LanguageRegistry.addName(MyChest_3, "GlowStone Chestplate");

 

//  LOAD CHESTPLATE

        MyChest_5 = new MyArmor_5(0, MyArmorMaterial_5, 0, 1, "myarmor5").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyChest_5, "MyChest_5");

        LanguageRegistry.addName(MyChest_5, "Netherrack Chestplate");

 

// LOAD LEGGINGS

MyLeggings_5 = new MyArmor_5(0, MyArmorMaterial_5, 0, 2, "myarmor5").setCreativeTab(MyCreativeTab_1);

GameRegistry.registerItem(MyLeggings_5, "MyLeggings_5");

LanguageRegistry.addName(MyLeggings_5, "Netherrack Leggings");

 

// LOAD BOOTS

MyBoots_5 = new MyArmor_5 (0, MyArmorMaterial_3, 0, 3, "myarmor5").setCreativeTab(MyCreativeTab_1);

GameRegistry.registerItem(MyBoots_5, "MyBoots_5");

LanguageRegistry.addName(MyBoots_5, "Netherrack Boots");

 

// LOAD LEGGINGS

MyLeggings_3 = new MyArmor_3(0, MyArmorMaterial_3, 0, 2, "myarmor3").setCreativeTab(MyCreativeTab_1);

GameRegistry.registerItem(MyLeggings_3, "MyLeggings_3");

LanguageRegistry.addName(MyLeggings_3, "GlowStone Leggings");

 

// LOAD BOOTS

MyBoots_3 = new MyArmor_3 (0, MyArmorMaterial_3, 0, 3, "myarmor3").setCreativeTab(MyCreativeTab_1);

GameRegistry.registerItem(MyBoots_3, "MyBoots_3");

LanguageRegistry.addName(MyBoots_3, "GlowStone Boots");

 

//  LOAD HELMET 2

      MyHelmet_2 = new MyArmor_2(0, MyArmorMaterial_2, 0, 0, "myarmor2").setCreativeTab(MyCreativeTab_1);

GameRegistry.registerItem(MyHelmet_2, "MyHelmet_2");

LanguageRegistry.addName(MyHelmet_2, "Mega Helmet"); 

 

//  LOAD HELMET 2

      MyHelmet_5 = new MyArmor_5(0, MyArmorMaterial_5, 0, 0, "myarmor5").setCreativeTab(MyCreativeTab_1);

GameRegistry.registerItem(MyHelmet_5, "MyHelmet_5");

LanguageRegistry.addName(MyHelmet_5, "Netherrack Helmet"); 

 

//  LOAD HELMET 2

      MyHelmet_6 = new MyArmor_6(0, MyArmorMaterial_6, 0, 0, "myarmor6").setCreativeTab(MyCreativeTab_1);

GameRegistry.registerItem(MyHelmet_6, "MyHelmet_6");

LanguageRegistry.addName(MyHelmet_6, "Ender Helmet"); 

 

//  LOAD CHESTPLATE 2

        MyChest_6 = new MyArmor_6(0, MyArmorMaterial_6, 0, 1, "myarmor6").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyChest_6, "MyChest_6");

        LanguageRegistry.addName(MyChest_6, "Ender Chestplate");

 

//  LOAD LEGGINGS 2 

        MyLeggings_6 = new MyArmor_6(0, MyArmorMaterial_6, 0, 2, "myarmor6").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyLeggings_6, "MyLeggings_6");

        LanguageRegistry.addName(MyLeggings_6, "Ender Leggings");

 

//  LOAD BOOTS 

        MyBoots_6 = new MyArmor_6(0, MyArmorMaterial_6, 0, 3, "myarmor6").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyBoots_6, "MyBoots_6");

        LanguageRegistry.addName(MyBoots_6, "Ender Boots");

 

//  LOAD HELMET 3

      MyHelmet_3 = new MyArmor_3(0, MyArmorMaterial_3, 0, 0, "myarmor3").setCreativeTab(MyCreativeTab_1);

GameRegistry.registerItem(MyHelmet_3, "MyHelmet_3");

LanguageRegistry.addName(MyHelmet_3, "GlowStone Helmet"); 

 

 

//  LOAD CHESTPLATE 2

        MyChest_2 = new MyArmor_2(0, MyArmorMaterial_2, 0, 1, "myarmor2").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyChest_2, "MyChest_2");

        LanguageRegistry.addName(MyChest_2, "Mega Chestplate");

 

//  LOAD LEGGINGS 2 

        MyLeggings_2 = new MyArmor_2(0, MyArmorMaterial_2, 0, 2, "myarmor2").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyLeggings_2, "MyLeggings_2");

        LanguageRegistry.addName(MyLeggings_2, "Mega Leggings");

 

//  LOAD BOOTS 

        MyBoots_2 = new MyArmor_2(0, MyArmorMaterial_2, 0, 3, "myarmor2").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyBoots_2, "MyBoots_2");

        LanguageRegistry.addName(MyBoots_2, "Mega Boots");

 

// LOAD SHOVEL

MyShovel = new MyShovel(0, MyToolMaterial2, "MyShovel").setCreativeTab(MyCreativeTab_1);

    GameRegistry.registerItem(MyShovel, "MyShovel");

    LanguageRegistry.addName(MyShovel, "Mega Shovel");

 

 

//  LOAD HELMET

        MyHelmet_1 = new MyArmor(0, MyArmorMaterial_1, 0, 0, "myarmor").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyHelmet_1, "MyHelmet_1");

        LanguageRegistry.addName(MyHelmet_1, "Sapphire Helmet");     

   

   

//  LOAD CHESTPLATE

        MyChest_1 = new MyArmor(0, MyArmorMaterial_1, 0, 1, "myarmor").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyChest_1, "MyChest_1");

        LanguageRegistry.addName(MyChest_1, "Sapphire Chestplate");

 

//  LOAD LEGGINGS   

        MyLeggings_1 = new MyArmor(0, MyArmorMaterial_1, 0, 2, "myarmor").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyLeggings_1, "MyLeggings_1");

        LanguageRegistry.addName(MyLeggings_1, "Sapphire Leggings");

 

//  LOAD BOOTS 

        MyBoots_1 = new MyArmor(0, MyArmorMaterial_1, 0, 3, "myarmor").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyBoots_1, "MyBoots_1");

        LanguageRegistry.addName(MyBoots_1, "Sapphire Boots");

       

       

        //  LOAD HELMET

        MyHelmet_4 = new MyArmor_4(0, MyArmorMaterial_4, 0, 0, "myarmor4").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyHelmet_4, "MyHelmet_4");

        LanguageRegistry.addName(MyHelmet_4, "Ruby Helmet");     

   

//  LOAD CHESTPLATE

        MyChest_4 = new MyArmor_4(0, MyArmorMaterial_4, 0, 1, "myarmor4").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyChest_4, "MyChest_4");

        LanguageRegistry.addName(MyChest_4, "Ruby Chestplate");

 

//  LOAD LEGGINGS   

        MyLeggings_4 = new MyArmor_4(0, MyArmorMaterial_4, 0, 2, "myarmor4").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyLeggings_4, "MyLeggings_4");

        LanguageRegistry.addName(MyLeggings_4, "Ruby Leggings");

 

//  LOAD BOOTS 

        MyBoots_4 = new MyArmor_4(0, MyArmorMaterial_4, 0, 3, "myarmor4").setCreativeTab(MyCreativeTab_1);

        GameRegistry.registerItem(MyBoots_4, "MyBoots_4");

        LanguageRegistry.addName(MyBoots_4, "Ruby Boots");

       

       

 

     

 

       

       

        //  REGISTER YOUR ENTITY

        EntityRegistry.registerGlobalEntityID(MyEntityOgre.class, "Golem Of Death", EntityRegistry.findGlobalUniqueEntityId());

        EntityRegistry.addSpawn(MyEntityOgre.class, 500, 10, 15, EnumCreatureType.monster, BiomeGenBase.desert); 

        EntityRegistry.addSpawn(MyEntityOgre.class, 500, 10, 15, EnumCreatureType.monster); 

        registerEntityEgg(MyEntityOgre.class, (new Color(255, 255, 255)).getRGB(), (new Color(0, 0, 0)).getRGB());   

 

 

       

  //  REGISTER YOUR ENTITY

        EntityRegistry.registerGlobalEntityID(MyEntityApe.class, "Ape", EntityRegistry.findGlobalUniqueEntityId(),(new Color(97, 71, 52)).getRGB(), (new Color(151, 137, 111)).getRGB());

        EntityRegistry.addSpawn(MyEntityApe.class, 88, 6, 12, EnumCreatureType.monster, BiomeGenBase.jungle);

        EntityRegistry.addSpawn(MyEntityApe.class, 88, 6, 12, EnumCreatureType.monster, BiomeGenBase.jungleHills);

        EntityRegistry.addSpawn(MyEntityApe.class, 5, 1, 5, EnumCreatureType.monster);   

   

 

 

 

//  REGISTER YOUR ENTITY 3

        EntityRegistry.registerGlobalEntityID(EntityBeardedDragon.class, "Bearded Dragon", EntityRegistry.findGlobalUniqueEntityId());

        EntityRegistry.addSpawn(EntityBeardedDragon.class, 88, 6, 12, EnumCreatureType.monster, BiomeGenBase.desert);

        EntityRegistry.addSpawn(EntityBeardedDragon.class, 88, 6, 12, EnumCreatureType.monster, BiomeGenBase.desertHills);

        EntityRegistry.addSpawn(EntityBeardedDragon.class, 5, 1, 5, EnumCreatureType.monster);   

        registerEntityEgg(EntityBeardedDragon.class, (new Color(99, 74, 57)).getRGB(), (new Color(249, 255, 0)).getRGB());

   

     

       

    //  REGISTER YOUR ENTITY 3

        EntityRegistry.registerGlobalEntityID(EntityRifleBolt.class, "RifleBolt", EntityRegistry.findGlobalUniqueEntityId());

       

     

       

 

 

    MyAchievement_1 = new Achievement("achievement.megastone", "MyItem_2", 8 , 12, new ItemStack(MyItem_2), AchievementList.theEnd2).registerStat();

    MyAchievement_2 = new Achievement("achievement.nio", "MyBlock_2", -3 , 3, mymod.main.Main.MyBlock_2, AchievementList.acquireIron).registerStat();

    MyAchievement_3 = new Achievement("achievement.bacon", "MyFood_2", -3 , -5, new ItemStack(MyFood_2), AchievementList.bakeCake).registerStat();

       

   

   

       

/* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */

 

}

 

@EventHandler

public static void init( FMLInitializationEvent event )

{

 

/**

* RECIPES SECTION

* *********************************************************** */

//Fire Staff Recipe

GameRegistry.addRecipe(new ItemStack(fireStaff,1), new Object[]

{

"XYX",

"XYX",

"NPN",

'X', Items.fire_charge,

'Y', MyItem_2,

'N', Items.nether_star,

'P', Items.stick

 

 

});

 

 

 

// AXE RECIPE 3

      GameRegistry.addRecipe(new ItemStack(MyAxe_3,1), new Object[]

      {

      "XX",

              "SX",

              "S ",

          'S', Items.stick,

          'X', Items.glowstone_dust,

      });

     

        // AXE RECIPE 3

      GameRegistry.addRecipe(new ItemStack(MyShovel6,1), new Object[]

      {

      "XAX",

              "ABA",

              "XAX",

          'B', MyShovel,

          'X', MyShovel5,

          'A', Blocks.diamond_block,

      });

     

      // AXE RECIPE 5

      GameRegistry.addRecipe(new ItemStack(MyAxe_5,1), new Object[]

      {

      "XX",

              "SX",

              "S ",

          'S', Items.stick,

          'X', MyItem_5,

      });

     

             

 

             

//  SWORD RECIPE  2

        GameRegistry.addRecipe(new ItemStack(MySword_2, 1), new Object[]

        {

                "X",

                "X",

                "S",

            'S', Items.stick,

            'X', MyItem_2,

        });

 

//  SWORD RECIPE  2

        GameRegistry.addRecipe(new ItemStack(MySword_4, 1), new Object[]

        {

                "X",

                "X",

                "S",

            'S', Items.stick,

            'X', MyItem_3,

        });

 

//SWORD RECIPE 3

    GameRegistry.addRecipe(new ItemStack(MySword_3, 1), new Object[]

    {

    "X",

    "X",

    "S",

      'S', Items.stick,

      'X', Items.glowstone_dust,

    });

 

//  AXE RECIPE

        GameRegistry.addRecipe(new ItemStack(MyAxe, 1), new Object[]

        {

                " XX",

                " SX",

                " S ",

            'S', Items.stick,

            'X', MyItem_2,

        });

 

//  MEGA STONE RECIPE 

        GameRegistry.addRecipe(new ItemStack(MyItem_2, 1), new Object[]

        {

                "YYY",

                "YXY",

                "YYY",

            'X', MyBlock_2,

            'Y', Items.nether_star

        });

       

        //  MEGA STONE RECIPE 

        GameRegistry.addRecipe(new ItemStack(MyPickaxe_6, 1), new Object[]

        {

                "XXX",

                " Y ",

                " Y ",

            'X', MyItem_6,

            'Y', Items.stick

        });

       

        //  MEGA STONE RECIPE 

        GameRegistry.addRecipe(new ItemStack(MyAxe_6, 1), new Object[]

        {

                "XX",

                "YX",

                "Y ",

            'X', MyItem_6,

            'Y', Items.stick

        });

       

        // NIGHTS EDGE RECIPE

        GameRegistry.addRecipe(new ItemStack(MySword_5, 1), new Object[]

        {

        "X",

                "X",

                "Y",

            'X', MyItem_4,

            'Y', Items.stick,

        });

               

                // NIGHT SHARD RECIPE

                GameRegistry.addRecipe(new ItemStack(MyItem_4, 1), new Object[]

                {

                "XXX",

                        "XYX",

                        "XXX",

                        'X', Items.ender_pearl,

                        'Y', Items.ender_eye,

                });

//  SWORD RECIPE 

        GameRegistry.addRecipe(new ItemStack(MySword_1, 1), new Object[]

        {

                " X ",

                "XXX",

                " S ",

            'S', Items.stick,

            'X', MyItem_1,

        });

       

        // NETHER SHARD RECIPE

        GameRegistry.addRecipe(new ItemStack(MyItem_5, 1), new Object[]

        {

        "S",

                'S', Blocks.netherrack

        });

               

//  PICKAXE RECIPE 

        GameRegistry.addRecipe(new ItemStack(MyPickaxe_1, 1), new Object[]

        {

                "XXX",

                " S ",

                " S ",

            'S', Items.stick,

            'X', MyItem_1,

        });

       

       

       

        //  PICKAXE RECIPE 

        GameRegistry.addRecipe(new ItemStack(MyPickaxe_5, 1), new Object[]

        {

                "XXX",

                " S ",

                " S ",

            'S', Items.stick,

            'X', MyItem_5,

        });

       

        //  PICKAXE RECIPE  2

        GameRegistry.addRecipe(new ItemStack(MyPickaxe_2, 1), new Object[]

        {

                "XXX",

                " S ",

                " S ",

            'S', Items.stick,

            'X', MyItem_2,

        });

       

        //  ENDER STAFF RECIPE

        GameRegistry.addRecipe(new ItemStack(MyEnderStaff, 1), new Object[]

        {

                "ZZZ",

                "XXX",

                "OSO",

            'S', Items.nether_star,

            'X', Items.ender_pearl,

            'Z', Items.ender_eye,

            'O', Blocks.obsidian,

        });

       

       

        //  Sword RECIPE  6

        GameRegistry.addRecipe(new ItemStack(MySword_6, 1), new Object[]

        {

                "X",

                "X",

                "S",

            'S', Items.stick,

            'X', MyItem_5,

        });

       

       

//  FOOD RECIPE       

        GameRegistry.addRecipe(new ItemStack(MyFood_1, 1), new Object[]

        {

                " X ",

                " S ",

                " X ",

            'S', Items.cooked_beef,

            'X', Items.bread       

        });

       

       

        //  FOOD RECIPE       

        GameRegistry.addRecipe(new ItemStack(MyItem_6, 1), new Object[]

        {

                "X",

            'X', Blocks.end_stone

        });

       

        //  FOOD RECIPE       

        GameRegistry.addRecipe(new ItemStack(MyFood_2, 1), new Object[]

        {

                " Y ",

                " S ",

                " X ",

            'S', MyFood_3,

            'X', Items.bread,

            'Y', Items.sugar     

        });

       

        //  FOOD RECIPE       

        GameRegistry.addRecipe(new ItemStack(MySword_8, 1), new Object[]

        {

                "S",

                "S",

                "X",

            'S', Items.nether_star,

            'X', Items.stick,     

        });

       

        //  FOOD RECIPE       

        GameRegistry.addRecipe(new ItemStack(MyFood_3, 1), new Object[]

        {

                " X ",

                " S ",

                " X ",

            'S', Items.cooked_porkchop,

            'X', Items.porkchop       

        });

       

        //  SMELTING RECIPE

        GameRegistry.addSmelting(MyBlock_1, (new ItemStack(MyItem_1, 1)), 20);

       

        // SMELTING RECIPE 2

        GameRegistry.addSmelting(MyBlock_3, (new ItemStack(MyItem_3, 1)), 21);

       

        //Smelting Recipse

        GameRegistry.addSmelting(orcanBlock, (new ItemStack(orcanIngot)), 20);

       

        //  HELMET RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyHelmet_1, 1), new Object[]

    {

            "XXX",

            "X X",

        'X', MyItem_1,

    });       

   

      //  HELMET RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyHelmet_6, 1), new Object[]

    {

            "XXX",

            "X X",

        'X', MyItem_6,

    });       

   

    //  HELMET RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyChest_6, 1), new Object[]

    {

            "X X",

            "XXX",

            "XXX",

        'X', MyItem_6,

    }); 

   

    //  HELMET RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyLeggings_6, 1), new Object[]

    {

            "XXX",

            "X X",

            "X X",

        'X', MyItem_6,

    });

   

    //  HELMET RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyBoots_6, 1), new Object[]

    {

            "X X",

            "X X",

        'X', MyItem_6,

    });       

   

          //  HELMET RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyHelmet_5, 1), new Object[]

    {

            "XXX",

            "X X",

        'X', MyItem_5,

    });       

   

    //  HELMET RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyHelmet_4, 1), new Object[]

    {

            "XXX",

            "X X",

        'X', MyItem_3,

    });       

   

    //  HELMET RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyChest_4, 1), new Object[]

    {

            "X X",

            "XXX",

            "XXX",

        'X', MyItem_3,

    });   

   

    //  HELMET RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyChest_5, 1), new Object[]

    {

            "X X",

            "XXX",

            "XXX",

        'X', MyItem_5,

    });       

   

    //  HELMET RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyLeggings_5, 1), new Object[]

    {

            "XXX",

            "X X",

            "X X",

        'X', MyItem_5,

    });

   

    //  HELMET RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyLeggings_4, 1), new Object[]

    {

            "XXX",

            "X X",

            "X X",

        'X', MyItem_3,

    });       

//  PICKAXE RECIPE 

        GameRegistry.addRecipe(new ItemStack(MyAxe_4, 1), new Object[]

        {

                "XX",

                "SX",

                "S ",

            'S', Items.stick,

            'X', MyItem_3,

        });

//  HELMET RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyBoots_5, 1), new Object[]

    {

            "X X",

            "X X",

        'X', MyItem_5,

    });       

 

//  HELMET RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyBoots_4, 1), new Object[]

    {

            "X X",

            "X X",

        'X', MyItem_3,

    });       

 

//  NIO BLOCK RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyBlock_2, 1), new Object[]

    {

            "CIC",

            "IMI",

            "CIC",

        'M', Blocks.glass, 

        'I', Blocks.redstone_lamp,

        'C', Items.redstone

    });       

 

 

//  CHESTPLATE RECIPE 

    GameRegistry.addRecipe(new ItemStack(MyChest_1, 1), new Object[]

    {

            "X X",

            "XXX",

            "XXX",

        'X', MyItem_1,

    });       

 

//  LEGGINGS RECIPE

    GameRegistry.addRecipe(new ItemStack(MyLeggings_1, 1), new Object[]

    {

            "XXX",

            "X X",

            "X X",

        'X', MyItem_1,

    });       

 

//  BOOTS RECIPE   

    GameRegistry.addRecipe(new ItemStack(MyBoots_1, 1), new Object[]

    {

            "X X",

            "X X",

        'X', MyItem_1,

    });

 

//  CHESTPLATE 2 RECIPE   

    GameRegistry.addRecipe(new ItemStack(MyChest_2, 1), new Object[]

    {

            "X X",

            "XXX",

            "XXX",

        'X', MyItem_2,

    });

 

//  HELMET 2 RECIPE   

    GameRegistry.addRecipe(new ItemStack(MyHelmet_2, 1), new Object[]

    {

            "XXX",

            "X X",

        'X', MyItem_2,

    });

 

//  LEGGINGS RECIPE

    GameRegistry.addRecipe(new ItemStack(MyLeggings_2, 1), new Object[]

    {

            "XXX",

            "X X",

            "X X",

        'X', MyItem_2,

    });       

 

//  BOOTS RECIPE   

    GameRegistry.addRecipe(new ItemStack(MyBoots_2, 1), new Object[]

    {

            "X X",

            "X X",

        'X', MyItem_2,

    });

   

// SHOVEL RECIPE   

    GameRegistry.addRecipe(new ItemStack(MyShovel, 1), new Object[]

    {

            "X",

            "Y",

            "Y",

        'X', MyItem_2,

        'Y', Items.stick

    });

   

    // SHOVEL RECIPE   

    GameRegistry.addRecipe(new ItemStack(MyShovel5, 1), new Object[]

    {

            "X",

            "Y",

            "Y",

        'X', MyItem_5,

        'Y', Items.stick

    });

   

    // SHOVEL RECIPE    2

    GameRegistry.addRecipe(new ItemStack(MyShovel2, 1), new Object[]

    {

            "X",

            "Y",

            "Y",

        'X', MyItem_1,

        'Y', Items.stick

    });

   

    // SHOVEL RECIPE    3

    GameRegistry.addRecipe(new ItemStack(MyShovel3, 1), new Object[]

    {

            "X",

            "Y",

            "Y",

        'X', Items.glowstone_dust,

        'Y', Items.stick

    });

   

   

    // SHOVEL RECIPE    4

    GameRegistry.addRecipe(new ItemStack(MyShovel4, 1), new Object[]

    {

            "X",

            "Y",

            "Y",

        'X', MyItem_3,

        'Y', Items.stick

    });

   

    //  AXE RECIPE

        GameRegistry.addRecipe(new ItemStack(MyAxe2, 1), new Object[]

        {

                "XX",

                "SX",

                "S ",

            'S', Items.stick,

            'X', MyItem_1,

        });

   

    //  HELMET 3 RECIPE   

    GameRegistry.addRecipe(new ItemStack(MyHelmet_3, 1), new Object[]

    {

            "XXX",

            "X X",

        'X', Items.glowstone_dust,

    });

   

    //  CHEST 3 RECIPE   

    GameRegistry.addRecipe(new ItemStack(MyChest_3, 1), new Object[]

    {

            "X X",

            "XXX",

            "XXX",

        'X', Items.glowstone_dust,

    });

   

    //  LEGGINGS 3 RECIPE   

    GameRegistry.addRecipe(new ItemStack(MyLeggings_3, 1), new Object[]

    {

            "XXX",

            "X X",

            "X X",

        'X', Items.glowstone_dust,

    });

   

    //  BOOTS 3 RECIPE   

    GameRegistry.addRecipe(new ItemStack(MyBoots_3, 1), new Object[]

    {

            "X X",

            "X X",

        'X', Items.glowstone_dust,

    });

   

    //  PICKAXE 3 RECIPE

        GameRegistry.addRecipe(new ItemStack(MyPickaxe_3, 1), new Object[]

        {

                "XXX",

                " S ",

                " S ",

            'S', Items.stick,

            'X', Items.glowstone_dust,

        });

   

   

    //  PICKAXE 3 RECIPE

        GameRegistry.addRecipe(new ItemStack(MySword_7, 1), new Object[]

        {

                "X",

                "X",

                "S",

            'S', Items.stick,

            'X', MyItem_6,

           

        });

       

 

//  PICKAXE 3 RECIPE

        GameRegistry.addRecipe(new ItemStack(orcanSword, 1), new Object[]

        {

                "X",

                "X",

                "S",

            'S', Items.stick,

            'X', orcanIngot,

           

        });

       

//  Orcan Pickaxe Recipe

        GameRegistry.addRecipe(new ItemStack(orcanPickaxe, 1), new Object[]

        {

                "XXX",

                " S ",

                " S ",

            'S', Items.stick,

            'X', orcanIngot,

           

        });

       

        //  Orcan Pickaxe Recipe

        GameRegistry.addRecipe(new ItemStack(orcanAxe, 1), new Object[]

        {

                "XX",

                "SX",

                "S ",

            'S', Items.stick,

            'X', orcanIngot,

           

        });

       

        //  Orcan Pickaxe Recipe

        GameRegistry.addRecipe(new ItemStack(orcanShovel, 1), new Object[]

        {

                "X",

                "S",

                "S",

            'S', Items.stick,

            'X', orcanIngot,

           

        });

       

       

/* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */

 

 

/**

* EXTRA METHODS SECTION

* *********************************************************** */

AchievementPage.registerAchievementPage(new AchievementPage("InfiniAchievementPage", new Achievement[]{MyAchievement_1, MyAchievement_2, MyAchievement_3}));

 

 

    GameRegistry.registerWorldGenerator(new MyBlockGen(), 1);

    GameRegistry.registerWorldGenerator(new MyBlockGenRuby(), 2);

    GameRegistry.registerWorldGenerator(new orcanBlockGen(), 3);

    // CHANGE THE TEXT OF THE ACHIEVEMENT

   

 

MinecraftForge.EVENT_BUS.register(MyAchievement_1);

MinecraftForge.EVENT_BUS.register(MyAchievement_2);

MinecraftForge.EVENT_BUS.register(MyAchievement_3);

 

 

//  REGISTER PICKUP HANDLER

    //    MyPickupHandler MyPickupHandler_1 = new MyPickupHandler();

      //  GameRegistry.registerPickupHandler(MyPickupHandler_1); 

       

        //  REGISTER CRAFTING HANDLER

      //  MyCraftingHandler MyCraftingHandler_1 = new MyCraftingHandler();

        //GameRegistry.RegisterCraftingHandler(MyCraftingHandler_1); 

 

          // REGISTER CRAFTING HANDLER

        //MyCraftingHandler MyCraftingHandler_2 = new MyCraftingHandler();

      // GameRegistry.registerCraftingHandler(MyCraftingHandler_2); 

 

//  CHANGE TAB NAME

        LanguageRegistry.instance().addStringLocalization("itemGroup.MyCreativeTab_1", "en_US", "InfiniCraft"); 

       

            // CHANGE THE TEXT OF THE ACHIEVEMENT

    LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_1", "en_US", "Dude, How Did You Get This Far?");

    LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_1.desc", "en_US", "Aquire Mega Stone with 8 Nether Stars and 1 Nio Block");

 

    // CHANGE THE TEXT OF THE ACHIEVEMENT

    LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_2", "en_US", "The Nio");

    LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_2.desc", "en_US", "Aquire A Nio Block");

      // CHANGE THE TEXT OF THE ACHIEVEMENT

    LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_3", "en_US", "BACON! HECK YEAH!");

    LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_3.desc", "en_US", "Aquire Bacon");

   

/* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */

 

 

}

 

 

 

 

@EventHandler

public static void postInit( FMLPostInitializationEvent event ) {

proxy.registerRenderInformation();

  if (event.getSide() == Side.CLIENT)

      Minecraft.getMinecraft().refreshResources();

}

 

}

 

 

Posted

First: Please use code tags:

[.code]Code Here[./code]

(without the dots)

 

Second: Try adding something like

System.out.println("rendering!")

in your render method. If that spams out the console, it is something wrong with the renderer, or else with the registration with the renderer.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

First: Please use code tags:

[.code]Code Here[./code]

(without the dots)

 

Second: Try adding something like

System.out.println("rendering!")

in your render method. If that spams out the console, it is something wrong with the renderer, or else with the registration with the renderer.

Ok, sorry. I didn't know about code tags. The console is not being spammed when I add this.

Posted

Question: Why do you have this code in your FMLPostInitializationEvent:

if (event.getSide() == Side.CLIENT)
      Minecraft.getMinecraft().refreshResources();
   }

 

Maybe you could try moving the

proxy.registerRenderInformation()

to the FMLInitializationEvent.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

Question: Why do you have this code in your FMLPostInitializationEvent:

if (event.getSide() == Side.CLIENT)
      Minecraft.getMinecraft().refreshResources();
   }

 

Maybe you could try moving the

proxy.registerRenderInformation()

to the FMLInitializationEvent.

That code helps with some other texture issues for items. No, it doesnt do anything if I add it to the FMLInitializationEvent. Oh, I do have other mobs and they are rendering fine.

Posted

Do you have a GitHub repository? If not, are you willing to make one? Here's a tutorial by Jabelar: http://jabelarminecraft.blogspot.nl/p/minecraft-forge-publishing-to-github.html

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

Can you post the item that will be shooting the bullets....the gun class

package mymod.items;

import mymod.entity.EntityRifleBolt.EntityRifleBolt;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;


public class pulseRifle extends Item {
    
    private String texturePath = "mymod:";
    
    public pulseRifle(int ItemID, String textureName)
    {
        super();
        this.setUnlocalizedName(textureName);
        this.setCreativeTab(mymod.main.Main.MyCreativeTab_1);
        texturePath += textureName;
    }

@Override   
@SideOnly(Side.CLIENT)

    public void registerIcons(IIconRegister iconRegister)
    {
        this.itemIcon = iconRegister.registerIcon(texturePath);
    }   
  
  @Override
  public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World,EntityPlayer par3EntityPlayer) {
      if(par3EntityPlayer.capabilities.isCreativeMode||par3EntityPlayer.inventory.consumeInventoryItem(Items.redstone))
      {
          par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));
          if (!par2World.isRemote)
          {
              par2World.spawnEntityInWorld(new EntityRifleBolt(par2World, par3EntityPlayer));
          }
      }
          return par1ItemStack;
      }
  
  /**
   * Returns True is the item is renderer in full 3D when hold.
   */
  @SideOnly(Side.CLIENT)
  public boolean isFull3D()
  {
      return true;
  }

  
  }

 

Posted

use F3+B in game so you can see the entities bounding boxes see if a bullet bounding box appears

 

Does you sound clip fire when you right click the gun?

 

Also according to your riflebolt entity on impact it will create an explosion. But not actually do anything to the entity hit.

 

If your bullet is being created server side but not client side you won't see the bullet bounding box. But the bullet still exists.

 

So try this.

 


@Override
protected void onImpact(MovingObjectPosition mop) {
                 if (mop.entityHit != null) {
                 System.out.println(mop.entityHit.getEntityName());
	}

	if (!worldObj.isRemote) {
		setDead();
	}
}

 

This way if the bullet is being created at all it will tell you if it hits something.

No there is no hitbox, and when I put that code in the class it says that The method onImpact(MovingObjectPosition) of type pulseRifle must override or implement a supertype method and that The method getEntityName() is undefined for the type Entity AND worldObj cannot be resolved to a variable and The method setDead() is undefined for the type pulseRifle

Posted

Could it be because you didn't replace your "onimpact" with the one I wrote? And you had 2 seperate onimpacts?

 

Try again and read what you are copy and pasting

Ok, I fixed some of it. The one left is The method getEntityName() is undefined for the type Entity

Posted

Post the updated onImpact method.

 

try just typing mop. (or in your case par1MovingObjectPosition.) and see what stuff eclipse gives you to pick from.

 

Typing a class name plus a "." will reveal all the public variables it has to offer. At least it does for me. You are looking for some thing like entityHit. not just entity

It has entityHit, that is what it was using. The entityName is the problem. I tried entityId but nothing changes from before

Posted

I have the same problem as you, my entity isn't rendering and I have no idea why it exists because I put a check in onUpdate() but it's not rendering and has no hitbox. I think it might have something to do with that but I couldn't be sure.

The proud(ish) developer of Ancients

Posted

I have the same problem as you, my entity isn't rendering and I have no idea why it exists because I put a check in onUpdate() but it's not rendering and has no hitbox. I think it might have something to do with that but I couldn't be sure.

Not sure...
Posted

Post the updated onImpact method.

 

try just typing mop. (or in your case par1MovingObjectPosition.) and see what stuff eclipse gives you to pick from.

 

Typing a class name plus a "." will reveal all the public variables it has to offer. At least it does for me. You are looking for some thing like entityHit. not just entity

OK i fixed it not hurting mobs but it still wont render

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.