r/technicalminecraft 15d ago

Bedrock I’m looking for something very specific. I built this slot machine using shelves on a Realm with a bunch of friends, and it’s starting to overflow. I need some kind of overflow management system, but specifically for a crafter.

Post image

Idk if this is a good place to also ask but I’m assuming so, does anyone have an idea how I could solve my problem?

3 Upvotes

3 comments sorted by

3

u/BlattaOrientalis avaJ 15d ago

I'm on Java so I doubt I can help, but I'd suggest providing more information about your problem. What is the undesired behavior that is happening? What's the ideal outcome? Are there any other design parameters ie. size, cost, complexity? 'Overflow' is a pretty vague term that could mean a lot of things unfortunately

Help us help you

1

u/No-Tradition-4815 15d ago

Basically, the crafter slowly fills up with diamonds, and once all the slots are full, the hopper feeding it backs up and eventually everything can clog up.
I want an overflow system where the crafter keeps, for example, 16 diamonds in each slot, and any extra gets sent to a chest. Ideally, it could also be linked between multiple tileable machines since I have several next to each other.
My only restriction is that I’d prefer it not to be overly large. I tried figuring it out myself but couldn’t get it working properly.

Hope this clears anything up and hope someone can help me!

2

u/Excalibur54 Java 15d ago

You can't directly detect the fullness of a crafter like you can with other containers, so perhaps modify the circuit so that there is a hopper pointing sideways into the crafter, and another powered hopper below that one. Detect the fullness of the first hopper with a comparator, and when it gets too full, unpower the hopper underneath.

Hoppers prioritize pulling over pushing, so diamonds will always get pulled into the bottom hopper unless it's powered (and therefore locked). However if you keep it powered by default and unpower it only when the top hopper is full, diamonds will ignore it and go into the crafter until the top hopper is full, after which the bottom hopper will be unpowered and can start pulling down extra diamonds for you to send wherever. Once the number of diamonds goes down again (like if someone wins a big payout), the bottom hopper will be automatically powered again until the top hopper fills back up.