Jump to content

Recommended Posts

Posted

I am trying to make a sigil using an onItemRightClick Method,

but when i right click with the item nothing happens,

can anyone help me?

 

Main mod class:

 

  Reveal hidden contents

 

 

Item Class:

 

  Reveal hidden contents

 

Posted

I Even tried changing my code up

 

Item Code:

 

  Reveal hidden contents

 

Posted

Hmm......... notice that "stack" that is given to you by the method? that is the itemstack that the player right clicked so you can just use stack.getItem().equals(new ItemStack(Cm.sigilGiarcOff))

 

Or better yet get rid of sigilGiarcOff and sigilGiarcOn and use the damage value to determine if it is on or off.

 

Edit: Disregard the first part of this post i was confused because you are using 3 separate items when you only need 1.

 

Edit2: Oh and the reason its not doing anything as it is is because the item you are using is SigilGiarc but the two items you are checking for are sigilGiarcOff and sigilGiarcOn.

 

Edit3: And one last thing the players hotbar slots are 0-8 not 1-9.

I am the author of Draconic Evolution

Posted
  On 6/27/2014 at 4:12 AM, brandon3055 said:

Hmm......... notice that "stack" that is given to you by the method? that is the itemstack that the player right clicked so you can just use stack.getItem().equals(new ItemStack(Cm.sigilGiarcOff))

 

Or better yet get rid of sigilGiarcOff and sigilGiarcOn and use the damage value to determine if it is on or off.

 

Edit: Disregard the first part of this post i was confused because you are using 3 separate items when you only need 1.

 

Edit2: Oh and the reason its not doing anything as it is is because the item you are using is SigilGiarc but the two items you are checking for are sigilGiarcOff and sigilGiarcOn.

 

Edit3: And one last thing the players hotbar slots are 0-8 not 1-9.

 

Uhh i am using two items, using the same concept as a furnace,

replacing the items instead of a block,

and both items use the same class

I'm changing my code right now...

Posted

Still nothing,

it's like the code isn't called,

no output from the consle...

 

new code:

 

  Reveal hidden contents

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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