Hi, I made a mod that adds drinks to the game. These items are not made on a brewing stand but instead by adding ingredients to a barrel and waiting for them to age. Is there a way I can the items drinkable like a potion and apply a potion effect when finished? The items I have are a wine bottle and an empty wine bottle. When the player finishes drinking instead of the wine bottle disappearing it converts into an empty wine bottle.
Rollback Post to RevisionRollBack
Finds a server that says "No PvP"
*Pushes AFK player off cliff*
Steals Player's Stuff
Admin Can't do anything cause I didn't hit him so "no actual PvP".
The Meaning of Life, the Universe, and Everything.
Join Date:
7/1/2017
Posts:
130
Minecraft:
jjlr
Member Details
I would recommend looking at the vanilla ItemPotion class. Try extending it and changing whats needed to fit your item, though there may be a simpler way of doing this i am unaware of.
Hi, I made a mod that adds drinks to the game. These items are not made on a brewing stand but instead by adding ingredients to a barrel and waiting for them to age. Is there a way I can the items drinkable like a potion and apply a potion effect when finished? The items I have are a wine bottle and an empty wine bottle. When the player finishes drinking instead of the wine bottle disappearing it converts into an empty wine bottle.
Finds a server that says "No PvP"
*Pushes AFK player off cliff*
Steals Player's Stuff
Admin Can't do anything cause I didn't hit him so "no actual PvP".
I would recommend looking at the vanilla ItemPotion class. Try extending it and changing whats needed to fit your item, though there may be a simpler way of doing this i am unaware of.