ClovaysumbleyOne

Can u do a datapack of a jetpack that works like an elytra but has the protection, also, if u right click while sneaking u will get boosted in the air to start flying

Kodari AI
KodariNov 8 at 11:44 pm 2
JetpackFlight
Adds a craftable jetpack item that functions like an elytra with armor protection. When worn in the chestplate slot, it provides armor points and allows gliding flight. Sneak-right-clicking while wearing the jetpack launches the player upward with a boost to initiate flight. The jetpack is crafted using phantom membranes, iron ingots, and a firework rocket, and includes durability mechanics with a visual damage indicator. Flight mechanics mirror elytra physics, including speed control and landing behavior, while the boost ability has a cooldown to prevent spam.

Created an armored elytra jetpack with diamond-chestplate armor values.

  1. Download the ZIP using the export button and extract the jetpack folder into world/datapacks/.

  2. Run /reload, then /datapack list to verify it loaded.

  3. Run /function jetpack:give to receive the jetpack and controller.

  4. Equip the jetpack, then sneak and right-click with the controller to launch. Press jump in the air to start gliding.

Kodari can make mistakes. Review important code before using.
Files
jetpack
Code
8 30
jetpack/data/jetpack/function/give.mcfunction
give @s minecraft:elytra[minecraft:custom_data={jetpack:1b},minecraft:custom_name='{"text":"Armored Jetpack","color":"aqua","italic":false}',minecraft:attribute_modifiers={modifiers:[{id:"jetpack:armor",type:"minecraft:armor",amount:8,operation:"add_value",slot:"chest"},{id:"jetpack:toughness",type:"minecraft:armor_toughness",amount:2,operation:"add_value",slot:"chest"}]}]
give @s minecraft:carrot_on_a_stick[minecraft:custom_data={jetpack_controller:1b},minecraft:custom_name='{"text":"Jetpack Controller","color":"aqua","italic":false}',minecraft:unbreakable={}]