Jump to content

Recommended Posts

Posted

when ever i try to see a specifc item is in hand it dosent work...

ive given up hope on this... maybe someone else can see what i did wrong..

 

the part that needs to find the specifc item is line 19 (tried every way i could think of and got various NPE's and found waldo..)

 

 

http://pastebin.com/9Qdj9cB9

 

what i have that half works

Posted

Hi

 

I don't really understand your question.

 

Could you describe in a bit more detail what you want to happen? 

eg "When you hit a cow while holding a butcher's cleaver it should drop a steak"

 

-TGG

Posted

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.

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.