July 15, 201510 yr Look at the vanilla Redstone blocks and learn from them. Long time Bukkit & Forge Programmer Happy to try and help
July 15, 201510 yr OnNeighbohurChange (or similar name) Is called when one of adjacent blocks has changed somehow. In this case this includes redstone signal. Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
July 15, 201510 yr This works for me: public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state) { super.onBlockAdded(worldIn, pos, state); if(worldIn.isBlockPowered(pos)) { //Do stuff } else { //Do other stuff } } /** * Called when a neighboring block changes. */ public void onNeighborBlockChange(World worldIn, BlockPos pos, IBlockState state, Block neighborBlock) { if(worldIn.isBlockPowered(pos)) { //Do stuff } else { //Do other stuff } } I'll put something here when I have something of value I need to put at the end of every post. For now it's this mostly pointless text.
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.