How i can get all items' id in player inventory. In this pic i see that player have 45 slots and how i can get item's id in every slot? [IMG]
i tryed this, but i think, that it is not right: if (!player.isOnGround()) { player.teleport(player.getLocation().add(0,...
Which one?
@pixelrider2000 , i need to add some effects during dressing this helmet: @EventHandler public void Helmet(InventoryCloseEvent event) {...
Hi, I want to check name of helmet like this, but idk where trouble: if(p.getInventory().getHelmet() != null &&...
@CraftCreeper6, silk touch didn't work. I find a lot of information of for each loops It like that, but i don't know how can i do this for (type...
@CraftCreeper6, how i remember, for loop seems like that: for (initialization; condition; increment/decrement) { statement(s) } So, i didn't...
@CraftCreeper6, sorry, I didn't explain. this code: ItemStack item = new ItemStack(blockBroken.getType(), 2); Is the...
Is this code like: ItemStack item = new ItemStack(blockBroken.getType(), 2); @CraftCreeper6
@CraftCreeper6, how i know... There aren't a lot of blocks, so I think I'll use switch case, because I'm not a friend with for or while :)
@CraftCreeper6, i think to create switch case like this case grass: if (manager.pickAxe) return new...
@CraftCreeper6, am I can add in variable blockBroken .getDrops()?ED. Block blockBroken = (Block) event.getBlock().getDrops();
Finaly! I found error... This is a code without errors! public class eventpickaxe implements Listener { @EventHandler public static void...
@CraftCreeper6, manager.pickAxe.getItemMeta().getDisplayName() here is screen also i checked name with color code and after breaking a block a...
@CraftCreeper6 , when i added color code - pickaxe are doubingXD in next code, there is an error, how I saw, there is was about boolean
@CraftCreeper6 It doesn't work. In my mind i need add if (event.getItem().getItemMeta().equals(manager.wand.getItemMeta())){ how...
@CraftCreeper6, But i need all blocks. I need to create swich to check every block?
Thanks for everything, I'll check later! I tested and i have the last error ItemStack item = new ItemStack(itemStack, 2); Trouble in itemStack...
Why? IntelliJ idea thinks that is error with #
itemStack#getItemMeta()#getDisplayName.equals("pickaxe of doubling") True?
Separate names with a comma.