fz-survival-datapack/data/fz/functions/install.mcfunction

33 lines
1.3 KiB
Mcfunction
Raw Normal View History

2019-12-29 18:21:13 +08:00
# @Author: Harvey.Kang
# @Date: 2019-10-01
# @Last Modified by: Harvey.Kang
# @Last Modified time: 2019-12-15 03:53:27
# @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.
2020-01-03 13:09:41 +08:00
# Copyright (C)2019-2020 Harvey.Kang
#升级用#
2020-01-07 00:12:59 +08:00
scoreboard objectives add version dummy
2020-01-03 13:09:41 +08:00
scoreboard players operation version version = version version
2020-01-07 00:12:59 +08:00
execute if score version version matches ..132 run function fz:updatebeforeinstall133
execute if score version version matches 133 run function fz:updatebeforeinstall134
2020-01-03 13:09:41 +08:00
####
2020-01-08 20:54:52 +08:00
gamerule disableElytraMovementCheck true
2019-12-12 00:07:07 +08:00
scoreboard objectives add timeCounter dummy
scoreboard objectives add 20 dummy
2020-01-08 20:54:52 +08:00
scoreboard objectives add 1 dummy
2019-12-12 00:07:07 +08:00
scoreboard players set 20 20 20
2020-01-08 20:54:52 +08:00
scoreboard players set 1 1 1
2020-01-03 13:09:41 +08:00
function fz:carpet/install
2019-12-12 00:07:07 +08:00
function fz:score/install
function fz:health/install
function fz:sleep/install
function fz:cleaner/install
function fz:logintips/install
2019-12-30 16:34:27 +08:00
function fz:config/install
2020-01-03 13:09:41 +08:00
#升级用#
2020-01-07 00:12:59 +08:00
execute if score installed installed matches ..132 run function fz:updateafterinstall133
execute if score installed installed matches 133 run function fz:updateafterinstall134
scoreboard players set version version 1331
2020-01-03 13:09:41 +08:00
####
2019-12-30 16:34:27 +08:00
tellraw @a [{"text":"[Datapack]"},{"text":" FZ'sDataPack v1.3.3 installed successfully","color":"gold"}]