Saving command outputs as Variables

Started by Mindthemoods on

Topic category: Feature requests and ideas for MCreator

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Saving command outputs as Variables

I've seen this problem mentioned a few times, and I've recently run into a couple situations where something like this would be handy: essentially, the ability to run a command and get its output as a string or number variable. Possibly a bit of an edge case thing, given that entity NBT is the main thing this would be useful for, and it's already covered by NBT functions; but for, say, processing large data tags, (say, messing with arbitrary Villager Trade data), could be helpful. (This was prompted by needing a means of location a biome and saving its location as a variable- getting the output of the /biome command would be quite helpful.) 

I believe this might be possible with /data, but I'm not 100% sure how I'd go about using it. To the best of my knowledge, this isn't a currently possible in the latest version of MCreator.

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi bro! Sorry for offtopping…
Thu, 01/09/2025 - 23:15

Hi bro! Sorry for offtopping, but i dont know how to contact you other way.
I need help with an especial thing and i found no guides to this in internet, and my forum questions about this are all ignored. 
You seems like a very strong modder and i wish you could help me with doing this. You are my last hope. ='(

All i want is to add "ragdoll" animation to my dinosaur mob's tail, so it will shake and bend smoothly, like Ender Dragon's tail does - not just stick out like its solid.