Posted October 24, 201312 yr Good day, I would like to ask someone if they couldn't help me with an item, that gives you poison effect when it is in the inventory.
October 24, 201312 yr ServerTickHandler foreach player if player's inventory contains item do damage. If you guys dont get it.. then well ya.. try harder...
October 24, 201312 yr Item class's onUpdate function Apply potion effect Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
October 24, 201312 yr Oh really onUpdate is called when it's inside the inventory (not just on the hotbar), I didn't know that Thanks If you guys dont get it.. then well ya.. try harder...
October 24, 201312 yr Oh really onUpdate is called when it's inside the inventory (not just on the hotbar), I didn't know that Thanks The second boolean is true IIF the item is in the hotbar. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
October 25, 201311 yr @Draco18s There is only one boolean in Item#onUpdate(...) and it is true only if item is the current held one.
October 25, 201311 yr @Draco18s There is only one boolean in Item#onUpdate(...) and it is true only if item is the current held one. Ah, you are correct. For some reason I thought there were two params. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
October 25, 201311 yr Thank you for your help I figured it out! Now you know why my mod is open source. I did something that I hadn't seen around before, doing all kinds of effects. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.