@Halmerson The item is unspecified when the checked inventory slot is empty.. but I cant find a way to check if it is unspecified, because if I...
@Halmerson How can i detect if its an unspecified item?! EDIT: also i am trying to get the display name of each item in the player's inventory.
for (int in =0; in<=35;in++){ ItemStack i = p.getInventory().getItem(in); Bukkit.getServer().broadcastMessage("" +...
just as the title says. I'm getting an error when i try to do this: for (ItemStack i : p.getinventory.getcontents(){ ERROR > if (i.getAmmount()...
Already tried that tutorials but I'm getting an error on "cannot cast from net.minecraft bla bla to java.awt.list" anyeon!?
How can i do this? is it even possible? thanks! rlly need this.
I'll try to do this.
Thank you so much sir! @teej107
as the title says. I've looked around but dont seem to understand any help is greatly appreciated! thanks!
bump
"for" it is a for loop Why does that for loop wont work if you're really far away? is it because entities get unloaded when u are far away from...
as the title says. It dosent work when u try to get an entity that is far away, or an entity that is outside of a loaded chunk, how could I fix...
Well. I solved it myself.. I actually found another way to get the killer, im gonna be posting the simple code later when i get home so if other...
EntityDamageByEntityEvent cst = (EntityDamageByEntityEvent) e.getEntity().getLastDamageCause(); is that correct ? that returns me the killed...
Sorry I am really new but I am trying to get the killer inside of a EntityDeathEvent, this is my code: @EventHandler public void...
How do i flag this as solved? I figured it out :D
Hello, I've been looking around for a bit and can't seem to find it... .getKiller() does not work for what im trying to do. Thanks!
I've looked over the internet for about 4 hours and still haven't found a SIMPLE way to do it... I would greatly appreciate any help, thanks :)
I'm trying to make passive mobs follow the player, but I get this error on the Eclipse IDE: The method getMethod(String, Class<capture#1-of ?...
Yea but the "secondLocation" and "firstLocation" variables that you gave me are empty... ? What would I make them ?
Separate names with a comma.