Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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)

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-

  • 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".

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-

  • 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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.