Plugin that adds Custom Flight Potion?

Discussion in 'Plugin Requests' started by mcp43, Jun 29, 2022.

Thread Status:
Not open for further replies.
  1. Offline

    mcp43

    Plugin category: Custom Item/Potion? (not really sure)

    Minecraft version: 1.19 Java preferably (running a paper server)

    Suggested name: FlightPotion

    What I want: I'd love to have a potion added that grants the user temporary flight (creative style). Perhaps can be brewed with membranes? Redstone increases duration? If possible no required resourcepack- although I could see a need for it - unless it's able to just have a custom name perhaps with an existing texture?

    Ideas for commands: No commands needed for this plugin. Preferably just customing crafting/brewing recipe.

    When I'd like it by: ASAP would be preferred, as I'd love to include it on my Paper 1.19 SMP server
     
  2. Offline

    gochi9

    As far as I know you cannot create custom potion effects. You could make a work around which could get laggy and you also won't get the icon the in the top right corner and also the timer in the inventory indicating the remaining duration while adding particles is possible but it might cause more lag. Without these it doesn't really feel like a potion effect.
    But if you're okay without those features then I could make it for you.
     
  3. Offline

    mcp43

    Oh there doesn't really need to be any particles - It's more so I'm trying to allow some of my players to have access to creative fly, without the use of a command per se?
    So one of the suggestions was using a potion they craft/brew - and or adding an item like (many mods have Angel Rings) - but I wasn't sure what was more vanilla/plugin friendly.
    It wouldn't need to have particles - most of my players don't really have particles turned on anyway due to lower end rigs lol.
    Unfortunately the only things I've found are like this, but extremely outdated and just wouldn't work for us.
     
  4. Offline

    gochi9

    Yeah, particles are not important but as I said you also cannot have the timer in the inventory indicating the remaining time of the potion and you also cannot have the potion icon. Meaning that there's not really a way to know how much longer the potion will last unless a command is added and you'd have to check manually the remaining time which is annoying but there's no other way
     
  5. Offline

    mcp43

    Would there be a way to perhaps grant the user the slow fall potion effect when the flight wears off? So they would return safely to the ground? Or is that much more complicated than I think lol - that way they wouldn't plummet to their death since theres no way of knowing when it runs out.
     
  6. Offline

    Hamster1001

    i have an idea for you guys why not using bossbar or the actionbar with message like "Fly expires in <timer>"
    @mcp43 @gochi9
     
    Last edited: Jun 29, 2022
  7. Offline

    mcp43

    So essentially I just want a way for the players do be able to get creative like flight, without actually making them ops or giving permissions to /fly.

    So at first I was envisioning something like a flight potion that could be made via brewing stand, with perhaps a membrane as a main ingredient considering it literally is like a wing.

    Alternatively could look into adding a custom item crafting recipe that would work similar to how the Angel Ring works in some mods/modpacks (pretty common one in mods that is)? Just when you have it in your inventory you can fly, etc - but perhaps it’s crafted with like an elytra, nether stars, diamond blocks etc. so it’s much more late game?
    I really don’t entirely know how or what makes each more or less hard to do, but the main goal was to make it either a data pack or plug-in - 1.19 compatible, and preferably not requiring any of the players to download stuff….

    As far as the potion goes, I thought that might be easier - however I'm indifferent.
    If theres a way to implement the visible timer by using a boss bar - that would be cool - if not, if there's a way to grant slow fall so players don't immediately fall and die?
    Either way I'm definitely interested. There's a few plugins out there, but all are outdated and use commands to summon - I was interested to see if there was a way to add custom crafting/brewing recipe.

    Thanks for the responses though, you're giving me hope that it might be possible lol!
     
  8. Offline

    gochi9

    This is the plugin

    So I didn't make it in a brewing stand instead you can make the potion using a cauldron and adding the ingredients yourself. (Adding a custom brewing recipe is possible but it's a complete nightmare since the API offers no support and you have to do it manually which is gonna be full of bugs)

    You can modify any message and the recipe for the potion in the config

    /fp - Permission: flightpotion.reload - To reload the config after you've modified

    Also I added an action bar.
    This is a video, it first shows how to brew a potion then how the potion works then how to modify the recipe:

    Final note, any cauldron that has any level of water in it will become a cauldron for this recipe if you want that changed then just leave a message. There might be bugs since I only tested to see if it works so if you find anything wrong or want to modify aything just post here.
     
  9. Offline

    mcp43

    Hey man! I apologize for not getting back sooner!
    Love it, thank you so much! Works totally fine, and I edited the config a bit to suit the needs recipe wise on the server.

    Only thing I would tweak (if I knew how lol) would be one minor change (I hope).
    Would it be possible to, while keeping the "Wrong ingredient. Potion ruined" - I like that feature, but would it be possible to return said wrong ingredient to the inventory instead of voiding it? I only ask because I've realized that if I right click a cauldron with water, by accident, with my enchanted pickaxe for example, it just deletes it since it thinks I want to make a potion lol
    Would there be a work around to this where it'll only void the item if it's correct and "adds" it to the "brew"? And if it's not the correct item it returns to the inventory and the potion fails etc.?

    Thanks again!
     
  10. Offline

    gochi9

    This is the plugin

    Remember to stop the server and delete the old file before replacing it. It should work but I haven't testing it much.
     
Thread Status:
Not open for further replies.

Share This Page