Get return value of executed command

Started by Krronos on

Topic category: Feature requests and ideas for MCreator

Active 7 months ago
Joined Nov 2020
Points:
598

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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.

Active 5 hours ago
Joined May 2022
Points:
661

User statistics:

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

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

Active 1 hour ago
Joined Oct 2021
Points:
585

User statistics:

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

yes

Active 1 year ago
Joined Mar 2023
Points:
201

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
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 :(

Active 4 months ago
Joined Sep 2015
Points:
807

User statistics:

  • Modifications: 3
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 94
Yes
Mon, 07/01/2024 - 01:54

Yes

Active 3 weeks ago
Joined May 2024
Points:
120

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 97
Great idea  
Sun, 09/01/2024 - 12:57

Great idea

 

Active 3 weeks ago
Joined May 2024
Points:
120

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 97
It´s in the changelog for…
Fri, 09/06/2024 - 15:44

It´s in the changelog for the next mcreator version!