Poll

What Size should a standard logic brick be?

2x3 brick (big)
1 (20%)
2x3 flat (medium)
1 (20%)
1x1 brick (with each plate layer being a input/output)(Small)
3 (60%)

Total Members Voted: 5

Author Topic: Logic Bricks - Beta Release  (Read 9103 times)

lately I have been working on a digital logic system for Blockland, giving possibilities for both simple binary machines and numerical calculations built with Wire bricks and Logic Bricks.

here's a video of a binary adder:

http://youtu.be/mPd--MmfE0U


All Ray-casting is done while building, or deleting bricks. when finished, 1 global tick updates the Logic Bricks (only if they need to be updated). current Logic Bricks are: Wires, NOT, AND, NAND, OR, NOR, XOR, Adder,  Multiplier, GreaterThan, Equal-To and a positive clock edge D-FlipFlop.

BETA RELEASE 3:
(please report bugs to this thread)
http://dl.dropbox.com/u/4223056/Brick_Logic.zip

Wires not only work with on or off values but also can work with floating point numbers.
« Last Edit: March 27, 2012, 06:51:04 PM by Melting Plastic »

Weird but cool.
I never understood these at your server.

That is acually loving cool.

If you need any models for the logic gates, I'm here, I really like this.



How is development going?

ive been wanting this for awhile :D



That's very cool! But the wires are kinda spammy :/

You need to highly improve some of your code.
If I place 20 1x1 wire bricks in a row, and hammer one of them, the server will lag for somewhat like 0.6 seconds.

When you delete a wire brick the server has to refresh wire groups, resulting in ray-casting checks down the line.  If i didnt do this, if you built 2 lines of wire crossing each other and destroyed the middle brick, all 4 lines would still be connected to each other as far as electricity is concerned.

Using longer wire-bricks helps of course.  I may make a cap on how long a single span of wire can be, and user's would have to place "buffer" bricks to make long spans of wire.

  • System is Now Rewritten to be much faster when deleting bricks.
  • Different Colored Wires don't interact with each other

oh jesus christ the wires

it looks like redstone from minecraft


But yeah I do see a lot of potential for this. It could bring a new era to Blockland eventing

Also, how are you rendering those "input blocks" on bricks? Custom .blb's?

This is friggin sweet. I've been making logic gates out of events, but have a brick would make it so much easier.

I want this. Now. Gimme.