实现计分板底层逻辑
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
scoreboard objectives add fz.event.play_seconds minecraft.custom:play_time
|
||||
|
||||
scoreboard objectives add fz.event.leave_game minecraft.custom:leave_game
|
||||
|
||||
scoreboard objectives add fz.event.aviating_distance minecraft.custom:aviate_one_cm
|
||||
|
||||
scoreboard objectives add fz.event.damage_taken minecraft.custom:damage_taken
|
||||
|
||||
scoreboard objectives add fz.event.fishing_count minecraft.custom:fish_caught
|
||||
|
||||
scoreboard objectives add fz.event.leave_game minecraft.custom:leave_game
|
||||
|
||||
scoreboard objectives add fz.event.play_seconds minecraft.custom:play_time
|
||||
|
||||
scoreboard objectives add fz.event.villager_trade minecraft.custom:traded_with_villager
|
||||
|
||||
## 调试
|
||||
execute if score fz.logger.level fz.variable.integer matches ..500 run tellraw @a [{"nbt": "fz.level.info", "interpret": true, "storage": "fz:logger"}, {"text": "已初始化系统组件:事件"}]
|
||||
@@ -1,4 +1,5 @@
|
||||
scoreboard players operation fz.var.score fz.variable.integer = @s fz.event.aviating_distance
|
||||
scoreboard players operation fz.var.score fz.variable.integer /= 200 fz.variable.integer
|
||||
|
||||
function #fz:event/on_aviate_one_meter
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
scoreboard players operation fz.var.score fz.variable.integer = @s fz.event.play_seconds
|
||||
scoreboard players operation fz.var.score fz.variable.integer /= 3600 fz.variable.integer
|
||||
|
||||
function #fz:event/on_play_one_hour
|
||||
|
||||
|
||||
Reference in New Issue
Block a user