Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class EntityParasiteEgg extends EntityThrowable {
- public EntityParasiteEgg(World world, double x, double y, double z) {
- super(world, x, y, z);
- }
- @Override
- protected void onImpact(MovingObjectPosition position) {
- if (!this.worldObj.isRemote) {
- EntityItem egg = new EntityItem(this.worldObj, this.posX, this.posY, this.posZ, new ItemStack(ItemRegistry.baseParasite, 1, this.g));
- egg.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F);
- this.worldObj.spawnEntityInWorld(egg);
- }
- for (int j = 0; j < 8; ++j) {
- this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
- }
- if (!this.worldObj.isRemote) {
- this.setDead();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement