Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. import java.util.Random;
  4.  
  5. public class mod_Bots extends BaseMod
  6. {
  7. //Insert source code here
  8.  
  9. public mod_Bots()
  10. {
  11. ModLoader.RegisterEntityID(EntityMineBot.class, "MineBot", Modloader.GetUniqueEntityId() );
  12. // this registers the mob's ID, making it spawnable in-game
  13.  
  14.  
  15. ModLoader.AddSpawn(EntityMineBot.class, 2, EnumCreatureType.creature);
  16. /* this adds the mob to the list of "to-spawn" mobs. The "2" is the rarity of the mob.
  17. * The EnumCreatureType is what kind of mob it is. For example, squids are "waterCreature",
  18. * enemies are "monster", and animals are "creature".
  19. */
  20.  
  21. //Renderers
  22. public void addRenderer(Map map)
  23. {
  24. map.put(EntityMineBot.class, new RenderMineBot(new ModelMineBot(), 0.5F) );
  25. //This assigns the entity class to the appropriate renderer and model class
  26. }
  27.  
  28. public String Version()
  29. {
  30. return "0.1";
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement