Posted January 20, 201510 yr I am trying to do some block updates per tick. Something like when the tile entity component detects something (rain) it sends redstone / signal to the block and the block lights up. Problem is: Lighting is done in Block. Detect is done in TileEntity. Any idea how these 2 mix together?
January 20, 201510 yr A TileEntity is still supplied by the block. You can set the TE's block's metadata and use that to change the lighting. 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.
January 21, 201510 yr Author Something like (In the Block:) read from NBT (In the TE:) set NBT ? If I am correct, I still need to know what to call to update the block for lighting. OR, I need to know the func used to set lighting for the TE.
January 21, 201510 yr You should never need to call readFromNBT or writeToNBT yourself. Remember that a TileEntity has a block in the world, and if you know how to make a block change its light value, you do the same thing for TileEntities. 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.
January 22, 201510 yr Author Oh... So there is a getBlockType() in TileEntity... And it contains so many stuff... Thanks for the hint!!!
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.