execute if items entity @s inventory.0 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.0"
execute if items entity @s inventory.1 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.1"
execute if items entity @s inventory.2 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.2"
execute if items entity @s inventory.3 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.3"
execute if items entity @s inventory.4 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.4"
execute if items entity @s inventory.5 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.5"
execute if items entity @s inventory.6 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.6"
execute if items entity @s inventory.7 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.7"
execute if items entity @s inventory.8 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.8"
execute if items entity @s inventory.9 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.9"
execute if items entity @s inventory.10 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.10"
execute if items entity @s inventory.11 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.11"
execute if items entity @s inventory.12 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.12"
execute if items entity @s inventory.13 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.13"
execute if items entity @s inventory.14 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.14"
execute if items entity @s inventory.15 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.15"
execute if items entity @s inventory.16 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.16"
execute if items entity @s inventory.17 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.17"
execute if items entity @s inventory.18 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.18"
execute if items entity @s inventory.19 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.19"
execute if items entity @s inventory.20 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.20"
execute if items entity @s inventory.21 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.21"
execute if items entity @s inventory.22 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.22"
execute if items entity @s inventory.23 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.23"
execute if items entity @s inventory.24 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.24"
execute if items entity @s inventory.25 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.25"
execute if items entity @s inventory.26 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "inventory.26"