How to Read if a Hopper Minecart Has Something in It?
- Search
- Tools
Simple Hopper Item Detector
Source: https://www.minecraftforum.net/forums/minecraft-java-edition/redstone-discussion-and/351230-simple-hopper-item-detector
#1 Jan 6, 2013
Started playing around on the snapshot, and unfortunately one of the features I was hoping for with the hopper isn't implemented (yet?) -- a filter that checks for specific items. This probably won't practise you any proficient in Survival, just it's something I detect really useful for adventure maps.
This is unproblematic. All you need is a hopper (two if you desire some added security) and a comparator. Essentially information technology's a very basic item filter that will only accept a particular item, and power on when one is placed in it. Start, fix your hopper(s) and comparator like so:
One feature of the comparator is that when placed with a container at its input, it volition output a bespeak relative to how full the container is. Well, with a hopper, the output will remain OFF until 22 items are loaded into it. Then, nosotros ready our hopper similar this, with exactly 21 items, being sure to split up them beyond all 5 inventory slots:
In this instance, I'm using up iv slots with five heads each. That'south twenty of our 21 items. The last slot holds a single block of shine sandstone. That'southward the detail that our "detector" is looking for. If you throw anything other than a caput or a block of sandstone into the elevation hopper, information technology will not exist transferred to the lower hopper. Since heads are unobtainable by any normal ways, the only thing our player will be able to successfully pass to the bottom hopper is another block of sandstone. When a cake of sandstone is thrown into the top hopper, it passes through and becomes the 22nd item in the lesser hopper. This will crusade the comparator to click ON and output a bespeak (with a strength of 1, but it can exist additional with a repeater).
And there you have it. A simple detail detector. You lot tin can change the sandstone block to diamonds, gold ingots, any you want. Yous can so utilise this to trigger a dispenser or a /give command block to form a shop or a trading quest in your risk maps!
If you want to make the excursion more than expensive to activate, yous can remove some of the buffer items (in our case, heads) from the hopper as long as y'all leave at least 1 in each of the four other slots. This volition let you make a shop that charges, say, 5 gold for a platebody only only ii golden for a helmet. Be creative!
Unfortunately I oasis't figured out a perfect reset mechanic withal. I'grand throwing an idea around in my head, but I'll have to practise some testing. Anyhow, let me know what you guys call back.
EDIT: I've come up with a style to reliably reset the excursion, pictured here:
It's possible for the particular to be pulled out of the hopper and destroyed by hooking up a breast minecart on a short looped track. When the particular is detected and the circuit triggers, it sends the minecart around. It will pass under the hopper merely long enough to pull out 1 particular from the first slot. When the minecart hits the end of the track, in that location's another hopper nether the track that pulls the particular into a dispenser, which will spit it into a cactus and get rid of information technology. This makes the circuit trigger every time X item is dropped into the hopper, and the items being dropped are destroyed at the other stop so they don't build up and clog the mechanism. This lets you to make a "shop" of sorts that has unlimited stock. In this example, whenever you lot drop a aureate nugget into the hopper, the Command cake will trigger and give y'all 20 pieces of coal. Voila: a simple, reliable shop.
Rollback Post to Revision RollBack
#2 January 6, 2013
I updated the first mail service with a mechanic to auto-reset the circuit. Information technology's less complicated than I was expecting it to exist, but it doesn't yet account for charging more than i of an item to trip the circuit like the simpler, not-reset version does. In those instances it would exist possible to instead brand use of some kind of counter off of the output. It pulses each time the desired particular is dropped into it, so you tin can take that how you will.
Rollback Postal service to Revision RollBack
#iii Jan 7, 2013
Seems like a good idea to me. Post this in suggestions, though.
Rollback Post to Revision RollBack
Yo dawg, i herd u liek swag, so i put swag in your swag so y'all tin-
No. Cease.
#4 Jan 7, 2013
Not sure why it would be in suggestions?
Anyways pretty cool blueprint. Tin't expect for the full update.
Rollback Post to Revision RollBack
#5 Jan 7, 2013
That was my thought, it's all built with stuff already in the snapshot... I mean, I guess my suggestion would be "add a filter option", but there'southward an alright adventure they're already working on information technology. Either way, this is to show off what can already exist done with it.
Something else I discovered: y'all can use this to detect named items that you rename with an anvil. In the map I'grand working on right now, in that location's a manufacturing plant area that says it's "closed for inspection". So I took a sheet of paper and renamed it "Inspector'due south Badge". Then I rigged upwardly one of these to check if you throw said particular into it. If you throw in the badge, it opens the door to the factory. Regular, unnamed sheets of paper won't be accustomed by the hopper. In theory you could use this to have an unlimited amount of different plot/key items for your map, even using the same base particular. Like you lot could have different sheets of paper be things like "Contract" or "Rex'due south Letter", etc. and each one would just be accepted in i specific place, even though they're all paper. This is shaping up to exist a actually cool update.
Rollback Post to Revision RollBack
#vi Apr 2, 2013
Ingenious! This is exactly what I was looking for, and information technology's just what I demand for an adventure map I'm making. Thank you!
Rollback Postal service to Revision RollBack
Hey, player: You've got about 20 seconds before I show upwards in your living room and have a trivial chat with ya'... or say another low ammo quote! ---Tank Dempsey
#7 Apr three, 2013
Y'all could make the reset system smaller past looping the minecart track around the other way. (just a proposition)
Other than that very adept job.
Good Luck To You.
-RedWire500
Rollback Mail to Revision RollBack
#8 Aug 6, 2013
i made it just i put 22 thing in the hopper and didnt get any output. only when i put one thing it i got an output merely it was VERY weak. only went one cake! any suggestions?
Rollback Postal service to Revision RollBack
#ix Aug 7, 2013
Penguin.. This is a old thread created when hoppers were commencement introduced.
The output of comparators have since changed, but the bones concept demonstrated is still the same as what is used for the current methods of stackable item sorters.
These pull items from a hopper pipeline, and uses the comparator output to de-power a hopper below the particular sorting hopper, to pull out the just added item so as to auto reset the arrangement. A number of Youtube videos demonstrate information technology.
One of the all-time is this one by DrankisDank, that includes expandable (optional) storage.
The ultimate video is a merely massive particular sorting system created by the ZipKrowd team, and published by JL2579. That organisation handles hundreds of item types, and fifty-fifty deals with 'majority storage' items types. It even handles overflow of the storage arrangement, and partly deals with non-stacking items. However due to the lag of using hopper pipelines, it instead uses a fancy water stream method of detail send above the sorting hoppers, which is the latest innovation may by ZipKrowd members.
Now for unstackable items there are methods of separating some things like potions, but not for generally unstackable things similar armour, weapons, and specific potions.
Rollback Postal service to Revision RollBack
#ten Sep 24, 2013
Great- This is exactly what I needed and how you but demand I item to power the comparator D: this was seriously perfect until that
Rollback Mail service to Revision RollBack
#11 Mar 25, 2014
It dosn't work, the output goes on when simply ane item enters the hopper, meaning i cant set it upwardly to 21 items.
Rollback Postal service to Revision RollBack
#12 Aug 19, 2014
To have an endless loop y'all'll need a switch-rail device (
) bad video but you get idea.
Instead of a lever employ a pressure level plate with lots of repeaters delaying the signal.
> The cart is going on a track that doesn't get below the dropper
> Button it to the side
> It goes beneath the dropper
> It's in a loop
> it'll become back to the track but won't go beneath the dropper once more
In one case y'all tin can't link two tracks one of them you could make the cart to fall on the countless ane, get it?
Rollback Mail service to Revision RollBack
#13 Sep 28, 2014
What'south that blackness "WIP" think in your inventory?
Rollback Post to Revision RollBack
#fifteen Sep 9, 2017
Old thread I know simply not much innovation has been made in getting an automated shop using an item filter to detect currency beingness able to charge more than one of the item...
I've been working on it at length and I at present have a working prototype that tin can charge two items and a working image of a shop that charges 3 of the filtered currency.
I'm pretty proud of my iii item cost build equally it allows for speed loading of the three units and has a system reset built in.
I am waiting until I figure out how to wire it into the item frame selector store.
I desire to see if I can make the first 4 positions accuse 1 iron block for their item and the last three positions charge 2 iron blocks for their item...a day or two tinkering away from information technology now that I cracked the trouble of charging more than 1 item
Rollback Post to Revision RollBack
#16 Sep 10, 2017
Endeavour gilt pressure plates. They provide redstone signal with ability equal to the amount of items (up to 15). Y'all tin can't utilize one on meridian of a hopper, since the point from the plate will lock information technology, but you tin place 1 on acme of a solid block and put a hopper minecart underneath. Yous can either apply activator rail to keep the minecart from sucking items in, or only have the minecart ringlet underneath when enough items are on the pressure plate. In gild to filter items out, y'all tin hide the pressure level plate within your circuit, using a dropper to drop items onto it. The dropper would be fed via an item filter. That fashion you can ensure that all items on top of the plate are currency. Using travelling hopper cart is preferrable, since y'all can either deliver the currency to the storage (once there is enough), or have a "render" button that will deliver it back to the player.
Rollback Post to Revision RollBack
#17 Sep 12, 2017
I cracked it!
I currently accept a redstone shop that uses an item frame selector card and information technology charges i unit of measurement of currency. For the outset 4 menu items and 2 units of currency for the concluding three menu items
64 currency can be loaded to receive 32 two unit products!!!
Message Gaming Bureau on Xbox one to bank check out my working price aligning circuit!!!!
Rollback Post to Revision RollBack