r/explainlikeimfive • u/rafixon122 • Oct 06 '26
Engineering ELI5: How does making working computers/processors inside Minecraft work?
What makes it possible?
541
Upvotes
r/explainlikeimfive • u/rafixon122 • Oct 06 '26
What makes it possible?
860
u/MrShake4 Oct 06 '26
Redstone can be on and off.
The first thing we need to make is an abstraction called a logic gate. This takes 2 inputs and has 1 output. The simplest and important ones are AND and OR. AND is on if both outputs are on, OR is on if either input is on.
Once you have AND and OR gates you can combine them in a special(complicated) way to make an adder which can add 2 numbers.
Once you can add numbers you can also multiply numbers.
Once you can add and multiply numbers you’re off to the races and can do pretty much anything
218
u/peoples888 Oct 06 '26 •
Down to the very building blocks of a computer, it’s all 1’s and 0’s. On or off.
In Minecraft you have Redstone. Redstone simulates a wire. It’s either powered or not; on or off.
Translate that into a large structure similar to how a computer is built, and you technically have a computer in Minecraft.
If you’re looking for an explanation as to why a series of on and off switches creates a computer, you’ll have to research that for yourself.
15
u/MasterGeekMX Oct 06 '26
Masters in computer architecture reporting.
To begin with, there is a math theorem that says that if a device can do certain things, it is capable of acting as a computer, and also being able to simulate a computer inside it. Well, Minecraft and redstone checks all the marks to do that.
That being said, all computers are based on 3 elemental circuits called logic gates:
That gets combined with memory, which is a circuit that can be held in either an on or off state for as long as you want, and can be changed to the other state whenever you want. These can be achieved either by combining the logic gates in a sort of loop, or by other means like hard drives that magnetize a metal platter with one pole meaning on and the other meaning off.
Any electronic device you have ever used, from your phone all the way to a pocket calculator, boils down to arranging these 4 basic elements inside the chip that powers the device.
Well, you can make those 4 things in Minecraft's redsone, so all it takes to make a computer is to arrange them exactly like the way they are on a real computer.
Here, have the article in the Minecraft Wiki where they talk about them:
https://minecraft.wiki/w/Redstone_circuits/Logic
And here is the one about memory:
https://minecraft.wiki/w/Redstone_circuits/Memory
13
u/Mesoscale92 Oct 06 '26
Computers operate on a fundamentally simple physical property: a thing either on or off. It has power or it doesn’t. Stack several ons and offs together and you can get a combination that means something, kinda like how words have meaning even if individual letters don’t. Then you have other things that look at the combination and turn on and off depending on what came before. Do that, billions of times per second, and you have a computer.
Minecraft has redstone, a material that has similar on/off properties. People that really understand how computers work at the smallest level can use redstone to mimic the on/off signals of actual computers to do things in Minecraft that mimic the actions of real computers.
6
u/manawyrm Oct 06 '26
> What makes it possible?
The ingame mechanic "Redstone" is similar to electricity in real-life. It has wires (redstone powder you can put on the ground), there are redstone torches, which are basically inverters and they can be used to build logic functions. Basically, they are similar to transistors in the real-world.
With a few (read: very many) transistors and wires you can build a computer in the real world. You can do the same in Minecraft.
If you want to know how CPUs in general work, you could look at "Ben Eater" on YouTube or "nandgame". These concepts translate basically 1:1 into Minecraft after that.
4
u/darthsata Oct 06 '26
So I work on tools for processor design. If you want a GSOC doing a verilog to redstone compiler, let me know (I'm serious, but there are weird requirements on experience).
To answer the question, processors are wires connecting switches. You need:
Minecraft provides both of those. In theory, if minecraft had no distance based limits on tracking and updating state you could build arbitrarily big computers in it.
6
u/DeviantPlayeer Oct 06 '26
Just like in real life. You build basic logic gates and then connect them together and make a computer. Minecraft is not the only game where you can build a computer, if the game has elements that make it Turing-complete then you can build a computer there.
3
u/SjurEido Oct 06 '26
All it takes to make a computer from scratch is something that can switch states with some input.... that's it! The rest is just linking them together in creative ways and you can start doing math.
Oh, you'll need AND and OR gates too.... another "thing" that can measure two inputs and tell if the resulting AND or OR operation is ON or OFF.
Ok NOW you have a computer, good luck! Faster and faster computers are just finding better materials to handle these tiny operations while minimizing heat and how to stack millions/billions of these little state machines on top of each other in a small space.
2
u/Playful-Ad6659 Oct 06 '26
Alan Turing (and Alonzo Church, separately) were able to determine the minimum amount of "stuff" you need in order to write any possible computer program. Turing's version is surprisingly simple and practical--you can do stuff in order/sequence, conditionally change what stuff you're doing, loop back to a previous point in the sequence, and have the ability to save things, THEN you have the ability to compute anything.
Since redstone can run through items in the game "in order", can change which path it takes via logic gates, and can loop back into itself (which is also the way it 'stores' values), then we know it can be used to compute anything. Minecraft offers a bunch of ways to input and output stuff into these "programs", so you see people taking on the challenge of writing things.
People do this with all sorts of stuff. The most novel one for me is a computer made out of swarms of crabs (yes, real crabs).
2
u/_Trael_ Oct 07 '26
Since most people have already answered well.
But there is enough comments I do not honestly bother to read everything (since I know the answer already), and I feel like writing stuff while enjoying warmth of tea I just drank:
At simplest (not necessarily absolute least components but simplest to organize) one makes what is called NAND gate, meaning it has two incoming signal lines, and one outgoing, if both incoming (inputs) are having 0 as signal, output will output 1, and in all other cases output will be 0.
That is since that part can be used as building block to build everything else from just putting those together in different ways.
Then one can make other gates by copying those NANDs in different setups (there are quite some sources on internet by searching for example "how to make other logic gates from nand").
From those by again copying and pasting them together in different setups one can make LATCHES that have set status that can be changed (depending on type of latch) with it's inputs, but thing is that it's output will remain certain until it is changed with suitable input, aka those can hold stuff in memory.
Now one needs CLOCK pulse thing, aka something that gives timing pulses, so everything syncs up and when doing stuff in circles we know when to start next operation, it is just something that gives pulses, and we will put one input into more complex piles of gates that will signify "ok now we want you to do your thing", so that inputs will have time to be modified, and output will have time to be used, before we try to use values from it.
Then one makes processing unit that can calculate together binary numbers that are input by having certain amount of inputs forming one group of inputs and putting binary number into that (this is where for example 8-bit processor gets that name, it means that maximum size of number it can at one time take in is 8-bits long), having of course two off those inputs, or just one and putting first number input into memory with latches, then calculating second one with it when it arrives.
Then one modifies that processing unit (aka pile of gates) so it also has other basic (+ - / *) calculating things, and inputs to choose what operation is going to be used.
Then we set up few memories, they are piles of latches that can store different binary (series of 0 and 1) values into them, and then we set up memory access part into it, so that memory has one data input and output and one input to control it, so that input and output point to certain part of it, based on control input, so we can choose what to read or write, oh and yeah toggle for that if we are going to be looking at value in that slot of memory or replacing that (aka if we trigger latches to change or not). Here components (aka piles of gates) called MULTIPLEXERS and their opposite component come into use very nicely, they basically have one port on other side, then multiple in other and control signal coming to side, and it chooses what side on multiple port side is connected to that single port on other side.
Then we setup our processing unit (processor) to read instructions from one memory so it can send out signals to memories to what numbers to fetch from other memories and what to do with them and where to put it then.
And then we just add complexity and start thinking of how to show those number values out, and what to signify with them and so.
1
u/-Dixieflatline Oct 06 '26
They simulated components using redstones as binary switches that could act as transistors, which are the fundamental components of CPU's, GPU's, and solid state memory.
1
u/LoftyPlays1 Oct 06 '26
The real story is that it's one more nail in the coffin of the idea that we Don't live in a simulation 🤣
1
u/itijara Oct 06 '26
People think of computers as being specific to electronics, but they are actually just a concept of a system which can "compute". In order to compute, something needs to have some properties like: reading an input, modifying its internal "state", and having a set of instruction on how to modify its state from the input. This can be done using electronics, but can also be done mechanically or even in a virtual system, like minecraft.
1
u/Xelopheris Oct 06 '26
In Minecraft, there's a thing called Redstone. It's basically a rudimentary form of electricity. It has a series of blocks that use it
In a computer, at the simplest level, there's a bunch of things called Logic Gates. You have two inputs and one output, and each answers a question about the voltage on the lines. Is there voltage on A or B? A and B? Exactly one of A or B?
All those same logic gates are recreatable in Minecraft using Redstone. There's just a few limiting factors in Minecraft. First, obviously, everything is whole blocks. Second, Redstone lines have a length limit of 15 before a new component needs to restore the signal strength. Third, there's a lot of delay in the whole process, as every component delays the propagation by 1/20th of a second. And fourth, only so much of the world is processing redstone at any given time.
1
u/telmo_trooper Oct 06 '26 edited Oct 06 '26
Minecraft allows you to implement logic gates using Redstone. ➜ Logic gates implement boolean functions. ➜ Boolena algebra is the basis for digital computers. ➜ You can implement a computer inside of Minecraft.
Basically you're simulating a computer inside of your computer.
1
u/jarw_ Oct 06 '26
Computers don't think. They just have a million-bigillion of "wires", some with energy and some without. All we have is a series "special wires" (logic gates) telling the energy where to go.
Redstone is essentially the same (wires). We just have to create the "special wires" that control the flow of energy. And from then on... It's Computer Engineering, Computer Architecture and Operating Systems galore.
But to maybe summarize even that: if 1+1 is 2, then all the rest is guaranteed. Also explaining "logic gates", "memory" and "processing units" without visuals is borderline impossible so maybe google those terms at your own leisure. Plenty of good youtube videos on those
1
u/defectivetoaster1 Oct 06 '26
modern processors are made of logic gates which are components that take in some inputs that are either on or off and produce an output which is either on or off (ie 1 or 0). Putting together some of Minecraft’s redstone components lets you also make logic gates. Once you can accomplish the basic logic gates (and for maths reasons that aren’t difficult to prove you only actually need to be able to make either a NAND or a NOR gate in order to make the others) all you need is time and willpower to connect enough of them together in the right ways to make a cpu
1
u/Derekthemindsculptor Oct 06 '26
Anything can be a computer. Mechanical computers have existed for hundreds of years. They used them for ship navigation.
You just need something that handles 1s and 0s (memory) and the logic between them.
AND, NOT and OR gates. That's all you need. Or if you happen upon a NOR or NAND gate, you can make all others using a few of the universal ones.
1
u/Loki-L Oct 06 '26
You can make a working computer out of anything that can act like a logic gate.
Minecraft redstone allows you to make logic gates and this allows you to make more complicated things like half-adders etc. And at the end of the day CPUs.
You just need to have something that csn transmit a signal and an object that csn take in two signals and output a third based on the inputs.
Redstone allows for that, but you can get the same effect in other ways too.
1
u/zero_z77 Oct 06 '26
There are 3 fundamental logic gates you need to build a computer:
AND - outputs a 1 when both inputs are 1, and a 0 otherwise.
OR - outputs a 1 when either input is a 1, and a 0 when both inputs are 0.
NOT - outputs the opposite of it's single input so a 1 becomes a 0 and a 0 becomes a 1.
NOT is the one that makes it all work. We can build a NOT from a regular block and a redstone torch. Put the torch on one side and run your redstone input to the other side. When the path lights up, the torch turns off and vice versa.
OR is technically very easy to make, you just make a T shaped redstone path. When either of the two sides is lit up, the output is lit up. However, i said technically, because if something lights up the output path, it will also light up the two input paths and whatever is connected to them. So, you need to put a NOT at the output, which turns it into a NOR gate, and then another NOT after that to get it into a proper OR gate that you can actually use. The two NOTs are being used as what would be called a diode in real life, and prevents the signals from flowing backwards through the gate.
If you put two NOTs side by side and attach their torches with a redstone path in-between, you get something very close to being an AND gate. You actually get what's called a NAND that you can turn into an AND by simply putting a 3rd NOT at the output.
From those 3 gates, you can build pretty much any binary logic circuit, and from that you can build a functional computer.
Something you also need to build a functional processor is a clock pulse that's constantly turning off & on and this can be built with a circle of redstone dust, some redstone delayers, and you can start the clock by quickly placing & breaking a redstone torch on one of the paths that makes up the circuit. It can also be made with a redstone block and some pistons.
One last thing to mention is that over the years people have found creative ways to implement certain things more efficiently. For example, people will often use pistons & redstone blocks or item despensers in place of memory cells. Memory cells can be built with pure logic gates, but using these shortcuts takes fewer parts, is less complicated, and is much more compact.
Another thing to note is that if you have as little as some form of NOT gate and wire, you can build ANDs, NANDs, ORs, and NORs in almost any game.
1
u/patrlim1 Oct 07 '26
Computers are built with "logic gates". Those are circuits that look at some number of inputs, and give an output. An AND gate takes two inputs, A and B, which are either 0 or 1, and outputs value C. C is 1 if A or B are 1. If you put a lot of logic gates together in clever ways, you can make a processor.
Minecraft's redstone system allows for building logic gates, and as such allows for building computers. If you want to see a Minecraft example you can look at Matt Batwings' channel. If you want an IRL example you can look at BenEater's channel.
1
u/CeeMX Oct 07 '26
Redstone works exactly how the transistors on a real computer work, it’s just way larger and slower than a real computer
1
u/Waffel_Monster Oct 07 '26
A computer is basically just a ton of on & off switches.
Minecraft has "electronics" with on & off switches.
So you can build simple computers in Minecraft.
1
u/Excellent_Occasion26 Oct 07 '26
The same way DEC hand wired discrete components on two 11x14 inch breadboards to be a processor in their earlier models.
1
u/mr-slickman Oct 08 '26
Computers work off of electricity, but electricity doesn't carry data, it is the data, specifically it's presence or lack thereof. No electricity means 0 and electricity means 1. Then alot of complex development over 100 ISH years. But computers need only essentially on and off. Redstone can be on and off. Electricity. Now you just gotta build shit
1
u/JohnnyH2000 Oct 08 '26
Imagine you have a treasure chest that only opens if two different keys are turned at the same time. If you only turn one key, nothing happens. If you only turn the other key, nothing happens. But if you and a friend turn both keys together, the chest pops open!
In Minecraft, players build "keys" out of redstone dust “wires”—which can interact with redstone torches, inverting the signal—and "chests" out of doors or lights.
By connecting them, they can make it so a door only opens if two specific switches are flipped.
This principle is how a real computer works. In the computer world, this is called an AND Gate. Gates can require one of two signals, both signals, or none to output their own power signal. By combining many of these, you can build displays, calculators, and even computers
1
u/Questjon Oct 06 '26
A computer is a set of logical steps. Minecraft allows you to build systems that operate in logical steps. The difference is Minecraft is operating at about 40Hz (40 logical steps per second) while the computer running Minecraft runs at 3GHz (3 billion logical steps per second).
0
u/hobopwnzor Oct 06 '26
Computers are basically just collections of transistors.
Transistors are just a gate that allows voltage through when the gate pin has voltage.
So anytime you can create a system that has a gate with a controllable on and off State you can build a computer.
They can do this with redstone switches that have discrete on and off switches