Ender Modem
From ComputerCraft Wiki
Revision as of 03:05, 26 December 2015 by Bomb Bloke (Talk | contribs) (Created page with "{{Stub}} :''This page is for the Modem blocks. For the modem API, see Modem (API)'' {{Block |name=Ender Modem |image=EnderModem.png |id=computercraft:advanced_...")
This page is a stub. Please help us by expanding it.
|
- This page is for the Modem blocks. For the modem API, see Modem (API)
Ender Modem | |
Item ID | computercraft:advanced_modem |
Damage Value | 0 |
Peripheral? | Yes- Modem (API) |
Ender Modems are advanced versions of the Wireless Modem, introduced by ComputerCraft version 1.76 (for Minecraft 1.8). They use the same Modem API, but are capable of cross-dimensional transmissions.
See also: Wired Modem, Ender Modem.
Recipe
Example (Modem API)
- Place 2 computers and add modems to them by clicking the right mouse button while sneaking.
- Access them, and start Lua.
- Once Lua has started, wrap your modem using peripheral.wrap() (something like "modem = peripheral.wrap("<side of modem>")
- Type "modem.open (<A modem port number, anything from 1 to 65535>)" on one computer.
- Check if there exists a connection: a dim, red light should be found on the modem.
- Now, type "modem.transmit (<Same number as above>, <Also the same number>, 'Your message')" on the other computer. This should send your message to all computers connected.
- Opening the first computer should show the message written on the second computer.
Modem as a Peripheral
To use a Modem as a peripheral, you need to either call a method directly using peripheral.call(), or, wrap the modem using the Peripheral API. Wrapped modems provide all functions listed in the Modem API.
For this example, we have a Modem connected to the top of our Computer, we are going to open channel 5:
-- Immediately invoke a method without wrapping peripheral.call( "top", "open", 5 )
-- You can also "wrap" the peripheral side to a variable: local modem = peripheral.wrap( "top" ) modem.open( 5 )
ComputerCraft Blocks and Items | |||
Blocks | |||
Computer | Advanced Computer | Command Computer | Disk Drive |
Monitor | Advanced Monitor | Printer | Turtle |
Wireless Modem | Ender Modem | Wired Modem | Networking Cable |
Items | |||
Pocket Computer | Advanced Pocket Computer | Floppy Disk | Printed Page |
Printed Pages | Printed Book |