Skip to content

Riewest/CC_Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

110 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CC_Scripts

A common place for my computercraft scripts. Use the sgit script to download all scripts to a computercraft computer

Setup Computer/Turtle

Run the following

pastebin run HuSsRvQw

Info

  • This is a common library for alot of the scripts in here and where new common code should be added. One of the more useful things in this library is the squid.turtle.gps.goTo() function which will allow the turtle to move to the given destination.

    Important: If you are loading this library from a separate sub directory you need to add the root dir to the package.path. See example below.

    -- Adds the root dir "/" to the lua path and loads squid
    package.path = ";/?;/?.lua;/?/init.lua" .. package.path
    local squid = require("squid")

    Example Imports:

    -- Access to everything in the squid library
    local squid = require("squid") 
    squid.util.findModem() -- Example Usage
    
    
    -- Access to everything in the turtle sub 
    local sturtle = require("squid/turtle") directory
    sturtle.inv.findEmptySlot() -- Example Usage
    
    
    -- Access to only the turtle gps functions
    local mygps = require("squid/turtle/gps") 
    mygps.gpsInit() -- Should be called when a turtle is turned on
    local newLocation = vector.new(10,66,10)
    local travelHeight = newLocation.y + 5
    mygps.goTo(newLocation, travelHeight, "south") 
    -- Travel to the above coords and face south when it gets there
  • Useful one off scripts (example: gps-deploy)

  • Programs for use with AppliedEnergistics2 mod

  • Programs that also need to be kept up to date on pastebin

  • Programs that are ran to test another's program functionality or show things are working as they should

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages