ComputerCraft Archive

helperFunctions

computer utility mc-cc-scripts github

Description

A dependency manager for scripts to use in the mod CC Tweaked of Minecraft.

Installation

Copy one of these commands into your ComputerCraft terminal:

wget:wget https://raw.githubusercontent.com/mc-cc-scripts/script-manager/master/tests/Suite/helperFunctions.lua helperfunctions
Archive:wget https://cc.shobie.xyz/cc/get/gh-mc-cc-scripts-script-manager-tests-suite-helperfunctions helperfunctions
Quick Install: wget https://cc.shobie.xyz/cc/get/gh-mc-cc-scripts-script-manager-tests-suite-helperfunctions helperFunctions

Usage

Run: helperFunctions

Tags

none

Source

View Original Source

Code Preview

function table.copy(t)
    local u = {}
    for k, v in pairs(t) do u[k] = v end
    return setmetatable(u, getmetatable(t))
end