Jump to content

drop a item in the world(x y z ) que por que si, solvig trouble item not consum


Recommended Posts

Posted

this is a question who evoluted from other post , i feel it must have another thread in the forum

original http://www.minecraftforge.net/forum/index.php/topic,25307.0.html

 

 

realizing what the trouble is whith what i pretend to do gets a lot of time cos something simply easy or little is harder to spot than the biggest trouble

 

well if you consume a item soposed to add another item to inventory before it has chance to add the second item there would be not secund item in the inventory  soo fuck rigth over.

 

soo then lets doo this you first add the secund item to inventory  then consume the first, and now wath happen if there is no space free in the inventory to locate the second item . well then you fuckit again.

 

soo then lets do this you have the first item that would be consume then you check if thereis free space in inventory if it is space throw the secund item to inventory consume the first. but if it is not space in inventory drop it to the world close to steve or over his hea or wath ever get more chance the item dont get stuuk in a wall.

 

 

sooo the code cuestion ,i know there is a

steve.inventory.getFirstEmptyStack();  //returns a int of the empy slot number if it is < 36 there is space free in inventory     

 

trouble whit this is adont see a method saiying add this item or itemstack to this especific slot(x) in inventory

 

the secund trouble is idont see in the world.methods something like 

world.dropItemOrItemStack(world, itemOrItemStack, x, y, z );

 

couldyou please tell me if there exist methods to do this two things in minecraft ??

 

 

 

the other tink i have in mind is to add another threat.time to the class just to wait 200 or 300ms to add the secund item in inventory once the first is consume

 

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

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

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