1.12.2 Right clicking an armorstand?

Discussion in 'Spigot Plugin Development' started by MarcusSlover, Feb 9, 2020.

  1. Hi.
    Does anybody know how to detect when a player right-clicks a fake entity?
    The armor stand is like a hologram of mine, and I want to know how to detect the right-click action at them.
    It's problematic because the entity is a client-side entity, shown for a certain player.

    Can someone help me?
  2. Unless you have overridden the Interact at entity method, you should still be able to handle these interact-events in a regular event.
    Otherwise, override said method
  3. Well @Schottyky is always right but I think you would have to check packets. The client tells the server what its doing but the server goes what are you talking about there is no armor stand there. So you would need to check the packet telling the server the client clicked it. Packets make me drink too much so i usually don't mess with them :p