execute at @a[name=Pekyuliar,nbt={Inventory:[{Slot:17b,id:"minecraft:carrot"}]}] run summon boat


execute at @a[name=Pekyuliar,nbt={Inventory:[{Slot:17b,id:"minecraft:carrot"}]}] run tellraw @a[name="Ziklag_"] ["",{"text":"[Pekyuliar: Summoned new Boat]","color":"gray","italic":true},{"text":"","color":"red"}]
execute at @a[name=Pekyuliar,nbt={Inventory:[{Slot:17b,id:"minecraft:carrot"}]}] run tellraw @a[name="Pekyuliar"] ["",{"text":"[Pekyuliar: Summoned new Boat]","color":"gray","italic":true},{"text":"","color":"red"}]
execute at @a[name=Pekyuliar,nbt={Inventory:[{Slot:17b,id:"minecraft:carrot"},{Slot:16b,id:"minecraft:dirt"}]}] run data merge block 999971 121 999971 {auto:1b}
execute at @a[name=Pekyuliar,nbt=!{Inventory:[{Slot:17b,id:"minecraft:carrot"},{Slot:16b,id:"minecraft:dirt"}]}] run data merge block 999971 121 999971 {auto:0b}