Jump to content

Vertical Dropping - Item Slot (?)


Recommended Posts

Posted

public void vertical(){
		for(int i = 0; i < 28; i = i + 4){
			if(inventory.getItemInSlot(i) != null){
				inventory.getItemInSlot(i).interact("drop");
			}
		}
	}

The result of using the above mentioned code is this:

giphy.gif

I've been fiddling around for the past hour with this, tried completely different methods, tried adding in sleep functions, nothing seems to work, any help would be greatly appreciated :)

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