Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.ExtraCraft.Items;
- import net.minecraft.entity.projectile.EntityThrowable;
- import net.minecraft.util.MovingObjectPosition;
- import net.minecraft.world.World;
- import net.minecraft.entity.Entity;
- import net.minecraft.entity.EntityLivingBase;
- public class EntityFrag extends EntityThrowable {
- public EntityFrag(World p_i1776_1_) {
- super(p_i1776_1_);
- // TODO Auto-generated constructor stub
- }
- public EntityFrag(World world, EntityLivingBase entity){
- super(world, entity);
- }
- @Override
- protected void onImpact(MovingObjectPosition p_70184_1_) {
- for(int i = 0; i < 10; i++){
- this.worldObj.spawnParticle("largesmoke", this.posX, this.posY, this.posZ, 0f, 0f, 0f);
- }
- if(this.worldObj.isRemote){
- this.worldObj.createExplosion((Entity) this, this.posX, this.posY, this.posZ, 5f, true);
- this.setDead();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement