Gavin Smith

Gavin Smith

Maze solver using Turtle

Step 1: Open the ComputerCraft ComputerFirst, you’ll need to open the CC computer in the game. Right-click on the computer to access its gui. Step 2: Create a New ProgramIn the computer’s interface, type edit maze_solver and press Enter. This…

Automated Turtle Strip Mining Program

In this tutorial, you will learn how to recreate a Lua program that controls a Minecraft turtle for automated strip mining. The program takes inputs for the mining area size and length, calculates fuel requirements, and performs the mining operation…

Simple Tunneling Program

The objective of our program is to make the turtle dig a tunnel of a specified length (passed as a command-line argument) and then return to the starting position. We will use a refueling function to ensure the turtle has…

Simple Turtle Tree Farming Program

local function refuelIfNeeded()     if turtle.getFuelLevel() < 500 then         local fuelSlot         for slot = 1, 16 do             local item = turtle.getItemDetail(slot)             if item and turtle.getFuelLevel() + item.fuel > 500 then                 fuelSlot = slot                 break…

Simple mob farm program

Step 1: Initialize the enemy count variable. lualocal enemyCount = 0 — Track the number of enemies defeated Step 2: Define the scanArea function. luafunction scanArea() — Scan the area for enemies and attack local enemyDetected = false for i…

Intro to CC: Tweaked

CC: Tweaked is a highly versatile and popular Minecraft mod that introduces the Lua programming language to the game, providing players with the ability to create and program in-game computers. These computers come in various forms, each offering unique features…

Simple Tree Cutting Program

Step 1: Understanding the Objective The goal of our program is to create a turtle that can mine trees at a given height. We will prompt the user to enter the desired height, and the turtle will start mining from…

Bridge Building Turtle Program

In this blog post, we will walk through a Lua turtle program and explain its functionality step by step. The program is designed to build a structure of a specified length using the turtle in the game ComputerCraft Tweaked. We…

Trash Turtle Program

Step 1: Craft a turtle You will need a computer and a chest to craft a turtle. Place the computer in the middle of the crafting grid and the chest bellow it, and surround it with 7 iron ingots. You…