Maybe check if (event.getClick() == ClickType.SHIFT_LEFT || event.getClick() == ClickType.SHIFT_RIGHT) and cancel the event if the other...
All I'm looking for is the code that makes the bat flap its wings. I can figure out the rest from there. Example: This makes an iron golem swing...
@dekrosik I'm having the same problem. Where did you find the updated versions of everything? Thank you! Edit: I figured it out. I had...
Alright, I'll try that. Thank you both
I'm trying to make it so players can only have fortune three on a gold pickaxe. I've been able to use the "EnchantItemEvent" to stop fortune picks...
@0ct0berBkkitPlgins Is there a specific tutorial you recommend, or should I search around on google? If the latter is the case, what should I...
How do plugins that interact with websites, like buycraft, work? I'm interested in making my plugins interface with websites, but I don't even...
I tried to make a simple plugin basically to keep track of a player's balance, which is just a double. I can set a get the balance just fine, but...
You can cast a double to an int with int someInt = (int) someDouble; This will set the value of "someInt" to the whole number value of...
I basically want to make an arrow bounce off of something at the same speed it came in at. So I have one vector that is the arrows velocity and I...
@KingFaris11 So I might be doing something wrong... here is my code, I know it's a lot, just focus on the stuff with comments. What I'm trying to...
This is spamming my console and I don't know what it is. Is this a problem.... because it looks like a problem.... if it's a problem how do I fix...
@Petersoj @teej107 Thank you! Actually how would I make it cancel after 'X' number of times, I'm having trouble with this because it requires...
How would I cancel the repeating task after 'X' amount of loops or once a condition is met? Thank you! also sorry if this information is easily...
@Xerox262 Thank you!
@blablubbabc Thank you! This is exactly what I wanted! I don't fully understand how it works, if anyone could explain it to me that would be great...
What I am trying to do: I want the target player (t) to get pushed away from the player (p) the same amount every time. This is the code I have:...
@boomboompower Well I suppose I could do that but I kinda would like it to like behave like an explosion, where the further the player is the less...
@FisheyLP Yeah that was a silly mistake. oops. the explosion happens now but it doesn't damage players. Any idea why?
I think this is pretty simple and I'm just messing it up, but I want to make the player explode when they die this is what I have so far. public...
Separate names with a comma.