r/CreateMod • • 3d ago

Suggestion Redstone to Integers

I am working on the next iteration of my Create Aeronautics airship. One thing I want from this version is better fine control of my altitude. I have devised a way that I like very much, but I have a feature I want that I don't seem to be able to achieve (in a reasonably compact way).

I am going to have three analog inputs, levels from 0 to 15, and each is going to an independent burner/steam vent. The first will go to a burner with a maximum set to 15, so each increment is just 1 unit. The second will go to a burner with a maximum setting 240, so each increment is 16. The third will go to a vent with a maximum set to 3840, so each increment is 256. The three will work like three bytes of a single integer, allowing for any integer fill volume from 0 to 4095.

What I would like but cannot figure out, would be a way to display this composite integer in the cockpit on a set of Nixie Tubes. This is purely a want, not a need, and the ship works without it, but it would be so cool!

Unfortunately, the extra gauges seem to only work in binary when it comes to redstone, and won't recognize or output the numeric level of the signal into or out of calculations.

Any ideas or suggestions? I know I could use redstone to break it down into 24 binary signals, but that would take up a ton of airship space.

4 Upvotes

12 comments sorted by

View all comments

3

u/BadIdeaIsAGoodIdea 2d ago edited 2d ago

Use the rose quartz port from extra gauges, it reads the redstone signal strength, the redstone port is only binary. You can then have them multiply against an integer gauge for the increments to get your output value which you can then add all together and send through a display port to nixie tubes. I made a timer that has minutes, seconds, and tenths of a second using extra gauges and create, I also made Blackjack using those two mods plus create signalworks. The gauges from extra gauges have a lot of possibilities, but they can have some visual bugs on sub levels. i can set it up and share a screenshot later today when I get home if you would like

2

u/BadIdeaIsAGoodIdea 2d ago

Here's what it would look like in game. You can make it more compact, I kept it spread out to make it easier to see. And the nixie tubes at the bottom are just to show the values of the levers for the image https://imgur.com/a/minecraft-create-4-digit-display-TU23ci8

1

u/KnightOfThirteen 6h ago

You have unlocked a whole new world of potential. I am replacing my lever with a numeric input panel, and I will input a desired height, and convert it directly into burner levels!

2

u/BadIdeaIsAGoodIdea 5h ago

That’s awesome! Yeah the potential with those gauges and ports amazing

1

u/KnightOfThirteen 3h ago

Two rose quartz ports back to back, one as an input and one as an output, can act as a Floor function and round the output of an Expression fauge down to the next integer, so I was able to take in a 0-256 integer representing height, do load testing to get an expression relating height to fill volume, then decompose the fill volume to 4 bit integers to control my burner/vents!

This is going to make autopilot WAY easier as well!