I would create a block that extends RedStoneBlock and then Override canProvidePower.
This will allow the block to emit a Redstone signal.
The real challenge would be to figure out how to let this new block know your lever is on.
You don't need any more than 8GB of ram to play any modpack, unless you're planning to use shaders/32+ textures
Also All the mods has an official discord, it's a better place to ask there than here
However, the problem is with apotheosis/quark