Should add another check for stationary water too, and maybe try a higher value.
You need to implement CommandExecutor and do "getCommand(<commandName>).setExecutor(this);
On player interact get the player's item in hand. If it is a potato then set the item in hand to a baked potato. If it is a baked potato then set...
Found a way that works, obviously not ideal though. zombie.setCanPickupItems(true); zombie.getWorld().dropItem(zombie.getLocation(), new...
How would I make a zombie I spawned hold a specific item like a Diamond Sword?
Ah, ok, thanks!
I was told you could control the pig if you had a carrot on a stick.
Pig pig = (Pig) entity; pig.setSaddle(true); pig.setPassenger(p); p.getInventory().setItem(5, new ItemStack(Material.CARROT_STICK));...
I don't think this is really possible to be honest.
I've tried that in the past and it is glitchy, the item keeps wanting to drop even with a velocity change.
Yes, exactly. Of course I'm assuming there will be a bigger gap, but ya.
I'm wanting the wool to stack, like the 2nd wool I spawn to be on top of the first one, and if I spawn a 3rd one for it to be on top of the 2nd.
Current code: Entity item = p.getWorld().dropItem(p.getLocation(), new ItemStack(Material.WOOL, 1, (byte) DyeColor.BLUE.getData()));...
I hope I understand your question correctly. The method I've used in plugins is to have the ampersand in the config file like normal. Then when...
public HashMap<Player, Integer> ints = new HashMap<>(); When the server is shut down this will be "cleared" automatically.
If what he wants is to force the respawn and have it act like normal then all he needs is that.
Wouldn't it be better to use http://jd.bukkit.org/rb/apidocs/org/bukkit/event/player/PlayerToggleSprintEvent.html ? If they start sprinting then...
I posted about how to detect the mouse wheel already, use the input from the event to edit the scoreboard how you want.
http://jd.bukkit.org/rb/apidocs/org/bukkit/event/inventory/InventoryDragEvent.html ?
Not sure if this interests you, but on the topic of controls: You can have the PlayerToggleFlightEvent listen for a double tap on the space bar if...
Separate names with a comma.