A few of my friends and I made a KitPVP server from scratch the other day. I was wondering if it was possible for it to be so players on Gamemode 2 (Adventure mode) can't take from armor stands.
I attached an image of one of the kits. We can't knock down the wall behind it and put it behind glass, since there is no room to do so.
Armor stands are entity so they can phase through blocks. I'd tp the armor stand to the left temporarily, then place two barrier blocks (or glass if you want a case effect) at its original location, then teleport it back, then It's be untouchable by any adventures ;).
Armor Stands actually have an NBT tag for this. I believe players in creative can still interact with it normally. Just players in survival or adventure mode can't interact with it. If you want to make this happen for all armor stands on the world, run this command every time an armor stand is created.
If you just want this for some armor stands, add a radius parameter to the @selector and run this command from within that radius of each armor stand you want this to apply to.
I attached an image of one of the kits. We can't knock down the wall behind it and put it behind glass, since there is no room to do so.
Don't thank me just press the green upward arrow.
The answer to the universe.
/entitydata @e[type=ArmorStand] {DisabledSlots:2039552}
If you just want this for some armor stands, add a radius parameter to the @selector and run this command from within that radius of each armor stand you want this to apply to.