1.12.2 Open existing command block interface.

Discussion in 'Spigot Plugin Development' started by PainDeMie, Feb 16, 2020.



Poll closed Feb 23, 2020.
  1. Nope, do something else.

  2. Yeah, of course!

  1. Hello everyone, I just started a new plugin, and I'd like to know how to make a player open an existing command block interface. For example, I type the /opencmdblock command and it opens the nearest command block... If it is possible, I'd like to avoid NMS.
    Thanks for your help!
  2. SteelPhoenix


    I'm pretty sure there is no API method for this, so you will have to resort to NMS (or ProtocolLib) and send packets to mimic clicking the command block.
  3. And how to do it?
  4. Find the right packet to send to the client and how to do it correctly.
  5. I meant, which packet and how to use it?
  6. NMS is not supported, you have to do the research yourself, not expect us to do it.
  7. Not working since 1.8. The "virtual" command block interface has been made cleint-side so this is why I was wondering if it was possible to open a command block right next to the player for example