Skip to content

Commit

Permalink
Build and push 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
tryashtar committed Jun 18, 2024
1 parent a1b5db2 commit 283a97a
Show file tree
Hide file tree
Showing 13 changed files with 3,626 additions and 3,494 deletions.
Binary file not shown.
Binary file removed 1.21/Shulker Preview Data Pack (1.20.5).zip
Binary file not shown.
Binary file added 1.21/Shulker Preview Data Pack (1.21).zip
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# check for sufficient Minecraft version
execute store result score #version shulker_preview run data get entity @a[limit=1] DataVersion
execute if score #version shulker_preview matches 1..3836 run tellraw @a [{"text":"\nOutdated Minecraft version!\nYou need to be on version ","color":"red"},{"text":"1.20.5","color":"yellow"},{"text":" or later for shulker previews to work!\n"},{"text":"Download for older versions here\n","color":"blue","underlined":true,"clickEvent":{"action":"open_url","value":"https://tryashtar.github.io/shulker-preview"}}]
execute if score #version shulker_preview matches 1..3836 run scoreboard players set #install shulker_preview -1
execute if score #version shulker_preview matches 3837.. if score #install shulker_preview matches -1 run scoreboard players set #install shulker_preview 0
execute if score #version shulker_preview matches 1..3952 run tellraw @a [{"text":"\nOutdated Minecraft version!\nYou need to be on version ","color":"red"},{"text":"1.21","color":"yellow"},{"text":" or later for shulker previews to work!\n"},{"text":"Download for older versions here\n","color":"blue","underlined":true,"clickEvent":{"action":"open_url","value":"https://tryashtar.github.io/shulker-preview"}}]
execute if score #version shulker_preview matches 1..3952 run scoreboard players set #install shulker_preview -1
execute if score #version shulker_preview matches 3953.. if score #install shulker_preview matches -1 run scoreboard players set #install shulker_preview 0

# check for resource pack equipped/success message
scoreboard players add #install shulker_preview 0
Expand Down
2 changes: 1 addition & 1 deletion 1.21/datapack/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pack": {
"pack_format": 41,
"pack_format": 48,
"description": {
"text": "Shulker Box tooltip preview: data pack",
"color": "#8fdff7"
Expand Down
Loading

0 comments on commit 283a97a

Please sign in to comment.