• Register
Welcome to Minecraft Help - Questions & Answers

Here you can ask Minecraft related questions or help other players by answering their questions.
Community driven website maintained by Minecraft Servers - A list with thousands of playable servers for Minecraft.

We recommend Mojangs new official bug tracker, letting them know about errors, will help speed up development to close bugs. Visit at Minecraft Bug Tracker
  • Minecraft Skins
  • Minecraft Stats
  • With a command block how do i exclude certain entities

    +1 vote
    Im trying to give a group of Armor Stands a couple of random names so i can have a set of commands find them and fill in that type of block, i have my first set of command blocks spawning them in the areas i want them to be in, then my next command block i have set as

    Execute as @e[type=minecraft:armor_stand, limit=3, sort=random] run data merge entity @e[type=minecraft:armor_stand] {CustomName:"\"Brick\"", CustomNameVisible:1}

    What i want is my next command block in the line is to be generally the exact same (with a different name related to the block i want of course) but to exclude the 3 already named armor stands. ive tried to do this in different ways but couldnt figure out how. They always come to a point where it overwrites the current name of the armor stands which i dont want it to overwrite it. Ive searched on the internet for a while to try and help me figure out how to do it but i couldnt find out how so i decided to ask. Thank you for reading my Question ^.^
    asked Feb 4, 2021 in Redstone Circuits by ElementK1ng (130 points)
      

    1 Answer

    0 votes
    dunno if that works
    answered Feb 4, 2022 by anonymous
    ...