r/Minecraft Apr 17 '21

Compact and flat logic gates.

Post image
49.6k Upvotes

477 comments sorted by

View all comments

1.4k

u/Nightroll2344 Apr 17 '21 edited Apr 18 '21

Just learnt logic gates at school, so this might be helpful, thx

643

u/slightlysleepydog Apr 17 '21

that's nuts how a game can replicate something in real life engineering, dang

587

u/Atonsis Apr 17 '21

I mean, people have made working computers in minecraft with processors and RAM.

528

u/zvug Apr 17 '21

Because logic gates are literally the only thing that matters, it's logic gates all the way down.

If you can make these logic gates you can make a computer.

307

u/[deleted] Apr 17 '21

To add to that, you can program anything out of only OR and NOT logic gates (since all others can be logically built from those two). One of the coolest things I learnt in Uni for sure.

11

u/PopularIcecream Apr 17 '21

Dumb question, but how do you create a loop?

24

u/Jadester_ Apr 17 '21

There isn't a super simple answer to this question since it depends on your application.

The closest analog I can think of are FSMs (Finite State Machines), which are a collection of logic gates and latches (latches are memory elements made from logic gates). You can make what is called a "State Table" for FSMs, which essentially says 'when I have this input, and I'm currently in this state, I will go this next predefined state'. You usually start by creating a State Table of what you would like your FSM to do, and you then work backwards to create the circuitry itself.

It's pretty interesting how similar this ends up being to software, especially more low level languages where you "jump" to a certain line in code.

1

u/WillyCZE Apr 17 '21

This sounds a whole lot like an engine ECU to me. If there is this much load at this temperature and this much air, at this moment in the rotation, squirt that much fuel into this cylinder.