Posted June 1, 20169 yr Does anyone know how I would switch an item to another item on right click? So like I wanted to make a twin type of sword so that one sword is more offensive (giving a strength potion effect) and one being more defensive (giving a resistance potion effect) however I know how to do all of the potion effects (I think) and how to create the swords, but what would I do to switch the sword you're currently using with it's other half in the same hot bar slot you had the other sword in?
June 1, 20169 yr The right-click method has an ItemStack parameter and returns an ItemStack. Just return a different item stack. 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.