[INFO] 1.7.x Protocol changes (Find the new packet names here!)

Discussion in 'Resources' started by CaptainBern, Dec 3, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    CaptainBern Retired Staff

    thepaperboy99 No problem :). ccrama It's okay tho, because of your mistake I went looking at the code and found a stupid mistake at my side :p
     
  2. Offline

    ccrama

    CaptainBern haha, also that is how your readme on Github does it (copied it from there). You might want to change it ;)
     
  3. Offline

    CaptainBern Retired Staff

    Hey all,
    I just wanted to let you know that I've just updated the protocol list. I've added a link of each protocol to it's coresponding article on http://www.wiki.vg/
    (Fancy picture:
    [​IMG]
    )

    When craftbukkit reaches a stable enough state (when the developers decide it's time to push to the public repo) then I will also add links to each packet class. So this list can be of more use, and will in the fute be a bridge between the wiki.vg articles and the craftnukkit/nms packet code.

    - Cap. Bern.
     
    Garris0n likes this.
  4. Offline

    elraro

    hi! i have a problem with the respawn packet...

    there is a retard of 1-2 ticks when i use the packet? :/
     
  5. Offline

    CaptainBern Retired Staff

    elraro If you're sending the packet when the player dies then make sure you're waiting at least 1 tick before you send it. (Also, there will always be some delay :/ )
     
    elraro likes this.
  6. Offline

    HeavyMine13

    Where can i learn how to use them?

    PacketPlayOutSpawnEntity skull_packet = new PacketPlayOutSpawnEntity(skull);


    Error: The constructor PacketPlayOutSpawnEntity(EntityWitherSkull) is undefined

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  7. Offline

    bigteddy98

    That constructor has to be used the following:
    Code:java
    1. public PacketPlayOutSpawnEntity(Entity paramEntity, int paramInt)

    The second integer is the type of your mob, which can be found here.

    -BigTeddy98, Sander.
     
  8. Offline

    arhlex

    private static Packet17EntityLocationAction getBedPacket(Death death)
    {
    int x = death.getLocation().getBlockX();
    int y = death.getLocation().getBlockY() + 1;
    int z = death.getLocation().getBlockZ();
    Packet17EntityLocationAction bed = new Packet17EntityLocationAction(((CraftEntity) death.getNPC().getBukkitEntity()).getHandle(), 0, x, y, z);
    return bed;
    }
    any help to update it?
     
Thread Status:
Not open for further replies.

Share This Page