Simple dispenser filler?

Discussion in 'Archived: Plugin Requests' started by tdog158, Jun 3, 2011.

  1. Offline

    tdog158

    Could anyone make a small plugin that simply makes it so you hold shift and right click on a dispenser, then 1) chat an ID number and it fills the dispenser with it or 2) you put an item in it and it fills it completely with that item. If those two aren't possible then just all arrows would be cool too. Thank you for your time!
     
  2. Offline

    Nitnelave

    or you type /fill id and punch the dispenser... With a config to auto-refill it? Could be nice. I'll look into it if I have time. Or fill the dispenser you are facing, I'll see if that's possible.
    EDIT: That's possible, I'll do that, it's easier than adding a listner for a punch, and it's more lightweight.
     
  3. It is, you can just use:
    Code:
    event.getPlayer().getEyeLocation().getBlock();
     
  4. Offline

    Nitnelave

    or even better, the getTargetBlock()
     
  5. I hate short Solutions. You must take mine or it will not work! :p
     
    imjake9 likes this.
  6. Offline

    tdog158

    Go for it, I haven't learned Java yet so I can't do it myself, or I would...
     
  7. Offline

    Carbunkulous

    Already did this. Lookup 'full chests'. it's in my signature I think
     
  8. Offline

    Nitnelave

    Aaaw, I already started... well, too bad, I'll go with another plugin! Or maybe I just won't implement the auto-refill, just the manual one... If anybody is interested? Just tell me.
     
  9. Offline

    xsolar66

    "full chest" requires a sign to be placed next to the dispenser. Signs can be messy and out of place in certain areas.

    A manual "punch the dispenser" would be fantastic:
    could you still make this?
     
  10. Offline

    tdog158

    Could you implement one of my suggestions? Otherwise someone should still work on it. If you still have it Nitnelave, I would apprieciatte it being released :D
     
  11. Offline

    Nitnelave

    Well, I'll get on working on it. It's just not going to be a punch-the-dispenser thing, but a look at the dispenser. It even allows you to fill them up at a distance (or, for example, at the end of a long hole :p). I'll post here when I'm done.
    By the way, the auto-refill will be in the second release, not the first one (have to implement persistence). So far, here's what I have planned for the first :
    /fill <item id or name> : fills the dispenser with the max of an item.
    /refill : fills the dispenser with whatever is in the first non-empty slot.

    Of course, permissions for this, defaulting to OP only, or allow everyone (can be set in the config).
    What do you think? any pre-release suggestions?
     
  12. Offline

    tdog158

    Awesome! Maybe add a Permissions node like <pluginname>.fill ? Otherwise if there isn't a permissions plugin detected it would default to op. In a later release it would be cool if a dispenser could fill from a chest directly connected to it from one of the six surfaces it has!
     
  13. Offline

    Nitnelave

Share This Page