How to make a command that throws an error?

Started by HellishBro on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a command that throws an error?

hello. I've tried to make a mod that conntains a "testfornbt" command. It tests for if nbt data is in block nbt. If not, it throws an error into the command block.

But I just can't find the block to throw an error into the command block, so any ideas?