- ComputerCraft | Programmable Computers for Minecraft
- → ReBraLaCC's Content
ReBraLaCC's Content
There have been 76 items by ReBraLaCC (Search limited from 10-February 22)
#263348 paintutils loadAnim/drawAnim
Posted by
ReBraLaCC
on 04 January 2017 - 06:24 AM
in
APIs and Utilities
x = x or 1 y = y or 1 delay = delay or 0.25 loop = loop or false
#263143 upload files to pastebin
Posted by
ReBraLaCC
on 28 December 2016 - 05:00 PM
in
Ask a Pro
I know how to get something of pastebin without using the pastebin program..
and if you want to know my account is attached with my twitter profile if that is important
-- thanks ReBraLa
#261363 [COMMAND-PC] Scoreboard API
Posted by
ReBraLaCC
on 03 November 2016 - 09:08 AM
in
Command Programs
The first release of my ScoreBoardAPI (a.k.a SAPI)
Download: SAPI
Documentation: Pastebin
NOTE:
If you find any bugs tell me, and dont go into the code your self..
And every world you need to run [apiname].init() per world not every progam..
Also, if you have any ideas also tell me!
EDIT added "simple" documentation
#261223 Diamond Monitors
Posted by
ReBraLaCC
on 30 October 2016 - 07:40 PM
in
Suggestions
#260789 WOS
Posted by
ReBraLaCC
on 19 October 2016 - 06:02 PM
in
Operating Systems
#260312 TT.OS - The ultimate OS in CC!
Posted by
ReBraLaCC
on 06 October 2016 - 07:09 PM
in
Operating Systems
#260055 returns of os.loadAPI()
Posted by
ReBraLaCC
on 29 September 2016 - 04:14 PM
in
Ask a Pro
ReBraLaCC, on 29 September 2016 - 04:01 PM, said:
Solved the getting version with this
local file = fs.open(gamePath.."api-versions","r") local versions = textutils.unserialise(file.readAll()) file.close() function getVersion(api) if versions[api] then return versions[api] else return 0 end end
#260054 returns of os.loadAPI()
Posted by
ReBraLaCC
on 29 September 2016 - 04:01 PM
in
Ask a Pro
KingofGamesYami, on 29 September 2016 - 03:54 PM, said:
Okay, I'll think about something! question know any reason why it won't add the str from
for k,v in pairs(apis) do
str = v..","..str
end
add("Loaded:",str)
add("Total APIs: #"..total)
to the log?
#260051 returns of os.loadAPI()
Posted by
ReBraLaCC
on 29 September 2016 - 03:46 PM
in
Ask a Pro
here was the code i had:
local gamePath = "Jetpack/"
local apiPath = gamePath.."api/"
apis = {"log"}
os.loadAPI(apiPath.."log")
local add = log.add
log.set(gamePath.."logs","log-"..os.day(),".gl")
function loadAPIs()
str = ""
add("Loading APIs...")
for k,v in pairs(fs.list(apiPath)) do
if v ~= "log" then
os.loadAPI(apiPath..v)
table.insert(apis,v)
end
total = k
end
for k,v in pairs(apis) do
str = v..","..str
end
add("Loaded:",str)
add("Total APIs: #"..total)
end
loadAPIs()
maybe i could just make a function in each API to get the version but i was wondering if there was a way
-- ReBraLa
** Indention was better, website edited it like this
*** Have a return in the API as
local version = 1.3213123 return version
#260005 Rate the Above User's Avatar!
Posted by
ReBraLaCC
on 28 September 2016 - 10:31 AM
in
Forum Games
#259766 width and heigth
Posted by
ReBraLaCC
on 22 September 2016 - 05:15 PM
in
Suggestions
#259760 width and heigth
Posted by
ReBraLaCC
on 22 September 2016 - 02:47 PM
in
Suggestions
but it would be easier to do it like this
string.rep("-",term.getWidth)
than to do it like
w,h = term.getSize()
string.rep("-",w)
#259566 LDDFM - An API-based file manager for your programs!
Posted by
ReBraLaCC
on 19 September 2016 - 01:27 PM
in
APIs and Utilities
#259230 While true do help!
Posted by
ReBraLaCC
on 11 September 2016 - 04:18 PM
in
Ask a Pro
X = true
while X do
st = read()
m = peripheral.wrap("left")
rednet.open("right")
id, message = rednet.receive()
m.setTextScale(1)
m.setCursorPos(1,1)
m.write(message)
if st == "end" then
X = false
end
end
Like that, or you just use break instead of X = false
- ComputerCraft | Programmable Computers for Minecraft
- → ReBraLaCC's Content




