Started by
reid3002
on
Topic category: Help with Minecraft modding (Java Edition)
Hi, I wanted to know if there is a way to save the result of, for example, the /data command into a string variable, or any variable at all.
Topic category: Help with Minecraft modding (Java Edition)
Hi, I wanted to know if there is a way to save the result of, for example, the /data command into a string variable, or any variable at all.
Hello!
When you create commands there is something like Parameters and String parameters I think you could use that
Yes, have seen the comand editor and tried to use it for this, but the problem is that I haven't found any way to input the result provided by the /data command into a message or a string. From what I've seen, the comands made in the command editor are only for the player to input data.
Oh i see
Well you can try to save that as nbt tag or global variable for the player
If you only want to send a chat you can put the result in a send chat to all players or message to entity