Posted July 13, 201411 yr Hi everyone, I made a working door with a kinda working lock/unlock system. Now the only problem is when i lock or unlock the door it only applies to its upper or lower part. My question is how can i make my TileEntity for connect both side of the door(top/bottom)? Right now if i lock the bottom part i can still open the door with the upper part. And the same reversed... Thanks for helping!
July 13, 201411 yr When you lock it do TileEntityDoor ted = (TileEntityDoor) worldObj.getTileEntity(xCoord, yCoord, zCoord); //change yCoord to +1 or -1 depending on whether its the top or bottom ted.locked = true; //or false
July 13, 201411 yr Author I got it sloved before you. Thanks anyway. I use what vanilla door uses if you look at the bottom or top part. Than i can set the y pos to -1 or +1. So it works after all.
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.