This is solved!
Make sure you set the ItemMeta for an ItemStack after changing lore!
This is where I failed!
Is this already fixed? Because I can make this..
Thanks this should work but I already found a solution for this with a BlockIterator
This doesnt work...
Do you know a method to fix this?
EDIT by Moderator: merged posts, please use the edit button instead of double posting.
the getEyeLocation is for checking where the eyes are not for where they are looking
If you want to script the plugin on yourself use:
public boolean onCommand(CommandSender sender, Command cmd, String label, String...
I have a question.
How to get the entity the player is looking at?
Because I want to make kind of a capture spell for my wand.
NathanWolf HOLY SHIT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! THIS FIXED MY PROBLEM!!! You are one of the most kind guys that I know on the internet!
Chinwe It gives me an error on this line:
String lore = meta.getLore().get(0);
I am making a Wand Plugin, and now I am working on spells but this isnt working..
I want to set the lore of the wand to the current spell...
haha ok sorry, but anyway I already did that in my main class :
NathanWolf But is a debugger the same as a run or not?
NathanWolf I found the bug it is a nullpointer because it says that the lore is null.....
Separate names with a comma.