Posted March 3, 201411 yr Hey Guys! I want to create Armor wich gives you some potion effects when you wear it. For this purpose I want to create a TickHandler which controls every Tick whether the Player wears the specific armor. In 1.6.2 it worked fine with ITickHandler but now this interface doesn't exist any more. If I use the TickEvent I can't figure out where to get the Player if it is a TickEvent of type Player. How can I create this Tick Handler? Or is there an easier way for applying potion effects when wearing armor? http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
March 3, 201411 yr The Item class has two built-in tick handlers, one for all items and one specific to armor. Look for the method onArmorTick (in 1.6.x it was called onArmorTickUpdate). It's a much better solution than using the TickEvents in this case. http://i.imgur.com/NdrFdld.png[/img]
March 3, 201411 yr Author Thanks for this fast reply! http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
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.