Store Command Output as a Variable

Started by jeremonster02 on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Aug 2014
Points:
730

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
Store Command Output as a Variable

i am trying to use the command /data get entity @p UUID to get the UUID of the player performing the procedure, and then store the output to use in another command in order to modify player specific data on a villager, is there any way to store that command output?

Active 2 weeks ago
Joined Feb 2024
Points:
133

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 28
According to one of the…
Thu, 06/05/2025 - 21:44

According to one of the developers about an hour before i wrote this, it's not currently possible. I'd try to use the get nbt tag string output thing.