Hi, i have a problem with monster egg. Because i use this code: Code (Text): SpawnEgg egg = new SpawnEgg(EntityType.CREEPER); ItemStack is = new ItemStack(Material.MONSTER_EGG); is.setData(egg); player.getInventory().addItem(is); And i see item with id 383 and data 0 in my inventory. I would like to see item 383 with data 50
Prepare for le spitballs. I myself haven't had the chance/tools to see about these NBT data tags but I believe they were changed to allow types/armor/potion effects on spawn. new ItemStack(Material.MONSTER_EGG, 1, (short) 383) update: I found an API https://www.spigotmc.org/resources/item-nbt-api.7939/