Basic Logic Gates & Functions! (Scrap Mechanic Logic Tutorials #01)

Поділитися
Вставка
  • Опубліковано 25 січ 2025

КОМЕНТАРІ • 221

  • @kANGaming
    @kANGaming  7 років тому +85

    Hey everyone I know this tutorial will be very simple for a lot of people but I wanted to start with the absolute basics before we move into more advanced concepts! If you have specific things you need help with make sure to post them in the comments below!

    • @depressoespresso2294
      @depressoespresso2294 7 років тому +2

      kAN Gaming plz do a timer function like the one you use on multiplayer mondays

    • @EJEvers
      @EJEvers 7 років тому +1

      hey kAN you inspired me to do more logic and now I've taught some basic logic

    • @TheZiiFamily
      @TheZiiFamily 7 років тому +1

      kAN Gaming clocks?

    • @skillzmcgee8013
      @skillzmcgee8013 7 років тому +1

      I have a challenge for this; rule one must use one of each logic gate rule two is that the system MUST work and do something useful.

    • @layneholtz1462
      @layneholtz1462 7 років тому

      kAN Gaming thanks kan so much this will help me alot

  • @pot8o_penguin
    @pot8o_penguin 7 років тому +30

    Yes! I have been waiting for this! The other tutorial that I really want to see is how to build a stable flyer without glitches.

  • @dogmilk7609
    @dogmilk7609 6 років тому +24

    Thanks kAN, now I know how to build a door with switches on both sides, and not a hole with one switch!

  • @danielgulbransen8476
    @danielgulbransen8476 2 місяці тому

    Oh man, I didn't watch this when it first came out 7 years ago, but your video has now given me the ah-ha moment I needed with your explanations of the simple logic gates. I've studied logic gates in the past, but it's been so long that I didn't remember exactly what each of them did. Here I am frantically searching for a way to make my start gate for a hide and seek map work, making it super complicated, and then I find your video and hear you explain the XOR gate... I found myself doing a mental facepalm at only needing a single logic gate to make it work. I was trying to incorporate a T flip-flop and some other shenanigans when all I needed was the single XOR gate. My brain sometimes.... I can very easily do high-level language programming, but simple logic switches have a weird ability to tie my brain into knots.

  • @DeltaKT
    @DeltaKT 7 років тому +18

    YAY! I literally made me some popcorn for this video!

  • @scrapheap339
    @scrapheap339 5 років тому +2

    I found the XNOR gate really useful for making a combination lock (comparing the correct code in binary to the entered one) It made it much simpler than using a million other gates. Great vid by the way :).

  • @predur4136
    @predur4136 4 роки тому

    I studied automation and logic gates a billion years ago, and although I have always been attracted to it, in my professional life I have never had the opportunity to apply or expand my knowledge, now that the survival of scrap mechanic has come out and I I am aware of how ignorant I have become on the subject, I am very pleased that you are trying to teach something to us poor wrecked in space .. thanks for the tuttorial, I will try to apply this and the next videos in the best way to automate my farm .

  • @cameronfink7325
    @cameronfink7325 7 років тому +12

    I have a twist for a multiplayer Monday video, have some sort of randomiser that points to different times and the person who activates it has to use the time given to him to build a creation to the theme. Sound cool?

  • @buccaruu
    @buccaruu 4 роки тому +1

    Now that scrap survival is up and running request you revisit this as some of your builds are great but some of us are novices. Love your work. Keep it up.

  • @theteaboy8839
    @theteaboy8839 2 роки тому

    This is gonna help me out so much! So here's to leaving a like and comment on every episode in the series :P

  • @VKURDR
    @VKURDR 5 років тому +2

    Thank you.
    thank you.
    thank you.
    (I know this video is old but still...)
    You keep giving me great ideas and knowledge of the game, and kind of how real life things work.

    • @HotSurprise1982
      @HotSurprise1982 4 роки тому

      It still helps me :D

    • @Melvinthecat12
      @Melvinthecat12 3 роки тому

      It got me in to scrap mechanic logic games you can find one at 1 player game (NO MODS)

  • @zenniththefolf4888
    @zenniththefolf4888 4 роки тому +1

    XOR is also good for doors, like piston doors or bearing doors.
    You can always open and close the door from either side, no matter what switch is active at any time.
    Just saying this for beginners who may be new to this stuff. This is especially good for the new survival.

  • @isaacmiles-watt2758
    @isaacmiles-watt2758 7 років тому +1

    Any logic can actually be constructed with only NOT and OR. I would like to see that in some game!

  • @Toastryan
    @Toastryan 3 роки тому +1

    just made my first circuit! thanks for the help!

  • @eazygfx4815
    @eazygfx4815 19 днів тому

    Xor is also used in homes, for lighting on the lower & upper part where you can turn on/off borg from downstairs & upstairs

  • @TheAlmostKingOfPotatoes
    @TheAlmostKingOfPotatoes 7 років тому +1

    kAN I'm glad you're doing a tutorial on this as when I started scrap mechanic learning the logic part was really hard and took a hell of a lot of hours searching round for decent tutorials. From my experience of learning though I can tell you what really helped me understand it more. (I already understood basic gates but combining gates together confused me) Watching your stream hoping to find some info on logic and you briefly explained a memory bit, this was the most confusing aspect that I saw everywhere and understanding that is like the key part of most logic systems so going in to depths with it would be useful especially if you do some good examples. As in a simple one (maybe using lights) and a complex one such as an elevator, I believe if you do this people just learning it will have a comprehensive understanding of memory bits and will then have enough information to make a few logic creations.
    Also you could go into a few uses of sensors with logic as that's a useful skill.
    Personally to learn how to utilise logic I just created a empty world and have added to this platform with uses of logic increasing in difficulty and I think if you was to do this throughout the series and upload the platform to the workshop people would have a nice thing to spawn in in case they forget something or get confused.

  • @justiceworthington6483
    @justiceworthington6483 4 роки тому +3

    THIS HELPS SO MUCH, THANK YOU!!!!!

  • @isaacgriffith2388
    @isaacgriffith2388 7 років тому

    man those logic gates are LITlol

  • @Krebzonide
    @Krebzonide 7 років тому +6

    I think an easier way to explain the xor gate is to say that if there is an even number of inputs it is off and if there is an odd number of inputs it is on. This way it works for more then 2 switches.

  • @sigurdastor778
    @sigurdastor778 7 років тому +15

    Can you show, how to make a ticking timer in the next video?
    Great video btw

  • @UdDReX
    @UdDReX 7 років тому +14

    I watched ur elevator video a lot, literally i jst get messed up at middle andi jst never understood ur logics copletely in elevator. cn u plz explain all the bits and memory concept u used in elevator n make if possible teach how to make 4-5 storage elevator.

  • @jonathanclark7444
    @jonathanclark7444 6 років тому

    The xor is very useful for things like a door with a switch on either side because no matter what when one switch is toggled it toggles the position of the door

  • @salmonsashimi8.9
    @salmonsashimi8.9 Рік тому

    never knew how much i missed that intro

  • @colbablast6579
    @colbablast6579 7 років тому

    I even made a computer with a 8x8 screen and 64 memory bits, that could read & write memory, and It was full of connections. I would love to see a video on a computer that you made.

  • @shukhambalie3936
    @shukhambalie3936 6 років тому

    So it just the same with the get logic system in a Computer Science that I learned.... What a complex game... I like it.

  • @emeraldgltch
    @emeraldgltch 4 роки тому

    I love your vids thank you so much for making this!

  • @blacktownshadow
    @blacktownshadow 3 роки тому +1

    look at the old sm animations and designs! i feal so old now cause i remember theese!

  • @tinted5129
    @tinted5129 7 років тому +6

    I understand logic a lot more now, Thanks kAN

  • @leec2106
    @leec2106 Рік тому

    I have been watching you doing the game Scrap Mechanic, I liked it so much I bought. I am having fun (all but the going to bed at 3am 2 nights it row.).
    I just watch your basic gates, you did a landing gear. I am trying to get a 3 position of the lever, any ideas on how to do that, left, right, middle?
    Lee

  • @skillzmcgee8013
    @skillzmcgee8013 7 років тому +4

    I just realized that on almost every youtube video the title is in most or all caps but not these videos

  • @creativfoxdev
    @creativfoxdev 7 років тому

    Hello! Good to here you!

  • @TheMalkavianPrince
    @TheMalkavianPrince 4 роки тому

    kAN: it's really simple!
    my smooth brain: fUcKiN fItE mE bRo!!

  • @black_holeytb762
    @black_holeytb762 Рік тому

    Thanks you for this i love your videos

  • @shard7572
    @shard7572 6 років тому

    Scrap mechanic combo locks are much compact than minecraft combo locks XD

  • @patrikbenes9724
    @patrikbenes9724 3 роки тому

    thanks, i play scrap mechanic a lot

  • @rokzavrl8411
    @rokzavrl8411 5 років тому

    can i do bearing to move in one direction when prssing the button? to rotate a pipe for example to one direction when pressing the button and when you stop holding the button down bearing stays in position where u left it?

  • @adriantrans-amgta5981
    @adriantrans-amgta5981 5 років тому

    U can use the xor gate and switches for a door.

  • @rohun7867
    @rohun7867 7 років тому

    Can you make a video where you use Logic blocks in one area to do something but in the other area useing sensors and controllers to make it more compact.

  • @princesssarragozza1735
    @princesssarragozza1735 7 років тому

    You can make this in Minecraft and the xor gate is used to make doors right?

  • @Pasloooo
    @Pasloooo 3 роки тому

    Dude how i can make my W and S button work like A and S buttons when in vehicle? Like i have put electric motor to bearing and then cameras to see when it turns, but i want it to come back to neutral position :D

  • @ath0rus
    @ath0rus 6 років тому

    I was trying to make an elevator with a call button. I found with this video it was xor I had to use Thanks for the help

  • @pitur124
    @pitur124 5 років тому +3

    make rapid fire spud gun pls i very need it

    • @raindio7169
      @raindio7169 5 років тому

      easiest way is to spin a pipe piece by a normal sensor

    • @pitur124
      @pitur124 5 років тому

      @@raindio7169 no its very laggy for me and it annoys me

  • @Imcheap.af1
    @Imcheap.af1 10 місяців тому

    Can you make a challenge builder tutorial?

  • @skillzmcgee8013
    @skillzmcgee8013 7 років тому

    (Referring to the nand gate) so if I had a nand gate into a timer then it goes to another timer which is attached to another nand gate and have two switches attached to the first nand gate then a button attached to the first nand gate and a timer with the same time length as the other gates it would store the time the button was off in the timers There for giving a small amount of time for you to reach an area in that time like a door or a crusher something like that I think I made it to complicated but that's what I got so do with this information as you please

  • @teiroberts5330
    @teiroberts5330 7 років тому

    Great video kAN i also love logic and programming in c++ btw 101 in binary means 5

  • @redpug5042
    @redpug5042 4 роки тому +2

    RIP beginners in logic, with the new update it doesnt tell you what the different gate types do ):

  • @dubl33_27
    @dubl33_27 7 років тому

    Could you show us how logic gates and timers were made when they weren't in the game?

    • @pipledo5615
      @pipledo5615 6 років тому

      Dubl33 in his old vs new logic gates he shows them

  • @lucaspereira7357
    @lucaspereira7357 6 років тому

    I love your work it is so amazing and makes my day! Only question i have is what is scrap mechanic..

  • @steamtrainlover107
    @steamtrainlover107 6 років тому

    seems like the gate systme is slightly simular to minecraft ofcours differnet looksand some different pratices becase minecraft u have to esemble the gatesurself where scrap mechanic is prebuilt
    and ofcourse variosu gliches may be different but the logic of logic gates makes perfect sence to me because of how i had played a phew years worht of minecraft and in that time knew some redstone

  • @garbuckle3000
    @garbuckle3000 7 років тому +1

    I've seen (and used) the memory bits, but I still don't understand how to get them to reset properly (no pulsing) when you take something off a lift. I look forward to that future video

    • @colbablast6579
      @colbablast6579 7 років тому +1

      He has answered that question, and it is just a and gate connected to a nor connected to a xor and a timer (1 tick) and the timer connected to the xor gate.

    • @TheAlmostKingOfPotatoes
      @TheAlmostKingOfPotatoes 7 років тому

      Theres a simpler way using a singular and gate. Connect your NOR gate (that turns it on) & OR gate to the AND gate then the AND gate to the NOR gate(that turns it off).

    • @garbuckle3000
      @garbuckle3000 7 років тому

      Thanks. I'll have to try and see if it works for what I want (resetting a gear-shift), but I'd like to understand why it would work. I understand logic gates separately, but a bunch together is confusing. I hope it'll all make sense in a future video.

  • @aidyplays1013
    @aidyplays1013 5 років тому

    so, if i had different buttons laying around, would i be able to make a room where you have to find all the buttons for the door to open?

  • @DentalonRocks
    @DentalonRocks 7 років тому

    Can you make a kind of cijfer code with it. Like push the first button 3 times the second button 5 and so foreward

  • @yogurisimoarg
    @yogurisimoarg 4 роки тому

    Hi, Do you have a tutorial for created turret defense?
    thanks

  • @sontaya7772
    @sontaya7772 6 років тому +1

    Just found this video and I just wanna make a GIPSY!!!

  • @x3-LSTR-512
    @x3-LSTR-512 6 років тому +1

    MM idea ok it's a bomb race around a maze there are bombs and one side has to find a bomb and activate it while the other side defuses

  • @leonliu3817
    @leonliu3817 4 роки тому

    Thank you for making this video. I am a new player. Is any good player can teach how to make the car backing up? I can make it turn left and turn right and go straight only. Thank you

  • @RestartedRio
    @RestartedRio 4 роки тому

    Can you help me on how to use the part spawned from Durf’s modpack? Please?

  • @aussiewater
    @aussiewater 6 років тому

    Very useful thank you :D

  • @spencerkurtz988
    @spencerkurtz988 7 років тому +1

    Did you play Carried Away? i saw kAN in the leaderboard

    • @kANGaming
      @kANGaming  7 років тому

      Yes LOL I'll be playing it a bit on the channel sometime soon :D

    • @spencerkurtz988
      @spencerkurtz988 7 років тому

      Cool :D

  • @johnthespeeder8846
    @johnthespeeder8846 4 роки тому

    How do I make a reverse switch? (when the switch is off it's as if it's on and same vice versa)
    I need to know the for a farm defence in survival
    edit: nevermind I just need to hook a switch to a nand gate and hook the nand gate to what I what a reverse switch for

  • @austinpavs6479
    @austinpavs6479 6 років тому

    you should do a seires called logic buddies and see if moonbo camodo and scrap man can logic

  • @stiky5972
    @stiky5972 6 років тому

    Is there a "If this ______, then do _______" type of circuit?

  • @nxtx7428
    @nxtx7428 5 років тому

    ive been trying to learn this game id love to play with you

  • @fresh7995
    @fresh7995 7 років тому

    Thank you that really helped

  • @stefanos-theodoridis
    @stefanos-theodoridis 6 років тому

    teach us how to make a detachable cable car

  • @Littlespooby
    @Littlespooby 4 роки тому

    I try to test your little examples in my games and they just don't work lol. Connector won't connect em'

  • @JesseChapman82
    @JesseChapman82 4 роки тому

    Please make it make a video of you making a like a thing that flashes and scrap mechanic cuz that's what I need because I'm I just made the bus right and I'm going to put some mountable spot guns and I need them the flash so I turn on the lever then what will do it'll just make it keep turning off and on and off and on to just keep going thank you

  • @mattkim683
    @mattkim683 4 роки тому

    How to build a working tank turret that can turn

  • @sseererr
    @sseererr 7 років тому

    Kan loves science

  • @danielhayun304
    @danielhayun304 7 років тому

    How can i make a button that acts like a switch but it can only turn on something and there is another button thats turn it of.

    • @fatemonkey
      @fatemonkey 6 років тому

      susi the sus aynHu
      You've probably either figured it out by now or given up, but in case you still need to know, look up the SR Latch.

  • @rcpd33
    @rcpd33 5 років тому

    I learned what these gates were in bomb squad academy (steam game)

  • @diaryofagamer-gl1bz
    @diaryofagamer-gl1bz Рік тому

    i love you're video's

  • @its_me_cal
    @its_me_cal 4 роки тому

    Super helpful!!!

  • @John-ci2sd
    @John-ci2sd 3 роки тому

    What are logic blocks for in piston engines

    • @Melvinthecat12
      @Melvinthecat12 3 роки тому

      Is`s for on/off

    • @John-ci2sd
      @John-ci2sd 3 роки тому

      @@Melvinthecat12 why not use the sensors and timers instead

  • @tryinghugo2468
    @tryinghugo2468 6 років тому

    How do you make something repeat

  • @archiesimpson9112
    @archiesimpson9112 7 років тому

    build a lift with logical blocks

  • @corruptlem0n868
    @corruptlem0n868 6 років тому

    Isn't a xnor gate gust a turned,on and gate

  • @lolmantis5381
    @lolmantis5381 7 років тому

    how do you make memory?

  • @saddleview80
    @saddleview80 5 років тому +1

    WHY JUST WHY
    IS THERE NO XNAND GATE

  • @adriantrans-amgta5981
    @adriantrans-amgta5981 5 років тому

    Try making the ultimate lego machine in scrap mechanic.

  • @yulu8585
    @yulu8585 4 роки тому +1

    By my brain cells

  • @crystaldragon6215
    @crystaldragon6215 7 років тому

    R.I.P ScrapMan [*]

  • @stewartdaily7906
    @stewartdaily7906 6 років тому

    How do you make loops

  • @DogeisCut
    @DogeisCut 6 років тому

    man i know logic very well

  • @adriantrans-amgta5981
    @adriantrans-amgta5981 5 років тому

    How do you make a not gate?

  • @logicbuilder1204
    @logicbuilder1204 5 років тому

    You can also use the xnor for '' if one thing is the same as another' if both are off turn on if both are on if both are on.

  • @fabled_banana4363
    @fabled_banana4363 7 років тому

    where is scrap man's chanel? it says his chanel is deleted

  • @Wldrness
    @Wldrness 7 років тому

    So basicly logic is like redstone in scrapmechanic

    • @mho...
      @mho... 7 років тому

      no, redstone is a waaay more basic logic system!

  • @mansolofsson3038
    @mansolofsson3038 4 роки тому

    Can you do how to build a randomizer video plz

    • @kANGaming
      @kANGaming  4 роки тому

      In the modpack there is a math block which has a random function in it which generates a random number between 0 and 1.
      In vanilla it is a bit harder but can be done with sensors and a spinning rod that only covers 1 sensor at a time. Hit 1 rod with another one and the physics creates a sort of random selection

    • @mansolofsson3038
      @mansolofsson3038 4 роки тому

      I'm building a new timer and need help to know randomizer whiteout mod

  • @ree_kid6980
    @ree_kid6980 7 років тому

    Make a roof on the sky boxe then it is dark

  • @arhaam1390
    @arhaam1390 3 роки тому

    the most useful gate is nothing but a transistor(not in scrap mechanic)

  • @marcelazipaj-miskova7660
    @marcelazipaj-miskova7660 6 років тому

    hou to do a auto repeat time?

  • @auroralshine6176
    @auroralshine6176 4 роки тому

    Alright, can anyone congrats me for making a 4 switch password door with the help of logic gates for the first time even tho I don't know how to use this stuff like a master?
    How it works? The door will only work when the 4 switches are turned on, it neither works when all are turned on, nor when any other than the 4 switches is on ... Plz

  • @patrickdonovan5049
    @patrickdonovan5049 7 років тому

    Where is scrap man. His channel says it’s no longer available

  • @cg-matt
    @cg-matt 7 років тому +1

    Can you make a toggleable sequencer?

  • @joshuaterry5400
    @joshuaterry5400 7 років тому

    What happens to scrap man I click on his channel and it says it doesn't exist

  • @Evercreeper
    @Evercreeper 3 роки тому

    0:53 *ding!*

  • @spawnnumber2126
    @spawnnumber2126 3 роки тому

    Everything looks WAY different now in 2020-2022

  • @garrisonstewart740
    @garrisonstewart740 7 років тому

    HOW TO make body sensors

  • @meganantis100
    @meganantis100 7 років тому +2

    10th love you kan keep up the great work!