Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.Random;
- public class mod_Bots extends BaseMod
- {
- //Insert source code here
- public mod_Bots()
- {
- ModLoader.RegisterEntityID(EntityMineBot.class, "MineBot", Modloader.GetUniqueEntityId() );
- // this registers the mob's ID, making it spawnable in-game
- ModLoader.AddSpawn(EntityMineBot.class, 2, EnumCreatureType.creature);
- /* this adds the mob to the list of "to-spawn" mobs. The "2" is the rarity of the mob.
- * The EnumCreatureType is what kind of mob it is. For example, squids are "waterCreature",
- * enemies are "monster", and animals are "creature".
- */
- //Renderers
- public void addRenderer(Map map)
- {
- map.put(EntityMineBot.class, new RenderMineBot(new ModelMineBot(), 0.5F) );
- //This assigns the entity class to the appropriate renderer and model class
- }
- public String Version()
- {
- return "0.1";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement