ProtocolLib/NMS PacketPlayOutBlockChange with NBT tag

Discussion in 'Spigot Plugin Development' started by victor2748, May 16, 2015.

  1. Hello, I am trying to use ProtocolLib or NMS to send a block with an NBT tag, to the client. I tried both, NMS and ProtocolLib, but did not found a way to do that in neither of them.

    Question: How can I attach an NBT tag to a PacketPlayOutBlockChange packet (In case of NMS), or to a Play.Server.BLOCK_CHANGE type packet (In case of ProtocolLib)?

    I've been searching for a long time, but failed to find a way to do so. My goal is to send a fake block to the client, with NBT tag data applied to it (it can be done in a single or multiple packets).

    Thank you,

    #1 victor2748, May 16, 2015
    Last edited: May 16, 2015