Sunday, December 21, 2014

Merry Christmas from the Filbin Files

I have just posted my Christmas special...a twinkling Christmas Tree built in the Direwolf20 modpack.



Also, I'd like to share the ComputerCraft code used in the build:

i = 0
while i < 900 do
rand = math.random(1,4)
if rand==1 then
redstone.setOutput("left", true)
end
if rand==2 then
redstone.setOutput("back", true)
end
if rand==3 then
redstone.setOutput("right", true)
end
if rand==4 then
redstone.setOutput("top", true)
end
print(rand)
i = i + 1
sleep(1)
redstone.setOutput("left", false)
redstone.setOutput("back", false)
redstone.setOutput("right", false)
redstone.setOutput("top", false)
end

No comments:

Post a Comment