-
Hello, I hope you are all doing well! I want to start by clerifying that I am not asking anyone to make the change for me but if anyone could point me in the right direction i would greatly appreciate it. I have always felt that the advanced turtle's color screen and max fuel boost doesnt add much. I would like to make a fork that would allow me to change the recipie of the advanced turtle to require an ender modem and then enable wireless on all advanced turtles, even without a modem attached. I was looking through the files but with 2.5k entries for turtle and 1.5k entries for modem im not terrably sure where to start to find the right files or what form they would come in( a single file that just changes what api the computers can use, or having to effectively add all the modem code to the advanced turtle, etc) Thank you for taking the time to read this, and again, im not asking anyone to make this, but any assistance would mean the world. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
So I think this should be fairly easy to hack in, though I haven't actually tested this: In 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 @Override
protected boolean isPeripheralBlockedOnSide(ComputerSide localSide) {
return localSide == ComputerSide.BACK || hasPeripheralUpgradeOnSide(localSide);
} |
Beta Was this translation helpful? Give feedback.
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:However, the modem will probably be auto-removed next time the turtle moves. You can prevent this by modifying
TurtleBlockEntity.isPeriphe…