I'm currently building a Minecraft server. There I thought it would be cool to have armor that you can fly with like in the Creative. So that day I started designing armor and putting on a texture pack. I use the basis of Items ++ Lite by Noah Halbzwilligng. Then I ventured into the subject of flying. I have to say, I already know a little about command blocks… But no matter how I tried, it didn't work… So I thought I would get professional help and came across this forum. I thought that something like this could be solved super with a plugin. But I really have no idea about plugins… I've searched the net a little, but I haven't found anything.
Do you know how to program
Yes, but not Java
Yes, you can do that via a plugin.
Since you can program, learning Java shouldn't be too big a problem - depending on which language (s) you know so far.
The best thing to do is to just take a look at a tutorial on how to create a plugin. I think there are enough on YouTube, but I don't want to recommend a specific one because I haven't looked at it yet.
How can you do the plugin:
You need to determine when they are putting on and taking off their armor. And then give and withdraw the right to fly accordingly.
Or determine if they double-jump, then check the armor, and then grant or withdraw fly rights accordingly.
Fly rights are set with player.setAllowFlight (true / false)
Thank you so much for your answer, you really helped me, thank you!
Please, no problem ^^
By the way, there's no ArmorEquipEvent by default, but someone went out of their way to implement that. Should still work in 1.16.
https://www.spigotmc.org/...vent.5478/
(Github https://github.com/...quipEvent)
You then have to do an EventListener for this event, then you can determine which armor was put on or taken off (the new type should be Air, and the old should be Fly armor). See usage on the spigot page.