This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
COOLGAMETUBE's profile picture

[Peripheral] How can i enable modem support?

Started by COOLGAMETUBE, 31 March 2016 - 12:43 PM
COOLGAMETUBE #1
Posted 31 March 2016 - 02:43 PM
I created a peripheral but it can't be connected to a computer throught a modem ( i can't place a modem on the peripheral ).

I got in touch with Lyqd's peripheral example and structure.


Thread: http://www.computercraft.info/forums2/index.php?/topic/26342-189-peripheral-notifylight/
GitHub: https://github.com/COOLGAMETUBE/ccppNotify/tree/master/main/java/net/coolgametube/computercraft/peripherals/notifications
SquidDev #2
Posted 31 March 2016 - 05:45 PM
The issue is that the block isn't solid, and modems require your block to be solid. To overcome this you can override isSideSolid to return true. I don't think this will break lighting, though you'll have to test.
COOLGAMETUBE #3
Posted 31 March 2016 - 10:20 PM
The issue is that the block isn't solid, and modems require your block to be solid. To overcome this you can override isSideSolid to return true. I don't think this will break lighting, though you'll have to test.

Thanks!