Posted April 26, 201312 yr Hi, how can i get the value of a variable in a TileEntity with another TileEntity? I am looking forward to an answer. Busti PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
April 26, 201312 yr world.getBlockTileEntity(x, y, z) 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.
April 26, 201312 yr Author But i cant get my custom variables with that. PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
April 26, 201312 yr Author Alls are a great invention. PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
April 27, 201312 yr When diesieben07 said to cast the tile entity, he meant like this: TileEntity yourEntity = world.getBlockTileEntity(x, y, z); if(yourEntity instanceof YourTileEntityType) { ((YourTileEntityType)yourEntity).yourCustomVariable; //you can access your variables like this }
April 27, 201312 yr Type casting is a great invention. Alls are a great invention. Java is a great invention, maybe you should learn it? Or at least google the replied solution before you answer... If you guys dont get it.. then well ya.. try harder...
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.