Minecraft and Redstone Wiring
Posted: Fri Feb 17, 2012 12:21 am
Is anyone here familar with a popular indie game known as Minecraft?
Essentially the game is legos with a twist, you have to gather all your materials(IE wood, stone, iron, sand) and make them into other materials. One example would be burning sand to make glass. However I made this topic to talk about something that would probably be more appealing to you guys
Redstone Wiring!
Redstone is like the games "electricity" if you want to call it that. Essentially its all Boolean values. If a redstone wire is on, it holds true, if a redstone wire is off, it holds false. This allows you to make complicated machines and very basic computers inside of the game! The most i've done with it is made an image board that stores up to 3 16x16 pixel images. That may sound extremely basic, but its not Haha.
I knew about Minecraft and redstone way before I had an interest in programming. However after learning C# and programming in general I realized how similar redstone is to logic in programming. You can build AND gates, which check to see if 2 wires are on(or if 2 booleans hold true) and based on that input do something else.
Theres also OR gates, XOR gates, XAND gates, RSNOR latches and much more. All of which can be used to even build simple games inside of miencraft. The best working game i've seen was a pong clone, i downloaded the world in which it was in and it played flawlessly
Here is an example of what an AND gate would look like in Minecraft:

If both of those levers were on it would invert the torches and cause the output to hold true. If the output held true the piston would activate and move a block on top of it, if there was a block on top of it.
Anyways I felt I would share my newfound understanding of redstone wiring in minecraft and how similar it is to logic in programming. Minecraft is a great indie game and if you haven't bought it already you can find it at http://www.minecraft.net/
Essentially the game is legos with a twist, you have to gather all your materials(IE wood, stone, iron, sand) and make them into other materials. One example would be burning sand to make glass. However I made this topic to talk about something that would probably be more appealing to you guys
Redstone Wiring!
Redstone is like the games "electricity" if you want to call it that. Essentially its all Boolean values. If a redstone wire is on, it holds true, if a redstone wire is off, it holds false. This allows you to make complicated machines and very basic computers inside of the game! The most i've done with it is made an image board that stores up to 3 16x16 pixel images. That may sound extremely basic, but its not Haha.
I knew about Minecraft and redstone way before I had an interest in programming. However after learning C# and programming in general I realized how similar redstone is to logic in programming. You can build AND gates, which check to see if 2 wires are on(or if 2 booleans hold true) and based on that input do something else.
Theres also OR gates, XOR gates, XAND gates, RSNOR latches and much more. All of which can be used to even build simple games inside of miencraft. The best working game i've seen was a pong clone, i downloaded the world in which it was in and it played flawlessly
Here is an example of what an AND gate would look like in Minecraft:
If both of those levers were on it would invert the torches and cause the output to hold true. If the output held true the piston would activate and move a block on top of it, if there was a block on top of it.
Anyways I felt I would share my newfound understanding of redstone wiring in minecraft and how similar it is to logic in programming. Minecraft is a great indie game and if you haven't bought it already you can find it at http://www.minecraft.net/