Jump to content

Roboman

Members
  • Posts

    5
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Roboman's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thank you so much! I'm trying this now to see if I can get this to work.
  2. Sorry, I'm new to forge coding, and new to Java (But don't fear! I know how to program and have looked at many examples, I'm not clueless). I need to store it in the ItemStack NBT, thats something I need to define, isn't it. Also, doing it on the server is a simple as @SideOnly(Side.SERVER), right? If you could lead me through at least one of these things, I think I can figure out how to do it. I'm doing this just to see what I CAN do and what I know I can do, this exercise is doing what its meant to do
  3. No, thats not quite what I want. When the item is right click with (used, but not used up), I want that item to have the glow activated over it. Only that one, not all of that type. I understand why it shouldn't be in the item declaration class, but where should I have it is my question? Also, the code I posted in the OP makes the item flicker quickly when right clicked with. Any ideas why this might happen? I think it has something to do with it being in the wrong spot.
  4. So, where would I want it? EDIT: Hmm, I see another declaration of hasEffect below, with int pass as one of the arguments. I'll look into that. But still. Where would I want it if not in the item class? Where else would I say that?
  5. So, I'm trying to make an item that when it is right clicked with the effect changes (adds the shiny nether start effect over it). I looked at some things online, and I'm ending up using this: @SideOnly(Side.CLIENT) public boolean hasEffect(ItemStack itemStack) { return effectChange; } effectChange is: @Override public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer) { effectChange = !effectChange; return itemStack; } However, when I look at my overridden hasEffect in IntellijIdea, it crosses it out and shows that its deprecated. What should I use instead then?
×
×
  • Create New...

Important Information

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