Jump to content

[SOLVED] Finding Held item in LivingDrops Event


Eragonn1490

Recommended Posts

ItemStack itemstack = new ItemStack(IntegratedItems.meatcleaver, 1, OreDictionary.WILDCARD_VALUE);
                        System.out.println("ItemStack found");
                        if(itemstack != null)
                        {
                                System.out.println("Itemstack is not null!");
                                if(event.entityLiving.getHeldItem().itemID == itemstack.itemID && event.entityLiving.getHeldItem() != null)

itemstack is not null. You just set it.

Conditions are checked in the order they are given.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.