2.1.0
This commit is contained in:
@@ -5,17 +5,33 @@ __command() -> (
|
||||
s_player = player();
|
||||
pos = query(s_player, 'pos');
|
||||
dim = query(s_player, 'dimension');
|
||||
scoreboard_add('here_pos_x');
|
||||
scoreboard_add('here_pos_y');
|
||||
scoreboard_add('here_pos_z');
|
||||
scoreboard('here_pos_x',s_player,round(get(pos, 0)));
|
||||
scoreboard('here_pos_y',s_player,round(get(pos, 1)));
|
||||
scoreboard('here_pos_z',s_player,round(get(pos, 2)));
|
||||
run(str('tellraw @s [{"selector": "@s"},{"text":"说:我在[x:","color": "aqua"},{"score": {"objective": "here_pos_x","name": "%s"}},{"text": ", y:"},{"score": {"objective": "here_pos_y","name": "%s"}},{"text": ", z:"},{"score": {"objective": "here_pos_z","name": "%s"}},{"text": ", dim:%s]"}]',
|
||||
s_player, s_player, s_player, dim
|
||||
));
|
||||
scoreboard_remove('here_pos_x');
|
||||
scoreboard_remove('here_pos_y');
|
||||
scoreboard_remove('here_pos_z');
|
||||
if(dim == 'overworld',
|
||||
(
|
||||
run(str('tellraw @a [{"selector": "@s"},{"text":"说: 我在主世界[x:%d, y:%d, z:%d, dim:overworld]","color": "aqua"}]',
|
||||
round(pos:0), round(pos:1), round(pos:2)
|
||||
));
|
||||
run(str('tellraw @a [{"text":"- 对应地狱: [x:%d, y:128, z:%d, dim:the_nether]","color": "aqua"}]',
|
||||
round((pos:0)/8), round((pos:2)/8)
|
||||
))
|
||||
),
|
||||
dim == 'the_nether',
|
||||
(
|
||||
run(str('tellraw @a [{"selector": "@s"},{"text":"说: 我在下界[x:%d, y:%d, z:%d, dim:the_nether]","color": "aqua"}]',
|
||||
round(pos:0), round(pos:1), round(pos:2)
|
||||
));
|
||||
run(str('tellraw @a [{"text":"- 对应主世界: [x:%d, y:64, z:%d, dim:overworld]","color": "aqua"}]',
|
||||
round((pos:0)*8), round((pos:2)*8)
|
||||
))
|
||||
),
|
||||
dim == 'the_end',
|
||||
(
|
||||
run(str('tellraw @a [{"selector": "@s"},{"text":"说: 我在末地[x:%d, y:%d, z:%d, dim:%s]","color": "aqua"}]',
|
||||
round(pos:0), round(pos:1), round(pos:2), dim
|
||||
))
|
||||
),
|
||||
run(str('tellraw @a [{"selector": "@s"},{"text":"说: 我在%s世界[x:%d, y:%d, z:%d, dim:%s]","color": "aqua"}]',
|
||||
dim, round(pos:0), round(pos:1), round(pos:2), dim
|
||||
))
|
||||
);
|
||||
exit()
|
||||
)
|
||||
Reference in New Issue
Block a user