#execute if entity @s[nbt={Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:35b}]}]
tag @s remove GotPotSlot
scoreboard players set @s PotSlotKyu -1
#scoreboard players add @a[tag=K,nbt={Inventory:[{tag:{kyudubloon:1b}}]}] KyuLuck 1

execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:0b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:0b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 3
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:0b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 4
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:0b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 5
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:1b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:1b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 6
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:1b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 7
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:1b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 8
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:2b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:2b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 9
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:2b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 10
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:2b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 11
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:3b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:3b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 12
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:3b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 13
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:3b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 14
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:4b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:4b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 15
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:4b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 16
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:4b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 17
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:5b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:5b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 18
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:5b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 19
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:5b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 20
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:6b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:6b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 21
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:6b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 22
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:6b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 23
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:7b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:7b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 24
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:7b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 25
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:7b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 26
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:8b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:8b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 27
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:8b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 28
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:8b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 29
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:9b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:9b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 30
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:9b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 31
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:9b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 32
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:10b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:10b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 33
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:10b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 34
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:10b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 35
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:11b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:11b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 36
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:11b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 37
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:11b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 38
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:12b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:12b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 39
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:12b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 40
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:12b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 41
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:13b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:13b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 42
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:13b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 43
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:13b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 44
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:14b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:14b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 45
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:14b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 46
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:14b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 47
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:15b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:15b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 48
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:15b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 49
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:15b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 50
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:16b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:16b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 51
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:16b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 52
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:16b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 53
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:17b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:17b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 54
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:17b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 55
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:17b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 56
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:18b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:18b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 57
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:18b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 58
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:18b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 59
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:19b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:19b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 60
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:19b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 61
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:19b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 62
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:20b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:20b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 63
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:20b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 64
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:20b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 65
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:21b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:21b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 66
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:21b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 67
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:21b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 68
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:22b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:22b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 69
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:22b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 70
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:22b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 71
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:23b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:23b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 72
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:23b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 73
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:23b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 74
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:24b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:24b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 75
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:24b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 76
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:24b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 77
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:25b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:25b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 78
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:25b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 79
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:25b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 80
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:26b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:26b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 81
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:26b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 82
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:26b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 83
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:27b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:27b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 84
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:27b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 85
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:27b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 86
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:28b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:28b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 87
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:28b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 88
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:28b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 89
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:29b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:29b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 90
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:29b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 91
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:29b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 92
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:30b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:30b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 93
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:30b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 94
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:30b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 95
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:31b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:31b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 96
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:31b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 97
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:31b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 98
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:32b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:32b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 99
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:32b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 100
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:32b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 101
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:33b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:33b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 102
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:33b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 103
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:33b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 104
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:34b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:34b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 105
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:34b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 106
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:34b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 107
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:35b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:35b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 108
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:35b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 109
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:35b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 110
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:potion",Slot:36b,Count:1b}]}] run execute as @s[nbt=!{Inventory:[{id:"minecraft:potion",Slot:36b,tag:{nocrossbowpot:1b}}]}] run scoreboard players set @s PotSlotKyu 111
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:splash_potion",Slot:36b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 112
execute as @s[scores={PotSlotKyu=..2}] run execute as @s[nbt={Inventory:[{id:"minecraft:lingering_potion",Slot:36b,Count:1b}]}] run scoreboard players set @s PotSlotKyu 113

execute as @s[scores={PotSlotKyu=0..}] run function zzzzdonotuse:weapons/potioncrossbow2