Jump to content

Clicking by inventory slot number


Psvxe

Recommended Posts

Well, since I just can't think straight at the moment it's pretty hard for me to figure out how to click by slot.

inventory.interact(ctx.inventory.getSlot(arg0);
Doesn't work. (Which is no surprise)

Any other way? I need to click the first 4 items in inventory. However the interact method is too slow for me. That's why I'm trying just to click the slot instead of the item itself.

Link to comment
Share on other sites

Hmm... I think you could do this

 

mouse.move(inventory.getMouseDestination(SLOT_ID));
mouse.click(false);

Going to write a block to see if this works better :3 I'll edit the post soon.

Thanks in advance! smile.png

EDIT: Alright, it's on steroids now so I suppose it's working smile.png thanks man!

600k/hour script :3

Edited by Psvxe
Link to comment
Share on other sites

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...