Wither & EnderDragon

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);
 

CreeperFace

🇨🇿🇺🇦 Слава Україні!
Staff member
The EnderDragon & Wither disapier in 4 and more Seconds.
PHP:
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 = this.dataProperties;
        pk.yaw = 0;
        pk.pitch = 0;
        pk.attributes = new Attribute[]{Attribute.getAttribute(Attribute.MAX_HEALTH).setMaxValue(20).setValue(20)};
        if (this.linkedEntity != null) {
            pk.links = new Object[][]{{this.getId(), this.linkedEntity.getId(), (byte) 1}};
        }
        player.dataPacket(pk);
this works for me
 
Top