So I want to make a block emit light when a redstone signal is applied to it. I know how to make it emit light but I don't know how to make it detect the redstone signal.
myFirstBlock = new BlockFirst(538,0);
myFirstBlock.setLightValue(1F);
LanguageRegistry.addName(myFirstBlock, "My first block");
MinecraftForge.setBlockHarvestLevel(myFirstBlock,"pickaxe",0);
GameRegistry.registerBlock(myFirstBlock);
That's the piece of code that creates the block. This is written just after the '@Init' in the Base Mod file. I have defined myFirstBlock after the '@SidedProxy' further up in the code.
The block creation works fine.
Could I please just get some help with the redstone signal detection?
Thanks