更新restore_score | 美化README,作者:Max_小葵 | 实验性:重新设计版本更新功能

This commit is contained in:
延皓
2021-08-03 06:30:28 +08:00
parent e3a7b02a63
commit 13ec1d9b9a
33 changed files with 162 additions and 136 deletions
+10 -3
View File
@@ -150,8 +150,14 @@ __restore(pl, s_player) ->(
c_for(i = 0, i < length(pl), i += 1,
run('player ' + pl:i + ' spawn');
game_tick(50);
//滑翔距离
//mc会统计多一倍的数据所以除以200
aviate = statistic(pl:i, 'custom', 'aviate_one_cm')/200;
print(aviate);
scoreboard('fz.aviate1m', pl:i, aviate);
total_aviate += aviate;
//活跃时间
actime = statistic(pl:i, 'custom', 'play_one_minute')/72000;
actime = statistic(pl:i, 'custom', 'play_time')/72000;
print(actime);
scoreboard('activation', pl:i, actime);
total_actime += actime;
@@ -205,8 +211,9 @@ __restore(pl, s_player) ->(
scoreboard('totalList', '总在线时间(h)', total_actime);
scoreboard('damageTaken', '群p抖M', total_hurt);
scoreboard('totalList', '群p抖M', total_hurt);
scoreboard('fz.aviate1m', '总滑翔距离', total_aviate);
scoreboard('totalList', '总滑翔距离', total_aviate);
game_tick(50);
print('完成!');
run('function fz:scoreboards/install')
);
by_whitelist() ->(
@@ -214,6 +221,6 @@ by_whitelist() ->(
s_player = player();
game_tick(50);
__restore(pl, s_player);
print('done! ');
print('完成!');
return()
)