[Suggestion] Out of Stock

Discussion in 'Suggestion Box Archives' started by Tie_Die_Guy, Dec 15, 2016.

  1. Hey, I was just think about malls on EMC and about stocking them and there could be a lot of chests in a mall. Its very annoying to have to check every chest again and again to see if there's still stock in them. I know that a buyer can see when these no more items in the chest to buy, but I was wondering if there's a way to show the shop keeper that a chest is out of stock as well if they are online without having to look though all of them. Like for an example when a playing is buying stuff and there screen says out of stock and the shop keeper is on and on there screen it will also say this (item) is out of stock so that you can easily restock it.

    (Sorry if this has already been suggested in the past and I have not seen it)
    frostyminerpete, 607 and ShelLuser like this.
  2. I think your best approach here is to use redstone. A comparator is the perfect tool to check for some items in a chest, and then connecting a lamp to it. For example something like this:


    If there are no items in the chest then the lamp is off, but the moment I put some stuff in there (even one single item) then it'll turn on. As you can see: all you need is one comparator, one redstone dust and one redstone lamp.

    Now... There are some caveats here. I don't know why, but the shop system on the Empire doesn't always trigger an update. In other words: sometimes this system can glitch; then a lamp remains on while in fact the whole thing is empty.

    Another possible solution for that could be a 'stock indicator' for the shop owner only. For example:


    If you see the light get near to 2 or 1 lights then you'll know that you need to restock your items.

    However... One thing about that last example though: it would also require more stacks of items. These lights react based on the amount of filled slots in the chest. Filled as in: full stacks of 64 (or 16 with snow balls) or single items when they can't stack.

    But even so: I think redstone should be able to help you out here.

    EDIT

    Second picture glitched, conspiracies! :D
    NuclearBobomb, HawkisAbugle and 607 like this.
  3. Hey, you posted the same picture twice there, I think the second one should be different! :)
    Also, I think there's a problem with the first method: when chest shops are 'out of stock', they often aren't completely empty. For example, many items sell per 6, 8, 16, or whatever. In those cases there might be 5 items left and the chest will be out of stock without the light turning on. But of course you could fix that by extending the line of redstone.
    ShelLuser likes this.
  4. I already have all the chests set up so no space for redstone and some chests stacked with hoppers and some r just single chests side by side and yer your right 607 some chest will have that but since I could not tell without looking though all the chests to see witch one that is. That is my point it wont work with redstone because there is no space for it, so cant do redstone and I cant think of a different way other then checking each chest 1 by 1 and having hundreds of chests just wish u could see when its out of stock with both ends say its out of stock because I cant think of a different way and yes I have try all the redstone ways but nope they could only work for like less then 10% of the mall for the way the chests are set up
    ShelLuser and 607 like this.
  5. I have a few redstone indicators. Just some for the top and bottom. Too many block entities will create lag. Also I try encourage the use of /togglepreview. If you set your preview flag to true, it will allow anyone to see any chest on the Res.
    607 and ShelLuser like this.
  6. In your case, you supply a select amount of items in large bulk. This is for mall owners who supply almost every item in the game and can't put resstone configurations on all all their chests.
    LifeofMancub likes this.