logicgates.js tutorial

im gonna make a thread on how to use logicgates.js rq
76 Replies
nousernamefound
nousernamefoundOP•2y 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.
generous-apricot
generous-apricot•2y ago
what is logicates.js ur mod? like a machines mod?
nousernamefound
nousernamefoundOP•2y ago
logicgates.js is a mod that adds logic gates that i made um okay?
nousernamefound
nousernamefoundOP•2y ago
step 1: gate layout
No description
nousernamefound
nousernamefoundOP•2y ago
step 2: "the plan"
No description
nousernamefound
nousernamefoundOP•2y ago
step 3b: wifi
No description
nousernamefound
nousernamefoundOP•2y ago
step 5: testing
No description
nousernamefound
nousernamefoundOP•2y 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
nousernamefoundOP•2y ago
(doesnt work if channel name is too long)
No description
nousernamefound
nousernamefoundOP•2y ago
No description
nousernamefound
nousernamefoundOP•2y ago
forgot to add quotes hold on
nousernamefound
nousernamefoundOP•2y ago
\
No description
nousernamefound
nousernamefoundOP•2y ago
No description
nousernamefound
nousernamefoundOP•2y ago
wooo
nousernamefound
nousernamefoundOP•2y ago
No description
nousernamefound
nousernamefoundOP•2y 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
extended-salmon
extended-salmon•2y ago
Full adder, although it seems its already been done but still pretty fun.
No description
nousernamefound
nousernamefoundOP•2y ago
nice! why does each input have 2 wifi
extended-salmon
extended-salmon•2y 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
nousernamefoundOP•2y ago
No description
nousernamefound
nousernamefoundOP•2y ago
a transmitter can transmit to multiple receivers that have the same channel
extended-salmon
extended-salmon•2y ago
I see that makes sense. Could be optimised
nousernamefound
nousernamefoundOP•16mo ago
buffers are used to help prevent charge mixing as well as help remove the randomness of sandboxels
adverse-sapphire
adverse-sapphire•8mo 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
nousernamefoundOP•8mo ago
its all good! the levers and buttons are a bit finnicky ill probably change them
adverse-sapphire
adverse-sapphire•8mo ago
Ah. Guess it's a bug, then?
nousernamefound
nousernamefoundOP•8mo ago
most likely
adverse-sapphire
adverse-sapphire•8mo ago
Right. In the meantime, I may have found a possible workaround. I gotta experiment, though...
harsh-harlequin
harsh-harlequin•7mo ago
how do u use a not gate
nousernamefound
nousernamefoundOP•7mo ago
same way as the others logic wire for input logic wire next to "output" next to the gate for output
harsh-harlequin
harsh-harlequin•7mo ago
are you sure about that
No description
nousernamefound
nousernamefoundOP•7mo ago
what is that list the pixels you used in order
harsh-harlequin
harsh-harlequin•7mo ago
battery-wire-e/l lever-logic wire-not gate-logic wire-l/e const-wire-red led
nousernamefound
nousernamefoundOP•7mo ago
bro you dont have an output pixel you've just given the not gate 2 inputs
harsh-harlequin
harsh-harlequin•7mo ago
what bru
nousernamefound
nousernamefoundOP•7mo ago
logic gates can't assume which wire is supposed to be input/output which is why output pixel exists
harsh-harlequin
harsh-harlequin•7mo ago
ok why is it sometimes giving power even tho its input is on nvm
statutory-emerald
statutory-emerald•5mo 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
correct-apricot
correct-apricot•4mo ago
what is an 'inputpin' and an 'outputpin' and when would I need one
nousernamefound
nousernamefoundOP•4mo 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
correct-apricot
correct-apricot•4mo ago
yes i often get confused on which is which but the two are completely compatible?
nousernamefound
nousernamefoundOP•4mo ago
these are all the logicgates.js elements
No description
nousernamefound
nousernamefoundOP•4mo ago
they should be he made circuitcore.js as an addon to logicgates.js
correct-apricot
correct-apricot•4mo ago
oh what is the lever thing and how is it different to the button
nousernamefound
nousernamefoundOP•4mo ago
the button makes pulses of logic electricity the lever just toggles the wire
correct-apricot
correct-apricot•4mo ago
oh doesn't seem to work?
nousernamefound
nousernamefoundOP•4mo ago
wdym?
correct-apricot
correct-apricot•4mo ago
above uses lever bottom uses button
No description
nousernamefound
nousernamefoundOP•4mo ago
yeah the E2L is slightly janky i do plan on making it better in the next update
correct-apricot
correct-apricot•4mo ago
ok
correct-apricot
correct-apricot•4mo ago
why does the upper wire light up
No description
correct-apricot
correct-apricot•4mo ago
(the upper green gate is an AND; the lower purple one is an XOR)
nousernamefound
nousernamefoundOP•4mo ago
the AND has 0 inputs all 0 of the 0 inputs are on
correct-apricot
correct-apricot•4mo ago
what about the two receivers
nousernamefound
nousernamefoundOP•4mo ago
gates only look for wire
correct-apricot
correct-apricot•4mo ago
so if I simply move the two transmitters back one pixel and put a wire in front
nousernamefound
nousernamefoundOP•4mo ago
yeah that'll work
correct-apricot
correct-apricot•4mo ago
thanks or i could just add a wire in front of each
nousernamefound
nousernamefoundOP•4mo ago
true
exotic-emerald
exotic-emerald•4mo ago
yay the thread i needen
generous-apricot
generous-apricot•2mo ago
i am stupid
No description
nousernamefound
nousernamefoundOP•2mo ago
what is the red?
generous-apricot
generous-apricot•2mo ago
output i am just stupid bro
nousernamefound
nousernamefoundOP•2mo 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)
correct-apricot
correct-apricot•2mo ago
i dont know what im doing wrong 😅 can u help out?
No description
correct-apricot
correct-apricot•2mo ago
the red thingy on top of the and gate is a output
nousernamefound
nousernamefoundOP•2mo ago
what is the yellow thing on top of it
correct-apricot
correct-apricot•2mo ago
ecloner
nousernamefound
nousernamefoundOP•2mo ago
output only outputs to logic wire
correct-apricot
correct-apricot•2mo ago
ohh i see now
deep-jade
deep-jade•4w ago
hmm
deep-jade
deep-jade•4w ago
dont work
No description
deep-jade
deep-jade•4w ago
help
nousernamefound
nousernamefoundOP•4w ago
what is the red pixel
generous-apricot
generous-apricot•6d ago
hm so to use it i do bbbbbbbbNO if b is wire N is NOT and O is O utput
nousernamefound
nousernamefoundOP•6d ago
make sure b is logic wire and there more logic wire after the output

Did you find this page helpful?