Posted December 20, 201410 yr good nigths i have made a tool that consume suspensionderedstoneActivada a custom metaItem whit 8 meta sub items representing the remaining redstone in the bottle, soo this item activate a thread0 and dath threat0 active another thread1 this treath1 has entityplayer and remote world and i wanna from this thread1 replace the bottle of suspencionderedstone in the steve inventory , but thats the trouble to sucefully change an item for other you must changed it first in remote world an then in the local world but how i get it set is, well hard to acomplish it try to change sometimes works sometimes not, and sometimes it change but wen open inventory it swichs back to how it was before , very anoing but sad i read somewhere in the forums que, in 1.8 you just have to set blocks in remote world and then it set the blocks automatically in the local word, i have no test this but for the same ¿there is a way to set a custom item in a specific slot of inventory just doing it in remote world ? public static boolean consumirCombustible(){ chat.chatda(steve, "consumirCombustible()"); int slot=combustible0.get(0); int meta;//=combustible0.get(1); ItemStack salida; ItemStack sl =steve.inventory.getStackInSlot(slot); if (sl == null){combustible=false;return false;} else{ String slname=sl.getUnlocalizedName(); String srname="suspensionderedstoneactivada"; if (slname.equals(srname)){ meta=sl.getMetadata(); if (meta==0){salida= new ItemStack(Items.glass_bottle,1,0);} else{ salida= new ItemStack(MercenaryModItems.suspensionderedstoneActivada,1,(meta-1));} //aqui! steve.inventory.setInventorySlotContents(slot, salida); //aqui! chat.chatr(steve, "consumirCombustible()"); return true; }else{combustible=false;return false;} }}
December 20, 201410 yr Packets. 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.