Posted July 30, 201312 yr How would I go about making it so that it opens the players inventory (done this bit), then clicks an item in slot 35, then tries placing that item over the top of the item in slot 5, then closes the inventory? I cannot work out how to use slotClick(int, int, int, player)
July 30, 201312 yr the vanilla "E" inventory ? you will need a coremod if you want to do stuff like this else im not sure i understand what you're trying to do what i understand: player pick up an item (its in his hand/mouse thing) player hovers over a certain slot player click that slot the gui close what do you want to do with the item in the player hand ? drop it on the groudn, place it in the slot ? how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 30, 201312 yr Author I had an item in slot 5 and an item in slot 35 of the players inventory right. I want the mod to do exactly as if you were to if you left clicked the item in slot 35, then whilst its "holding" the item from slot 35 it would click on slot 5, so essentially the item from slot 35 would be now in slot 5, and the item that was in slot 5 would be "on the cursor".
July 30, 201312 yr basicly if it hovers over a certain slot it switch the itemstack ? how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 30, 201312 yr Author Lemme try and give you it in actions. Step 1: - Mod initiates the same function as hitting "E" on the keyboard - (Opens Inventory) Step 2: - Mod hovers over itemstack in slot 35 and LEFT CLICKS. Step 3: - Mod now hovers over the itemstack in slot 5 and LEFT CLICKS. Thats all I'm trying to work out
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.