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.

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

Featured Replies

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

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.