6,911 ARTICLES
ON THIS WIKI

Melee Turtle

This article is a stub. You can help the wiki by expanding it.
Melee Turtle
Block Melee Turtle.png

Melee Turtle

Name Melee Turtle
Type Mobile computer
Stackable Yes (64)
Damage dealt Heart.pngHeart.pngHeart.pngHeart.pngHeart.png
Source Mod ComputerCraft

The Melee Turtle is a ComputerCraft Turtle which specializes in fighting. Its attack is the strongest of all Turtles, at 10 hit points (5 hearts) of damage per attack. The Turtle will automatically collect its victim's drops upon killing them and will even cause mobs to drop their XP. Turtles on their own however are incapable of collecting XP orbs. To fully automate an XP farm, Melee Turtles can be used in conjunction with items such as the Brain in a Jar, Sewer, Vacuum Hopper, or Misc Peripherals' XP Upgrade peripheral.

The Turtle API exposes the function turtle.attack() for Lua scripts but no default program exists for making the Turtle attack.

Recipe[edit]

Turtle


Diamond Sword




Melee Turtle
Turtle


Sapphire Sword




Melee Turtle

Turtle


Green_Sapphire Sword




Melee Turtle
Turtle


Ruby Sword




Melee Turtle

Note that:

  • Each recipe is reversible, but not shapeless.
  • Only the swords listed can be used (i.e. an iron sword does not work).
  • The sword must have no damage.
  • Enchantments on the sword will have no effect on the Melee Turtle's attacks.
  • The type of sword used will be shown on the side of the turtle.

Usage[edit]

Crafty Melee Turtle[edit]

Melee Turtle


Crafting Table




Crafty Melee Turtle

Wireless Melee Turtle[edit]

Melee Turtle


Wireless Modem




Wireless Melee Turtle

Attack program[edit]

A simple attack program, which has the turtle continuously attack whatever is in front of it, can be coded as follows:

 while true do
  turtle.attack()
  sleep(.1)
 end

Or, to have the turtle attack only while receiving a redstone signal (to its back, in this example):

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

To create either of these programs, type in "edit [program name]" (without the brackets) in the turtle interface and press Enter. Type in your program and save it (press Control to bring up the menu, then hit "s") and exit (Control, "e"). To run the program, type the program name into the turtle interface, and hit Enter.

If you want the program to start automatically whenever the turtle loads or is rebooted, give it the name "startup".

Note that if you are on a multiplayer server without pvp enabled, the turtle will not attack you.