Inactive [MECH] Item Scanner v1.1 - chests that collect items and power redstone [1.2.3-R0.2]

Discussion in 'Inactive/Unsupported Plugins' started by CaiusTSM, Jun 7, 2011.

  1. Offline

    CaiusTSM

    ItemScanner - chests that collect items and power redstone
    version: 1.1

    This plugin allows you to create scanner chests that collect items next to them in a 2 block radius. The chests only collect items that are the same as those already in the chest. If the chest collects a item, it will toggle any lever next to it.

    Features:
    • Scanning chests collect items near them.
    • Only except items that are already in the item scanner.
    • Toggle levers next to them when they collect a item.
    • /scanner create to make a chest a item scanner.
    • /scanner remove to make a item scanner a normal chest again.
    • /scanner amount to set the amount needed IN ONE DROP to trigger the scanner.
    • /scanner delay to set the delay between scans.
    • /scanner signalLength to set the length of the lever pulse.
    download:
    ItemScanner.jar

    Commands:
    /scanner: brings up scanner commands help.
    /scanner create: allows you to make a chest a scanner.
    /scanner remove: makes a chest you select no longer a scanner.
    /scanner amount [amount]: allows you to change the amount of a item needed to trigger the scanner(zero equals none amount effected).
    /scanner delay [delay]: allows you to set the delay between scans of a scanner.
    /scanner signalLength [length]: allows you to set the length of the lever pulse of a scanner. (note that the signal length will always be shorter than the delay)

    Movie-------------------------------------------------------------------------------------------------------------------


    Changelog:
    version 1.1:
    • re-coded entire plugin.
    • fixed:
    • tons of bugs known and unknown.
    • added:
    • scanner's amount need IN ONE DROP now configurable.
    • scanner's delay between scans now configurable.
    • scanner's lever pulse time now configurable.
    • removed:
    • levers on side of scanners (caused to many glitches).
    • redstone on top of scanners (caused to many glitches).
    • Other:
    • untested, but assumed that it is faster than 1.0.
    • scanners no longer absorb items when they are almost full.
    version 1.0:
    • plugin released!
    To Do List:
    • Ability to customize lever pulse time.
    • Can set scanning delay time.
    • Add absorption effect.
    • Double Chests.
    • Server can set scanning time to prevent lag.
    • Do not absorb when full.
    • Multi world support.
    • Permissions.
    If you find any errors/bugs please tell me, and post your error that showed up in server console.

    My other plugins:
    Self Planting:
    http://forums.bukkit.org/threads/mech-self-planting-v1-1-self-planting-plants-953.26709/

    video for this plugin:


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  2. Offline

    CaptainNemo

    For the nubs (like me) who're needing some help - this plugin DOES run with 1529 flawlessly. I say this because I was having a run of confusion about knowing how plugins interact between different versions of Bukkit.


    As far as double chests go, I put a double chest down. As long as the item is in the top half of the chest, it seems to still absorb. None of them have gotten full enough yet that I've been able to see if it'll fill the second half, though. Overall, sexy mod. Would like to see it updated and maybe some more features. REALLY easy to use, thankfully.

    Use in conjunction with the Pistons-break-items-over-water mod and you can easily set up cobble and smooth stone generators that collect what they generate (meaning no more smelting cobble for smooth).
     
  3. Offline

    CaiusTSM

    when a stable build for 1.0.0 comes out, I will work on this! No more delays then! Will have it done in beginning of this Christmas vacation.
     
  4. Offline

    Jcno

    Hello, I am enjoying using this mod as it serves many purposes on my server, however, I was wondering whether in the future you could implement a feature allowing a specification on how many of a certain item it needs to give the signal. For example, instead of requiring just the one item it would need to amount that is found on the first slot, so if there were 5 diamonds on the first slot you'd need 5 diamonds for it to even be absorbed and to give off the current etc.

    Thanks :)
     
  5. Offline

    CaiusTSM

    for things like that you can always make a counter with redstone
     
  6. Offline

    Jcno

    Hey, yeah I like the idea of using a counter, but if I wanted it to count a whole stack of items then that'd require a big counter. Still, thanks for the nice, simple and effective plugin which is integral to my server.
     
  7. Offline

    tboss

    Source code ?
     
  8. Offline

    CaiusTSM

    I'm changing the code entirely, wait for 1.1 which I am working on this Christmas vacation, I will probably have it done in the first week of Christmas or so.
     
  9. Offline

    CaiusTSM

    now that I have vacation I will start working on it 12/24/11
     
  10. Offline

    CaiusTSM

  11. Offline

    Jcno

    Okay, I've installed version 1.1 onto my server. I dont really know how to explain this one, but basically I placed down a chest and emptied about 30 carts. 26 got absorbed, so the chest is full, but there is a continuous redstone current, eg. it wasnt a pulse given off. So I took a few carts out and put them back in, and just a redstone pulse was given off. I dont know what it was, but maybe because there was a massive pool of carts waiting to be absorbed it affected it somehow?
     
  12. Offline

    CaiusTSM

    uploaded new version should have fixed the problem, thanks for helping!
     
  13. Offline

    Jcno

    No problem, thanks for keeping this plugin alive.
     
  14. Offline

    CaiusTSM

    would be great if someone could do a lag test on version 1.1, find out its limits.

    uploaded new version: feature added: can set amount needed for scanner to trigger.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  15. Offline

    Jcno

    Just what I was hoping for :) Thanks.

    I've found one problem with the amount needed for triggering. After much confusion I've worked out that it will only accept the amount given if it's all thrown down at once. So you have to empty the exact amount out of your inventory at once. For example, I chose 5 as the number needed for triggering, dropping 5 by pressing the DROP key 5 times didn't work, only making a stack in my inventory of 5 and dropping that entire stack at once allowed it to be absorbed, if you see what I mean.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  16. Offline

    kroko1992

    is it possible that you can make permission nodes to use it? i really love your plugin but only want my donators to use that funtion :)
     
  17. Offline

    CaiusTSM

    It is suppose to be that way, but I could make a counter that counts all separate items up

    I am not sure how to use the permissions plugin, but I can look into it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  18. Offline

    kroko1992

    awesome!
     
  19. Offline

    CaiusTSM

    uploaded new version:
    now you can change length of redstone pulse, and delay between scans
    and fixed stuff that could cause potential errors.
     
  20. Offline

    kroko1992

    i have tried this plugins for some days now, but there is one problem with it, or something you can add that will make it better... when i emty the scanner i always by mistake take it all so it wont pick any up. is it possible to make a command like "/scanner create [ItemID]" then it will scan for items with that id? and than 2 more commands one for add a item id and one for remove a item id "/scanner add [ItemID]" and "/scanner remove [ItemID]" hope you will think about it. it will help me alot.. This plugin is very nice!
     
  21. Offline

    CaiusTSM

    I tried to have as little chat commands as possible, I have noticed that if players try to use a plugin and see a ton of commands they just screw it.
    I could try to give it an option to keep 1 of each item inside.
     
  22. Offline

    kroko1992

    hmm yeah that would be great.
     
  23. Offline

    darkshark6

    Great plugin! Its great for making secret piston doors! [diamond][diamond][diamond][diamond][diamond]
     
  24. Offline

    Telbaru

    We have found a bug. We create the scanner and put some goldblocks into the chest of the scanner.If we put the goldblocks forward of the scanner, it will found the items. But after discharge and recharge of the chunks, the scanner picks up the items, but they aren't in the Chest. When we reload the server, the scanner don't detect the goldblocks, so we must create new scanner after each restart. We use the 1.1 version. It is possible, makes lwc problems with it?
    Sry for google-translator :'( *sniff*
     
  25. Offline

    CaiusTSM

    I am not sure if lwc gives it problems, but do you reload the server with a plugin? or do you stop the server and then start it again? I have tested what you did, and it worked fine.
     
  26. Offline

    Telbaru

    we stop the server and start it again.
     
  27. Offline

    CaiusTSM

    what is your server ip, so I can join and see what happens
     
  28. Offline

    Telbaru

    hmm i delet the scanner.dat, create new scanner and restart the server again. Now the scanner functioning correctly.
     
  29. Offline

    BobSalawalatski

    [SEVERE] Error occurred while enabling ItemScanner v1.1 (Is it up to date?): null
    java.lang.NullPointerException
    at org.CaiusTSM.ItemScanner.Scanner.<init>(Scanner.java:55)
    at org.CaiusTSM.ItemScanner.ItemScanner.loadScanner(ItemScanner.java:122)
    at org.CaiusTSM.ItemScanner.ItemScanner.init(ItemScanner.java:100)
    at org.CaiusTSM.ItemScanner.ItemScanner.onEnable(ItemScanner.java:57)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)
    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

    No other plugins, just Craftbukkit 1.0.1-R1 and the current version of Item Scanner.

    It's possible the server was shutdown incorrectly. I found my server powered off and had to boot it back up.
     
  30. Offline

    CaiusTSM

    It seems that when it tried to load a scanner from the scanner save file, the world did not exist(was not running) were that scanner was saved in.

    Currently if you change your world, you have to save the scanner folder that is generated somewhere, and let the plugin generate a new folder for that world. Then if you want to use the other world, save the scanner folder somewhere, and put the old one back.
    I currently do not have multi world support, so that is what you have to do if you switch worlds.
     
  31. Offline

    grinch843

    This would be a great addition to the plugin, would help with an automated cobblestone generator I have....
     

Share This Page