TheDoctorSoda Posted June 27, 2015 Share Posted June 27, 2015 I added an item (x) to my mod, and I want y (the action) to happen when x is in my inventory. I've tried event handlers, but there has to be a simpler way, right? Quote Link to comment Share on other sites More sharing options...
coolAlias Posted June 27, 2015 Share Posted June 27, 2015 Item#onUpdate is called every tick the item is in the player's inventory. Quote http://i.imgur.com/NdrFdld.png[/img] Link to comment Share on other sites More sharing options...
TheDoctorSoda Posted June 27, 2015 Author Share Posted June 27, 2015 Do I add that to the item class? Quote Link to comment Share on other sites More sharing options...
Failender Posted June 27, 2015 Share Posted June 27, 2015 You overwrite The method in The item Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.