© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
AdmincraftA
Admincraft•3y ago•
10 replies
SirJeffersonIII

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.
AdmincraftJoin
10,704Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Fabric Dev help
AdmincraftAAdmincraft / questions
14mo ago
Help with Velocity-Fabric setup
AdmincraftAAdmincraft / questions
3y ago
Fabric Crash
AdmincraftAAdmincraft / questions
3y ago
Fabric anticheats
AdmincraftAAdmincraft / questions
3y ago