Ir para conteúdo
  • 0

Suport Fortuna


yurirp4

Pergunta

6 respostass a esta questão

Posts Recomendados

  ItemStack item = p.getItemInHand();
                   if ((item.hasItemMeta()) &&
                     (item.getItemMeta().hasEnchant(Enchantment.LOOT_BONUS_BLOCKS)) &&
                     (item.getItemMeta().getEnchantLevel(Enchantment.LOOT_BONUS_BLOCKS) == 1)) {
                    // FAZ AQUI  
                   }

Link para o comentário
Compartilhar em outros sites

  ItemStack item = p.getItemInHand();

                   if ((item.hasItemMeta()) &&

                     (item.getItemMeta().hasEnchant(Enchantment.LOOT_BONUS_BLOCKS)) &&

                     (item.getItemMeta().getEnchantLevel(Enchantment.LOOT_BONUS_BLOCKS) == 1)) {

                    // FAZ AQUI  

                   }

devo fazer isso com todos os encatamentos da fortura exemplo 

temStack item2 = p.getItemInHand();
                   if ((item.hasItemMeta()) &&
                     (item.getItemMeta().hasEnchant(Enchantment.LOOT_BONUS_BLOCKS)) &&
                     (item.getItemMeta().getEnchantLevel(Enchantment.LOOT_BONUS_BLOCKS) == 2)) {


temStack item3 = p.getItemInHand();
                   if ((item.hasItemMeta()) &&
                     (item.getItemMeta().hasEnchant(Enchantment.LOOT_BONUS_BLOCKS)) &&
                     (item.getItemMeta().getEnchantLevel(Enchantment.LOOT_BONUS_BLOCKS) == 3)) {

assim ?

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...