Guest User

Untitled

a guest
Nov 24th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. ModLoader.getMinecraftInstance().theWorld.entityJoinedWorld(new EntityManOfWar(ModLoader.getMinecraftInstance().theWorld));
  2. EntityManOfWar entityliving = (EntityManOfWar)EntityList.createEntityInWorld("ManofWar", ModLoader.getMinecraftInstance().theWorld);
  3.  
  4. double d6 = (double)ModLoader.getMinecraftInstance().thePlayer.posX + (ModLoader.getMinecraftInstance().theWorld.rand.nextDouble() - ModLoader.getMinecraftInstance().theWorld.rand.nextDouble()) * 4D;
  5. double d7 = (ModLoader.getMinecraftInstance().thePlayer.posY + ModLoader.getMinecraftInstance().theWorld.rand.nextInt(3)) - 1;
  6. double d8 = (double)ModLoader.getMinecraftInstance().thePlayer.posZ + (ModLoader.getMinecraftInstance().theWorld.rand.nextDouble() - ModLoader.getMinecraftInstance().theWorld.rand.nextDouble()) * 4D;
  7.  
  8. entityliving.setLocationAndAngles(d6, d7, d8, ModLoader.getMinecraftInstance().theWorld.rand.nextFloat() * 360F, 0.0F);
  9.  
  10. ModLoader.getMinecraftInstance().theWorld.entityJoinedWorld(entityliving);
Add Comment
Please, Sign In to add comment