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.

Featured Replies

Posted

world.spawnEntityInWorld(new EntityItem (world, x, y+1, z, new ItemStack(modname.item, 1, 0)));

^That's what I've been doing. But, instead of spawning and staying there, the item sort of gets flung.

1.7.10 is no longer maintained by Forge. Please update.

 

  • Items cannot be inside solid blocks, which here happens as it's spawns in slightly clipped into the block it's supposed to be on
  • Spawn it slightly higher up, about 1.2 instead of 1.0

Also previously known as eAndPi.

"Pi, is there a station coming up where we can board your train of thought?" -Kronnn

Published Mods: Underworld

Handy links: Vic_'s Forge events Own WIP Tutorials.

  • Author

Okay, I'll try that, but about updating, I use some really outdated mods...

Edit: Still getting flung, going to try a bigger number. I remember doing this with y + 2, still got flung.

You know that x and z block positions are on the corner of the block, right?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Ah, completely forgot,, it spawn with (as good as) initial velocity.

Take a look here: https://github.com/Matryoshika/Saligia/blob/master/src/main/java/Matryoshika/mods/saligia/tile/TileRitualCOTH.java

 

If you depend on outdated mods, try to find other up-to-date mods, or create your own.

Also previously known as eAndPi.

"Pi, is there a station coming up where we can board your train of thought?" -Kronnn

Published Mods: Underworld

Handy links: Vic_'s Forge events Own WIP Tutorials.

  • Author

Thank you both, that fixed my problem. Thank you for telling me about it spawning on the corner. I had a feeling it had some sort of motion.

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.