1. make a BukkitRunnable that will run every 5 minutes 2. make the runnable run a method that will run every 20 ticks
You can use HashMap for that, <ItemStack, String> Then check if the hashmap contains the key of this itemstack when a player rightclicks and if it...
Karim's suggestion wasn't it, I tried giving the entity a bit of velocity, he's just being pushed a little and he's not changing his eye location,...
Better to post the full error log but it sounds like you just need to check if the item doesn't equal null. I think itemMeta can be null too btw,...
Make an Integer for the clock if you don't have one, then make a bukkit runnable that will run every 20 ticks 20 ticks = 1 second; (Make with that...
Thanks for replying. I actually created myself a good method for every player, but I'm sure this will come in handy for people who will look up...
@timtower Is it possible without an API ?
"Hello world" - (OMG IM SO ORIGINAL) I'm trying to create a very simple scoreboard that will show you how many kills you got. But I can't figure...
@KarimAKL Wow, thanks ! I really appreciate the effort Will try this
@KarimAKL They are, he's being teleported just fine but he's not looking anywhere I even cancelled his AI, but he doesn't change his eye location...
Just did (again), nothing happens Also tried debugging it, went through
*Bump*
Forgot it ! Thanks bro
@bowlerguy66 No, you did right by that post my friend
Hi guys, I'm trying to interact with chests and I keep getting weird errors stating it can't cast a craftblock to a chest. The code: (the event...
*Bump* Does anyone has any lead ?
@KarimAKL I did, I got the message from the debug.
@Sploon Have you even read what I wrote above ? That's exactly what I want, them both to look to the same direction
Location loc = new Location(horse.getWorld(), horse.getLocation().getX(), horse.getLocation().getY(), horse.getLocation().getZ());...
Thanks for replying ! Tried it, teleported the entity to a new location made from his own x y z but the player's pitch & yaw. Nothing happened :(
Separate names with a comma.