Go big or go home: Vector vector = p.getLocation().getDirection(); p.setVelocity(vector.multiply(10)); p.setVelocity(vector.setY(2));
Add some more velocity in the Y direction.
Welcome
Use the scheduler, check out this page http://wiki.bukkit.org/Scheduler_Programming you can learn all about this "Black magic"
So I have a custom mob that looks like this: package mob; import net.minecraft.server.v1_7_R1.EntityZombie; import...
What's funny is that this used to work, what changed?
zeeveener and GodzOfMadness thanks for the help, I feel like an idiot now... Such a simple fix.
Anyone have any ideas, still stumped My two classes look like this: package agodwin987.explosions; import java.util.Random; import...
If you are going to do work with vectors and velocity, I would recommend reading this:...
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(new Main().getPlugin(), new Runnable() { @Override...
Hey, I already have an arena system I could build off of. I'll see what I can crank out in the next hour.
So I have this code: Player p = e.getPlayer(); Location loc = p.getLocation(); loc.setY(loc.getY()+1.5); Item dropped = p.getWorld().dropItem(loc,...
Yeah, I guess, but for the teams purpose it is quite good.
I'm not saying don't use a boolean, im saying replace hashmap with metadata, it makes life a lot easier
This is a complete side note, but if you are using a team system you could try to use player meta data instead of a hash map... it would go...
http://dev.bukkit.org/server-mods/disable-moving-too-quickly/ that plugin seems to work, you could de-compile it and find out how it works
The way I have it set up is the slimeball is spawned on right click, and I need to find where it hits the ground to spawn an explosion, like a grenade
I have the code: @EventHandler public void drop(final PlayerDropItemEvent e){ Bukkit.getScheduler().scheduleSyncDelayedTask(this, new...
I don't think you can because it takes a material argument, so, for example if you use a chest it replaces it with a falling piece of birch wood.
Is there a way to do this in bukkit yet, because as of Minecraft 1.5 this should be possible right?
Separate names with a comma.