@Override public int onUpdate(int type) { if ((type == Level.BLOCK_UPDATE_NORMAL || type == Level.BLOCK_UPDATE_SCHEDULED) && this.getNeighborPowerLevel() > 0) { int level = this.getPowerLevel(); Redstone.deactive(this, level); this.getLevel().setBlock(this, new BlockLitRedstoneLamp()); } return 0; }