Skip to content

Guidence on enabling wireless for all advanced turtles. #1916

Answered by SquidDev
Visc0sity asked this question in Q&A
Discussion options

You must be logged in to vote

So I think this should be fairly easy to hack in, though I haven't actually tested this:

In TurtleBlockEntity.createComputer, add the following code:

  computer.addAPI(new TurtleAPI(computer, brain));
  brain.setupComputer(computer);
+ // Attach a modem to the back of the computer. This is a massive hack, but the easiest way to do it without duplicating code.
+ computer.setPeripheral(ComputerSide.BACK, new TurtleModem(new ResoureLocation("computercraft", "fake_modem"), ItemStack.EMPTY, true).createPeripheral(brain, TurtleSide.LEFT));
  return computer;

However, the modem will probably be auto-removed next time the turtle moves. You can prevent this by modifying TurtleBlockEntity.isPeriphe…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Visc0sity
Comment options

@SquidDev
Comment options

@Visc0sity
Comment options

Answer selected by Visc0sity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants