DanielDawn Posted August 7, 2016 Share Posted August 7, 2016 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. Quote Link to comment Share on other sites More sharing options...
Matryoshika Posted August 7, 2016 Share Posted August 7, 2016 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 Quote 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. Link to comment Share on other sites More sharing options...
DanielDawn Posted August 7, 2016 Author Share Posted August 7, 2016 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. Quote Link to comment Share on other sites More sharing options...
Draco18s Posted August 7, 2016 Share Posted August 7, 2016 You know that x and z block positions are on the corner of the block, right? Quote 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. Link to comment Share on other sites More sharing options...
Matryoshika Posted August 7, 2016 Share Posted August 7, 2016 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. Quote 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. Link to comment Share on other sites More sharing options...
DanielDawn Posted August 7, 2016 Author Share Posted August 7, 2016 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.