Posted July 21, 20178 yr I want my mod to type /feed automatically once hunger reaches a certain point. It's meant for a multiplayer server, so it must be client side. I don't suppose the client gets any events I can handle. What is the best way of implementing this feature? Edited July 21, 20178 yr by Is.M.L mark solved
July 21, 20178 yr You'll need to monitor the food stats on ClientTickEvent, since there aren't any events fired on the client when the food stats change. Make sure you check the event's Phase to avoid running your code twice per tick. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
July 21, 20178 yr Author 13 hours ago, Choonster said: You'll need to monitor the food stats on ClientTickEvent, since there aren't any events fired on the client when the food stats change. Make sure you check the event's Phase to avoid running your code twice per tick. Works perfectly thank you very much
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.