Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Stoupy51 committed Jun 29, 2023
1 parent aba73bb commit 165d9d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions data/simplenergy/functions/load/check_dependencies.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
scoreboard players set #load_error simplenergy.data 0
execute if score #load_error simplenergy.data matches 0 unless score #smithed.custom_block.major load.status matches 0.. run scoreboard players set #load_error simplenergy.data 2
execute if score #load_error simplenergy.data matches 0 unless score #smithed.crafter.major load.status matches 0.. run scoreboard players set #load_error simplenergy.data 2
execute if score #load_error simplenergy.data matches 0 unless score #energy.major load.status matches 0.. run scoreboard players set #load_error simplenergy.data 2
execute if score #load_error simplenergy.data matches 0 unless score SmartOreGeneration load.status matches 10.. run scoreboard players set #load_error simplenergy.data 2
execute if score #load_error simplenergy.data matches 0 unless score DurabilityMultiplier load.status matches 10.. run scoreboard players set #load_error simplenergy.data 2
execute if score #load_error simplenergy.data matches 0 unless score FurnaceNbtRecipes load.status matches 10.. run scoreboard players set #load_error simplenergy.data 2
execute if score #load_error simplenergy.data matches 0 unless score #energy.minor load.status matches 6.. run scoreboard players set #load_error simplenergy.data 2
execute if score #load_error simplenergy.data matches 0 unless score SmartOreGeneration load.status matches 11.. run scoreboard players set #load_error simplenergy.data 2
execute if score #load_error simplenergy.data matches 0 unless score DurabilityMultiplier load.status matches 13.. run scoreboard players set #load_error simplenergy.data 2
execute if score #load_error simplenergy.data matches 0 unless score FurnaceNbtRecipes load.status matches 11.. run scoreboard players set #load_error simplenergy.data 2

10 changes: 5 additions & 5 deletions data/simplenergy/functions/load/waiting_for_player.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ execute unless entity @p run schedule function simplenergy:load/waiting_for_play
execute if entity @p store result score #game_version simplenergy.data run data get entity @p DataVersion

# Check if the game version is supported
execute if entity @p unless score #game_version simplenergy.data matches 3337.. run scoreboard players set #load_error simplenergy.data 1
execute if entity @p unless score #game_version simplenergy.data matches 3454.. run scoreboard players set #load_error simplenergy.data 1

# Decode error
execute if score #load_error simplenergy.data matches 1 run tellraw @a {"text":"SimplEnergy Error: This version is made for Minecraft 1.19+.","color":"red"}
execute if score #load_error simplenergy.data matches 2 run tellraw @a {"text":"SimplEnergy Error: Libraries are missing\nplease download the right SimplEnergy datapack\nor download each of these libraries one by one:","color":"red"}
execute if score #load_error simplenergy.data matches 2 unless score #smithed.custom_block.major load.status matches 0.. run tellraw @a {"text":"- [Smithed Custom Block Placement]","color":"gold","clickEvent":{"action":"open_url","value":"https://wiki.smithed.dev/libraries/custom-block/"}}
execute if score #load_error simplenergy.data matches 2 unless score #smithed.crafter.major load.status matches 0.. run tellraw @a {"text":"- [Smithed Crafter]","color":"gold","clickEvent":{"action":"open_url","value":"https://wiki.smithed.dev/libraries/crafter/"}}
execute if score #load_error simplenergy.data matches 2 unless score #energy.major load.status matches 0.. run tellraw @a {"text":"- [DatapackEnergy]","color":"gold","clickEvent":{"action":"open_url","value":"https://github.com/ICY105/DatapackEnergy"}}
execute if score #load_error simplenergy.data matches 2 unless score SmartOreGeneration load.status matches 10.. run tellraw @a {"text":"- [Stoupy's Smart Ore Generation]","color":"gold","clickEvent":{"action":"open_url","value":"https://github.com/Stoupy51/SmartOreGeneration"}}
execute if score #load_error simplenergy.data matches 2 unless score DurabilityMultiplier load.status matches 10.. run tellraw @a {"text":"- [Stoupy's Durability Multiplier]","color":"gold","clickEvent":{"action":"open_url","value":"https://github.com/Stoupy51/DurabilityMultiplier"}}
execute if score #load_error simplenergy.data matches 2 unless score FurnaceNbtRecipes load.status matches 10.. run tellraw @a {"text":"- [Stoupy's Furnace NBT Recipes]","color":"gold","clickEvent":{"action":"open_url","value":"https://github.com/Stoupy51/FurnaceNbtRecipes"}}
execute if score #load_error simplenergy.data matches 2 unless score #energy.major load.status matches 6.. run tellraw @a {"text":"- [DatapackEnergy]","color":"gold","clickEvent":{"action":"open_url","value":"https://github.com/ICY105/DatapackEnergy"}}
execute if score #load_error simplenergy.data matches 2 unless score SmartOreGeneration load.status matches 11.. run tellraw @a {"text":"- [Stoupy's Smart Ore Generation]","color":"gold","clickEvent":{"action":"open_url","value":"https://github.com/Stoupy51/SmartOreGeneration"}}
execute if score #load_error simplenergy.data matches 2 unless score DurabilityMultiplier load.status matches 13.. run tellraw @a {"text":"- [Stoupy's Durability Multiplier]","color":"gold","clickEvent":{"action":"open_url","value":"https://github.com/Stoupy51/DurabilityMultiplier"}}
execute if score #load_error simplenergy.data matches 2 unless score FurnaceNbtRecipes load.status matches 11.. run tellraw @a {"text":"- [Stoupy's Furnace NBT Recipes]","color":"gold","clickEvent":{"action":"open_url","value":"https://github.com/Stoupy51/FurnaceNbtRecipes"}}

# Load SimplEnergy
execute if score #game_version simplenergy.data matches 1.. if score #load_error simplenergy.data matches 0 run function simplenergy:load/confirm_load
Expand Down

0 comments on commit 165d9d7

Please sign in to comment.