diff --git a/Changes.txt b/Changes.txt index 99356ca..6ff98e0 100644 --- a/Changes.txt +++ b/Changes.txt @@ -1,3 +1,9 @@ +rev 1.2 +------- + +- Support for 1.20.2 and resource pack version 17 +- Unfortunately the commands for setting invisibility changed, breaking backwards compatibiltiy. + rev 1.1 ------- diff --git a/data/ridedragon/functions/summon_dragon.mcfunction b/data/ridedragon/functions/summon_dragon.mcfunction index 4d6037e..8dbf808 100644 --- a/data/ridedragon/functions/summon_dragon.mcfunction +++ b/data/ridedragon/functions/summon_dragon.mcfunction @@ -1,7 +1,7 @@ # Step the global counter. It is used as a pseudo-uuid that can be stored in the entity data. scoreboard players add #rd_global_cnt rd_id 1 -summon minecraft:horse ~ ~1 ~ {NoAI:1b,Invulnerable:1b,Tags:["dragonseat","dragon_temp"],DeathLootTable:"minecraft:empty",Attributes:[{Name:"generic.knockback_resistance",Base:10000f}],ActiveEffects:[{Id:14,Amplifier:0,Duration:2147483647,ShowParticles:0b}],Silent:1b} +summon minecraft:horse ~ ~1 ~ {NoAI:1b,Invulnerable:1b,Tags:["dragonseat","dragon_temp"],DeathLootTable:"minecraft:empty",Attributes:[{Name:"generic.knockback_resistance",Base:10000f}],active_effects:[{id:invisibility,amplifier:0,duration:2147483647,show_particles:0b}],Silent:1b} scoreboard players operation @e[type=minecraft:horse,tag=dragon_temp,distance=..2,limit=1] rd_id = #rd_global_cnt rd_id tag @e[type=minecraft:horse,tag=dragon_temp,distance=..2,limit=1] remove dragon_temp diff --git a/pack.mcmeta b/pack.mcmeta index 16a2ca0..51591f3 100644 --- a/pack.mcmeta +++ b/pack.mcmeta @@ -1,6 +1,6 @@ { "pack": { - "pack_format": 10, + "pack_format": 17, "description": "Ridable dragons by ptefar" } }