ItemScan
This is a complete remake of the plugin ItemScanner. ItemScan creates a chest that checks all items within a certain radius to it. If an item is found that matches an item allready in the chest, it is deleted and all switches around the chest are toggled after a user specified delay for a user specified pulse. They are then toggled again and left in the off position untill another item of the correct type enters the chest's radius.
Config
defaultamount: the default amount of items required to activate a scanner
defaultpulse: the default amount of pseudo ticks to turn the chest on - 1 pseudo tick = 10 game ticks = 5 redstone ticks= .5 seconds
defaultdelay: the default amount of pseudo ticks to wait before the pulse
Permissions
- scanner.scan:
- description: Allows user to make/remove/set their own scanners
- default: true
- description: Allows user to make/remove/set their own scanners
- scanner.admin:
- description: Allows users to remove/set other peoples scanners, as well as save and load the scanner list
- default: op
- description: Allows users to remove/set other peoples scanners, as well as save and load the scanner list
Commands
/scanner
- create [amount] [pulse] [delay] - must be looking at a chest
- remove - must be looking at an existing scanner
- set - must be looking at an existing scanner
- amount [number] (1)
- pulse [number] (5)
- delay [number] (10)
- keep [true/false] (false)
- amount [number] (1)
You must stand on the block directly next to the chest and look at the chest for commands to work.
TBD
Chests keep items
- Activate plain redstone
- Let user set absorb radius
- Feel free to request more
@sternmin8or
mmm ya using keep true work, but u dont get any answer if u type the command, it work but no answer so u have to test, but im worried about the random error about the invalid chest, i dont want that to happen again and also i want to set ''keep'' to default cause i want my vip users to use this plugin
@WingedSpear
Ok, so I just got my internet back and Im taking a second look at this. The first error is happeing because you didnt add true or false to the end of "/scanner set keep". The second error is happeing because you have an invalid chest in your world. restarting the server should fix that. Tell me if it doesnt.
Edit: im also going to be releasinga version that lets you set defaults soon. Probably by later today.
Oh boy it looks like I uploaded the wrong version. I'll get my internet back later today and fix it
http://pastie.org/5175288
im getting this, i tryed with both JRE6 and the normal one =(, btw i think keep should be enabled by default, is supposed to be a collect system plugin
also im having this huge spam in my console http://pastie.org/5175423, like 3 of these messages per second
btw i hope ur fine and take ur time, good luck
@WingedSpear Sorry my internet is still down cause of sandy so I'm using my phone. You make chests keep items by seeing their "keep" to true. (/scanner set keep true)
@sternmin8or
Thx, i have no error but seems like the chests are not getting items, the items disapear, but they dont go inside the chest, tryed with different items and removed the LWC protection =/
@sternmin8or
Ty :)
@WingedSpear @Pies500 Sorry that took so long, I have been gone for a while. I just uploaded it it should appear within an hour
@S0ckenSchuss Your request is in the update as well
Edit: why do the gods of plugin approval hate me?
Man, i really need this plugin, can u make it work for java 6? i cant update, plz i loved it since the plugin ItemScanner =(
@WingedSpear
At this point in time, the only working version of this plugin is for java 1.7, update your java.
We need a version for another java
Um can you plz make a java 6 one?
@WingedSpear
Are you running java 1.7 or 1.6? if running 1.6 this plugin was built to run with java version 1.7.
Wow thx i was worried about this plugin, i loved it and i find it very usefull - EDIT: Shit nooo! D: http://pastie.org/4914150
@NyanCraftDe
The plugin is set up to save at exit/shutdown so if you use the stop command for your server it should save the settings. You can force the save by doing the /scanner save. The default settings need to be set either while the server is shutdown or if you edit them manually you need to save the file then do /scanner load, otherwise the file will be over written at shutdown.
Absorbing items, each scanner is set up with hard coding that prevents it from sweeping for new items before the delay and pulse are complete plus 2 ticks otherwise the redstone does not deactivate. Using a 0 delay is not recommended, you should use at least 2 for delay which is a second. So if you have a scanner set up with 2 delay and 3 pulse the scanner will sweep every 3.5 seconds. In computer time that seems like a long time but it is needed for the plugin to operate properly.
Just for clarity, delay is the time before the redstone is activated after the item/s are absorbed. Pulse is the amount of time the redstone remains active.
I don`t know if this is a bug or not, but if i set up some scanners and then customize them via "/scanner set ..." their settings only keep being saved until the server is restarted or the plugins settings are reloaded.
If i set them up and then type "/scanner save" and then "/scanner load" it`s the same. They just change delay and pulse.
There are no errors. Niether on startup, nor while playing.
I tried to change the default settings for scanners but it seems like they are not set to default but to some other setting. I don`t know.
Example: I set up a new scanner with pulse 3 and delay 0. It now absorbs items immediatly. Now I type "/scanner save" (Doesn`t matter if I do this or not) and restart the server. -> Now it takes ages to absorb an item. "/scanner load" doesn`t help.
Can you help me?
@S0ckenSchuss
The item collect chest is being worked on it should be out in the next release, hopefully.
Well, nice Plugin. I used ItemScanner before, and i have something like trade machines on Server.
Throw One Goldingot to the Scanner and the lever+redstone-cable+dispenser drop out a diamond. As Example :D
I love this Amount Feature. Now i can set 3 Gold ingots for one Diamond "$$$$$$"
But there is one thing that is REALLY NEEDED! Chest need to COLLECT items, not delete them -.-
Hope for soon update. Until this, my machines get the "Out of Order"-Sign