Skip to content

Commit

Permalink
version number
Browse files Browse the repository at this point in the history
  • Loading branch information
LTHCTheMaster committed Jul 26, 2022
1 parent 2cbcc5f commit 074e466
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Datapack/data/lthc.mage/advancements/lthc.mage.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"color": "#DDEEFF"
},
"description": {
"translate": "v1.4.1",
"translate": "v1.8.0",
"color": "#DDEEFF"
},
"icon": {
Expand Down
4 changes: 2 additions & 2 deletions Datapack/data/lthc.mage/functions/admin/uninstall.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ schedule clear lthc.mage:entities/boss/manage_summon_boss
schedule clear lthc.mage:core/loading/post_load

# Try disable the pack if the name didn't changed
datapack disable "file/magical_elementalization_v1.6.1.zip"
datapack disable "file/magical_elementalization_v1.6.1"
datapack disable "file/magical_elementalization_v1.8.zip"
datapack disable "file/magical_elementalization_v1.8"
datapack disable "file/magical_elementalization.zip"
datapack disable "file/magical_elementalization"
datapack disable "file/Magical-Elementalization"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Set the version of the datapack
scoreboard players set #lthc.mage.version lthc.mage.data 010601
scoreboard players set #lthc.mage.version lthc.mage.data 010800

# Create Scores
function lthc.mage:core/loading/score
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Set the version of the datapack
scoreboard players set #lthc.mage.version lthc.mage.data 010601
scoreboard players set #lthc.mage.version lthc.mage.data 010800

# Update Scores
function lthc.mage:core/loading/score
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ scoreboard objectives add lthc.mage.data dummy

# Check if it is the datapack first run or an update of the datapack
execute unless score #lthc.mage.first_run lthc.mage.data matches 1 run function lthc.mage:core/loading/first_run/main
execute if score #lthc.mage.first_run lthc.mage.data matches 1 unless score #lthc.mage.version lthc.mage.data matches 010601 run function lthc.mage:core/loading/first_run/update
execute if score #lthc.mage.first_run lthc.mage.data matches 1 unless score #lthc.mage.version lthc.mage.data matches 010800 run function lthc.mage:core/loading/first_run/update

# Summon a marker at the worldspawn for something
execute as @e[type=marker,tag=lthc.mage] run function lthc.mage:try_unload
Expand Down
2 changes: 1 addition & 1 deletion Datapack/data/lthc.mage/functions/info/display.mcfunction
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
tellraw @s ["",{"text":"Magical Elementalization","color":"green"},{"text":"\n\nVersion: "},{"text":"v 1.6.1","color":"#FFDD00"},{"text":"\nBug Tracker: "},{"text":"*click*","color":"#FFDD00","clickEvent":{"action":"open_url","value":"https://github.com/LTHCTheMaster/Mage-of-LTHC/issues"}}]
tellraw @s ["",{"text":"Magical Elementalization","color":"green"},{"text":"\n\nVersion: "},{"text":"v 1.8","color":"#FFDD00"},{"text":"\nBug Tracker: "},{"text":"*click*","color":"#FFDD00","clickEvent":{"action":"open_url","value":"https://github.com/LTHCTheMaster/Mage-of-LTHC/issues"}}]
scoreboard players set @s lthc.mage.info 0

0 comments on commit 074e466

Please sign in to comment.