Jump to content


Vliekkie's Content

There have been 17 items by Vliekkie (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#7149 Extremely Simple 3x3 ladder+tower builder

Posted by Vliekkie on 31 March 2012 - 05:32 PM in Turtle Programs

oh yah.. functions.. forgot that
BUT.. how to get it to not place something if u leave a slot open?
bum bum bum buuuuum



#6939 Extremely Simple 3x3 ladder+tower builder

Posted by Vliekkie on 30 March 2012 - 05:35 PM in Turtle Programs

I got a sugestion from Wolvan to create a program that builds a 3x3 thingy that has a ladder in the middle like this
And as a bonus the layout of the slots looks exactly the same.. gewd 4 sempl mynds :o/>

AXA A=Anything.. even air if u want to save blocks or keep it simple
ALA L=Ladder
SAA S=Startpoint.. it faces north according to this program X= Any block that a ladder can hold on to..

Here's the code

Spoiler


ENJOY!!!

Plz gimme props if you use this.. AND if you think this could be easier.. plz .. critisism is DEMANDED.. lol jk.. it would still be nice though..

heres a pic

Spoiler



#6921 Platform Builder

Posted by Vliekkie on 30 March 2012 - 03:53 PM in Turtle Programs

Same one as above... BUT this one stalls when empty until you refill at least the selected slot.. and press any button..

Spoiler



#6919 Platform Builder

Posted by Vliekkie on 30 March 2012 - 03:31 PM in Turtle Programs

Here's a NEW version that comes back to the start point when its done.. unless it runs out of blocks.. then it stops after a few more spaces

Spoiler



#6912 Platform Builder

Posted by Vliekkie on 30 March 2012 - 02:52 PM in Turtle Programs

Oh yeh.. Also..
Seem'd that it built 1 block too long.. so i made x=0 into x=1 Should fix it..
AND it doesnt say when it switches slots :S



#6911 Platform Builder

Posted by Vliekkie on 30 March 2012 - 02:46 PM in Turtle Programs

Ha.. cant u read!!.. im clueless.. and that aint nothin but tha truth mon'..
I'll play around some more.. and see what i can come up with..
Dont put any money on it.. Also vandie.. sorry pics are a kite that wont fly..
Im on a VERY limited broadband cap.. and in SA that means DL as little as possible and UL even less



#6514 Platform Builder

Posted by Vliekkie on 27 March 2012 - 05:47 PM in Turtle Programs

Howdey.. New to CC.. wanted to post this nifty platform builder i made.. took me 2 hours it did!!
Correct me where wrong
this has a WTFPL lisence

Check further down for new versions

Spoiler

critsize me hard..
even on spelling.. punsishment learns a person.. :o/>

EDIT: fixed a bug :o/>
EDIT2: New version Posted 30 march!
EDIT3: NEW NEW version Posted 15 minutes later on March 30!!!



#6513 (Question)Unable to get my platform program to work.

Posted by Vliekkie on 27 March 2012 - 05:28 PM in Ask a Pro

aaah i found it.. moved a end .. made it easier for myself by making it a bit easier to read

here it is dunno if it works yet
Spoiler

works great.. i just needed to add a turtle.placeDown() after the turns.

Woot.. time to create a superflat over a survival

ok.. stoped at a empty slot..
figured out turtle.selectSlot(slotNum) us WRONG..
use turtle.select(slotNum)



#6510 (Question)Unable to get my platform program to work.

Posted by Vliekkie on 27 March 2012 - 05:15 PM in Ask a Pro

Lol ok i made some adjustments.. (havnt checked the code that mystic T posted yet)
heres the new code
Spoiler

i added a x=x+1 and fixed some errors but now it runs in circles :o/>

EDIT.. haha thx mystic.. mind checking the new one.. i have a feeling one of my ends are totally misplaced



#6506 (Question)Unable to get my platform program to work.

Posted by Vliekkie on 27 March 2012 - 04:35 PM in Ask a Pro

Oh my.. i double posted..i double posted.. how silly
Can a mod just close the twin? plz and TY



#6498 (QUESTION) even or odd numbers

Posted by Vliekkie on 27 March 2012 - 04:22 PM in Ask a Pro

lol i tested it.. it works.. thx.. this is so much easier for me



#6494 (QUESTION) even or odd numbers

Posted by Vliekkie on 27 March 2012 - 04:07 PM in Ask a Pro

wont that just ONLY print odd if you inputed 2.. and even if you inputed anything else



#6493 (Question)Unable to get my platform program to work.

Posted by Vliekkie on 27 March 2012 - 04:04 PM in Ask a Pro

So.. I tried to create a program that builds me a platform at a ratio of 2:1
its not working.. can anyone take a peek and check if something is wrong?

Spoiler



#6492 (Question)Unable to get my platform program to work.

Posted by Vliekkie on 27 March 2012 - 04:04 PM in Ask a Pro

So.. I tried to create a program that builds me a platform a a ratio of 2:1
its not working.. can anyone take a peek and check if something is wrong?

term.clear()
term.setCursorPos(1,1)
print("Area?")
o=read()

o=b
a=tonumber(o)
b=tonumber(o)/2
x=0
y=0
s=1

while y<b do
y=y+1
  while x<a do
   turtle.forward()
   turtle.placeDown()
      if turtle.getSlotcount()==0 then
	  s=s+1
	  turtle.selectSlot("s")
	  else
    end

q=bit.band(y, 1)


    if q==("1") then

       turtle.turnRight()
       turtle.forward()
       turtle.turnRight()

    elseif q==("0") then


       turtle.turnLeft()
       turtle.forward()
       turtle.turnLeft()

end
end  



#6487 (QUESTION) even or odd numbers

Posted by Vliekkie on 27 March 2012 - 03:38 PM in Ask a Pro

Oh wait would i use this as

y=read() --your number
thenumber=bit.band(y,1)

if thenumber== ("1") then
print ("odd")

else if thenumber==("0") then
print("even")

end

?



#6486 (QUESTION) even or odd numbers

Posted by Vliekkie on 27 March 2012 - 03:34 PM in Ask a Pro

Ok.. i see it.. i feel it.. i memorized it..
BUT i dont get it..



#6480 (QUESTION) even or odd numbers

Posted by Vliekkie on 27 March 2012 - 03:07 PM in Ask a Pro

I'm not sure how I want to say this but..

Is there a way to make a If statement that will run one command when a variable is a odd and another command when the variable is a even

lets say ..

y=5
thenumber=tonumber(y)

if thenumber="odd" then

print("durp")

else if thenumber="even" then

print("not durp")
end


Plz pay no atention to spelling and the failure code up there..

I just want to know what I would use instead of "odd" and "even"

PS My english might be suckish...
Also.. how to I set something to be a spoiler.. i dont want anyone to read through the code if they already know what i mean..

hope there is something like this :o/>