Disable feedback for execute command (procedure)

Started by Cyclip on

Topic category: Help with MCreator software

Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Disable feedback for execute command (procedure)

[Shows red text because of error]

 

So I made a procedure that makes mobs freeze by doing /entitydata @e[x=x,y=y,z=z,r=7] {NoAI:1b} and it works (with the gamerule sendCommandFeedback false) fine.

When there's an error, like when the mob is already "frozen", it shows a bunch of red text in chat. Is there any way to hide it or not? Or is there another way?

Also now I'm thinking of setting another nbt tag (integer) to a random number so it will always change and not show, but I'll do that if there isn't any way to hide the red text.

Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well instead of using …
Wed, 06/12/2019 - 17:56

Well instead of using /entitydata, you could give the entity slowness and jump boost 180. This would make it unable to jump or move, effectively freezing it.

Potion effect commands do not give error feedback if the provided entity already has the effect, so you wouldn't have to worry about your issue here.