Need Help With a Minecraft Command
You can use a command like this to give yourself a special ender pearl:
/give @s minecraft:ender_pearl{special:1}
You can use this command in a repeating command block to make any player holding a special ender pearl levitate:
/execute as @a[nbt={SelectedItem:{id:"minecraft:ender_pearl",tag:{special:1}}}] run effect give @s minecraft:levitation 1