Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Meteor extends EntityFireball {
- public Meteor(World world, int x, int y, int z) {
- super(world);
- this.posX = x;
- this.posY = y+100;
- this.posZ = z;
- this.accelerationY = -0.1;
- // TODO Auto-generated constructor stub
- }
- @Override
- protected void onImpact(MovingObjectPosition mop) {
- // TODO Auto-generated method stub
- this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, 6.0F, true);
- this.setDead();
- Minecraft.getMinecraft().thePlayer.sendChatMessage("hello");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement