logicgates.js tutorial

im gonna make a thread on how to use logicgates.js rq
76 Replies
nousernamefound
nousernamefoundOP2y ago
Step 1: Place the gates themselves. For example, to make a full-adder, you need 2 XOR, 1 OR, and 2 AND. Step 2: Plan the connections. Is your diagram simple enough to use wires or is it too complex and needs wifi to avoid intersections? Step 3a: If you are using wires, make inputs with wire - E2L Lever - logic wire. Connect these to your gates with more logic wire and ensure that each connection only touches 1 of the gate's 8 neighbors. Then, use output on one of the neighbors of the gate and connect that to something else via logic wire. Step 3b: If you need to use wifi, make your inputs first with wire - E2L Lever - Logic wire - Logic Transmitter. Choose a channel (name) for your input. Then, connect all of the gates that need those to a receiver and logic wire set to the same channel. You may also funnel the output of a gate through a logic transmitter. Step 4: Once everything is connected for the main circuitry, make your outputs with a Logic Wire - L2E Constant - Wire. Step 5: Use shock tool on your various inputs to toggle them and see if they work as expected.
multiple-amethyst
multiple-amethyst2y ago
what is logicates.js ur mod? like a machines mod?
nousernamefound
nousernamefoundOP2y ago
logicgates.js is a mod that adds logic gates that i made um okay?
nousernamefound
nousernamefoundOP2y ago
step 1: gate layout
No description
nousernamefound
nousernamefoundOP2y ago
step 2: "the plan"
No description
nousernamefound
nousernamefoundOP2y ago
step 3b: wifi
No description
nousernamefound
nousernamefoundOP2y ago
step 5: testing
No description
nousernamefound
nousernamefoundOP2y ago
jesus christ what is that giant block of red ok all logic gates and outputs should be 1 pixel max logic wires should idealy be 1 pixel wide at max but it doesnt matter due to my fabulous electricity system shock doesnt work on logic wires because they dont use sandboxels electricity. this is why E2L converters are needed yep .. nah just use debug to check the channel good idea ill make that a f e a t u r e i could add a logicshock tool
nousernamefound
nousernamefoundOP2y ago
(doesnt work if channel name is too long)
No description
nousernamefound
nousernamefoundOP2y ago
No description
nousernamefound
nousernamefoundOP2y ago
forgot to add quotes hold on
nousernamefound
nousernamefoundOP2y ago
\
No description
nousernamefound
nousernamefoundOP2y ago
No description
nousernamefound
nousernamefoundOP2y ago
wooo
nousernamefound
nousernamefoundOP2y ago
No description
nousernamefound
nousernamefoundOP2y ago
umm. yea thats how logic wires work. they are toggle instead of pulses because, spoiler alert: it is a PAIN to get logic to be good with pulses its toggle for your own sanity -2 represents an uncharged spreader -1 is an uncharged buffer 0 is uncharged 1 is a charged buffer 2 is charge spreader
eager-peach
eager-peach2y ago
Full adder, although it seems its already been done but still pretty fun.
No description
nousernamefound
nousernamefoundOP2y ago
nice! why does each input have 2 wifi
eager-peach
eager-peach2y ago
My bad I was at school I'm not sure what you mean by wifi but every input has 2 outputs if that's what you mean
nousernamefound
nousernamefoundOP2y ago
No description
nousernamefound
nousernamefoundOP2y ago
a transmitter can transmit to multiple receivers that have the same channel
eager-peach
eager-peach2y ago
I see that makes sense. Could be optimised
nousernamefound
nousernamefoundOP2y ago
buffers are used to help prevent charge mixing as well as help remove the randomness of sandboxels
deep-jade
deep-jade9mo ago
I'm trying to use the E2LLever module, and that one isn't working. I've got regular and logic wire connected, and the reguar wire is powered. Am I doing something wrong? I now realize this is an old thread, so I apologize for opening it again.
nousernamefound
nousernamefoundOP9mo ago
its all good! the levers and buttons are a bit finnicky ill probably change them
deep-jade
deep-jade9mo ago
Ah. Guess it's a bug, then?
nousernamefound
nousernamefoundOP9mo ago
most likely
deep-jade
deep-jade9mo ago
Right. In the meantime, I may have found a possible workaround. I gotta experiment, though...
fascinating-indigo
fascinating-indigo9mo ago
how do u use a not gate
nousernamefound
nousernamefoundOP9mo ago
same way as the others logic wire for input logic wire next to "output" next to the gate for output
fascinating-indigo
fascinating-indigo9mo ago
are you sure about that
No description
nousernamefound
nousernamefoundOP9mo ago
what is that list the pixels you used in order
fascinating-indigo
fascinating-indigo9mo ago
battery-wire-e/l lever-logic wire-not gate-logic wire-l/e const-wire-red led
nousernamefound
nousernamefoundOP9mo ago
bro you dont have an output pixel you've just given the not gate 2 inputs
fascinating-indigo
fascinating-indigo9mo ago
what bru
nousernamefound
nousernamefoundOP9mo ago
logic gates can't assume which wire is supposed to be input/output which is why output pixel exists
fascinating-indigo
fascinating-indigo9mo ago
ok why is it sometimes giving power even tho its input is on nvm
ambitious-aqua
ambitious-aqua7mo ago
oh well tryna make subrime req by redbirdly lmao saving this thread later was on learning to use the logicgates and things because i cant machines the first machine that i made is solar panel without any mods
harsh-harlequin
harsh-harlequin6mo ago
what is an 'inputpin' and an 'outputpin' and when would I need one
nousernamefound
nousernamefoundOP6mo ago
logicgates.js doesn't have those do you have circuitcore.js that's made by someone else, i dont know how their addon works
harsh-harlequin
harsh-harlequin6mo ago
yes i often get confused on which is which but the two are completely compatible?
nousernamefound
nousernamefoundOP6mo ago
these are all the logicgates.js elements
No description
nousernamefound
nousernamefoundOP6mo ago
they should be he made circuitcore.js as an addon to logicgates.js
harsh-harlequin
harsh-harlequin6mo ago
oh what is the lever thing and how is it different to the button
nousernamefound
nousernamefoundOP6mo ago
the button makes pulses of logic electricity the lever just toggles the wire
harsh-harlequin
harsh-harlequin6mo ago
oh doesn't seem to work?
nousernamefound
nousernamefoundOP6mo ago
wdym?
harsh-harlequin
harsh-harlequin6mo ago
above uses lever bottom uses button
No description
nousernamefound
nousernamefoundOP6mo ago
yeah the E2L is slightly janky i do plan on making it better in the next update
harsh-harlequin
harsh-harlequin6mo ago
ok
harsh-harlequin
harsh-harlequin6mo ago
why does the upper wire light up
No description
harsh-harlequin
harsh-harlequin6mo ago
(the upper green gate is an AND; the lower purple one is an XOR)
nousernamefound
nousernamefoundOP6mo ago
the AND has 0 inputs all 0 of the 0 inputs are on
harsh-harlequin
harsh-harlequin6mo ago
what about the two receivers
nousernamefound
nousernamefoundOP6mo ago
gates only look for wire
harsh-harlequin
harsh-harlequin6mo ago
so if I simply move the two transmitters back one pixel and put a wire in front
nousernamefound
nousernamefoundOP6mo ago
yeah that'll work
harsh-harlequin
harsh-harlequin6mo ago
thanks or i could just add a wire in front of each
nousernamefound
nousernamefoundOP6mo ago
true
conscious-sapphire
conscious-sapphire6mo ago
yay the thread i needen
xenial-black
xenial-black4mo ago
i am stupid
No description
nousernamefound
nousernamefoundOP4mo ago
what is the red?
xenial-black
xenial-black4mo ago
output i am just stupid bro
nousernamefound
nousernamefoundOP4mo ago
you only need 1 pixel of output not an entire line of it also, vanilla electricity & logic electricity can't pass diagonal gaps (a gate can read its diagonal neighbors however)
foreign-sapphire
foreign-sapphire3mo ago
i dont know what im doing wrong 😅 can u help out?
No description
foreign-sapphire
foreign-sapphire3mo ago
the red thingy on top of the and gate is a output
nousernamefound
nousernamefoundOP3mo ago
what is the yellow thing on top of it
foreign-sapphire
foreign-sapphire3mo ago
ecloner
nousernamefound
nousernamefoundOP3mo ago
output only outputs to logic wire
foreign-sapphire
foreign-sapphire3mo ago
ohh i see now
national-gold
national-gold3mo ago
hmm
national-gold
national-gold3mo ago
dont work
No description
national-gold
national-gold3mo ago
help
nousernamefound
nousernamefoundOP3mo ago
what is the red pixel
xenial-black
xenial-black3mo ago
hm so to use it i do bbbbbbbbNO if b is wire N is NOT and O is O utput
nousernamefound
nousernamefoundOP3mo ago
make sure b is logic wire and there more logic wire after the output

Did you find this page helpful?