HopperFilterSimplified
Hopper Filter Simplified
This allows you to have specific hoppers only accept specific items without the need of redstone circuitry or complicated commands to limit what can go into a hopper.
Example of use for inventory sorting system without redstone.
Latest Version
v0.7.1 released 2013-09-20 for CB 1.6.2-R1.0
Features
- Allow hoppers to accept a single or group of items without the need of redstone circuit to control it
- A full automatic sorting storage system in a very compact area can be easily created
- A simple item frame with an item in it hung on a hopper is all you need to restrict the hopper to accept only one item type.
- Allow a number of items to be accepted with a chest next to the hopper.
- No commands to remember to be able to add/remove filters from hoppers.
- Cache of filters is created to minimize any load on server. The cache is not stored between restarts, but is recreated with each server start as the hoppers need them.
Commands and Permissions
These commands are mainly for debugging, and are not needed to use the plugin.
Command | Function | Permission |
---|---|---|
/hfsclearcache | Will clear the hopper filter cache. Cache will be automatically recreated as items move through the hoppers. | hopperfiltersimplified.clearcache |
/hfsdebug <integer> | Sets the debug level in the system log. Allowed values are from 0 - 4. The higher the number the more verbose the debug. | hopperfiltersimplified.setdebuglevel |
/hfsallowchestfilters <boolean> | Sets if chests are allowed to be used to hold items for the filters in addition to item frames. | hopperfiltersimplified.setchestfilter |
Other Permissions
These permissions will control who is able to create, alter, or break hopper filters.
Permission | Function |
---|---|
hopperfiltersimplified.build.* | Can Place, Alter, and Break filters |
hopperfiltersimplified.build.place.* | Can place hoppers, item frames, and chests to create hopper filters |
hopperfiltersimplified.build.place.chest | Can place a chest next to a hopper to create a filter. *+* |
hopperfiltersimplified.build.place.hopper | Can place a hopper next to a chest to create a filter. *+* |
hopperfiltersimplified.build.place.itemframe | Can place an item frame on a hopper to create a filter |
hopperfiltersimplified.build.alter.* | Can rotate items on item frames, and alter chest contents that are part of hopper filters *+* |
hopperfiltersimplified.build.alter.chest | Can open a chest that is part of a hopper filter. *+* |
hopperfiltersimplified.build.alter.itemframe | Can rotate the item in the item frame on a hopper to create a filter |
hopperfiltersimplified.build.break.* | Can break hoppers, item frames, and chests that are part of hopper filters *+* |
hopperfiltersimplified.build.break.chest | Can break a chest next to a hopper that are part of hopper filter. *+* |
hopperfiltersimplified.build.break.hopper | Can break a hopper next to a chest or item frame that are part of hopper filter. *+* |
hopperfiltersimplified.build.break.itemframe | Can break an item frame on a hopper that are part of hopper filter |
*+* Chest is only applicable if AllowChestFilters is set to true in the config.yml |
Configuration
The design of the plugin is to be as configuration-less as possible. The configl.yml has 2 options.
Setting | Default | Allowed | Description |
---|---|---|---|
DebugLevel | 0 | 0,1,2,3,4 | The amount of debug information to display. The higher the number, the more the log file will be spammed. |
AllowChestFilters | true | true,false | Adjacent chests will be searched for valid items to allow |
Example config.yml file: Basic: DebugLevel: 0 AllowChestFilters: true
Support
For general questions, please ask in the forum for the plugin.
For reproducible bugs, create a ticket above.
Please include enough step information for me to reproduce it on my side.
Basic steps to try to see if problem resolves itself.
- Clear the cache with the command: hfsclearcache
- Does the issue still happen?
Change Log
please see: http://dev.bukkit.org/bukkit-plugins/hopper_filter_simplified/pages/changelog/
External Resources
I am no longer using mcstats.org as it seems to be down and not working any more.
All code related to it has been removed.
Included in my plugin is a hook into mcstats.org to help get an idea of who uses this plugin.
Invalid Image
For details of this stats plugin, disable instructions, information collected, source code, etc. See my page: about mcstats.org
Source Code
https://github.com/TheNut/HopperFilterSimplified
To-Do
- Allow double chests if need arises
- Squash any bugs that sneak in
- Any suggestions that enhance the core goal of the plugin
Im having an error on this now once changed over to the 1.8.1 spigot build, it still functions almost correctly, except the problem is that the item always goes into the chest that's right BEFORE where it should go. if i have the item frame on chest B (second in line) the item will always go into the set in front of it chest A. Any ideas on how i can fix this? Iv'e had a lot of dedicated members build gigantic systems based off of this and i'd like to help them.
@DavMicrofix
a bit late but:
just do the setup as you would when using frames, but instead a frame place a chest next to the filtering hopper.
there you place the stuff in, that the hopper should get out of the hopperline.
if it dosent work, try clearing the hopperfiltercache
/hfsclearcache
can you give some more info or video how to create filters and more items filter by 1 hopper can't get it to work
@The_Nut
Not much of a problem, easy workaround is just setting all permission nodes instead of "*". Better if you check the forum, i have some more serious bugs.
@poiNt3D
Could you give me an example of what permissions do not get granted. If you can, I will try to figure out what is causing it.
Thank you very much for the plugin. I hope it will support future versions, fingers crossed. I noticed that * permission nodes don't grant all permissions. I'm using Privileges.
@The_Nut
Thank you so much, I will look in these days how it works.
@Kino876
I found the bug and squashed it. I was a little too aggressive on determining if it was a hopper with a cache. It was checking to see if there was a cache associated with it. (That just means an item has passed through it) If there had, then it denied the break. now it has to actually have an itemFrame on it or a chest next to it.
Please let me know if it is completely fixed, or if there are any other issues.
Thanks for the heads up on this bug.
The version with the fix is v0.7.1
Well, finally the player has entered the server and we have tried a few things.
When I use the command /hfsclearcache, the player "without rights" can remove the hopper, and put the hopper in the same place and remove it again without problems.
But if you put an item in a chest and this one falls to hopper when the hopper has an item inside, this locks the hopper again and can not remove it, then I have to use the command /hfsclearcache to unlock it.
The message say: "You do not rights to remove this hopper with a filter"... but as I said, there is no filter "item frame".
@The_Nut
I'm sorry for the delay, but I do not see in these days the player who discovered the bug and he is who has to tell me where and how it happens ... I hope he connects to the server today.
@Kino876
Could you or someone with rights, please issue the command:
/hfsclearcache
Then see if the regular player can remove the hopper without item frames, chests, etc.
Doing this, will help me try an narrow down what is causing the locked hopper.
Please let me know what happens. If they can remove the hopper or not.
One player from my server has detected a new bug, he is a normal player without rights to use filters, I can not explain exactly what happens, but he can't remove hoppers in some cases, I mean hoppers without anything more, no item frames, no chest, etc..
I think that the hoppers that can't be removed are always in the same place, the player just cant remove some of them, however others can be removed without problems.
@The_Nut
Everything works fine.
Thank you very much.
@Kino876
I will look into that. Thanks for the heads up.
Edit: Fixed. Sorry for the error... The file is released as version 0.7 and compiled against CB 1.6.2-R1.0 (will show up after approved)
Changelog: Version 0.7 2013-09-13
@The_Nut
Thank you The_Nut,
I think there is a small bug, now players who don't have permissions to put item frames in the hopper, they also can't put anywhere.
@Kino876
I have just uploaded version 0.6 that should have all the permissions you asked for.
When it is approved, please try it out and let me know if I have missed anything.
@The_Nut
Well, I think that's all I need, you don't forget anything.
Thank you.
@Kino876
Just to clarify what you want, because once an item begins to go through the hoppers, it is not "owned" by anyone and the hoppers are pushing the item to each other and into other things. With that in mind I want to make sure of what you are suggesting.
create permission points for the following:
- Allow placing an itemFrame on a hopper
- Allow removing an itemFrame from a hopper
- Allow placing a chest next to a hopper that could be used as a filter.
- Allow removing a chest next to a hopper that is being used as a filter.
- Allow changing the contents of a chest that is being used as a filter.
- Allow placing a hopper next to a chest allowing it to be used with the chest as a filter.
Am I missing any?
Great idea and awesome plugin.
Can you do a permission to allow users to use hopperfilters, ie: one permission to allow players the use of it and the rest of permissions for OP / Admin?
I want that only VIP players can use Hopper Filters.
Thank you very much.