SirJeffersonIII
SirJeffersonIII
AAdmincraft
Created by SirJeffersonIII on 6/30/2023 in #questions
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/
8 replies
AAdmincraft
Created by SirJeffersonIII on 6/30/2023 in #questions
Commandaliases fabric help
currently I have a json with just this:
schemaVersion: 1
commandMode: COMMAND_CUSTOM
command: killhostile
children:
- child: a
type: argument
argumentType: minecraft:word
actions:
- command: kill @e[type=#cdp:hostile]
commandType: SERVER
requireSuccess: false
messageIfUnsuccessful: 'FAILED'
messageIfSuccessful: 'WORKED!!!'
schemaVersion: 1
commandMode: COMMAND_CUSTOM
command: killhostile
children:
- child: a
type: argument
argumentType: minecraft:word
actions:
- command: kill @e[type=#cdp:hostile]
commandType: SERVER
requireSuccess: false
messageIfUnsuccessful: 'FAILED'
messageIfSuccessful: 'WORKED!!!'
The command goes through, but i still get "failed" in the chat. Also, if I make the command kill @e[distance=..50,type=#cdp:hostile] it doesnt run at all. If i make a commandalias thats just a redirect of the command it also does not run. It seems that it is having trouble with selectors. Any help would be appreciated.
11 replies