I did what it said and edited what I could, and it seems that the mob is there, it's just invisible. If anyone can tell me what I'm doing wrong or what to change that would be highly apreciated.
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public class EntityMeatMan extends EntityCreature
{
public EntityMeatMan(World world)
{
super(world);
texture = "/mob/MeatMan.png"; // the name of the texture that is used with the new mob , it should be in the mob folder in minecraft.jar
setSize(1.5F, 1.9F); // this is the coordinates where the mob is hit
}
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
{
super.writeEntityToNBT(nbttagcompound); // this make your mob loadable again when you load your map you should keep it as it is if you want iy
}
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
{
super.readEntityFromNBT(nbttagcompound); // this retrieves minecraft saves , so you should keep it as it is if you want it
}
protected String getLivingSound()
{
return "mob.zombie.say"; // the sound of your mob when its hurt , dead , or from a distance, null means theres no sounds ,when you put a sound after all your work you need to install audiomod , the sounds should be placed in resources/mod/sound ,and should be like that: return "thefoldernameofyourmob.thenameofyourogg";the folder name of your mob should be place in resources/mod/sound, when making more than 1 sounds rename them to 1,2,3,4,5 with same name and put it here without the 1,2,3,4 ..
}
protected String getHurtSound()
{
return "mob.ghast.scream";
}
protected String getDeathSound()
{
return "mob.zombie.death";
}
protected float getSoundVolume()
{
return 0.4F;
}
protected int getDropItemId()
{
return Item.beefRaw.shiftedIndex; // this is what you want your mob to drop when its dead ,google minecraft id and go to the minecraftwiki to see the id numbers , for exmaple 352 will drop a bone
}
public int getMaxHealth() {
return 10;
}
}
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
public class mod_Meat extends BaseMod
{
public static final Block meatonium = new BlockMeatonium(200, 0).setBlockName("Meatonium").setHardness(1F).setResistance(1F).setLightValue(0F);
public static final Block meatoniumns = new BlockMeatoniumns(201, 0).setBlockName("Meatoniumns").setHardness(1F).setResistance(1F).setLightValue(0F);
public static final Block meatblock = new BlockMeat(202, 0).setBlockName("MeatBlock").setHardness(1F).setResistance(1F).setLightValue(0F);
//public static final Block meatleaves = new BlockMeatLeaves(205, 0).setBlockName("MeatLeaves").setHardness(0.02F).setResistance(0.5F).setLightValue(0F);
//public static final Block meatWood = new BlockMeatWood(204).setBlockName("MeatLog").setHardness(1.5F).setResistance(1F).setLightValue(0F);
//public static int meatWoodMiddle;
//public static int meatWoodSides;
//public static final Item meatSapling = new ItemMeatSapling(601).setItemName("Meat Sapling");
public static final Item meatIngot = new ItemMeatIngot(600).setItemName("Meat Ingot");
public static final Item meatHelmet = new ItemArmor(602, EnumArmorMaterial.DIAMOND, ModLoader.addArmor("Meat"), 0).setItemName("MeatHelmet");
public static final Item meatChestplate = new ItemArmor(603, EnumArmorMaterial.DIAMOND, ModLoader.addArmor("Meat"), 1).setItemName("MeatChestplate");
public static final Item meatLegs = new ItemArmor(604, EnumArmorMaterial.DIAMOND, ModLoader.addArmor("Meat"), 2).setItemName("MeatLegs");
public static final Item meatBoots = new ItemArmor(605, EnumArmorMaterial.DIAMOND, ModLoader.addArmor("Meat"), 3).setItemName("MeatBoots");
public static final Item meatUltiTool = new ItemMeatPickaxe(601, EnumMeatTool.MEAT).setItemName("Meat Ultimate Tool");
public static final Item Burger = new ItemFood(608, 8, 1F, false).setItemName("Burger");
public String getVersion()
{
return "Meat Mod";
}
public void load()
{
//Meat Ultimate Tool Stuffs
meatUltiTool.iconIndex = ModLoader.addOverride("/gui/items.png", "/MeatoniumMod/MeatTool.png");
ModLoader.addName(meatUltiTool, "Meat Ultimate Tool");
ModLoader.addRecipe(new ItemStack(meatUltiTool, 1), new Object[]
{
"@@@", "@XB", " X ", Character.valueOf('@'), mod_Meat.meatIngot, Character.valueOf('X'), Item.stick, Character.valueOf('B'), Item.diamond
});
//Meatonium Stuffs
meatonium.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MeatoniumMod/meatonium.png");
ModLoader.registerBlock(meatonium);
ModLoader.addName(meatonium, "Meatonium");
//REMOVE LATER
ModLoader.addRecipe(new ItemStack(meatonium, 1), new Object[]
{
"@ @", " @ ", Character.valueOf('@'), Block.dirt
});
//Meatoniumns Stuffs
meatoniumns.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MeatoniumMod/meatoniumns.png");
ModLoader.registerBlock(meatoniumns);
ModLoader.addName(meatoniumns, "Meatonium (No Smelt)");
//REMOVE LATER
ModLoader.addRecipe(new ItemStack(meatoniumns, 1), new Object[]
{
"@ @", " @ ", Character.valueOf('@'), Block.cobblestone
});
//Meat Block Stuffs
meatblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MeatoniumMod/meat.png");
ModLoader.registerBlock(meatblock);
ModLoader.addName(meatblock, "Meat Block");
ModLoader.addRecipe(new ItemStack(meatblock, 1), new Object[]
{
"@@","@@", Character.valueOf('@'), Item.beefRaw
});
ModLoader.addRecipe(new ItemStack(meatblock, 1), new Object[]
{
"@@","@@", Character.valueOf('@'), mod_Meat.meatIngot
});
//Meat Ingot Stuffs
meatIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/MeatoniumMod/Meatingot.png");
ModLoader.addName(meatIngot, "Meat Ingot");
ModLoader.addRecipe(new ItemStack(meatIngot, 9), new Object[]
{
"@", Character.valueOf('@'), mod_Meat.meatblock
});
//Meat ingot to (raw) beef recipe
ModLoader.addRecipe(new ItemStack(meatIngot, 1), new Object[]
{
"@", Character.valueOf('@'), Item.beefRaw
});
//Smelt meatonium to get steak
ModLoader.addSmelting(mod_Meat.meatonium.blockID, new ItemStack(Item.beefCooked.shiftedIndex, 1, 1), 1);
//Meat Armor Stuffs
meatHelmet.iconIndex = ModLoader.addOverride("/gui/items.png", "/MeatoniumMod/MeatHelmet.png");
ModLoader.addName(meatHelmet, "Meat Helmet");
ModLoader.addRecipe(new ItemStack(meatHelmet, 1), new Object[]
{
"GGG", "G G", Character.valueOf('G'), mod_Meat.meatIngot
});
meatChestplate.iconIndex = ModLoader.addOverride("/gui/items.png", "/MeatoniumMod/MeatChestplate.png");
ModLoader.addName(meatChestplate, "Meat Chestplate");
ModLoader.addRecipe(new ItemStack(meatChestplate, 1), new Object[]
{
"X X", "XXX", "XXX", Character.valueOf('X'), mod_Meat.meatIngot
});
meatLegs.iconIndex = ModLoader.addOverride("/gui/items.png", "/MeatoniumMod/MeatLegs.png");
ModLoader.addName(meatLegs, "Meat Leggings");
ModLoader.addRecipe(new ItemStack(meatLegs, 1), new Object[]
{
"@@@", "@ @","@ @", Character.valueOf('@'), mod_Meat.meatIngot
});
meatBoots.iconIndex = ModLoader.addOverride("/gui/items.png", "/MeatoniumMod/MeatBoots.png");
ModLoader.addName(meatBoots, "Meat Boots");
ModLoader.addRecipe(new ItemStack(meatBoots, 1), new Object[]
{
"B B", "B B", Character.valueOf('B'), mod_Meat.meatIngot
});
//Burger Stuffs
Burger.iconIndex = ModLoader.addOverride("/gui/items.png", "/MeatoniumMod/Burger.png");
ModLoader.addName(Burger, "Burger");
ModLoader.addRecipe(new ItemStack(Burger, 1), new Object[]
{
"@@@", "%%%","@@@", Character.valueOf('@'), Item.bread, Character.valueOf('%'), mod_Meat.meatIngot
});
/*Meat Log Stuffs
ModLoader.registerBlock(meatWood);
ModLoader.addName(meatWood, "Meat Log");
//REMOVE LATER
ModLoader.addRecipe(new ItemStack(meatWood, 1), new Object[]
{
"@@","@@", Character.valueOf('@'), Block.dirt
});
meatWoodMiddle = ModLoader.addOverride("/terrain.png", "/MeatoniumMod/MeatWoodMiddle.png");
meatWoodSides = ModLoader.addOverride("/terrain.png", "/MeatoniumMod/MeatWoodSides.png");
/*Meat Leaves Stuffs
ModLoader.registerBlock(meatleaves);
ModLoader.addName(meatleaves, "Meat Leaves");
meatleaves.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MeatoniumMod/MeatLeaves.png");
//Meat Sapling Stuffs
meatSapling.iconIndex = ModLoader.addOverride("/gui/items.png", "/MeatoniumMod/MeatSapling.png");
ModLoader.addName(meatSapling, "Meat Sapling");
ModLoader.addRecipe(new ItemStack(meatSapling, 1), new Object[]
{
"@ @", Character.valueOf('@'), Block.planks
});
*/
}
public mod_Meat()
{
//MeatMan Stuffs
ModLoader.registerEntityID(EntityMeatMan.class, "Meat Man", ModLoader.getUniqueEntityId()); // without this code , your mob wont spawn !
ModLoader.addSpawn(EntityMeatMan.class, 10, 0, 8, EnumCreatureType.creature); // this is the spawn rate for exmaple if you put 3 the mobs is very rare to spawn,The EnumCreatureType is what type of mob it is , mobs that you want to spawn in water are "waterCreature", enemies are "monster", and animals are "creature".
}
public void generateSurface(World world, Random rand, int i, int j)
{
for(int rarity = 0; rarity < 8; rarity ++)
{
int BlockX = i + rand.nextInt(16);
int BlockY = rand.nextInt(64);
int BlockZ = j + rand.nextInt(16);
new WorldGenMinable(meatonium.blockID, 7).generate(world, rand, BlockX, BlockY, BlockZ);
new WorldGenMinable(meatoniumns.blockID, 7).generate(world, rand, BlockX, BlockY, BlockZ);
}
}
public void AddRenderer(Map map)
{
map.put(EntityMeatMan.class, new RenderMeatMan(new ModelZombie(), 0.8F)); // this one just assign the mob to your game and make it readable, just like RenderManager , the 0.5f is the shadow size of the mob you can make it bigger like 0.8f or smaller like 0.2f
}
}
Looks like a great system!
If so, is it updated to version 1.2.X?
SOMEONE PLEASE TELL ME
Silvvy and Ebby belong to J-C, and my avatar was drawn by J-C! <3
Heres my Code: