Advertisement
Guest User

Meteor

a guest
Jan 12th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. public class Meteor extends EntityFireball {
  2.  
  3.     public Meteor(World world, int x, int y, int z) {
  4.         super(world);
  5.         this.posX = x;
  6.         this.posY = y+100;
  7.         this.posZ = z;
  8.         this.accelerationY = -0.1;
  9.         // TODO Auto-generated constructor stub
  10.     }
  11.  
  12.  
  13.  
  14.     @Override
  15.     protected void onImpact(MovingObjectPosition mop) {
  16.         // TODO Auto-generated method stub
  17.         this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, 6.0F, true);
  18.         this.setDead();
  19.         Minecraft.getMinecraft().thePlayer.sendChatMessage("hello");
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement