Just a couple pieces of advice: 1. In the DyeColor picker, you don't need the 'continue' in the for loop; it automatically continues by itself...
How about some Calendar? Calendar cal = Calendar.getInstance(); int year = cal.get(Calendar.YEAR); int mon = cal.get(Calendar.MONTH)+1; int day...
That would be correct. For now, at least, durability is for block sub-ids as well as item durability.
Yeah, I fixed my code earlier. You need to fix the first bit. add(-1.0, 0.0, -1.0); needs to be add(0.0, -1.0, 0.0); Also, you're setting the...
I don't know then. My could does this: for (int xMod = -radius; xMod <= radius; xMod++) { (starts at -radius or -1, goes to radius, or 1......
Exactly. So this then, to get the block they're on top of: Location loc = player.getLocation().clone().add(0.0, -1.0, 0.0); int radius = 1;...
Fixed the first part. Regarding specifying the location, you need to tell it where the center of the platform should be, aka the middle of the...
Location loc; //you need to specify this int radius = 1; //this is 1 block out from the center, so a total of 1+(1*2); 2 would be 5 blocks, 3...
All he has to do is then summon a splash potion and set the effect. PotionEffect SPEED_1_30 = new PotionEffect(PotionEffectType.SPEED, 20*30,...
//30-second Speed I PotionEffect SPEED_1_30 = new PotionEffect(PotionEffectType.SPEED, 20*30, 0); //120-second Strength II PotionEffect...
You'll need to make a new scoreboard for each player for this to work properly. Here's something to get you started: public class JailBoard...
Whoops... Sorry about that. Just remove that line unless you want it; in which case here are the methods in that class: //Generic sender public...
The only problem with arrays is that you have to redefine it every time you want to add something. Working on a proof of concept. Give me a...
You could add a small upwards velocity to players (not enough to completely cancel out gravity though) when PlayerMoveEvent is fired (such as when...
@EventHandler public void onProjectileLaunch(ProjectileLaunchEvent event) { Projectile proj = event.getEntity(); if (proj instanceof...
1. Duration is in ticks, so just multiply seconds*20 to get ticks. 2. Do you want to check if they already have the effect? 3. Do you want to...
1. You should use location.equals(otherLocation) when comparing locations. 2. Easy checking if a player has been to a specific block, as opposed...
As far as I know, no - only to clear the entire scoreboard and rebuild it.
You can clear the scoreboard score for a specific player, if that's what you want: Scoreboard.resetScores(OfflinePlayer);
Ah, carry on.
Separate names with a comma.