Jump to content

Clicking by inventory slot number


Recommended Posts

Posted

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.

Posted (edited)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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