Hello yall I'm trying to make a method where when a Player breaks a block via BlockBreakEvent it takes the item that's gonna naturally drop and make it into a ItemStack Currently I'm using Code: @EventHandler public void blockBreak(BlockBreakEvent event) { event.getPlayer().getInventory().addItem(new ItemStack(event.getBlock().getType())); event.setDropItems(false); } But if a player breaks coal ore it gives them Coal Ore instead of the coal. If anyone has any suggestions I would greatly appreciate any help
Welp, that was an old method then. https://hub.spigotmc.org/javadocs/s...inventory.ItemStack,org.bukkit.entity.Entity)