- ComputerCraft | Programmable Computers for Minecraft
- → GamerNebulae's Content
GamerNebulae's Content
There have been 104 items by GamerNebulae (Search limited from 10-February 22)
#197893 Determine facing of a turtle
Posted by
GamerNebulae
on 08 November 2014 - 09:33 AM
in
Ask a Pro
I was tinkering with a turtle and decided to try a multiple turtle quarry (which I have possibly seen in an old video of Eloraam) and I was wondering about how you could determine the facing of a turtle as efficiently as possible. I thought about moving one way, see what the x- or z-axis would do, but that would be inefficient. Is there another way?
#191474 Error bioss:366 'end' expected in my security program please help!
Posted by
GamerNebulae
on 17 August 2014 - 09:59 PM
in
Ask a Pro
#191459 How to put comas between valors in a function
Posted by
GamerNebulae
on 17 August 2014 - 08:04 PM
in
Ask a Pro
#191442 How to put comas between valors in a function
Posted by
GamerNebulae
on 17 August 2014 - 04:39 PM
in
Ask a Pro
function comma(text)
local textTable = {}
for char in string.gmatch(text, ".") do
textTable[#textTable + 1] = char
end
local commaCount = math.floor(#text / 3)
if (#text % 3 == 0) then
commaCount = commaCount - 1
end
local base = #textTable - 2
for i = 0, commaCount - 1 do
table.insert(textTable, (base - (i * 3)), ",")
end
local commaText = ""
for k,v in pairs(textTable) do
commaText = commaText..v
end
return commaText
end
EDIT: fixed a bug where numbers beyond one billion weren't readable (commas in wrong places)
#191434 How to put comas between valors in a function
Posted by
GamerNebulae
on 17 August 2014 - 02:55 PM
in
Ask a Pro
#191412 Duck Antenna
Posted by
GamerNebulae
on 17 August 2014 - 09:18 AM
in
Ask a Pro
#191380 Duck Antenna
Posted by
GamerNebulae
on 16 August 2014 - 11:26 PM
in
Ask a Pro
#191377 Duck Antenna
Posted by
GamerNebulae
on 16 August 2014 - 11:13 PM
in
Ask a Pro
#187905 Annoying bug
Posted by
GamerNebulae
on 15 July 2014 - 12:44 PM
in
Ask a Pro
#187901 Annoying bug
Posted by
GamerNebulae
on 15 July 2014 - 12:18 PM
in
Ask a Pro
function load(path) --#Code here... end
#186775 ComputerCraft Mining Turtle Gravel check ideas?
Posted by
GamerNebulae
on 03 July 2014 - 08:05 PM
in
Ask a Pro
husplante, on 03 July 2014 - 06:55 PM, said:
Just to shorten the code, I always use the keyword "not". It basically means "false". Example:
statement = false
if (not statement) then
print("Statement was "..statement)
end
--#Output: Statement was false
The problem with your code at the moment is, it will run into a piece of gravel and if the stack of gravel is higher than 2, then it will not work. So please just use my code, otherwise it will not work.
#186708 ComputerCraft Mining Turtle Gravel check ideas?
Posted by
GamerNebulae
on 03 July 2014 - 01:34 PM
in
Ask a Pro
function notMoving() while not turtle.forward() do turtle.dig() sleep(1) end end
While it cannot move forwards, it will dig in front of himself and he will then wait. If he cannot move again, then he will repeat the same thing over and over and over again.
#186280 Get pressure from Pneumaticcraft
Posted by
GamerNebulae
on 30 June 2014 - 06:07 PM
in
Ask a Pro
#185887 Need help with sensor door.
Posted by
GamerNebulae
on 27 June 2014 - 08:10 PM
in
Ask a Pro
#185865 Need help with sensor door.
Posted by
GamerNebulae
on 27 June 2014 - 04:43 PM
in
Ask a Pro
#185742 Need help with sensor door.
Posted by
GamerNebulae
on 26 June 2014 - 10:47 PM
in
Ask a Pro
#185690 IC2 + ComputerCraft
Posted by
GamerNebulae
on 26 June 2014 - 05:26 PM
in
Ask a Pro
#185682 IC2 + ComputerCraft
Posted by
GamerNebulae
on 26 June 2014 - 04:51 PM
in
Ask a Pro
#185677 help needed on program trying to get pnumaticcraft pressure
Posted by
GamerNebulae
on 26 June 2014 - 04:39 PM
in
Ask a Pro
pressure = rs.getAnalogInput(side) / (2/3)
#185662 help needed on program trying to get pnumaticcraft pressure
Posted by
GamerNebulae
on 26 June 2014 - 03:12 PM
in
Ask a Pro
valve = peripheral.wrap(side) --#Please change side to the side where the peripheral is touching the computer. print(textutils.serialze(valve.getPressure()))
#185646 help needed on program trying to get pnumaticcraft pressure
Posted by
GamerNebulae
on 26 June 2014 - 02:04 PM
in
Ask a Pro
#185638 help needed on program trying to get pnumaticcraft pressure
Posted by
GamerNebulae
on 26 June 2014 - 01:07 PM
in
Ask a Pro
print(textutils.serialize(pressure))
#185547 [SOLVED] String manipulation (Solution in post)
Posted by
GamerNebulae
on 25 June 2014 - 10:54 PM
in
Ask a Pro
#185533 Pulling Enchant Names from Enchanted Books
Posted by
GamerNebulae
on 25 June 2014 - 09:16 PM
in
Ask a Pro
#185532 Keyword Protected Door
Posted by
GamerNebulae
on 25 June 2014 - 09:15 PM
in
Ask a Pro
- ComputerCraft | Programmable Computers for Minecraft
- → GamerNebulae's Content


