execute if items entity @s hotbar.0 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "hotbar.0"
execute if items entity @s hotbar.1 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "hotbar.1"
execute if items entity @s hotbar.2 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "hotbar.2"
execute if items entity @s hotbar.3 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "hotbar.3"
execute if items entity @s hotbar.4 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "hotbar.4"
execute if items entity @s hotbar.5 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "hotbar.5"
execute if items entity @s hotbar.6 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "hotbar.6"
execute if items entity @s hotbar.7 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "hotbar.7"
execute if items entity @s hotbar.8 minecraft:netherite_sword[minecraft:custom_data~{cnk:{"scythe":true,"diamond":true}}] run return run data modify storage cnk:temp scythe.slot set value "hotbar.8"