Posted February 11, 20232 yr I'm trying to summon a splash potion above the player's head when they press a key. The key bind works, but I can't figure out how to spawn a potion with the effect I want. Any Help is appreciated. Edited February 11, 20232 yr by Spyro64bit
February 12, 20232 yr Take a look at how `ThrowablePotionItem` and `ThrownPotion` work. It essentially just attaches an item stack with the effect already on it. You can typically set a stack's potion through the PotionUtils helpers (e.g. #setPotion).
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.