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();
Separate names with a comma.