Solved Prevent ArmorStands from being pushed by pistons

Discussion in 'Spigot Plugin Development' started by Lightcaster5, Dec 5, 2020.

  1. I'm sure this has been done many times but I just can't for the love of anything find a way to prevent armor stands from being pushed by pistons.

    Yes I've googled it (and looked at +10 Spigot/Bukkit threads)
    Yes I've tried to see how Holographic Displays does it (jesus christ there is a lot)
    And yes... I have tried to use ArmorStand#setMarker(true); but that only prevents the affects from water

    Any help is appreciated, thanks!
  2. Holographic displays used to use packets to spawn their armor stands, idk if that changed tho
    • Agree Agree x 1
  3. Thanks, I'll look into packet armorstands. For anyone looking for a solution, I'd suggest using a more later version of spigot as the ArmorStand class has more useful methods. For those who must use a specific version, as with my case, just use packets, here's a good place to start: Spawn ArmorStand with packets | SpigotMC - High Performance Minecraft