It would be great if we would get an extension of the "/data" command to also support getting and modifying world data; not only block/entity data. This option would provide a wild range of new possibilities for map/datapack makers. The compability of datapacks with each other would increse.
I'd suggest to use the following Syntax:
/clientdata @a[sort=nearest,limit=1] options/controls/auto_jump
=> false
/clientdata @a[sort=nearest,limit=1] options/fov
=> 70
/clientdata @a[sort=nearest,limit=1] general/client_name
=> "Vanilla" (This value can be set by the client creator)
/clientdata @a[sort=nearest,limit=1] general/modded
=> true
/clientdata @a[sort=nearest,limit=1] general/cracked
=> false
/clientdata @a[sort=nearest,limit=1] general/controls/key/swapOffhand
=> "F"
This could be combined with the "/execute" command and the selector arguments:
/execute store result|success clientdata @s options/controls/auto_jump
@a[clientdata={"general/controls/key/swapOffhand":"F"}]
The complete client data set would be transmitted to the server whenever:
- you join a server (or singleplayer world)
- you change a setting/a client value
- a reload accures
The data should be stored temporarily for all online users. Data of offline players can be deleted.
Please sign in to leave a comment.
0 Comments