How can I exclude all name tagged mobs with @e?
looking for something like this, but the syntax is old so the command doesnt run.
https://www.reddit.com/r/Minecraft/comments/7os1y0/how_to_kill_only_mobs_that_are_not_namedtagged/
reddit
r/Minecraft - How to kill only mobs that are not named/tagged?
2 votes and 6 comments so far on Reddit
3 Replies
Thanks for asking your question!
Once you have finished, please close your thread.
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
command to close
/close
!close
!solved
Requested by sirjeffersoniii#0
You probably need to /minecraft:kill
its not the kill, it fails to apply tags in the first place because "/scoreboard players tag" is invalid as tag isnt a argument for me.
is there way to do this with the "PersistenceRequired:1b" nbt tag?
i have something like this, but it still killed the name wither skeletons:
"/kill @e[type=minecraft:wither_skeleton,nbt=!{Entity:{id:"PersistenceRequired:1b"}}]"
For people that look in the future, the correct command in this instance is:
/kill @e[type=minecraft:wither_skeleton,nbt=!{PersistenceRequired:1b}]
!solved