This commit is contained in:
Harveykang
2020-01-09 18:38:21 +08:00
committed by GitHub
parent ae50b60bfc
commit b3b894ad7a
20 changed files with 81 additions and 16 deletions
+16 -8
View File
@@ -4,15 +4,20 @@
# @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.
# This project is licensed under the terms of the GNU General Public License v3.0
# Copyright (C)2019-2020 Harvey.Kang
#升级用#
scoreboard objectives add version dummy
scoreboard objectives add versionMajor dummy
scoreboard objectives add versionMinor dummy
scoreboard objectives add versionPatch dummy
scoreboard players operation version version = version version
execute if score version version matches ..132 run function fz:updatebeforeinstall133
execute if score version version matches 133 run function fz:updatebeforeinstall134
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
####
scoreboard objectives add installed dummy
scoreboard players set installed installed 1
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
@@ -26,8 +31,11 @@ function fz:cleaner/install
function fz:logintips/install
function fz:config/install
#升级用#
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
execute if score version version matches ..132 run function fz:update/after/1.3.3
execute if score version version matches 133 run function fz:update/after/1.3.3d
function fz:update/after/1.4
scoreboard players set version versionMajor 1
scoreboard players set version versionMinor 4
scoreboard players set version versionPatch 0
####
tellraw @a [{"text":"[Datapack]"},{"text":" FZ'sDataPack v1.3.3 installed successfully","color":"gold"}]
tellraw @a [{"text":"[Datapack]"},{"text":" FZ'sDatapack-","color":"gold"},{"score":{"objective":"versionMajor","name":"version"},"color":"gold"},{"text":".","color":"gold"},{"score":{"objective":"versionMinor","name":"version"},"color":"gold"},{"text":".","color":"gold"},{"score":{"objective":"versionPatch","name":"version"},"color":"gold"},{"text":"-dev.20200109.1743 installed successfully","color":"gold"}]