RedstoneAlmeida
Member
The EnderDragon & Wither disapier in 4 and more Seconds.
Reds~ said:AddEntityPacket pk = new AddEntityPacket();
pk.type = this.getNetworkId();
pk.entityUniqueId = this.getId();
pk.entityRuntimeId = this.getId();
pk.x = (float)this.x;
pk.y = (float)this.y;
pk.z = (float)this.z;
pk.speedX = (float)this.motionX;
pk.speedY = (float)this.motionY;
pk.speedZ = (float)this.motionZ;
pk.metadata = (new EntityMetadata())
.putLong(0, 0L)
.putShort(7, 400)
.putShort(42, 400)
.putLong(37, -1L)
.putFloat(38, 1.0F)
.putString(4, "EnderDragon").putInt(41, 0);
Attribute attribute = Attribute.getAttribute(4);
attribute.setMaxValue(100.0F);
attribute.setValue(50F);
pk.attributes = new Attribute[]{attribute};
player.dataPacket(pk);