updating a datapack to 1.20.1

may someone please help me with this:

execute if entity @s[tag = !ropeing, nbt = {Inventory: [{Slot: -106b, id: "minecraft:water_bucket"}]}] run tag @s add ropeing_tmp item replace @s[tag = ropeing_tmp, nbt = {Inventory: [{Slot: -106b, id: "minecraft:water_bucket"}]}] weapon.offhand bucket execute if entity @s[tag = !ropeing, nbt = {Inventory: [{Slot: -106b, id: "minecraft:potion"}]}] run tag @s add ropeing_tmp item replace @s[tag = ropeing_tmp, nbt = {Inventory: [{Slot: -106b, id: "minecraft:potion"}]}] weapon.offhand glass_bottle execute if entity @s[tag = !ropeing] if score @s ring_size matches 1.. run tag @s add ropeing_tmp

execute if entity @s[tag = ropeing_tmp] run summon armor_stand ~ ~ ~ {CustomName:'"rope"', Tags: ["foward"], Marker: true, Invisible: true} execute if entity @s[tag = ropeing_tmp] run scoreboard players operation @e[name = "rope", distance = ..1] UUID = @s UUID execute if entity @s[tag = ropeing_tmp] run tp @e[type = armor_stand, name = "rope", distance = ..1] ~ ~ ~ ~ ~

tag @s[tag = ropeing_tmp] add ropeing tag @s[tag = ropeing_tmp] remove ropeing_tmp

schedule function avatar:water/techniques/water-rope/water-rope 1t

Continue to help post