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
Forgot it !
@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...
Separate names with a comma.