Jump to content

[UNSOLVED] [1.8.9] Custom mob dies after world reload!


NaxotronDE

Recommended Posts

Hey guys! At first I want to say that my english is properly not very good because I'm German.

I created my own Mobs and it worked! The first three were Monsters and they are working perfect but my next mob is an animal (turtle) and when I save the world and go into it again, the turtle dies!

I searched for it but I can't find anything so please help me! >_<

 

MY MODS ARE AWESOME!!!

...and sometimes they won't work :)

Contact me in skype for live chat: Affenkind

Link to comment
Share on other sites

Ok, so now it is updated!

 

Heres the EntityTurtle class:

 

 

package sumba.entity;

 

import net.minecraft.block.Block;

import net.minecraft.entity.EntityAgeable;

import net.minecraft.entity.SharedMonsterAttributes;

import net.minecraft.entity.ai.EntityAIFollowParent;

import net.minecraft.entity.ai.EntityAILookIdle;

import net.minecraft.entity.ai.EntityAIMate;

import net.minecraft.entity.ai.EntityAIPanic;

import net.minecraft.entity.ai.EntityAISwimming;

import net.minecraft.entity.ai.EntityAITempt;

import net.minecraft.entity.ai.EntityAIWander;

import net.minecraft.entity.ai.EntityAIWatchClosest;

import net.minecraft.entity.passive.EntityAnimal;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.pathfinding.PathNavigateGround;

import net.minecraft.util.BlockPos;

import net.minecraft.world.World;

 

public class EntityTurtle extends EntityAnimal {

 

public EntityTurtle(World worldIn) {

super(worldIn);

((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);

        this.tasks.addTask(0, new EntityAISwimming(this));

        this.tasks.addTask(1, new EntityAIPanic(this, 1.25D));

        this.tasks.addTask(2, new EntityAIMate(this, 1.0D));

        this.tasks.addTask(4, new EntityAIFollowParent(this, 1.1D));

        this.tasks.addTask(6, new EntityAIWander(this, 1.0D));

        this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));

        this.tasks.addTask(8, new EntityAILookIdle(this));

}

 

@Override

public EntityAgeable createChild(EntityAgeable ageable) {

return null;

}

 

protected void applyEntityAttributes() {

        super.applyEntityAttributes();

        this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(8.0D);

        this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.11D);

        this.getEntityAttribute(SharedMonsterAttributes.knockbackResistance).setBaseValue(1.3D);

    }

 

protected String getLivingSound() {

        return "mob.turtle.idle";

    }

 

    protected String getHurtSound() {

        return "mob.turtle.hit";

    }

   

    protected String getDeathSound() {

        return "mob.turtle.death";

    }

 

    protected void playStepSound(BlockPos p_180429_1_, Block p_180429_2_) {

        this.playSound("mob.sheep.step", 0.15F, 1.0F);

    }

   

    //TODO Create item as drop

    protected Item getDropItem() {

        return null ;

    }

 

}

 

 

 

MY MODS ARE AWESOME!!!

...and sometimes they won't work :)

Contact me in skype for live chat: Affenkind

Link to comment
Share on other sites

Here is my Main class:

 

 

package sumba.main;

 

import net.minecraft.block.Block;

import net.minecraft.block.properties.PropertyDirection;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.Entity;

import net.minecraft.entity.EnumCreatureType;

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.ItemAxe;

import net.minecraft.item.ItemFood;

import net.minecraft.item.ItemHoe;

import net.minecraft.item.ItemPickaxe;

import net.minecraft.item.ItemSpade;

import net.minecraft.item.ItemStack;

import net.minecraft.item.ItemSword;

import net.minecraft.stats.Achievement;

import net.minecraft.util.EnumFacing;

import net.minecraft.world.biome.BiomeGenBase;

import net.minecraft.world.biome.BiomeGenBase.Height;

import net.minecraft.world.biome.BiomeGenForest;

import net.minecraftforge.common.AchievementPage;

import net.minecraftforge.common.BiomeManager;

import net.minecraftforge.common.DimensionManager;

import net.minecraftforge.common.BiomeManager.BiomeEntry;

import net.minecraftforge.common.BiomeManager.BiomeType;

import net.minecraftforge.common.config.Configuration;

import net.minecraftforge.common.util.EnumHelper;

import net.minecraftforge.fml.common.FMLCommonHandler;

import net.minecraftforge.fml.common.Mod;

import net.minecraftforge.fml.common.Mod.EventHandler;

import net.minecraftforge.fml.common.Mod.Instance;

import net.minecraftforge.fml.common.SidedProxy;

import net.minecraftforge.fml.common.event.FMLInitializationEvent;

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;

import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

import net.minecraftforge.fml.common.network.NetworkRegistry;

import net.minecraftforge.fml.common.registry.EntityRegistry;

import net.minecraftforge.fml.common.registry.GameRegistry;

import net.minecraftforge.oredict.OreDictionary;

import sumba.blocks.*;

import sumba.entity.*;

import sumba.items.*;

import sumba.items.tools.*;

import sumba.main.generators.SUMBAWorldGenerator;

import sumba.main.util.BiomeSumba;

import sumba.main.util.EntityCreator;

import sumba.main.util.SUMBAEventHandler;

import sumba.main.util.SUMBAFuelHandler;

import sumba.proxy.ServerProxy;

import sumba.render.RenderAlien;

import sumba.render.RenderBabyScorpion;

import sumba.render.RenderFrostBabyScorpion;

import sumba.render.RenderScorpion;

import sumba.render.RenderScorpionFrost;

import sumba.render.RenderTurtle;

 

@Mod(modid = SUMBA.MODID, version = SUMBA.VERSION)

public class SUMBA {

public static final String MODID = "sumba";

public static final String VERSION = "Alpha 0.1";

 

@Instance(MODID)

public static SUMBA INSTANCE;

 

@SidedProxy(clientSide = "sumba.proxy.ClientProxy", serverSide = "sumba.proxy.ServerProxy")

public static ServerProxy PROXY;

   

   

    public static Item uumatter;

    public static Item ironApple;

    public static Item obsidianPlate;

    public static Item diamondPlate;

    public static Item ironPlate;

    public static Item goldPlate;

    public static Item stonePlate;

    public static Item copperPlate;

    public static Item sapphirePlate;

    public static Item rubyPlate;

    public static Item leadPlate;

    public static Item tinPlate;

    public static Item silverPlate;

    public static Item platinumPlate;

    public static Item enderiumPlate;

    public static Item emeraldPlate;

    public static Item obsidianIngot;

    public static Item forgeHammer;

    public static Item grenade;

    public static Item obsidianBow;

    public static Block uumatterOre;

    public static Block netherUumatterOre;

    public static CreativeTabs sumbatab;

    public static ToolMaterial obsidianToolMaterial = EnumHelper.addToolMaterial("OBSIDIAN_TOOL", 4, 2500, 14.0F, 4.0F, 100).setRepairItem(new ItemStack(Item.getItemFromBlock(Blocks.obsidian)));

    public static ArmorMaterial obsidianArmorMaterial = EnumHelper.addArmorMaterial("OBSIDIAN_ARMOR", "", 40, new int[]{4, 14, 10, 4}, 15);

    public static ToolMaterial ironSumbaToolMaterial = EnumHelper.addToolMaterial("IRON_SUMBA", 2, 250, 6.0F, 2.0F, 14).setRepairItem(new ItemStack(Items.iron_ingot));

    public static ToolMaterial diamondSumbaToolMaterial = EnumHelper.addToolMaterial("DIAMOND_SUMBA", 3, 1561, 8.0F, 3.0F, 100).setRepairItem(new ItemStack(Items.diamond));

    public static ToolMaterial obsidianSumbaToolMaterial = EnumHelper.addToolMaterial("OBSIDIAN_SUMBA", 4, 2500, 10.0F, 5.0F, 100).setRepairItem(new ItemStack(Item.getItemFromBlock(Blocks.obsidian)));

    public static ToolMaterial forgeHammerMaterial = EnumHelper.addToolMaterial("FORGE_HAMMER", 0, 0, 0.0F, 0F, 0).setRepairItem(new ItemStack(Items.iron_ingot));

    public static Item obsidianAxe;

    public static Item obsidianPickaxe;

    public static Item obsidianHoe;

    public static Item obsidianSpade;

    public static Item obsidianSword;

    public static Item obsidianHammer;

    public static Item obsidianExcavator;

    public static Item diamondHammer;

    public static Item diamondExcavator;

    public static Item ironHammer;

    public static Item ironExcavator;

    public static Item obsidianHelmet;

    public static Item obsidianChestplate;

    public static Item obsidianLeggins;

    public static Item obsidianBoots;

    public static String sumbaloaded;

    public static Achievement sumbajoin;

    public static Achievement sumbaitemcrafted;

    public static BiomeGenBase sumbaBiome;

    public static int sumbaBiomeId;

    public static Item obsidianHammerModule;

    public static Item diamondHammerModule;

    public static Item ironHammerModule;

    public static Item obsidianExcavatorModule;

    public static Item diamondExcavatorModule;

    public static Item ironExcavatorModule;

    public static int sumbaGuiId;

    public static Block creator, portal, stone;

    public static Block copperOre;

    public static Block sapphireOre;

    public static Block rubyOre;

    public static Block leadOre;

    public static Block tinOre;

    public static Block silverOre;

    public static Block platinumOre;

    public static Block copperBlock;

    public static Block sapphireBlock;

    public static Block rubyBlock;

    public static Block leadBlock;

    public static Block tinBlock;

    public static Block silverBlock;

    public static Block platinumBlock;

    public static Block enderiumBlock;

    public static Block marble;

    public static Block marbleBrick;

    public static Item copperIngot;

    public static Item sapphire;

    public static Item ruby;

    public static Item leadIngot;

    public static Item tinIngot;

    public static Item silverIngot;

    public static Item platinumIngot;

    public static Item enderiumIngot;

    public static Item goldHammer;

    public static Item goldHammerModule;

    public static Item stoneHammer;

    public static Item stoneHammerModule;

    public static Item stoneExcavator;

    public static Item stoneExcavatorModule;

    public static Item goldExcavator;

    public static Item goldExcavatorModule;

   

   

    @EventHandler

    public void preInit(FMLPreInitializationEvent event) {

   

    //Config

    Configuration config = new Configuration(event.getSuggestedConfigurationFile());

    config.load();

    sumbaloaded = config.getString("sumbaloaded", "String", "Du spielst nun mit der SUMBA-Mod!", "Send an information!");

    sumbaBiomeId = config.getInt("biomeid", "Biomes", 80, 60, 110, "Biome ID");

    config.save();

   

sumbatab = new CreativeTabs("sumbatab") { public Item getTabIconItem() { return Item.getItemFromBlock(uumatterOre);}};

    copperOre = new BlockCopperOre().setUnlocalizedName("copper_ore").setCreativeTab(this.sumbatab);

    copperBlock = new BlockCopperBlock().setUnlocalizedName("copper_block").setCreativeTab(this.sumbatab);

    sapphireOre = new BlockSapphireOre().setUnlocalizedName("sapphire_ore").setCreativeTab(this.sumbatab);

    sapphireBlock = new BlockSapphireBlock().setUnlocalizedName("sapphire_block").setCreativeTab(this.sumbatab);

    rubyOre = new BlockRubyOre().setUnlocalizedName("ruby_ore").setCreativeTab(this.sumbatab);

    rubyBlock = new BlockRubyBlock().setUnlocalizedName("ruby_block").setCreativeTab(this.sumbatab);

    leadOre = new BlockLeadOre().setUnlocalizedName("lead_ore").setCreativeTab(this.sumbatab);

    leadBlock = new BlockLeadBlock().setUnlocalizedName("lead_block").setCreativeTab(this.sumbatab);

    tinOre = new BlockTinOre().setUnlocalizedName("tin_ore").setCreativeTab(this.sumbatab);

    tinBlock = new BlockTinBlock().setUnlocalizedName("tin_block").setCreativeTab(this.sumbatab);

    silverOre = new BlockSilverOre().setUnlocalizedName("silver_ore").setCreativeTab(this.sumbatab);

    silverBlock = new BlockSilverBlock().setUnlocalizedName("silver_block").setCreativeTab(this.sumbatab);

    platinumOre = new BlockPlatinumOre().setUnlocalizedName("platinum_ore").setCreativeTab(this.sumbatab);

    platinumBlock = new BlockPlatinumBlock().setUnlocalizedName("platinum_block").setCreativeTab(this.sumbatab);

    enderiumBlock = new BlockEnderiumBlock().setUnlocalizedName("enderium_block").setCreativeTab(this.sumbatab);

    marble = new BlockMarble().setUnlocalizedName("marble").setCreativeTab(this.sumbatab);

    marbleBrick = new BlockMarbleBrick().setUnlocalizedName("marble_brick").setCreativeTab(this.sumbatab);

    copperIngot = new ItemCopperIngot().setUnlocalizedName("copper_ingot").setCreativeTab(this.sumbatab);

    sapphire = new ItemSapphire().setUnlocalizedName("sapphire").setCreativeTab(this.sumbatab);

    ruby = new ItemRuby().setUnlocalizedName("ruby").setCreativeTab(this.sumbatab);

    leadIngot = new ItemLeadIngot().setUnlocalizedName("lead_ingot").setCreativeTab(this.sumbatab);

    tinIngot = new ItemTinIngot().setUnlocalizedName("tin_ingot").setCreativeTab(this.sumbatab);

    silverIngot = new ItemSilverIngot().setUnlocalizedName("silver_ingot").setCreativeTab(this.sumbatab);

    platinumIngot = new ItemPlatinumIngot().setUnlocalizedName("platinum_ingot").setCreativeTab(this.sumbatab);

    enderiumIngot = new ItemEnderiumIngot().setUnlocalizedName("enderium_ingot").setCreativeTab(this.sumbatab);

    copperPlate = new ItemCopperPlate().setUnlocalizedName("copper_plate").setCreativeTab(this.sumbatab);

    sapphirePlate = new ItemSapphirePlate().setUnlocalizedName("sapphire_plate").setCreativeTab(this.sumbatab);

    rubyPlate = new ItemRubyPlate().setUnlocalizedName("ruby_plate").setCreativeTab(this.sumbatab);

    leadPlate = new ItemLeadPlate().setUnlocalizedName("lead_plate").setCreativeTab(this.sumbatab);

    tinPlate = new ItemTinPlate().setUnlocalizedName("tin_plate").setCreativeTab(this.sumbatab);

    silverPlate = new ItemSilverPlate().setUnlocalizedName("silver_plate").setCreativeTab(this.sumbatab);

    platinumPlate = new ItemPlatinumPlate().setUnlocalizedName("platinum_plate").setCreativeTab(this.sumbatab);

    enderiumPlate = new ItemEnderiumPlate().setUnlocalizedName("enderium_plate").setCreativeTab(this.sumbatab);

    emeraldPlate = new ItemEmeraldPlate().setUnlocalizedName("emerald_plate").setCreativeTab(this.sumbatab);

    goldHammer = new ItemGoldHammer(ToolMaterial.GOLD).setUnlocalizedName("gold_hammer").setCreativeTab(this.sumbatab);

    goldHammerModule = new ItemGoldHammerModule().setUnlocalizedName("gold_hammer_module").setCreativeTab(this.sumbatab);

    stoneHammer = new ItemStoneHammer(ToolMaterial.STONE).setUnlocalizedName("stone_hammer").setCreativeTab(this.sumbatab);

    stoneHammerModule = new ItemStoneHammerModule().setUnlocalizedName("stone_hammer_module").setCreativeTab(this.sumbatab);

    goldExcavator = new ItemGoldExcavator(ToolMaterial.GOLD).setUnlocalizedName("gold_excavator").setCreativeTab(this.sumbatab);

    goldExcavatorModule = new ItemGoldExcavatorModule().setUnlocalizedName("gold_excavator").setCreativeTab(this.sumbatab);

    stoneExcavator = new ItemStoneExcavator(ToolMaterial.STONE).setUnlocalizedName("stone_excavator").setCreativeTab(this.sumbatab);

    stoneExcavatorModule = new ItemStoneExcavatorModule().setUnlocalizedName("stone_excavator_module").setCreativeTab(this.sumbatab);

    obsidianPlate = new ItemObsidianPlate().setUnlocalizedName("obsidian_plate").setCreativeTab(this.sumbatab);

    diamondPlate = new ItemDiamondPlate().setUnlocalizedName("diamond_plate").setCreativeTab(this.sumbatab);

    ironPlate = new ItemIronPlate().setUnlocalizedName("iron_plate").setCreativeTab(this.sumbatab);

    goldPlate = new ItemGoldPlate().setUnlocalizedName("gold_plate").setCreativeTab(this.sumbatab);

    stonePlate = new ItemStonePlate().setUnlocalizedName("stone_plate").setCreativeTab(this.sumbatab);

    obsidianIngot = new ItemObsidianIngot().setUnlocalizedName("obsidian_ingot").setCreativeTab(this.sumbatab);

    forgeHammer = new ItemForgeHammer(forgeHammerMaterial).setUnlocalizedName("forge_hammer").setCreativeTab(this.sumbatab);

    uumatter = new ItemUumatter().setUnlocalizedName("uumatter").setCreativeTab(this.sumbatab);

    ironApple = new ItemIronApple().setUnlocalizedName("iron_apple").setCreativeTab(this.sumbatab);

    grenade = new ItemGrenade().setUnlocalizedName("grenade").setCreativeTab(this.sumbatab);

    obsidianBow = new ItemObsidianBow().setUnlocalizedName("obsidian_bow").setCreativeTab(this.sumbatab);

    obsidianHammerModule = new ItemObsidianHammerModule().setUnlocalizedName("obsidian_hammer_module").setCreativeTab(this.sumbatab);

    obsidianExcavatorModule = new ItemObsidianExcavatorModule().setUnlocalizedName("obsidian_excavator_module").setCreativeTab(this.sumbatab);

    diamondHammerModule = new ItemDiamondHammerModule().setUnlocalizedName("diamond_hammer_module").setCreativeTab(this.sumbatab);

    diamondExcavatorModule = new ItemDiamondExcavatorModule().setUnlocalizedName("diamond_excavator_module").setCreativeTab(this.sumbatab);

    ironHammerModule = new ItemIronHammerModule().setUnlocalizedName("iron_hammer_module").setCreativeTab(this.sumbatab);

    ironExcavatorModule = new ItemIronExcavatorModule().setUnlocalizedName("iron_excavator_module").setCreativeTab(this.sumbatab);

    uumatterOre = new BlockUumatterOre().setUnlocalizedName("uumatter_ore").setCreativeTab(this.sumbatab);

    netherUumatterOre = new BlockNetherUumatterOre().setUnlocalizedName("nether_uumatter_ore").setCreativeTab(this.sumbatab);

    obsidianAxe = new ItemObsidianAxe(obsidianToolMaterial).setUnlocalizedName("obsidian_axe").setCreativeTab(sumbatab);

    obsidianPickaxe = new ItemObsidianPickaxe(obsidianToolMaterial).setUnlocalizedName("obsidian_pickaxe").setCreativeTab(sumbatab);

    obsidianHoe = new ItemObsidianHoe(obsidianToolMaterial).setUnlocalizedName("obsidian_hoe").setCreativeTab(sumbatab);

    obsidianSword = new ItemObsidianSword(obsidianToolMaterial).setUnlocalizedName("obsidian_sword").setCreativeTab(sumbatab);

    obsidianSpade = new ItemObsidianSpade(obsidianToolMaterial).setUnlocalizedName("obsidian_spade").setCreativeTab(sumbatab);

    obsidianHammer = new ItemObsidianHammer(SUMBA.obsidianSumbaToolMaterial).setUnlocalizedName("obsidian_hammer").setCreativeTab(sumbatab);

    obsidianExcavator = new ItemObsidianExcavator(SUMBA.obsidianSumbaToolMaterial).setUnlocalizedName("obsidian_excavator").setCreativeTab(sumbatab);

    diamondHammer = new ItemDiamondHammer(SUMBA.diamondSumbaToolMaterial).setUnlocalizedName("diamond_hammer").setCreativeTab(sumbatab);

    diamondExcavator = new ItemDiamondExcavator(SUMBA.diamondSumbaToolMaterial).setUnlocalizedName("diamond_excavator").setCreativeTab(sumbatab);

    ironHammer = new ItemIronHammer(SUMBA.ironSumbaToolMaterial).setUnlocalizedName("iron_hammer").setCreativeTab(sumbatab);

    ironExcavator = new ItemIronExcavator(SUMBA.ironSumbaToolMaterial).setUnlocalizedName("iron_excavator").setCreativeTab(sumbatab);

    obsidianHelmet = new ItemObsidianArmor(SUMBA.obsidianArmorMaterial, 0).setUnlocalizedName("obsidian_helmet").setCreativeTab(sumbatab);

    obsidianChestplate = new ItemObsidianArmor(SUMBA.obsidianArmorMaterial, 1).setUnlocalizedName("obsidian_chestplate").setCreativeTab(sumbatab);

    obsidianLeggins = new ItemObsidianArmor(SUMBA.obsidianArmorMaterial, 2).setUnlocalizedName("obsidian_leggins").setCreativeTab(sumbatab);

    obsidianBoots = new ItemObsidianArmor(SUMBA.obsidianArmorMaterial, 3).setUnlocalizedName("obsidian_boots").setCreativeTab(sumbatab);

    sumbaBiome = new BiomeSumba(sumbaBiomeId);

   

   

   

    }

   

    @EventHandler

    public void init(FMLInitializationEvent event) {

   

        registerItems();

        registerBlocks();

        registerEntities();

        registerHandlers();

        registerAchievements();

        registerWorldGenerator();

        registerBiomes();

        registerMobs();

                                                                                                                                                                /**

       

        #########################################

        ################ Stacks #################

        #########################################

                                                                                                                                              **/       

 

    ItemStack stackDiamond = new ItemStack(Items.diamond);

    ItemStack stackGoldIngot = new ItemStack(Items.gold_ingot);

    ItemStack stackStone = new ItemStack(Blocks.stone);

    ItemStack stackUUMatter = new ItemStack(SUMBA.uumatter);

    ItemStack stackUUMatterOre = new ItemStack(SUMBA.uumatterOre);

    ItemStack stackIronApple = new ItemStack(SUMBA.ironApple);

    ItemStack stackApple = new ItemStack(Items.apple);

    ItemStack stackIronIngot = new ItemStack(Items.iron_ingot);

    ItemStack stackUUMatterCellX4 = new ItemStack(SUMBA.uumatter, 4);

    ItemStack stackObsidianAxe = new ItemStack(SUMBA.obsidianAxe);

    ItemStack stackObsidianPickaxe = new ItemStack(SUMBA.obsidianPickaxe);

    ItemStack stackObsidianSpade = new ItemStack(SUMBA.obsidianSpade);

    ItemStack stackObsidianSword = new ItemStack(SUMBA.obsidianSword);

    ItemStack stackObsidianHoe = new ItemStack(SUMBA.obsidianHoe);

    ItemStack stackObsidian = new ItemStack(Blocks.obsidian);

    ItemStack stackObsidianX2 = new ItemStack(Blocks.obsidian, 2);

    ItemStack stackStick = new ItemStack(Items.stick);

    ItemStack stackIronBlock = new ItemStack(Blocks.iron_block);

    ItemStack stackDiamondBlock = new ItemStack(Blocks.diamond_block);

    ItemStack stackNetherUUMatterOre = new ItemStack(SUMBA.netherUumatterOre);

    ItemStack stackDiamondExcavator = new ItemStack(SUMBA.diamondExcavator);

    ItemStack stackDiamondHammer = new ItemStack(SUMBA.diamondHammer);

    ItemStack stackIronExcavator = new ItemStack(SUMBA.ironExcavator);

    ItemStack stackIronHammer = new ItemStack(SUMBA.ironHammer);

    ItemStack stackObsidianExcavator = new ItemStack(SUMBA.obsidianExcavator);

    ItemStack stackObsidianHammer = new ItemStack(SUMBA.obsidianHammer);

    ItemStack stackObsidianPlate = new ItemStack(SUMBA.obsidianPlate);

    ItemStack stackDiamondPlate = new ItemStack(SUMBA.diamondPlate);

    ItemStack stackIronPlate = new ItemStack(SUMBA.ironPlate);

    ItemStack stackGoldPlate = new ItemStack(SUMBA.goldPlate);

    ItemStack stackStonePlate = new ItemStack(SUMBA.stonePlate);

    ItemStack stackObsidianIngot = new ItemStack(SUMBA.obsidianIngot);

    ItemStack stackForgeHammer = new ItemStack(SUMBA.forgeHammer);

    ItemStack stackObsidianHelmet = new ItemStack(SUMBA.obsidianHelmet);

    ItemStack stackObsidianChestplate = new ItemStack(SUMBA.obsidianChestplate);

    ItemStack stackObsidianLeggins = new ItemStack(SUMBA.obsidianLeggins);

    ItemStack stackObsidianBoots = new ItemStack(SUMBA.obsidianBoots);

    ItemStack stackObsidianHammerModule = new ItemStack(SUMBA.obsidianHammerModule);

    ItemStack stackObsidianExcavatorModule = new ItemStack(SUMBA.obsidianExcavatorModule);

    ItemStack stackDiamondHammerModule = new ItemStack(SUMBA.diamondHammerModule);

    ItemStack stackDiamondExcavatorModule = new ItemStack(SUMBA.diamondExcavatorModule);

    ItemStack stackIronHammerModule = new ItemStack(SUMBA.ironHammerModule);

    ItemStack stackIronExcavatorModule = new ItemStack(SUMBA.ironExcavatorModule);

    ItemStack stackCobble = new ItemStack(Blocks.cobblestone);

    ItemStack stackOakX8 = new ItemStack(Blocks.log, 8);

    ItemStack stackSnowBlockX16 = new ItemStack(Blocks.snow, 16);

    ItemStack stackGrassBlockX16 = new ItemStack(Blocks.grass, 16);

    ItemStack stackObsidianX12 = new ItemStack(Blocks.obsidian, 12);

    ItemStack stackGlassX32 = new ItemStack(Blocks.glass, 32);

    ItemStack stackWaterBucket = new ItemStack(Items.water_bucket);

    ItemStack stackLavaBucket = new ItemStack(Items.lava_bucket);

    ItemStack stackCocoaBeansX32 = new ItemStack(Items.dye, 32, 3);

    ItemStack stackGlowstoneX8 = new ItemStack(Blocks.glowstone, 8);

    ItemStack stackGlowstoneDustX32 = new ItemStack(Items.glowstone_dust, 32);

    ItemStack stackCactusX48 = new ItemStack(Blocks.cactus, 48);

    ItemStack stackSugarCaneX48 = new ItemStack(Items.reeds, 48);

    ItemStack stackVineX24 = new ItemStack(Blocks.vine, 24);

    ItemStack stackSnowballX16 = new ItemStack(Items.snowball, 16);

    ItemStack stackClayX48 = new ItemStack(Items.clay_ball, 48);

    ItemStack stackLilyPadX64 = new ItemStack(Blocks.waterlily, 64);

    ItemStack stackGunpowderX16 = new ItemStack(Items.gunpowder, 16);

    ItemStack stackBoneX32 = new ItemStack(Items.bone, 32);

    ItemStack stackInkX48 = new ItemStack(Items.dye, 48, 0);

    ItemStack stackEnderPearl = new ItemStack(Items.ender_pearl);

    ItemStack stackFeatherX32 = new ItemStack(Items.feather, 32);

    ItemStack stackCoalX5 = new ItemStack(Items.coal, 5);

    ItemStack stackIronOreX2 = new ItemStack(Blocks.iron_ore, 2);

    ItemStack stackGoldOreX2 = new ItemStack(Blocks.gold_ore, 2);

    ItemStack stackEmeraldOre = new ItemStack(Blocks.emerald_ore);

    ItemStack stackRedstoneX24 = new ItemStack(Items.redstone, 24);

    ItemStack stackLapisX9 = new ItemStack(Items.dye, 9, 4);

    ItemStack stackEmeraldX2 = new ItemStack(Items.emerald, 2);

    ItemStack stackCopperIngot = new ItemStack(SUMBA.copperIngot);

    ItemStack stackSapphire = new ItemStack(SUMBA.sapphire);

    ItemStack stackRuby = new ItemStack(SUMBA.ruby);

    ItemStack stackLeadIngot = new ItemStack(SUMBA.leadIngot);

    ItemStack stackTinIngot = new ItemStack(SUMBA.tinIngot);

    ItemStack stackSilverIngot = new ItemStack(SUMBA.silverIngot);

    ItemStack stackPlatinumIngot = new ItemStack(SUMBA.platinumIngot);

    ItemStack stackEnderiumIngot = new ItemStack(SUMBA.enderiumIngot);

    ItemStack stackCopperIngotX9 = new ItemStack(SUMBA.copperIngot, 9);

    ItemStack stackSapphireX9 = new ItemStack(SUMBA.sapphire, 9);

    ItemStack stackRubyX9 = new ItemStack(SUMBA.ruby, 9);

    ItemStack stackLeadIngotX9 = new ItemStack(SUMBA.leadIngot, 9);

    ItemStack stackTinIngotX9 = new ItemStack(SUMBA.tinIngot, 9);

    ItemStack stackSilverIngotX9 = new ItemStack(SUMBA.silverIngot, 9);

    ItemStack stackPlatinumIngotX9 = new ItemStack(SUMBA.platinumIngot, 9);

    ItemStack stackEnderiumIngotX9 = new ItemStack(SUMBA.enderiumIngot, 9);

    ItemStack stackCopperPlate = new ItemStack(SUMBA.copperPlate);

    ItemStack stackSapphirePlate = new ItemStack(SUMBA.sapphirePlate);

    ItemStack stackRubyPlate = new ItemStack(SUMBA.rubyPlate);

    ItemStack stackLeadPlate = new ItemStack(SUMBA.leadPlate);

    ItemStack stackTinPlate = new ItemStack(SUMBA.tinPlate);

    ItemStack stackSilverPlate = new ItemStack(SUMBA.silverPlate);

    ItemStack stackPlatinumPlate = new ItemStack(SUMBA.platinumPlate);

    ItemStack stackEnderiumPlate = new ItemStack(SUMBA.enderiumPlate);

    ItemStack stackEmeraldPlate = new ItemStack(SUMBA.emeraldPlate);

    ItemStack stackGoldHammer = new ItemStack(SUMBA.goldHammer);

    ItemStack stackGoldHammerModule = new ItemStack(SUMBA.goldHammerModule);

    ItemStack stackStoneHammer = new ItemStack(SUMBA.stoneHammer);

    ItemStack stackStoneHammerModule = new ItemStack(SUMBA.stoneHammerModule);

    ItemStack stackGoldExcavator = new ItemStack(SUMBA.goldExcavator);

    ItemStack stackGoldExcavatorModule = new ItemStack(SUMBA.goldExcavatorModule);

    ItemStack stackStoneExcavator = new ItemStack(SUMBA.stoneExcavator);

    ItemStack stackStoneExcavatorModule = new ItemStack(SUMBA.stoneExcavatorModule);

    ItemStack stackCopperBlock = new ItemStack(SUMBA.copperBlock);

    ItemStack stackSapphireBlock = new ItemStack(SUMBA.sapphireBlock);

    ItemStack stackRubyBlock = new ItemStack(SUMBA.rubyBlock);

    ItemStack stackLeadBlock = new ItemStack(SUMBA.leadBlock);

    ItemStack stackTinBlock = new ItemStack(SUMBA.tinBlock);

    ItemStack stackSilverBlock = new ItemStack(SUMBA.silverBlock);

    ItemStack stackPlatinumBlock = new ItemStack(SUMBA.platinumBlock);

    ItemStack stackEnderiumBlock = new ItemStack(SUMBA.enderiumBlock);

    ItemStack stackCopperOre = new ItemStack(SUMBA.copperOre);

    ItemStack stackSapphireOre = new ItemStack(SUMBA.sapphireOre);

    ItemStack stackRubyOre = new ItemStack(SUMBA.rubyOre);

    ItemStack stackLeadOre = new ItemStack(SUMBA.leadOre);

    ItemStack stackTinOre = new ItemStack(SUMBA.tinOre);

    ItemStack stackSilverOre = new ItemStack(SUMBA.silverOre);

    ItemStack stackPlatinumOre = new ItemStack(SUMBA.platinumOre);

    ItemStack stackMarble = new ItemStack(SUMBA.marble);

    ItemStack stackMarbleBrickX4 = new ItemStack(SUMBA.marbleBrick, 4);

    ItemStack stackMarbleBrick = new ItemStack(SUMBA.marbleBrick);

    ItemStack stackEnderpearl = new ItemStack(Items.ender_pearl);

    ItemStack stackEmerald = new ItemStack(Items.emerald);

                                                                                                                                                                 

                                                                                                                                                  /**

    ###########################################

    ################# RECIPES #################

    ###########################################                                                                                                  **/                         

   

    //Shaped

    GameRegistry.addShapedRecipe(stackOakX8,            " x ", "  ", "  ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackSnowBlockX16,    "x x", "  ", "  ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackGrassBlockX16,    "  ", "x  ", "x  ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackObsidianX12,      "x x", "x x", "  ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackGlassX32,        " x ", "x x", " x ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackWaterBucket,      "  ", " x ", " x ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackLavaBucket,      " x ", " x ", " x ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackCocoaBeansX32,    "xx ", "  x", "xx ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackGlowstoneX8,      " x ", "x x", "xxx", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackCactusX48,        " x ", "xxx", "x x", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackSugarCaneX48,    "x x", "x x", "x x", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackVineX24,          "x  ", "x  ", "x  ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackSnowballX16,      "  ", "  ", "xxx", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackClayX48,          "xx ", "x  ", "xx ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackLilyPadX64,          "x x", " x ", " x ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackGunpowderX16,    "xxx", "x  ", "xxx", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackBoneX32,          "x  ", "xx ", "x  ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackInkX48,          " xx", " xx", " x ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackEnderPearl,      "xxx", "x x", " x ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackFeatherX32,      " x ", " x ", "x x", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackCoalX5,          "  x", "x  ", "  x", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackIronOreX2,        "x x", " x ", "x x", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackGoldOreX2,        " x ", "xxx", " x ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackEmeraldOre,      "xx ", "x x", " xx", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackRedstoneX24,      "  ", " x ", "xxx", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackLapisX9,          " x ", " x ", " xx", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackEmeraldX2,        "xxx", "xxx", " x ", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackDiamond,          "xxx", "xxx", "xxx", 'x', stackUUMatter);

    GameRegistry.addShapedRecipe(stackIronApple,        "xxx", "xox", "xxx", 'x', stackIronIngot, 'o', stackApple);

    GameRegistry.addShapedRecipe(stackObsidianAxe,      "xx ", "xo ", " o ", 'x', stackObsidian,'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianAxe,      " xx", " ox", " o ", 'x', stackObsidian, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianAxe,      "xx ", "ox ", "o  ", 'x', stackObsidian, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianAxe,      " xx", " xo", "  o", 'x', stackObsidian, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianPickaxe,  "xxx", " o ", " o ", 'x', stackObsidian, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianSword,    " x ", " x ", " o ", 'x', stackObsidian, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianSword,    "x  ", "x  ", "o  ", 'x', stackObsidian, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianSword,    "  x", "  x", "  o", 'x', stackObsidian, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianHoe,      "xx ", " o ", " o ", 'x', stackObsidian, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianHoe,      " xx", " o ", " o ", 'x', stackObsidian, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianHoe,      "xx ", "o  ", "o  ", 'x', stackObsidian, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianHoe,      " xx", "  o", "  o", 'x', stackObsidian, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianSpade,    "x  ", "o  ", "o  ", 'x', stackObsidian, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianSpade,    " x ", " o ", " o ", 'x', stackObsidian, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianSpade,    "  x", "  o", "  o", 'x', stackObsidian, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackDiamondHammer,    "xxx", " o ", " o ", 'x', stackDiamondBlock, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackIronHammer,      "xxx", " o ", " o ", 'x', stackIronBlock, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackDiamondExcavator, "x", "o", "o", 'x', stackDiamondBlock, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackIronExcavator,    "x", "o", "o", 'x', stackIronBlock, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackForgeHammer,      "xxx", "xox", " o ", 'x', stackIronIngot, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackForgeHammer,      "xx ", "xoo", "xx ", 'x', stackIronIngot, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackForgeHammer,      " xx", "oox", " xx", 'x', stackIronIngot, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianHelmet,  "xxx", "xox", "  ", 'x', stackObsidianPlate, 'o', stackDiamondPlate);

    GameRegistry.addShapedRecipe(stackObsidianHelmet,  "  ", "xxx", "xox", 'x', stackObsidianPlate, 'o', stackDiamondPlate);

    GameRegistry.addShapedRecipe(stackObsidianChestplate, "xox", "xxx", "xxx", 'x', stackObsidianPlate, 'o', stackDiamondPlate);

    GameRegistry.addShapedRecipe(stackObsidianLeggins,  "xxx", "xox", "x x", 'x', stackObsidianPlate, 'o', stackDiamondPlate);

    GameRegistry.addShapedRecipe(stackObsidianLeggins,  "xxx", "x x", "xox", 'x', stackObsidianPlate, 'o', stackDiamondPlate);

    GameRegistry.addShapedRecipe(stackObsidianBoots,    "xox", "x x", "  ", 'x', stackObsidianPlate, 'o', stackDiamondPlate);

    GameRegistry.addShapedRecipe(stackObsidianBoots,    "x x", "xox", "  ", 'x', stackObsidianPlate, 'o', stackDiamondPlate);

    GameRegistry.addShapedRecipe(stackObsidianBoots,    "  ", "xox", "x x", 'x', stackObsidianPlate, 'o', stackDiamondPlate);

    GameRegistry.addShapedRecipe(stackObsidianBoots,    "  ", "x x", "xox", 'x', stackObsidianPlate, 'o', stackDiamondPlate);

    GameRegistry.addShapedRecipe(stackObsidianHammer,  "x", "o", "o", 'x', stackObsidianHammerModule, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackDiamondHammer,    "x", "o", "o", 'x', stackDiamondHammerModule, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackIronHammer,      "x", "o", "o", 'x', stackIronHammerModule, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianExcavator,"x", "o", "o", 'x', stackObsidianExcavatorModule, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackGoldHammer,      "x", "o", "o", 'x', stackGoldHammerModule, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackGoldExcavator,    "x", "o", "o", 'x', stackGoldExcavatorModule, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackStoneHammer,      "x", "o", "o", 'x', stackStoneHammerModule, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackStoneExcavator,  "x", "o", "o", 'x', stackStoneExcavatorModule, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackDiamondExcavator, "x", "o", "o", 'x', stackDiamondExcavatorModule, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackIronExcavator,    "x", "o", "o", 'x', stackIronExcavatorModule, 'o', stackStick);

    GameRegistry.addShapedRecipe(stackObsidianHammerModule,    "xxx", "xxx", 'x', stackObsidianPlate);

    GameRegistry.addShapedRecipe(stackDiamondHammerModule,    "xxx", "xxx", 'x', stackDiamondPlate);

    GameRegistry.addShapedRecipe(stackIronHammerModule,        "xxx", "xxx", 'x', stackIronPlate);

    GameRegistry.addShapedRecipe(stackObsidianExcavatorModule, "xx", "xx", 'x', stackObsidianPlate);

    GameRegistry.addShapedRecipe(stackGoldHammerModule,        "xxx", "xxx", 'x', stackGoldPlate);

    GameRegistry.addShapedRecipe(stackGoldExcavatorModule, "xx", "xx", 'x', stackGoldPlate);

    GameRegistry.addShapedRecipe(stackStoneHammerModule,        "xxx", "xxx", 'x', stackStonePlate);

    GameRegistry.addShapedRecipe(stackStoneExcavatorModule, "xx", "xx", 'x', stackStonePlate);

    GameRegistry.addShapedRecipe(stackDiamondExcavatorModule,  "xx", "xx", 'x', stackDiamondPlate);

    GameRegistry.addShapedRecipe(stackIronExcavatorModule,    "xx", "xx", 'x', stackIronPlate);

    GameRegistry.addShapedRecipe(stackCopperBlock,  "xxx", "xxx", "xxx", 'x', stackCopperIngot);

    GameRegistry.addShapedRecipe(stackSapphireBlock, "xxx", "xxx", "xxx", 'x', stackSapphire);

    GameRegistry.addShapedRecipe(stackRubyBlock,    "xxx", "xxx", "xxx", 'x', stackRuby);

    GameRegistry.addShapedRecipe(stackLeadBlock,    "xxx", "xxx", "xxx", 'x', stackLeadIngot);

    GameRegistry.addShapedRecipe(stackTinBlock,      "xxx", "xxx", "xxx", 'x', stackTinIngot);

    GameRegistry.addShapedRecipe(stackSilverBlock,  "xxx", "xxx", "xxx", 'x', stackSilverIngot);

    GameRegistry.addShapedRecipe(stackPlatinumBlock, "xxx", "xxx", "xxx", 'x', stackPlatinumIngot);

    GameRegistry.addShapedRecipe(stackEnderiumBlock, "xxx", "xxx", "xxx", 'x', stackEnderiumIngot);

    GameRegistry.addShapedRecipe(stackMarbleBrickX4,  "xx", "xx", 'x', stackMarble);

    //Shapeless

    GameRegistry.addShapelessRecipe(stackCopperIngotX9, stackCopperBlock);

    GameRegistry.addShapelessRecipe(stackSapphireX9, stackSapphireBlock);

    GameRegistry.addShapelessRecipe(stackRubyX9, stackRubyBlock);

    GameRegistry.addShapelessRecipe(stackLeadIngotX9, stackLeadBlock);

    GameRegistry.addShapelessRecipe(stackTinIngotX9, stackTinBlock);

    GameRegistry.addShapelessRecipe(stackSilverIngotX9, stackSilverBlock);

    GameRegistry.addShapelessRecipe(stackPlatinumIngotX9, stackPlatinumBlock);

    GameRegistry.addShapelessRecipe(stackEnderiumIngotX9, stackEnderiumBlock);

    GameRegistry.addShapelessRecipe(stackMarble, stackMarbleBrick);

    GameRegistry.addShapelessRecipe(stackObsidianPlate, new ItemStack(forgeHammer, 1, OreDictionary.WILDCARD_VALUE), stackObsidianIngot);

    GameRegistry.addShapelessRecipe(stackDiamondPlate, new ItemStack(forgeHammer, 1, OreDictionary.WILDCARD_VALUE), stackDiamond);

    GameRegistry.addShapelessRecipe(stackIronPlate, new ItemStack(forgeHammer, 1, OreDictionary.WILDCARD_VALUE), stackIronIngot);

    GameRegistry.addShapelessRecipe(stackGoldPlate, new ItemStack(forgeHammer, 1, OreDictionary.WILDCARD_VALUE), stackGoldIngot);

    GameRegistry.addShapelessRecipe(stackStonePlate, new ItemStack(forgeHammer, 1, OreDictionary.WILDCARD_VALUE), stackStone);

    GameRegistry.addShapelessRecipe(stackCopperPlate, new ItemStack(forgeHammer, 1, OreDictionary.WILDCARD_VALUE), stackCopperIngot);

    GameRegistry.addShapelessRecipe(stackSapphirePlate, new ItemStack(forgeHammer, 1, OreDictionary.WILDCARD_VALUE), stackSapphire);

    GameRegistry.addShapelessRecipe(stackRubyPlate, new ItemStack(forgeHammer, 1, OreDictionary.WILDCARD_VALUE), stackRuby);

    GameRegistry.addShapelessRecipe(stackLeadPlate, new ItemStack(forgeHammer, 1, OreDictionary.WILDCARD_VALUE), stackLeadIngot);

    GameRegistry.addShapelessRecipe(stackTinPlate, new ItemStack(forgeHammer, 1, OreDictionary.WILDCARD_VALUE), stackTinIngot);

    GameRegistry.addShapelessRecipe(stackSilverPlate, new ItemStack(forgeHammer, 1, OreDictionary.WILDCARD_VALUE), stackSilverIngot);

    GameRegistry.addShapelessRecipe(stackPlatinumPlate, new ItemStack(forgeHammer, 1, OreDictionary.WILDCARD_VALUE), stackPlatinumIngot);

    GameRegistry.addShapelessRecipe(stackEnderiumPlate, new ItemStack(forgeHammer, 1, OreDictionary.WILDCARD_VALUE), stackEnderiumIngot);

    GameRegistry.addShapelessRecipe(stackEmeraldPlate, new ItemStack(forgeHammer, 1, OreDictionary.WILDCARD_VALUE), stackEmerald);

   

    //Furnace

    GameRegistry.addSmelting(Item.getItemFromBlock(uumatterOre), stackUUMatterCellX4, 3.0f);

    GameRegistry.addSmelting(Item.getItemFromBlock(netherUumatterOre), stackUUMatterCellX4, 3.0f);

    GameRegistry.addSmelting(stackObsidianX2, stackObsidianIngot, 1.0F);

    GameRegistry.addSmelting(stackCopperOre, stackCopperIngot, 1.0F);

    GameRegistry.addSmelting(stackSapphireOre, stackSapphire, 1.0F);

    GameRegistry.addSmelting(stackRubyOre, stackRuby, 1.0F);

    GameRegistry.addSmelting(stackLeadOre, stackLeadIngot, 1.0F);

    GameRegistry.addSmelting(stackTinOre, stackTinIngot, 1.0F);

    GameRegistry.addSmelting(stackSilverOre, stackSilverIngot, 1.0F);

    GameRegistry.addSmelting(stackPlatinumOre, stackPlatinumIngot, 1.0F);

    GameRegistry.addSmelting(stackEnderpearl, stackEnderiumIngot, 1.0F);

   

    PROXY.registerRenderThings();

   

    }

   

    @EventHandler

    public void postInit(FMLPostInitializationEvent event) {

   

    }

   

    //RegisterItems

    private void registerItems() {

   

GameRegistry.registerItem(obsidianPlate, "obsidian_plate");

    GameRegistry.registerItem(diamondPlate, "diamond_plate");

    GameRegistry.registerItem(ironPlate, "iron_plate");

    GameRegistry.registerItem(goldPlate, "gold_plate");

    GameRegistry.registerItem(stonePlate, "stone_plate");

    GameRegistry.registerItem(copperPlate, "copper_plate");

    GameRegistry.registerItem(sapphirePlate, "sapphire_plate");

    GameRegistry.registerItem(rubyPlate, "ruby_plate");

    GameRegistry.registerItem(leadPlate, "lead_plate");

    GameRegistry.registerItem(tinPlate, "tin_plate");

    GameRegistry.registerItem(silverPlate, "silver_plate");

    GameRegistry.registerItem(platinumPlate, "platinum_plate");

    GameRegistry.registerItem(enderiumPlate, "enderium_plate");

    GameRegistry.registerItem(emeraldPlate, "emerald_plate");

    GameRegistry.registerItem(obsidianIngot, "obsidian_ingot");

    GameRegistry.registerItem(forgeHammer, "forge_hammer");

    GameRegistry.registerItem(uumatter, "uumatter");

    GameRegistry.registerItem(ironApple, "iron_apple");

    GameRegistry.registerItem(grenade, "grenade");

    GameRegistry.registerItem(obsidianBow, "obsidian_bow");

    GameRegistry.registerItem(obsidianHammerModule, "obsidian_hammer_module");

    GameRegistry.registerItem(obsidianExcavatorModule, "obsidian_excavator_module");

    GameRegistry.registerItem(diamondHammerModule, "diamond_hammer_module");

    GameRegistry.registerItem(diamondExcavatorModule, "diamond_excavator_module");

    GameRegistry.registerItem(ironHammerModule, "iron_hammer_module");

    GameRegistry.registerItem(ironExcavatorModule, "iron_excavator_module");

    GameRegistry.registerItem(obsidianAxe, "obsidian_axe");

    GameRegistry.registerItem(obsidianPickaxe, "obsidian_pickaxe");

    GameRegistry.registerItem(obsidianHoe, "obsidian_hoe");

    GameRegistry.registerItem(obsidianSpade, "obsidian_spade");

    GameRegistry.registerItem(obsidianSword, "obsidian_sword");

    GameRegistry.registerItem(obsidianHammer, "obsidian_hammer");

    GameRegistry.registerItem(obsidianExcavator, "obsidian_excavator");

    GameRegistry.registerItem(diamondHammer, "diamond_hammer");

    GameRegistry.registerItem(diamondExcavator, "diamond_excavator");

    GameRegistry.registerItem(ironHammer, "iron_hammer");

    GameRegistry.registerItem(ironExcavator, "iron_excavator");

    GameRegistry.registerItem(obsidianHelmet, "obsidian_helmet");

    GameRegistry.registerItem(obsidianChestplate, "obsidian_chestplate");

    GameRegistry.registerItem(obsidianLeggins, "obsidian_leggins");

    GameRegistry.registerItem(obsidianBoots, "obsidian_boots");

    GameRegistry.registerItem(copperIngot, "copper_ingot");

    GameRegistry.registerItem(sapphire, "sapphire");

    GameRegistry.registerItem(ruby, "ruby");

    GameRegistry.registerItem(leadIngot, "lead_ingot");

    GameRegistry.registerItem(tinIngot, "tin_ingot");

    GameRegistry.registerItem(silverIngot, "silver_ingot");

    GameRegistry.registerItem(platinumIngot, "platinum_ingot");

    GameRegistry.registerItem(enderiumIngot, "enderium_ingot");

    GameRegistry.registerItem(goldHammer, "gold_hammer");

    GameRegistry.registerItem(goldHammerModule, "gold_hammer_module");

    GameRegistry.registerItem(stoneHammer, "stone_hammer");

    GameRegistry.registerItem(stoneHammerModule, "stone_hammer_module");

    GameRegistry.registerItem(goldExcavator, "gold_excavator");

    GameRegistry.registerItem(goldExcavatorModule, "gold_excavator_module");

    GameRegistry.registerItem(stoneExcavator, "stone_excavator");

    GameRegistry.registerItem(stoneExcavatorModule, "stone_excavator_module");

   

   

    }

   

    //RegisterBlocks

    private void registerBlocks() {

    GameRegistry.registerBlock(uumatterOre, "uumatter_ore");

    GameRegistry.registerBlock(netherUumatterOre, "nether_uumatter_ore");

    GameRegistry.registerBlock(copperOre, "copper_ore");

    GameRegistry.registerBlock(sapphireOre, "sapphire_ore");

    GameRegistry.registerBlock(rubyOre, "ruby_ore");

    GameRegistry.registerBlock(leadOre, "lead_ore");

    GameRegistry.registerBlock(tinOre, "tin_ore");

    GameRegistry.registerBlock(silverOre, "silver_ore");

    GameRegistry.registerBlock(platinumOre, "platinum_ore");

    GameRegistry.registerBlock(copperBlock, "copper_block");

    GameRegistry.registerBlock(sapphireBlock, "sapphire_block");

    GameRegistry.registerBlock(rubyBlock, "ruby_block");

    GameRegistry.registerBlock(leadBlock, "lead_block");

    GameRegistry.registerBlock(tinBlock, "tin_block");

    GameRegistry.registerBlock(silverBlock, "silver_block");

    GameRegistry.registerBlock(platinumBlock, "platinum_block");

    GameRegistry.registerBlock(enderiumBlock, "enderium_block");

    GameRegistry.registerBlock(marble, "marble");

    GameRegistry.registerBlock(marbleBrick, "marble_brick");

    }

   

    private void registerMobs() {

    EntityCreator.createEntity(EntityAlien.class, new RenderAlien(), EnumCreatureType.MONSTER, "Alien",

    10, 1, 5, new BiomeGenBase[] { SUMBA.sumbaBiome, BiomeGenBase.desert }, 0x80FF00, 0xFF9500, true);

    EntityCreator.createEntity(EntityScorpion.class, new RenderScorpion(), EnumCreatureType.MONSTER, "Scorpion",

    200, 1, 10, new BiomeGenBase[] { SUMBA.sumbaBiome, BiomeGenBase.desert, BiomeGenBase.beach, BiomeGenBase.birchForest,

    BiomeGenBase.birchForestHills, BiomeGenBase.desertHills, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge,

    BiomeGenBase.extremeHillsPlus, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.mesa,

    BiomeGenBase.mesaPlateau, BiomeGenBase.plains, BiomeGenBase.roofedForest, BiomeGenBase.river, BiomeGenBase.savanna,

    BiomeGenBase.savannaPlateau, BiomeGenBase.stoneBeach, BiomeGenBase.swampland }, 0xFF7300, 0xFF0000, true);

    EntityCreator.createEntity(EntityBabyScorpion.class, new RenderBabyScorpion(), EnumCreatureType.MONSTER, "BabyScorpion",

    0, 0, 0, new BiomeGenBase[] { SUMBA.sumbaBiome }, 0x10EF80, 0xD19900, false);

    EntityCreator.createEntity(EntityScorpionFrost.class, new RenderScorpionFrost(), EnumCreatureType.MONSTER, "FrostScorpion",

    200, 1, 10, new BiomeGenBase[] { SUMBA.sumbaBiome, BiomeGenBase.coldBeach, BiomeGenBase.coldTaiga,

    BiomeGenBase.coldTaigaHills, BiomeGenBase.megaTaiga, BiomeGenBase.megaTaigaHills, BiomeGenBase.taiga,

    BiomeGenBase.taigaHills}, 0x0033FF, 0x42D0FF, true);

    EntityCreator.createEntity(EntityFrostBabyScorpion.class, new RenderFrostBabyScorpion(), EnumCreatureType.MONSTER, "FrostBabyScorpion",

    0, 0, 0, new BiomeGenBase[] { SUMBA.sumbaBiome }, 0x10EF80, 0xD19900, false);

    EntityCreator.createEntity(EntityTurtle.class, new RenderTurtle(), EnumCreatureType.AMBIENT, "Turtle",

    8, 1, 20, new BiomeGenBase[] { BiomeGenBase.beach, BiomeGenBase.forest, BiomeGenBase.desert, BiomeGenBase.forestHills,

    BiomeGenBase.jungle, BiomeGenBase.jungleEdge, BiomeGenBase.jungleHills, BiomeGenBase.mesa, BiomeGenBase.mesaPlateau,

    BiomeGenBase.mesaPlateau_F, BiomeGenBase.river, BiomeGenBase.savanna, BiomeGenBase.savannaPlateau, BiomeGenBase.stoneBeach,

    BiomeGenBase.swampland }, 0xFF7300, 0x99FF00, true);

    }

   

    //RegisterHandlers

    private void registerHandlers() {

   

    GameRegistry.registerFuelHandler(new SUMBAFuelHandler());

    FMLCommonHandler.instance().bus().register(new SUMBAEventHandler());

   

    }

   

    //RegisterAchievements

    private void registerAchievements() {

    sumbajoin = (new Achievement("achievement.sumbajoin", "sumbajoin", 0, 0, new ItemStack(uumatterOre),

        (Achievement)null)).initIndependentStat().setSpecial().registerStat();

    sumbaitemcrafted = (new Achievement("achievement.sumbaitemcrafted", "sumbaitemcrafted", 1, 3, new ItemStack(ironApple),

        sumbajoin)).registerStat();

    AchievementPage.registerAchievementPage(new AchievementPage("Sumba Achievements", new Achievement[]{sumbajoin, sumbaitemcrafted}));

    }

   

    //RegisterWorldGenerator

    public void registerWorldGenerator() {

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

    }

   

    //RegisterBiomes

    public void registerBiomes() {

    BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(sumbaBiome, 1));

    }

    //RegisterEntities

    public void registerEntities() {

    registerEntity(EntityGrenade.class, "grenade", 128, 30, true);

    }

    //RegisterEntity

    public void registerEntity(Class <? extends Entity > entityClass, String name,

    int trackingRange, int updateFrequency, boolean sendsVelocityUpdates) {

    int id = EntityRegistry.findGlobalUniqueEntityId();

   

    EntityRegistry.registerGlobalEntityID(entityClass, name, id);

    EntityRegistry.registerModEntity(entityClass, name, id, SUMBA.INSTANCE, trackingRange, updateFrequency, sendsVelocityUpdates);

    }

   

}

 

 

 

 

And that's my EntityCreator class:

 

 

 

package sumba.main.util;

 

import net.minecraft.client.renderer.entity.Render;

import net.minecraft.entity.EntityList;

import net.minecraft.entity.EnumCreatureType;

import net.minecraft.world.biome.BiomeGenBase;

import net.minecraftforge.fml.client.registry.RenderingRegistry;

import net.minecraftforge.fml.common.registry.EntityRegistry;

import sumba.main.SUMBA;

 

public class EntityCreator {

 

public static final void createEntity(Class entityClass, Render render, EnumCreatureType type, String entityName, int probability,

int minSpawn, int maxSpawn, BiomeGenBase[] biomes, int solidColor, int spotColor, boolean hasSpawnEgg) {

int id = EntityRegistry.findGlobalUniqueEntityId();

 

EntityRegistry.registerGlobalEntityID(entityClass, entityName, id);

EntityRegistry.registerModEntity(entityClass, entityName, id, SUMBA.INSTANCE, 64, 1, true);

EntityRegistry.addSpawn(entityClass, probability, minSpawn, maxSpawn, type, biomes);

 

if(hasSpawnEgg) {

EntityList.entityEggs.put(Integer.valueOf(id), new EntityList.EntityEggInfo(id, solidColor, spotColor));

}

}

 

}

 

 

 

 

Question: Can we write in german or isn't that allowed?

 

MY MODS ARE AWESOME!!!

...and sometimes they won't work :)

Contact me in skype for live chat: Affenkind

Link to comment
Share on other sites

int modEntID = 0;
EntityRegistry.registerModEntity(MyEntity.class, modEntID, ...)

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Ok, my mod is on 1.8.9 and i just use "EntityRegistry..." and nothing else for registering the entities but the turtle still dies by loading the world :/

What do I have to do now?

MY MODS ARE AWESOME!!!

...and sometimes they won't work :)

Contact me in skype for live chat: Affenkind

Link to comment
Share on other sites

Hey, I'm here again and I want to figure that out!

The turtle still dies on world reload... :(

I don't know why, let me know if you have a solution!

MY MODS ARE AWESOME!!!

...and sometimes they won't work :)

Contact me in skype for live chat: Affenkind

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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



×
×
  • Create New...

Important Information

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