Command Block Tutorial #164: Flying Boat Commands in Minecraft (1.19+)
In this video I will show how to give yourself a speical item that allow you to take flight in any boat you place down.
Commands:
* To get the Flying Boat Essence (Impulse command):
/give @p minecraft:feather{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Flying Boat Essence\"}"}}
* To activate the Flying Boat Essence:
Scoreboard Commands (To add and remove):
- /scoreboard objectives add Boat_Flight minecraft.used:minecraft.carrot_on_a_stick
- /scoreboard objectives remove Boat_Flight
1. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:feather",tag:{display:{Name:"{\"text\":\"Flying Boat Essence\"}"}}}]}] run item replace entity @p hotbar.4 with minecraft:carrot_on_a_stick{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Disable Flight\"}"}}
2. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:feather",tag:{display:{Name:"{\"text\":\"Flying Boat Essence\"}"}}}]}] run item replace entity @p hotbar.3 with minecraft:carrot_on_a_stick{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Fly Down\"}"}}
3. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:feather",tag:{display:{Name:"{\"text\":\"Flying Boat Essence\"}"}}}]}] run item replace entity @p hotbar.5 with minecraft:carrot_on_a_stick{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Fly Up/Enable Flight\"}"}}
4. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{display:{Name:"{\"text\":\"Disable Flight\"}"}}}}] run scoreboard players set @e[scores={Boat_Flight=1..}] Boat_Flight 0
5. Chain Command Block: /execute at @p run data merge entity @e[type=minecraft:boat,sort=nearest,limit=1] {NoGravity:0}
6. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{display:{Name:"{\"text\":\"Fly Down\"}"}}}}] run scoreboard players set @e[scores={Boat_Flight=1..}] Boat_Flight 0
7. Chain Command Block: /execute at @p run execute at @e[type=minecraft:boat,sort=nearest,limit=1] run tp @e[type=minecraft:boat,sort=nearest,limit=1] ~ ~-1 ~
8. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{display:{Name:"{\"text\":\"Fly Up/Enable Flight\"}"}}}}] run scoreboard players set @e[scores={Boat_Flight=1..}] Boat_Flight 0
9. Chain Command Block: /execute at @p run execute at @e[type=minecraft:boat,sort=nearest,limit=1] run tp @e[type=minecraft:boat,sort=nearest,limit=1] ~ ~1 ~
10. Chain Command Block: /execute at @p run data merge entity @e[type=minecraft:boat,sort=nearest,limit=1] {NoGravity:1b}
11. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:feather",tag:{display:{Name:'{"text":"Flying Boat Essence"}'}}}}] run clear @p minecraft:carrot_on_a_stick{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Disable Flight\"}"}}
12. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:feather",tag:{display:{Name:'{"text":"Flying Boat Essence"}'}}}}] run clear @p minecraft:carrot_on_a_stick{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Fly Down\"}"}}
13. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:feather",tag:{display:{Name:'{"text":"Flying Boat Essence"}'}}}}] run clear @p minecraft:carrot_on_a_stick{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Fly Up/Enable Flight\"}"}}
Music:
1. Gaming Sound FX:
* Monkeys Spinning Monkeys (Kevin MacLeod) - Gaming Background Music (HD):
https://www.youtube.com/watch?v=pr42a...
Other Videos By RedstoneKnightX
Other Statistics
Minecraft Statistics For RedstoneKnightX
RedstoneKnightX presently has 1,527,317 views for Minecraft across 384 videos, with His channel uploaded over 2 days worth of Minecraft videos. This is 85.45% of the total watchable video on RedstoneKnightX's YouTube channel.