Custom Potions?

Discussion in 'Archived: Plugin Requests' started by Claustric, Nov 1, 2012.

  1. Offline

    Claustric

    Seeing as how 1.4.2 is out now, and we've added glistering carrots for Night Vision, and the fermented spider eye for some reason "corrupts" that into Invisibility, I see potential for plugins here.

    I know there are crafting table plugins that add in custom recipes to make items, which I definitely love using on my server as there's always something I can come up with for fun, and just to play around with. Some of those plugins even support custom furnace recipes, so that you can smelt one item into another -- say, smelting glowstone dust into a whole glowstone. So that's similar to what I'm getting at.

    Is there a possibility of custom brewing recipes? This would allow us to get otherwise inaccessible potions such as Haste, Blindness, Hunger, Water Breathing, Nausea, Dullness, Resistance, and Leaping. Some of these are incredibly useful -- even though Resistance, Haste, and Leaping are accessible via Beacons, that's severely limited. Mining obsidian with an Efficiency IV diamond pick with Haste buffs is something that would really come in handy in my opinion -- not to mention splash blindness potions for PvP.
     
  2. Offline

    cman1885

    To add to this, minecraft added the ability for you to have custom potion effects. I've seen it done through MCEdit, I'm pretty sure it's some kind of NBT tag. While I can make plugins I don't like delving into NMS and don't have that much time, so I'm 99% sure this is possible but I can't do this.
     
  3. Offline

    Claustric

    Sort of. I don't know much about MCEdit except that, from personal experience, it's a hassle to even try to use. But it used a filter to edit potions in chests or dispensers. While this is possible, it's really aggravating because you have to use the scroll wheel to select strengths and duration, which is really really tedious, not to mention that the client just feels so unintuitive to me.

    I don't know how to make plugins myself, or I'd find a way to do it myself. I'm still a novice programmer at best. So if anyone can do it, I'd greatly appreciate it.
     
  4. Offline

    cman1885

    Right, I was just saying it's possible because a ton of suggestions named similar to yours "custom blocks!!!!!" are impossible.
     
  5. Offline

    devilquak

    This is possible, however it's not an option to add new blocks/items to the game without something like SpoutCraft. That being said, for your particular request, a good option would be taking any kind of other potion and just renaming it to something like "Potion of Haste" or whatever, and detecting a right-click of an item with that name, and then just applying those effects. I don't really know about the custom crafting or brewing recipes though.
     
  6. Offline

    Claustric

    Ahh, I see what you're getting at. Despite the fact that they exist in the game, they don't have an item ID. Modifying the files in MCEdit may not be modifying the item ID, but it's still tweaking the data of the file regardless. Actually making custom recipes to create a potion that doesn't yet exist, however, is more complicated. The potion effect exists, but the potion itself doesn't. Hadn't really thought about it that way. Oh well, maybe someone can possibly pull it off somehow. Who knows.
     
  7. Offline

    devilquak

    What do you mean by "they don't have an item ID"? What's they?
     
  8. Offline

    TacoMuffinCow

    Just change what useless potions do like like.... I dont do potions so yeah! or you could add other things to XP bottles so youd get some XP and haste or whatever you want!:D

    DONT MOCK ME!
     
  9. Offline

    Claustric

    The custom potions made through the modifypotions.py filter on MCEdit. Even though Haste, Dullness (Mining Fatigue), Blindness, Leaping (Jump Boost), etcetera all exists in the class files as far as potion effects go, they don't exist in actual potion forms. You can use the "/give" command to spawn in potions like Slowness or Invisibility since they have actual item ID's, but you can't spawn in the potion effects that aren't actually attributed to a item yet.

    That's what I meant, if that makes any more sense now.

    I suppose the only way this is possible really is to modify certain potions to have different effects, or somehow make a 'sign' plugin maybe sort of like how Essentials has "enchant" signs, have certain signs act as certain potions when right-clicked. Something of that nature. I don't know.
     
  10. Offline

    AndyMcB1

    You can have potion effects with custom duration with commands. I think it's called potion commands or something like that, give it a search.
     
  11. Offline

    devilquak


    Oh, I think I see what you're saying. What I'm saying is that all the potion effects exist in the code already, every single one of them working. All the elements are there for this to work already, they just need to be put together.
     
  12. Offline

    Darkhand81

    PotionsPlus has been around since those abilities were added into the game. Not updated for 1.4 yet, but hopefully it will be soon.
     
  13. Offline

    Claustric

    Yeah. The effects exist, they'd just have to be applied to already existing items. Most likely the best way would be to use a standard water bottle -- or even better yet, perhaps apply the effects somehow to a Mundane, Awkward, or Thick potion, something like that.

    I suppose the custom brewing recipes is probably more involved. I do think it's possible to be done, since I've seen plugins even support custom smelting recipes in the past, and that's really not much different honestly. But it may be a bit more complicated and take more work.

    I wish I knew how to make plugins. I'd try to find a way to get this done since it seems like a fantastic idea personally.
     
  14. Offline

    devilquak

    Well, this would be a relatively simple thing to put together. Everything except the crafting part is pretty easy to do, because (I think) that crafting items with custom names still hasn't been solidly figured out yet.
     

Share This Page