Hopper usage with Essentials' Shop Plugin

Discussion in 'Get Help!' started by BBGun2821, Nov 15, 2024.

  1. BBGun2821

    BBGun2821 Master VIP

    Let me explain a little bit before I ask the question for sake of context.

    Pre-2022 SVS, I absolutely LOVED setting up services that can be utilized at the cost of the currency for the server. The way I went about this was as such: I set up a buy station for the currency, aka Diamonds for post 2022, and would request to buy at $.01. This nets me a diamond for use of a farm, for example, and the way it should work is that a hopper will siphon the diamond from the shop chest and move through a detection system that would open a door, allowing the individual access to whatever service was being purchased.

    The issue I'm having now is that post-2022 is showing an error, and I'm praying that it isn't something difficult to fix. The error [when using the 'chopper on' command reads: "You have a pending action but another plugin cancelled it!". I'm looking to see if there is a workaround, or if this is a bug. The overall goal here is the ability to pull from a "buy" chest with a hopper.

    If anyone has insights, I would be grateful, but the last thing I want to have to do is create a sorter system to detect the validity of items placed in the chest, as that gets messy quick, not to mention expensive should I choose to charge diamond blocks for a build.

    Thanks in advance!


    Keith
     
  2. c0wg0d

    c0wg0d Master Owner Moderator Helper VIP

    In looking at the shop documentation, it seems like this is an "all or nothing" setting--meaning we could allow hoppers to pull items from a shop chest, but it would have to be enabled for all shops. I'm not to keen on doing this server-wide.

    Could you instead just use redstone and vanilla mechanics to check the contents of a public hopper--if it's a diamond, open the door, if it's anything else, reject it back to the player with a dispenser?
     
  3. BBGun2821

    BBGun2821 Master VIP

    I looked into alternate builds for such, it just gets expensive. A typical sorter requires 19 of any given item, which is fine if I want to charge a diamond, but quite high for diamond blocks ($9x19). As for the dispenser method too, I know how I could do it; it would simply be a matter of creating a sorter to search for an item or otherwise pitch it back to the player after an upward item elevator.

    If this isn't something you can do, I'll see what I can do with vanilla mechanics, I just had to ask because it was a large component towards what I used to do on the pre-2022 server and wanted to know if it was removed, and if not too much, would be intrigued to know why. I'm less concerned about it being done though just for me.

    For context, I don't know if you remember the noteblock theater on SVS22, but it had a similar system where it read for a gold bar and opened the door once receiving one. I had it on the redstone museum as well. It's just a lot of extra work that will have to go into making it possible without the hopper-pull mechanic; not something I'm not willing to try to make work, just extremely tedious without the mechanic. Especially knowing I'll need to make room for the build should it not be enabled.
     
    • Like Like x 1