Skip to content

Instantly share code, notes, and snippets.

@BlockAfterBlock
Created May 31, 2011 00:56
Show Gist options
  • Save BlockAfterBlock/999703 to your computer and use it in GitHub Desktop.
Save BlockAfterBlock/999703 to your computer and use it in GitHub Desktop.
package net.minecraft.src;
import java.util.Map;
public class mod_Family extends BaseMod
{
public String Version()
{
return "v1";
}
public static Achievement NotMySon;
public static Achievement TamedSon;
public static Item Family_Spawner = (new Family_Spawner(5002)).setItemName("Family_Spawner");
public mod_Family()
{
ModLoader.RegisterEntityID(Family_Wife.class, "Wife", ModLoader.getUniqueEntityId());
ModLoader.RegisterEntityID(Family_Son.class, "Son", ModLoader.getUniqueEntityId());
ModLoader.RegisterEntityID(Family_Daughter.class, "Daughter", ModLoader.getUniqueEntityId());
ModLoader.AddRecipe(new ItemStack(Family_Spawner, 64), new Object[] {"",('X'),Block.dirt});
}
public void AddRenderer(Map map)
{
map.put(Family_Son.class, new Family_ChildRender(new Family_ChildModel(), 0.5F));
map.put(Family_Daughter.class, new Family_ChildRender(new Family_ChildModel (), 0.5F));
}
public static void AddAchievements()
{
NotMySon = (new Achievement(520000, "NotMySon", -2, -5, Item.stick, null)).registerAchievement();
ModLoader.AddAchievementDesc(NotMySon, "NOT MY SON!", "Your son died!");
TamedSon = (new Achievement(520001, "TamedSon", -3, -5, Item.book, null)).registerAchievement();
ModLoader.AddAchievementDesc(TamedSon, "Got a Son", "Have fun.");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment