Skip to content

Instantly share code, notes, and snippets.

View SquidLord's full-sized avatar

Alexander Williams SquidLord

View GitHub Profile
@SquidLord
SquidLord / buildSphere.lua
Last active February 6, 2016 18:17
Build a sphere with a CC turtle
-- v. 1.0 : Based off of v. 1.1 of Circle Platform. Again, a bit messy, dealing
-- with going over the entire area of r^3 cube (and plus the distance for it to
-- get back to the center), but this should do the trick.
-- The MIT License (MIT)
-- Copyright (c) 2012 Alexander Williams
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
@SquidLord
SquidLord / buildFloorMatrix.lua
Last active September 28, 2021 06:46
bfm: ComputerCraft turtle program to build a floor over open spaces
-- buildFloorMatrix build a floor over open spaces
-- by Alexander "SquidLord" Williams (Saladin Vrai)
-- "buildFloorMatrix [r|r]"
-- Place drone over near edge of opening. [R|L] defines which way
-- the drone shouldturn at the end of the opening.
-- Gist: https://gist.github.com/SquidLord/4748385
-- The MIT License (MIT)
-- Startup file for ComputerCraft turtles to set paths and initialize
-- by Alexander "SquidLord" Williams (SaladinVrai)
-- Initialize any modules or other cruft you want accessible to all drones
-- Default API location for squidLib specific modules is under "squid/"
-- Other modules are assumed to be in root
-- Gist: https://gist.github.com/SquidLord/4746878
-- The MIT License (MIT)
@SquidLord
SquidLord / buildSphere.lua
Last active February 6, 2016 18:18
ComputerCraft turtle code for building a sphere of material.
-- v. 1.0 : Based off of v. 1.1 of Circle Platform. Again, a bit messy, dealing
-- with going over the entire area of r^3 cube (and plus the distance for it to
-- get back to the center), but this should do the trick.
-- The MIT License (MIT)
-- Copyright (c) 2012 Alexander Williams
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
@SquidLord
SquidLord / buildCircle.lua
Last active February 6, 2016 18:19
ComputerCraft turtle code for building a circular platform. Rectangular laying path.
-- v. 1.0 : Not the most efficient way of doing a circle--I just do a square
-- grid, and if the turtle is outside the radius, it just skips laying a block.
-- I hope in later versions, I'll manage to make a spiral pattern so we don't have to go over empty blocks.
-- v. 1.1 : It will start now know the correct center of the circle...it's moving too far back
-- The MIT License (MIT)
-- Copyright (c) 2012 Alexander Williams
-- Permission is hereby granted, free of charge, to any person obtaining a copy
@SquidLord
SquidLord / CC GPS Host Startup.lua
Last active February 6, 2016 18:19
A simple GPS Host computer startup; just kicks off the GPS host ap. Be sure to set the coords of the host in the source before executing or the GPS net will be inaccurate.
-- GPS Host Startup v0.0.1
-- Written by Alexander "SquidLord" Williams (SamaelVrai)
-- The MIT License (MIT)
-- Copyright (c) 2012 Alexander Williams
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
@SquidLord
SquidLord / CC Rednet Sniffer.lua
Last active February 6, 2016 18:19
A local rednet message sniffer; prints the host computer name and message content.
-- ComputerCraft Broadcast Rednet Monitor
-- Monitor all traffic on local broadcast RedNet
-- by Alexander "SquidLord" Williams (SaladinVrai)
-- The MIT License (MIT)
-- Copyright (c) 2012 Alexander Williams
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- Build a column of the material in inv 1 , starting where the bot is sitting,
-- until out of material, a ceiling is reached, or a specified height
-- by Alexander "SquidLord" Williams (SaladinVrai)
-- Gist: https://gist.github.com/SquidLord/4741925
-- The MIT License (MIT)
-- Copyright (c) 2012 Alexander Williams
@SquidLord
SquidLord / egps.lua
Last active January 23, 2024 18:33
egps: A* pathfinding library for Minecraft ComputerCraft turtles.
-- This library provide high level turtle movement functions.
--
-- Before being able to use them, you should start the GPS with egps.startGPS()
-- then get your current location with egps.setLocationFromGPS().
-- egps.forward(), egps.back(), egps.up(), egps.down(), egps.turnLeft(), egps.turnRight()
-- replace the standard turtle functions.
-- If you need to use the standard functions, you
-- should call egps.setLocationFromGPS() again before using any egps functions.
-- Gist at: https://gist.github.com/SquidLord/4741746