How to make player throw splash potion that depends where is he facing? Like normal potion?
world.afterEvents.itemUse.subscribe((event) => {
const player = event.player;
if (event.itemStack.typeId !== 'a:splash_potion_poison') return;
throwPotion(player);
});
function throwPotion(player) {
// …
}
Someone help