The /call command would be a new command that will run a command that is stored inside NBT data.
- /call cannot run the call command itself (to prevent looping)
- If the called command is invalid it will quietly ignore it. If you use the /execute result command it will return the error.
Syntax
/call storage <id namespaced ID> [<path: NBT path>]
/call block <pos: 3D vector> [<path: NBT path>]
/call entity <entity: entity> [<path: NBT path>]
Example
Apply command to storage
/data modify storage minecraft:test Command set value "say I was called on"
Call the command that is in storage
/call storage minecraft:test Command>
/data modify storage minecraft:test Command set value "say I was called on"
Call the command that is in storage
/call storage minecraft:test Command>
Sends the following to chat
> I was called on
Please sign in to leave a comment.
0 Comments