fz-survival-datapack/data/fz/functions/cleaner/subclean.mcfunction

4 lines
884 B
Mcfunction
Raw Normal View History

2019-12-12 00:07:07 +08:00
execute store result score cleaned cleaned run kill @e[type=item]
tellraw @a [{"text":"这次一共清理了","color":"dark_green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"cleaned","name":"cleaned"},"color":"yellow","bold":true,"italic":false,"underlined":true,"strikethrough":false,"obfuscated":false},{"text":"堆物品~","color":"dark_green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"下次清理将在","color":"yellow"},{"score":{"objective":"displayCleanTime","name":"cleaner"},"color":"dark_aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"游戏秒后开始~","color":"yellow"}]
scoreboard players set cleaned cleaned 0
scoreboard players operation cleaner timeCounter = cleaner setCleanTime