-
Notifications
You must be signed in to change notification settings - Fork 0
Home
ChristophLHR edited this page Sep 25, 2024
·
6 revisions
This Libary is meant to Emulate the functions and behaviour of turtles in Minecraft. This is exclusively useful for testing.
- Clone this Repository (and its submodules) within yours - as a submodule
- require the ccPackage.lua of this repository
git submodule add https://github.com/mc-cc-scripts/turtleEmulator-lib.git
git pull --recurse-submodules
git submodule update --init --remote --recursive
-
The TurtleEmulator needs to create a turtle, which will need to be used in globals.
That will allow your normal scripts to run normally, - using the emulator-turtle The turtle will start at position (0,0,0) facing the x direction
require("<PathToccPackage>/ccPackage") local turtleEmulator = require("turtleEmulator") _G.turtle = turtleEmulator:createTurtle()
-
That was it. Your minimalistic setup is done.
The turtle will do all currently implemented operations as expected, such as
turtle.forward() turtle.getFuelLevel() turtle.dig()
If you want further instructions about specific topics, follow these Docs: