Melee turtle help

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

SilentDeath236

New Member
Jul 29, 2019
24
0
0
Im trying to set up a basic mob farm. Problem is when ever i place the turtles my fps drop to low. So im trying to set it up so they are off with redstone. Problem is turtles won't work anymore. I have used redstone wire, torch, even jacked wire and it doest respond to it. So is it my program or is there some trick to get the turtle to respond to redstone.

Here is my program

while true do
while redstone.getInput("back") do
turtle.attack()
sleep(.1)
end
sleep(.5)
end
 

Vendetta

New Member
Jul 29, 2019
46
0
1
I have always used a code I found on the computercraft codes archive.
This is the link: http://www.computercraft.info/forums2/index.php?/topic/10013-melee-turtle-mob-farm-script/

This is the way I have it setup in my test world, I hope this fixes your problems. Plus, the turtles aren't a big lag machine, unless you have multiple ones killing a crazy amount of mobs.

You can always use the zombie in a jar under the turtle to collect your XP too.
k8rk2n5.jpg
 

tompy97

New Member
Jul 29, 2019
85
0
0
Hi, the code you are looking for would be the "redstone.getInput("side"). You could set up the code like follows:

while true do
if redstone.getInput("back") then
turtle.attack()
else
sleep(5)
end
end[DOUBLEPOST=1367900199][/DOUBLEPOST]I just looked at your code as well, it's not as clean as it could be but it should still have worked. I'll fire up my test world and check it out.

EDIT
Yep, just tested your code, it worked fine for me with a lever sitting right behind the turtle.
 
  • Like
Reactions: NosePicker5555

knight2109

New Member
Jul 29, 2019
33
0
0
If this on a server, I'm having an issue where turtles don't attack on the server I admin on. If so ask them if they use MCPC+ and if yes if it is MCPC+ L15. It may need to be reported to them as a bug. or updated.