Posted June 28, 201312 yr when ever I walk into my custom block, it pushes me out and I've tried to fix it, but I can't. if anyone knows a solution, that would be great. here's my code. https://github.com/code-lyoko-modding/CodeLyokoMod/blob/master/matt/lyoko/blocks/BlockCable.java https://github.com/code-lyoko-modding/CodeLyokoMod/blob/master/matt/lyoko/entities/tileentity/TileEntityCable.java https://github.com/code-lyoko-modding/CodeLyokoMod/blob/master/matt/lyoko/model/tileentity/ModelCable.java https://github.com/code-lyoko-modding/CodeLyokoMod/blob/master/matt/lyoko/render/tileentity/RenderCable.java
June 29, 201312 yr if i understood correctly, you want to be able to walk through your block? if yes, then look at vanilla mc's code for torches. you'll find your answer there.
June 29, 201312 yr Author no, I don't want to be able to walk through it, I want it to collide with the player properly. it's a cable that looks kind of like industrialcraft cables.
June 29, 201312 yr Use setBlockBoundsBasedOnState(IBlockAccess par1, int i, int j, int k){} with several setBlockBounds(minX, minY, minZ, maxX, maxY, maxZ) inside to change the bounding box by the direction of your cabel. If i helped you, don't forget pressing "Thank You" button. Thanks for your time.
June 29, 201312 yr @Naitenne he already uses it @endershadow when you say "it pushes you out", you mean you don't immediately collide with it? as in you're able to walk into it first then it pushes you out? if that's the case, it could be an unsynced server and client thing. i'm pretty sleepy right now so i'm not really reading your code thoroughly i'm afraid. if it's not a server client thing, i'll read it again tomorrow and see if i can find something
July 1, 201312 yr if it is server/client de-sync, how do I fix it? Packets, probably. BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
July 2, 201312 yr Author but how would I use packets in this case? I've used packets for syncing GUIs, but I'm not sure what I'd do here.
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.