your current location:首页 > news>Easy UID MINECRAFT

Easy UID MINECRAFT

2024-12-15 02:40:09|Myriagame |source:minecraft skins

Overview

A simple UID manager.

use

data_get

Data_get will get the Data of the player and return to EUID: Result.

/execute as < Run Function Euid: Data/Data_get 

Suppose there is a group of players in the Players list as follows:

 players: [{uid: 0, uuid: [1,1,1,1]}, {uid: 1, uuid: [2,2,2]},{Uid: 2, uuid: [3,3,3,3]}] 

If the Data of the player who wants to get UID: 0, then EUID: Result is:

 Player: {uid: 0, uuid: [1,1,1,1]} 

data_modify

DATA_MODIFY will get the value from the INPUT in the EUID: Input to change (existing elements) or increase (no element) of the corresponding player's data.

 Execute as  Run Function EUID: Data/Data_modify 

Suppose there is a player's data in the Players list as follows:

 {uid: 0, uuid: [114, 114,114,114], list: [1 "]} 

If you want to modify the List of the player's data, enter EUID: Input:

/data modify storage eUID: input input set value {list: [2 "," 4 "]} 

Then the list of the player's data will turn down:

 {uid: 0, uuid: [114, 114,114,114], list: [2 "," 4 "]} 

data_remove

Data_remove will execute #euid: data_remove, you can add custom removal content in it:

/execute as < run function euid: data/data_remove 

Assuming that there is a player's data in the Players list as follows:

 {uid: 0, uuid: [1,1,1,1], list: [1 "]} 

If you want to delete the list in the player's data, add the delete function to #euid: data_remove:

 {"value": ["example: rm"]} 

At the same time, you can add limited conditions to delete the function:

/execute if ...... Run Data Remove Storage EUID: Data_temp Players [-1].

Data_Sort can directly call the use function, and will automatically sort the Players Data according to the size of UID (of course you can also write a SORT by yourself).

/function euid: data/data_sort 

Precautions

When the player list is too large, then Data_modify and Data_get will stop finding (the number of maximum execution instructions at the same time is 65536. If such problems occur, please increase the maximum execution instructions);

When the data_modify is executed, the content of EUID: Input will not be automatically removed.

Minecraft images

Minecraft images

Minecraft images

In addition to other statements, MCMOD.CN, all open public editing content uses the BY-NC-SA 3.0 protocol.