Jump to content

help me onArmorTick potion effect Not available 1.5.2 ?


Recommended Posts



public void onArmorTick(World world, EntityPlayer player, ItemStack armor)


    player.addPotionEffect(new PotionEffect(Potion.damageBoost.id, 200, 1));




it available in 1.7.2 but not available 1.5.2 ?

Link to comment
Share on other sites

I belive you wanted to use 1.5.2 because backthen it allowed jar-modding.

That is not what forge does/supports now. Since 1.6 forge is a library that loads mods at startup, not pre-modifies jar like old jar-modding.


Now to the issue:

You will need to learn how to work with forge events. Look them up on google, no point in writing next tutorial in this post, there are plenty.


You will be using them to modify behaviour of vanilla. That includes guis.


Have look at 'GuiScreenEvent.InitGuiEvent' - you can use it to gain control over opened gui - you can modify button-list there.


After adding new buttons, you can make actions with them using: 'GuiScreenEvent.ActionPerformedEvent'


1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

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.

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.


  • Create New...

Important Information

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