AFAIK, there isn't a potion swirl effect, the closest thing is POTION_BREAK. Elimnator Theres this library, specifically, take a look at...
Hello, I'm having a bit of trouble with my plugin. I'm trying to make it so a player is shown as drawing a bow when he has it in hand. I don't...
Hello, I was just wondering if it was possible to change the value of the armor bar? For example, is it possible to make a plugin where you are...
tommycake50 I did, but looks like I figured out the problem. I had been testing on wolves the whole time, and something with their "angry"...
tommycake50 That works to prevent the entity from targeting anything, but it doesn't work if the entity is targeting someone (I'm guessing because...
Hello, Pretty straightforward. I'm making a plugin where you can calm hostile mobs. Is there a way to calm/pacify them so that they no longer...
elfin8er PlayerCommandPreprocessEvent is only fired if it is a player that issued the command (i.e. not a console). From there, you can use...
goodstuff20 what method do I call to trigger a left click?
goodstuff20 I know how to give the appearance of damaging an entity without actually damaging them-- damage(0) has the same effect. I wanted you...
goodstuff20 I don't think I understand. Could you provide some code elaborating?
goodstuff20 I'm trying to make a right-click do damage, regardless of whether the player left-clicks, so I need to make it independent of any...
goodstuff20 how do I "launch left click"?
goodstuff20 I know how to apply the potion effect, it's the damage with a right-click that I'm having trouble with. And why use setHealth() when...
goodstuff20 It's supposed to be a sort of power attack, where you right-click and it damages the target and slows them. And setHealth() doesn't...
Hello, I want to make it so when a player right-clicks a certain mob, they deal damage to the mob. I've already set up a...
Oh, hah, yes. I didn't even bother to test it in survival!:oops: I suppose that fixes my problem, though why would creative make a difference?
@EventHandler public void onClickSlot(InventoryClickEvent e) { if(e.getSlot() == 1) { e.setResult(Result.DENY);...
Hello, I'm trying to make it so a player cannot move anything in a certain slot. I've tried simply cancelling the event (both using setResult()...
Oh I'm sorry, I guess I wasn't quite clear. I don't need to move the viewpoint in physical space, I just need to change the direction. My...
I know I need to alter the pitch and yaw, but how do I do that without teleport()?
Separate names with a comma.