Add files via upload
This commit is contained in:
parent
923d1cd39a
commit
354af4082d
5
data/fz/functions/carpet/install.mcfunction
Normal file
5
data/fz/functions/carpet/install.mcfunction
Normal file
@ -0,0 +1,5 @@
|
||||
scoreboard objectives add carpet dummy
|
||||
scoreboard players reset script carpet
|
||||
team add fakePlayer
|
||||
team modify fakePlayer prefix [{"text":"假的 "}]
|
||||
function fz:carpet/script
|
3
data/fz/functions/carpet/scarpettagplayer.mcfunction
Normal file
3
data/fz/functions/carpet/scarpettagplayer.mcfunction
Normal file
File diff suppressed because one or more lines are too long
2
data/fz/functions/carpet/script.mcfunction
Normal file
2
data/fz/functions/carpet/script.mcfunction
Normal file
@ -0,0 +1,2 @@
|
||||
execute store result score script carpet run script run null
|
||||
execute if score script carpet matches 1 run function fz:carpet/scarpettagplayer
|
9
data/fz/functions/carpet/scriptplayer.mcfunction
Normal file
9
data/fz/functions/carpet/scriptplayer.mcfunction
Normal file
@ -0,0 +1,9 @@
|
||||
tellraw @s [{"text":"- 查看帮助:"},{"text":"/script invoke help","color":"green","clickEvent":{"action":"suggest_command","value":"/script invoke help"},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
||||
tellraw @s [{"text":"- 生成假人:"},{"text":"/script invoke summon 玩家名","color":"green","clickEvent":{"action":"suggest_command","value":"/script invoke summon "},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
||||
tellraw @s [{"text":"- 删除假人:"},{"text":"/script invoke kill 玩家名","color":"green","clickEvent":{"action":"suggest_command","value":"/script invoke kill "},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
||||
tellraw @s [{"text":"- 删除全部假人:"},{"text":"/script invoke killall","color":"green","clickEvent":{"action":"suggest_command","value":"/script invoke killall"},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
||||
tellraw @s [{"text":"- 传送假人:"},{"text":"/script invoke tp xxx x y z","color":"green","clickEvent":{"action":"suggest_command","value":"/script invoke tp "},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}},{"text":",xyz可替换为\"s\"来代表你的位置","color":"white"}]
|
||||
tellraw @s [{"text":"- 以玩家为原点传送假人:"},{"text":"/script invoke tp_at_player xxx x y z","color":"green","clickEvent":{"action":"suggest_command","value":"/script invoke tp_at_player "},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
||||
tellraw @s [{"text":"- 以假人为原点传送假人:"},{"text":"/script invoke tp_at_bot xxx x y z","color":"green","clickEvent":{"action":"suggest_command","value":"/script invoke tp_at_bot "},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
||||
tellraw @s [{"text":"- 查看假人信息:"},{"text":"/script invoke check xxx","color":"green","clickEvent":{"action":"suggest_command","value":"/script invoke check "},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
||||
tellraw @s [{"text":"- 查看全部假人信息:"},{"text":"/script invoke checkall","color":"green","clickEvent":{"action":"suggest_command","value":"/script invoke checkall"},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
9
data/fz/functions/carpet/tagplayer.mcfunction
Normal file
9
data/fz/functions/carpet/tagplayer.mcfunction
Normal file
@ -0,0 +1,9 @@
|
||||
tellraw @s [{"text":"- 查看帮助:"},{"text":"/tagplayer","color":"green","clickEvent":{"action":"suggest_command","value":"/tagplayer"},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
||||
tellraw @s [{"text":"- 生成假人:"},{"text":"/tagplayer summon 玩家名","color":"green","clickEvent":{"action":"suggest_command","value":"/tagplayer summon "},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
||||
tellraw @s [{"text":"- 删除假人:"},{"text":"/tagplayer kill 玩家名","color":"green","clickEvent":{"action":"suggest_command","value":"/tagplayer kill "},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
||||
tellraw @s [{"text":"- 删除全部假人:"},{"text":"/tagplayer killall","color":"green","clickEvent":{"action":"suggest_command","value":"/tagplayer killall"},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
||||
tellraw @s [{"text":"- 传送假人:"},{"text":"/tagplayer tp xxx x y z","color":"green","clickEvent":{"action":"suggest_command","value":"/tagplayer tp "},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}},{"text":",xyz可替换为\"s\"来代表你的位置","color":"white"}]
|
||||
tellraw @s [{"text":"- 以玩家为原点传送假人:"},{"text":"/tagplayer tp_at_player xxx x y z","color":"green","clickEvent":{"action":"suggest_command","value":"/tagplayer tp_at_player "},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
||||
tellraw @s [{"text":"- 以假人为原点传送假人:"},{"text":"/tagplayer tp_at_bot xxx x y z","color":"green","clickEvent":{"action":"suggest_command","value":"/tagplayer tp_at_bot "},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
||||
tellraw @s [{"text":"- 查看假人信息:"},{"text":"/tagplayer check xxx","color":"green","clickEvent":{"action":"suggest_command","value":"/tagplayer check "},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
||||
tellraw @s [{"text":"- 查看全部假人信息:"},{"text":"/tagplayer checkall","color":"green","clickEvent":{"action":"suggest_command","value":"/tagplayer checkall"},"hoverEvent":{"action":"show_text","value":"点击以写入聊天栏"}}]
|
2
data/fz/functions/carpet/uninstall.mcfunction
Normal file
2
data/fz/functions/carpet/uninstall.mcfunction
Normal file
@ -0,0 +1,2 @@
|
||||
scoreboard objectives remove carpet
|
||||
team remove fakePlayer
|
2
data/fz/functions/cleaner/cleanerbaroff.mcfunction
Normal file
2
data/fz/functions/cleaner/cleanerbaroff.mcfunction
Normal file
@ -0,0 +1,2 @@
|
||||
tag @s remove displayCleanerBossBar
|
||||
tellraw @s {"text":"您已关闭扫地姬的血条栏提示"}
|
2
data/fz/functions/cleaner/cleanerbaron.mcfunction
Normal file
2
data/fz/functions/cleaner/cleanerbaron.mcfunction
Normal file
@ -0,0 +1,2 @@
|
||||
tag @s add displayCleanerBossBar
|
||||
tellraw @s {"text":"您已开启扫地姬的血条栏提示"}
|
2
data/fz/functions/cleaner/cleanerchatoff.mcfunction
Normal file
2
data/fz/functions/cleaner/cleanerchatoff.mcfunction
Normal file
@ -0,0 +1,2 @@
|
||||
tag @s add noDisplayCleanerChat
|
||||
tellraw @s {"text":"您已关闭扫地姬的聊天栏提示"}
|
2
data/fz/functions/cleaner/cleanerchaton.mcfunction
Normal file
2
data/fz/functions/cleaner/cleanerchaton.mcfunction
Normal file
@ -0,0 +1,2 @@
|
||||
tag @s remove noDisplayCleanerChat
|
||||
tellraw @s {"text":"您已开启扫地姬的聊天栏提示"}
|
5
data/fz/functions/cleaner/cleaneroff.mcfunction
Normal file
5
data/fz/functions/cleaner/cleaneroff.mcfunction
Normal file
@ -0,0 +1,5 @@
|
||||
execute if score cleaner cleanerBooleans matches 1 run tellraw @a [{"text":"扫地姬已关闭~","color":"green"}]
|
||||
bossbar set cleaner visible false
|
||||
scoreboard players set cleaner cleanerBooleans 0
|
||||
scoreboard players set cleaner setCleanTime 0
|
||||
scoreboard players set cleaner displayCleanTime 0
|
17
data/fz/functions/cleaner/cleaneron.mcfunction
Normal file
17
data/fz/functions/cleaner/cleaneron.mcfunction
Normal file
@ -0,0 +1,17 @@
|
||||
scoreboard players operation cleaner displayCleanTime = @s cleaner
|
||||
scoreboard players operation cleaner setCleanTime = @s cleaner
|
||||
scoreboard players operation cleaner setCleanTime *= 20 20
|
||||
scoreboard players operation cleaner timeCounter = cleaner setCleanTime
|
||||
tellraw @a [{"selector":"@s"},{"text":"已开启扫地姬~","color":"green"},{"score":{"objective":"displayCleanTime","name":"cleaner"},"color":"dark_aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"游戏秒后清理掉落物~","color":"yellow"}]
|
||||
scoreboard players set cleaner cleanerBooleans 1
|
||||
execute if score cleaner setCleanTime matches 5401.. run function fz:cleaner/time/5min
|
||||
execute if score cleaner setCleanTime matches 4801..5400 run function fz:cleaner/time/4min30s
|
||||
execute if score cleaner setCleanTime matches 4201..4800 run function fz:cleaner/time/4min
|
||||
execute if score cleaner setCleanTime matches 3601..4200 run function fz:cleaner/time/3min30s
|
||||
execute if score cleaner setCleanTime matches 3001..3600 run function fz:cleaner/time/3min
|
||||
execute if score cleaner setCleanTime matches 2401..3000 run function fz:cleaner/time/2min30s
|
||||
execute if score cleaner setCleanTime matches 1801..2400 run function fz:cleaner/time/2min
|
||||
execute if score cleaner setCleanTime matches 1201..1800 run function fz:cleaner/time/1min30s
|
||||
execute if score cleaner setCleanTime matches 601..1200 run function fz:cleaner/time/60s
|
||||
execute if score cleaner setCleanTime matches ..600 run function fz:cleaner/time/30s
|
||||
bossbar set cleaner visible true
|
2
data/fz/functions/cleaner/cleanersoundoff.mcfunction
Normal file
2
data/fz/functions/cleaner/cleanersoundoff.mcfunction
Normal file
@ -0,0 +1,2 @@
|
||||
tag @s add noCleanerSound
|
||||
tellraw @s {"text":"您已关闭扫地姬的声音提示"}
|
2
data/fz/functions/cleaner/cleanersoundon.mcfunction
Normal file
2
data/fz/functions/cleaner/cleanersoundon.mcfunction
Normal file
@ -0,0 +1,2 @@
|
||||
tag @s remove noCleanerSound
|
||||
tellraw @s {"text":"您已开启扫地姬的声音提示"}
|
10
data/fz/functions/cleaner/install.mcfunction
Normal file
10
data/fz/functions/cleaner/install.mcfunction
Normal file
@ -0,0 +1,10 @@
|
||||
scoreboard objectives add cleaner trigger
|
||||
scoreboard objectives add cleaned dummy
|
||||
scoreboard objectives add cleanerBooleans dummy
|
||||
scoreboard objectives add setCleanTime dummy
|
||||
scoreboard objectives add displayCleanTime dummy
|
||||
scoreboard objectives add secondsCounter dummy
|
||||
scoreboard objectives add cleanerMessage trigger
|
||||
bossbar add cleaner 1
|
||||
bossbar set cleaner max 60
|
||||
scoreboard players set cleaner installed 1
|
28
data/fz/functions/cleaner/main.mcfunction
Normal file
28
data/fz/functions/cleaner/main.mcfunction
Normal file
@ -0,0 +1,28 @@
|
||||
scoreboard players operation cleaner secondsCounter = cleaner timeCounter
|
||||
scoreboard players operation cleaner secondsCounter /= 20 20
|
||||
scoreboard players operation cleaner secondsCounter += 1 1
|
||||
bossbar set cleaner players @a[tag=displayCleanerBossBar]
|
||||
bossbar set cleaner name [{"text":"扫地姬倒计时:"},{"score":{"objective":"secondsCounter","name":"cleaner"},"bold":true},{"text":"游戏秒后清理"}]
|
||||
execute if score cleaner timeCounter matches ..0 run function fz:cleaner/subclean
|
||||
execute if score cleaner timeCounter matches 6000 run function fz:cleaner/time/5min
|
||||
execute if score cleaner timeCounter matches 6000 run tellraw @a[tag=!noDisplayCleanerChat] [{"text":"5游戏分后清理掉落物~","color":"green"}]
|
||||
execute if score cleaner timeCounter matches 5400 run function fz:cleaner/time/4min30s
|
||||
execute if score cleaner timeCounter matches 4800 run function fz:cleaner/time/4min
|
||||
execute if score cleaner timeCounter matches 4200 run function fz:cleaner/time/3min30s
|
||||
execute if score cleaner timeCounter matches 3600 run function fz:cleaner/time/3min
|
||||
execute if score cleaner timeCounter matches 3600 run tellraw @a[tag=!noDisplayCleanerChat] [{"text":"3游戏分后清理掉落物~","color":"green"}]
|
||||
execute if score cleaner timeCounter matches 3000 run function fz:cleaner/time/2min30s
|
||||
execute if score cleaner timeCounter matches 2400 run function fz:cleaner/time/2min
|
||||
execute if score cleaner timeCounter matches 2400 run tellraw @a[tag=!noDisplayCleanerChat] [{"text":"2游戏分后清理掉落物~","color":"yellow"}]
|
||||
execute if score cleaner timeCounter matches 1800 run function fz:cleaner/time/1min30s
|
||||
execute if score cleaner timeCounter matches 1200 run function fz:cleaner/time/60s
|
||||
execute if score cleaner timeCounter matches 1200 run tellraw @a[tag=!noDisplayCleanerChat] [{"text":"60游戏秒后清理掉落物~","color":"gold"}]
|
||||
execute if score cleaner timeCounter matches 600 run function fz:cleaner/time/30s
|
||||
execute if score cleaner timeCounter matches 600 run tellraw @a[tag=!noDisplayCleanerChat] [{"text":"30游戏秒后清理掉落物~","color":"red"}]
|
||||
execute if score cleaner timeCounter matches 200 run function fz:cleaner/time/10s
|
||||
execute if score cleaner timeCounter matches 100 run function fz:cleaner/time/5s
|
||||
execute if score cleaner timeCounter matches 80 run function fz:cleaner/time/4s
|
||||
execute if score cleaner timeCounter matches 60 run function fz:cleaner/time/3s
|
||||
execute if score cleaner timeCounter matches 40 run function fz:cleaner/time/2s
|
||||
execute if score cleaner timeCounter matches 20 run function fz:cleaner/time/1s
|
||||
scoreboard players remove cleaner timeCounter 1
|
15
data/fz/functions/cleaner/subclean.mcfunction
Normal file
15
data/fz/functions/cleaner/subclean.mcfunction
Normal file
@ -0,0 +1,15 @@
|
||||
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 reset cleaned cleaned
|
||||
execute if score cleaner setCleanTime matches 5401.. run function fz:cleaner/time/5min
|
||||
execute if score cleaner setCleanTime matches 4801..5400 run function fz:cleaner/time/4min30s
|
||||
execute if score cleaner setCleanTime matches 4201..4800 run function fz:cleaner/time/4min
|
||||
execute if score cleaner setCleanTime matches 3601..4200 run function fz:cleaner/time/3min30s
|
||||
execute if score cleaner setCleanTime matches 3001..3600 run function fz:cleaner/time/3min
|
||||
execute if score cleaner setCleanTime matches 2401..3000 run function fz:cleaner/time/2min30s
|
||||
execute if score cleaner setCleanTime matches 1801..2400 run function fz:cleaner/time/2min
|
||||
execute if score cleaner setCleanTime matches 1201..1800 run function fz:cleaner/time/1min30s
|
||||
execute if score cleaner setCleanTime matches 601..1200 run function fz:cleaner/time/60s
|
||||
execute if score cleaner setCleanTime matches ..600 run function fz:cleaner/time/30s
|
||||
scoreboard players operation cleaner timeCounter = cleaner setCleanTime
|
||||
execute as @a[tag=!noCleanerSound] at @s run playsound minecraft:block.note_block.pling player @s ~ ~ ~ 1 2
|
14
data/fz/functions/cleaner/trigger.mcfunction
Normal file
14
data/fz/functions/cleaner/trigger.mcfunction
Normal file
@ -0,0 +1,14 @@
|
||||
scoreboard players enable @a cleaner
|
||||
scoreboard players enable @a cleanerMessage
|
||||
execute as @a[scores={cleaner=..-1}] run function fz:cleaner/cleaneroff
|
||||
execute as @a[scores={cleaner=1..29}] run tellraw @s [{"text":"请输入>=30的时间(单位:秒)","color":"dark_red"}]
|
||||
execute as @a[scores={cleaner=30..}] run function fz:cleaner/cleaneron
|
||||
execute as @a[scores={cleanerMessage=1},tag=noDisplayCleanerChat] run function fz:cleaner/cleanerchaton
|
||||
execute as @a[scores={cleanerMessage=-1},tag=!noDisplayCleanerChat] run function fz:cleaner/cleanerchatoff
|
||||
execute as @a[scores={cleanerMessage=2},tag=!displayCleanerBossBar] run function fz:cleaner/cleanerbaron
|
||||
execute as @a[scores={cleanerMessage=-2},tag=displayCleanerBossBar] run function fz:cleaner/cleanerbaroff
|
||||
execute as @a[scores={cleanerMessage=3},tag=noCleanerSound] run function fz:cleaner/cleanersoundon
|
||||
execute as @a[scores={cleanerMessage=-3},tag=!noCleanerSound] run function fz:cleaner/cleanersoundoff
|
||||
scoreboard players reset @a[scores={cleaner=..-1}] cleaner
|
||||
scoreboard players reset @a[scores={cleaner=1..}] cleaner
|
||||
execute if score cleaner cleanerBooleans matches 1 run function fz:cleaner/main
|
7
data/fz/functions/cleaner/uninstall.mcfunction
Normal file
7
data/fz/functions/cleaner/uninstall.mcfunction
Normal file
@ -0,0 +1,7 @@
|
||||
scoreboard objectives remove cleaner
|
||||
scoreboard objectives remove cleaned
|
||||
scoreboard objectives remove cleanerBooleans
|
||||
scoreboard objectives remove setCleanTime
|
||||
scoreboard objectives remove displayCleanTime
|
||||
scoreboard objectives remove cleanerMessage
|
||||
bossbar remove cleaner
|
41
data/fz/functions/install.mcfunction
Normal file
41
data/fz/functions/install.mcfunction
Normal file
@ -0,0 +1,41 @@
|
||||
# @Author: Harvey.Kang
|
||||
# @Date: 2019-10-01
|
||||
# @License: GNU General Public License, version 3 (GPL-3.0)
|
||||
|
||||
# This project is licensed under the terms of the GNU General Public License v3.0
|
||||
# Copyright (C)2019-2020 Harvey.Kang
|
||||
#升级用before#
|
||||
scoreboard objectives add version dummy
|
||||
scoreboard players operation version version = version version
|
||||
execute if score version version matches 132 run function fz:update/before/1.3.3
|
||||
execute if score version version matches 133 run function fz:update/before/1.3.3d
|
||||
execute if score versionMinor version matches 4 if score versionPatch version matches 0 if score dev1 version matches ..20200118 run function fz:update/before/1.4.0-dev
|
||||
execute if score versionMinor version matches 4 if score versionPatch version matches 0 if score dev1 version matches ..20200111 unless score dev2 version matches 2241.. run function fz:update/before/1.4.0-dev5
|
||||
####
|
||||
scoreboard objectives add installed dummy
|
||||
gamerule disableElytraMovementCheck true
|
||||
scoreboard objectives add leaveGame minecraft.custom:minecraft.leave_game
|
||||
scoreboard objectives add timeCounter dummy
|
||||
scoreboard objectives add 20 dummy
|
||||
scoreboard objectives add 1 dummy
|
||||
scoreboard players set 20 20 20
|
||||
scoreboard players set 1 1 1
|
||||
function fz:carpet/install
|
||||
function fz:score/install
|
||||
function fz:health/install
|
||||
function fz:sleep/install
|
||||
function fz:cleaner/install
|
||||
function fz:logintips/install
|
||||
function fz:config/install
|
||||
#升级用after#
|
||||
###1.4.0-dev2
|
||||
scoreboard players set versionMajor version 1
|
||||
scoreboard players set versionMinor version 4
|
||||
scoreboard players set versionPatch version 0
|
||||
scoreboard players reset dev1 version
|
||||
scoreboard players reset dev2prefix version
|
||||
scoreboard players reset dev2 version
|
||||
####
|
||||
#预览版本号
|
||||
#tellraw @a [{"text":"[Datapack]"},{"text":" FZ'sDatapack-","color":"gold"},{"score":{"objective":"version","name":"versionMajor"},"color":"gold"},{"text":".","color":"gold"},{"score":{"objective":"version","name":"versionMinor"},"color":"gold"},{"text":".","color":"gold"},{"score":{"objective":"version","name":"versionPatch"},"color":"gold"},{"text":"-dev.","color":"gold"},{"score":{"objective":"version","name":"dev1"},"color":"gold"},{"text":".","color":"gold"},{"score":{"objective":"version","name":"dev2prefix"},"color":"gold"},{"score":{"objective":"version","name":"dev2"},"color":"gold"},{"text":" installed successfully","color":"gold"}]
|
||||
tellraw @a [{"text":"[Datapack]"},{"text":" FZ'sDatapack-","color":"gold"},{"score":{"objective":"version","name":"versionMajor"},"color":"gold"},{"text":".","color":"gold"},{"score":{"objective":"version","name":"versionMinor"},"color":"gold"},{"text":".","color":"gold"},{"score":{"objective":"version","name":"versionPatch"},"color":"gold"},{"text":" installed successfully","color":"gold"}]
|
1
data/fz/functions/logintips/install.mcfunction
Normal file
1
data/fz/functions/logintips/install.mcfunction
Normal file
@ -0,0 +1 @@
|
||||
scoreboard players set logintips installed 1
|
3
data/fz/functions/logintips/main.mcfunction
Normal file
3
data/fz/functions/logintips/main.mcfunction
Normal file
@ -0,0 +1,3 @@
|
||||
execute as @a unless score @s leaveGame matches -2147483648..2147483647 run scoreboard players operation @s leaveGame = @s leaveGame
|
||||
tellraw @a[scores={leaveGame=0..}] [{"text":"使用","color":"gold"},{"text":"/trigger options","underlined":true,"clickEvent":{"action":"run_command","value":"/trigger options"},"hoverEvent":{"action":"show_text","value":"点击以访问全部设置"}},{"text":"以访问帮助和全部设置"}]
|
||||
scoreboard players set @a[scores={leaveGame=0..}] leaveGame -1
|
1
data/fz/functions/logintips/uninstall.mcfunction
Normal file
1
data/fz/functions/logintips/uninstall.mcfunction
Normal file
@ -0,0 +1 @@
|
||||
scoreboard players reset logintips installed
|
6
data/fz/functions/main.mcfunction
Normal file
6
data/fz/functions/main.mcfunction
Normal file
@ -0,0 +1,6 @@
|
||||
execute if score scoreboard installed matches 1 run function fz:score/main
|
||||
execute if score sleep installed matches 1 run function fz:sleep/main
|
||||
execute if score cleaner installed matches 1 run function fz:cleaner/trigger
|
||||
execute if score logintips installed matches 1 run function fz:logintips/main
|
||||
execute if score noai installed matches 1 run function fz:noai/main
|
||||
execute if score config installed matches 1 run function fz:config/main
|
2
data/fz/functions/score/activationcarry.mcfunction
Normal file
2
data/fz/functions/score/activationcarry.mcfunction
Normal file
@ -0,0 +1,2 @@
|
||||
scoreboard players reset @s actCounter
|
||||
scoreboard players add @s activation 1
|
19
data/fz/functions/score/delscores.mcfunction
Normal file
19
data/fz/functions/score/delscores.mcfunction
Normal file
@ -0,0 +1,19 @@
|
||||
#移除基础记分板#
|
||||
scoreboard objectives remove digCounter
|
||||
scoreboard objectives remove deathCounter
|
||||
scoreboard objectives remove killCounter
|
||||
scoreboard objectives remove tradingCounter
|
||||
scoreboard objectives remove damageTaken
|
||||
scoreboard objectives remove fishingCounter
|
||||
scoreboard objectives remove activation
|
||||
scoreboard objectives remove actCounter
|
||||
scoreboard objectives remove totalList
|
||||
scoreboard objectives remove tDigC
|
||||
scoreboard objectives remove tDeathC
|
||||
scoreboard objectives remove tKillC
|
||||
scoreboard objectives remove tFishC
|
||||
scoreboard objectives remove tTradeC
|
||||
scoreboard objectives remove tHurtC
|
||||
#提示信息
|
||||
tellraw @a [{"text":"记分板已移除"}]
|
||||
####
|
2
data/fz/functions/score/runaddprefix.mcfunction
Normal file
2
data/fz/functions/score/runaddprefix.mcfunction
Normal file
@ -0,0 +1,2 @@
|
||||
team join fakePlayer @s
|
||||
tellraw @a {"text":"↑假的"}
|
2
data/fz/functions/score/runbotdead.mcfunction
Normal file
2
data/fz/functions/score/runbotdead.mcfunction
Normal file
@ -0,0 +1,2 @@
|
||||
team leave @s
|
||||
tellraw @a {"text":"↑真的"}
|
@ -0,0 +1,2 @@
|
||||
scoreboard players reset 总活跃时间 activation
|
||||
scoreboard players reset 总活跃时间 totalActivation
|
@ -0,0 +1,2 @@
|
||||
scoreboard players reset 总受伤害量 damageTaken
|
||||
scoreboard players reset 总受伤害量 totalHurt
|
@ -0,0 +1,2 @@
|
||||
scoreboard players reset 总死亡数 deathCounter
|
||||
scoreboard players reset 总死亡数 totalDeath
|
@ -0,0 +1,2 @@
|
||||
scoreboard players reset 总挖掘数 digCounter
|
||||
scoreboard players reset 总挖掘数 totalDug
|
@ -0,0 +1,2 @@
|
||||
scoreboard players reset 总钓鱼数 fishingCounter
|
||||
scoreboard players reset 总钓鱼数 totalFished
|
@ -0,0 +1,2 @@
|
||||
scoreboard players reset 总击杀数 killCounter
|
||||
scoreboard players reset 总击杀数 totalKilled
|
@ -0,0 +1,2 @@
|
||||
scoreboard players reset 总交易数 tradingCounter
|
||||
scoreboard players reset 总交易数 totalTraded
|
15
data/fz/functions/uninstall.mcfunction
Normal file
15
data/fz/functions/uninstall.mcfunction
Normal file
@ -0,0 +1,15 @@
|
||||
scoreboard objectives remove timeCounter
|
||||
scoreboard objectives remove 20
|
||||
scoreboard objectives remove version
|
||||
scoreboard objectives remove leaveGame
|
||||
scoreboard objectives remove installed
|
||||
function fz:carpet/uninstall
|
||||
function fz:health/uninstall
|
||||
function fz:sleep/uninstall
|
||||
function fz:cleaner/uninstall
|
||||
function fz:logintips/uninstall
|
||||
function fz:score/uninstall
|
||||
function fz:logintips/uninstall
|
||||
function fz:config/uninstall
|
||||
scoreboard objectives remove installed
|
||||
tellraw @a {"text":"FZ'sDataPack卸载成功!","color":"dark_green"}
|
20
data/fz/functions/update/before/1.3.3.mcfunction
Normal file
20
data/fz/functions/update/before/1.3.3.mcfunction
Normal file
@ -0,0 +1,20 @@
|
||||
scoreboard objectives remove installed
|
||||
scoreboard players operation 总挖掘数 totalList = totalDug totalList
|
||||
scoreboard players operation 总击杀数 totalList = totalKilled totalList
|
||||
scoreboard players operation 总死亡数 totalList = totalDeath totalList
|
||||
scoreboard players operation 总交易数 totalList = totalTraded totalList
|
||||
scoreboard players operation 总钓鱼数 totalList = totalFished totalList
|
||||
scoreboard players operation 总受伤害量 totalList = totalHurt totalList
|
||||
scoreboard players operation 总活跃时间 totalList = totalActivation totalList
|
||||
execute if score 总挖掘数 totalList = totalDug totalList run scoreboard players reset totalDug
|
||||
execute if score 总击杀数 totalList = totalKilled totalList run scoreboard players reset totalKilled
|
||||
execute if score 总死亡数 totalList = totalDeath totalList run scoreboard players reset totalDeath
|
||||
execute if score 总交易数 totalList = totalTraded totalList run scoreboard players reset totalTraded
|
||||
execute if score 总钓鱼数 totalList = totalFished totalList run scoreboard players reset totalFished
|
||||
execute if score 总受伤害量 totalList = totalHurt totalList run scoreboard players reset totalHurt
|
||||
execute if score 总活跃时间 totalList = totalActivation totalList run scoreboard players reset totalActivation
|
||||
scoreboard objectives remove scoreswitch
|
||||
scoreboard objectives remove actCounter
|
||||
scoreboard objectives setdisplay sidebar.team.dark_purple
|
||||
team remove displayScoresOff
|
||||
scoreboard players reset version version
|
3
data/fz/functions/update/before/1.3.3d.mcfunction
Normal file
3
data/fz/functions/update/before/1.3.3d.mcfunction
Normal file
@ -0,0 +1,3 @@
|
||||
scoreboard objectives setdisplay sidebar.team.dark_purple
|
||||
team remove displayScoresOff
|
||||
scoreboard players reset version version
|
6
data/fz/functions/update/before/1.4.0-dev.mcfunction
Normal file
6
data/fz/functions/update/before/1.4.0-dev.mcfunction
Normal file
@ -0,0 +1,6 @@
|
||||
scoreboard objectives remove botDeath
|
||||
scoreboard objectives remove cleanerBar
|
||||
scoreboard objectives remove cleanerChat
|
||||
scoreboard objectives remove versionMajor
|
||||
scoreboard objectives remove versionMinor
|
||||
scoreboard objectives remove versionPatch
|
21
data/fz/functions/update/before/1.4.0-dev5.mcfunction
Normal file
21
data/fz/functions/update/before/1.4.0-dev5.mcfunction
Normal file
@ -0,0 +1,21 @@
|
||||
scoreboard players reset 总挖掘数 totalList
|
||||
scoreboard players reset 总击杀数 totalList
|
||||
scoreboard players reset 总死亡数 totalList
|
||||
scoreboard players reset 总交易数 totalList
|
||||
scoreboard players reset 总钓鱼数 totalList
|
||||
scoreboard players reset 总受伤害量 totalList
|
||||
scoreboard players reset 总活跃时间 totalList
|
||||
scoreboard objectives remove tActC
|
||||
scoreboard objectives remove tDeathC
|
||||
scoreboard objectives remove tDigC
|
||||
scoreboard objectives remove tFishC
|
||||
scoreboard objectives remove tHurtC
|
||||
scoreboard objectives remove tKillC
|
||||
scoreboard objectives remove tTradeC
|
||||
scoreboard objectives add tActC dummy
|
||||
scoreboard objectives add tDeathC dummy
|
||||
scoreboard objectives add tDigC dummy
|
||||
scoreboard objectives add tFishC dummy
|
||||
scoreboard objectives add tHurtC dummy
|
||||
scoreboard objectives add tKillC dummy
|
||||
scoreboard objectives add tTradeC dummy
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"values": [
|
||||
"fz:condition"
|
||||
"fz:main"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user