Get return value of executed command

Started by Krronos on

Topic category: Feature requests and ideas for MCreator

Last seen on 01:05, 10. May 2023
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get return value of executed command

So basically, the idea is that you type in a command to be executed by either an entity or at an XYZ location and it returns the value of the command as a number.

So something like execute if entity @e would return the number of entities. Another example would be /say test and it would return whether or not the command was successfully executed.

Last seen on 00:54, 24. Mar 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
^^ PLEASE do something like…
Thu, 03/30/2023 - 05:26

^^ PLEASE do something like this, it would be super helpful

Last seen on 17:01, 25. Mar 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes
Mon, 04/03/2023 - 19:53

yes

Last seen on 22:28, 1. Dec 2023
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
YES. My use case:Want to…
Sat, 07/22/2023 - 20:34

YES. My use case:
Want to check gravity state with gravity mod, there is this command:
/Gravity get @p
Which returns the gravity of the player, but cannot figure out how to get this to work :(