helperFunctions
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 helperfunctionsArchive:
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
Source
View Original SourceCode Preview
function table.copy(t)
local u = {}
for k, v in pairs(t) do u[k] = v end
return setmetatable(u, getmetatable(t))
end