Inactive [MECH/FUN] ItemDetector v1.2 - An Item-detecting gate [1000]

Discussion in 'Inactive/Unsupported Plugins' started by Streammz, Apr 25, 2011.

  1. Offline

    Streammz

    ItemDetector - Gates which detect items
    Version: v1.2

    With this plugin, you can make item detecting gates, just like at the airports.
    It uses redstone, so combined with other plugins you can make traps, falls etc.
    On the end of this post there is an detailed instruction on how to create them.
    This uses NO commands.

    Features:
    • Creating gates which can be used to detect items
    • Redstone support by changing torches into redstone torches.
    • Detect multiple items (good for an pvp-zone to detect swords/bows etc)
    • Block people from entering with specific items
    • Minecart support
    • Clearing inventory's
    • Permission support
    • Message / kit support
    Download:

    V1.1 - Download
    V1.2 - Download
    Addon kit - Download
    ItemDetector is open source! (NO RE-RELEASES WITHOUT PERMISSION)

    Known bugs:
    If itemdetector is loaded before multiworlds, it will get a nullpointer and lose all data, to fix this rename the multiworld plugin to "aaaMultiWorld" and bukkit will load this plugin as first of all your plugin, this should also fix all other problems with other plugins
    Thanks to @Maxis010 for that

    How to create a gate:
    [torch][wood][torch] What you see to the left of here, is the framework of an gate
    [mossy][mossy] [mossy] The wood block left, is an sign with on the first line [detector],
    [mossy] -- [mossy] and on the second/third/fourth line should be the itemID's
    [mossy] -- [mossy] seperated by comma's.
    The script sees these lines as 1 line, so you should think its 1 line of 45 letters.

    How the #block (and future similair options) work:
    When you enter item id's on the 2nd/3th/4th line, it'll take those 3 lines and make it 1.
    If you enter the #block, the script will ignore that and make the gate blocking stuff.
    Here an quick example of what i mean (first is input, second is what script reads):
    Code:
    What you write on sign --- What script reads for item ID's
    
    #block1,2,3,4,5,6,7     -   1,2,3,4,5,6,7
    1,2,3#block,4,5,6,7     -   1,2,3,4,5,6,7
    1,2,3,4,5,6,7#block     -   1,2,3,4,5,6,7
    
    List of current #options (open)

    @all - Makes the detector detect all blocks in mc
    @None - Makes the detector detect empty inventory's
    @hold - Makes the detector only detect your item in-hand
    @always - Makes the detector detect nothing, but instead always goes on whenever a player passes
    @limit - limits the blocks to these (you can't have any others then this)

    #block - blocks the entrace when activated
    #remove - removes the block from your inventory (Thinking about creating this to be OP-only)
    #pit - Creates a 3x3 pit for pitfall's
    #damage - Damages a player with 1 hearth
    #launch - Speeds up the player by 10x
    #kill - Kills the player
    #fire - Puts the player on fire
    #heal - Heals the player and puts out fire
    #repair - Repairs any tools which the gate detects
    #thunder - Makes thunder in the gate

    instead of using itemID's like in 1,2,3,4 (example), you can also use this:
    1-4 - Loads the ID 1-4
    kit:kitname - Loads the ID's provided in kitname.kit in the itemdetector directory

    To make the gate send a message, use the same method as kit, but use this instead:
    msg:filename - Sends a message provided in filename.message file in the itemdetector folder.




    Permission nodes (open)

    itemdetector.create.block
    itemdetector.create.remove
    itemdetector.create.pit
    itemdetector.create.damage
    itemdetector.create.launch
    itemdetector.create.fire
    itemdetector.create.kill
    itemdetector.create.heal
    itemdetector.create.repair
    itemdetector.create.thunder


    Video of it in action + how-to


    Changelog:

    Show Spoiler

    Version 1.2:
    • Fixed new blocks with the gates from 1.7 (pistons, shears etc) and 1.6 (trapdoors etc)
    • Tweaked pitfall to stay 0.5 seconds longer (laggy servers can be bitchy)
    Version 1.1:
    • Fixed blocks changing (wood slab -> stone slab, red wool -> white wool, etc)
    • Fixed msg:filename when the gate rotation was wrong
    • Fixed launch from acting wierd sometimes
    Version 1.0:
    • Fixed permission bugs
    • Added support for 1-10 as itemID on the sign
    • Added support for personal kits (kit:filename) (look at the #options spoiler)
    • Added support for messages being send (msg:filename) (look at the #options spoiler)
    • Added support for configurable messages (not neceserry, but being able to)
    • made #block & #launch support minecarts
    • Fixed the anticheat perfectly now (no ignore node though anymore)
    Version 0.91:
    • Fixed #remove@always
    Version 0.9:

    • Tweaked anticheat
    • changed #limit into @limit (doesn't affect existing signs)
    • added @hold to just check the item in the hand
    • added @None to check for an empty inventory
    • added @always to make the gate always go on whenever a player passes
    • added #thunder to strike a thunder in the gate (itemdetector.create.thunder)
    • fixed the destroying of gates
    Version 0.81:

    • Fixed permissions
    Version 0.8:

    • Added an anticheat function, so you can't throw items through the gate, open chests or place blocks trough it. (itemdetector.ignore.anticheat)
    • #repair (itemdetector.create.repair)
    • #heal (itemdetector.create.heal)
    • New permission nodes (so you can do itemdetector.create.* now
    Version 0.7:

    • Permissions support (if not found permissions, will default to OP's instead)
    • added #kill
    • added #fire
    Version 0.61:

    • Changed the #launch so it works.
    Version 0.6:


    • Added @all to indicate that you want to detect all blocks in minecraft
    • added #damage to give 1 hearth damage to the enterer
    • added a test version of #launch, to speed movenement by 10x for a short period (note this is glitchy atm, i'm working on a fix, but some people may like it now)
    Version 0.5:


    • Added #pit
    • Minecart support for any #option that isn't #block
    Version 0.42:


    • Fixed something really stupid of me (it didn't cancle the create if it failed)
    Version 0.41:


    • Fixed incompatiable #options
    • Sign given back now, if creating fails
    Version 0.4:


    • Added #limit + #remove, see post for description
    • Made support for armour contents
    Version 0.3:


    • Added #block to prevent players entering the gate
    • If a broken data file is found, it'll now try to fix as much as possible and load them.
    Version 0.2:


    • Fixed the redstone torch to stay for minimal 1 second.
    • Probably fixed a lot of similar bugs.
    Version 0.1:


    • Initial release
     
  2. Offline

    Ixbitz

    Can you update this for the latest build?

    Thx!
     
  3. Offline

    Brvtvs

    This is a great plugin, update it please
     
  4. Offline

    mindystorm

    can you update?
     
  5. Offline

    mindystorm

    it works fine with me and oh I LOVE THIS MOD! I combined this plugin with bookworm and turnstile to make a library! you need to pay the turnstile to get out, you can get out if you dont have a book by walking through an item detector if you do have a book the item gate will stop you and it will play a noteblock rapidly! thx
     
  6. Offline

    MintTheFox

    players get stuck in the gate if they get blocked and cant move back out of it
     
  7. Offline

    YoshiGenius

    cool. I'd like it, but please upgrade to the latest RB: #1317.
     
  8. Offline

    Happylosertempo

    Plugin still uptodate!
     
  9. Offline

    plusb

    wow!
    is this plugin is a very nice plugin
     
  10. Offline

    bobacadodl

    Getting this same error, extremely annoying and completely stops me from using this plugin for things that i wanted to use it for :( this plugin in amazing and I REALLY hope you fix this.
     
  11. Offline

    Begreen98

    Feature Request: please make it so they can back out from the blocking detector instead of being stuck there.
     
  12. Offline

    Morg141

    I cannot get the gates to clear inventories, any help?
     
  13. Offline

    Leon Philips

    Problem...:(:
    Reloading/Stopping (including /save-all AND /stop commands) Will couse the plugin to not-to-save changes made
    in the World's Im running.... I donnot use MultiWorld but womhole worlds , Please help we realy like this plugin!
    (Bukkit Build 1337)

    [Edit]
    When I posted this, I had 4 GB ram (for the server)
    Now I have 6 GB , Suddenly all detectors work!!!

    Ignore my post :) (I let it here for you so you would still have the information ;))
     
  14. Offline

    MintTheFox

    This works on 1.0 and the db of bukkit. only thing is it doesnt detect the newer blocks so updating this shuld be easy if some one wants to do it
     
  15. Offline

    Funwayguy

    I've found that the gates ignore what world they are in. This allows them to be activated from the same co-ordinates in another world. I found this when my invo suddenly vanished upon passing through the same coordinates as a gate with #remove@all on it. I also have the other two previously mentioned bugs where #block holds the player in the gate and new blocks are ignored. Also could you plz allow useage of data values as i would like to use this with coloured wool to make a CTF map
     
  16. Offline

    Snowy007

    there are permissions for the #options but it would be nice to also have a permission node to prevent people from creating a detector at all.
    I deny'd every itemdetector permission from a group but they are still able to build a detector without options. I would like to deny this as well.
     
  17. Offline

    michaelboe12

    Feature request: Can you make a function that the detector also detects dropped items? Like if you shoot an item through the gate (with a dispenser or something) it detects it and the torches will get burning redstone torches? That would be awesome!

    Where can I find how to use/make more functions with the detector, The only thing I know now is how to make a itemdector that turns torches into redstone torches when it detects an item. I don't know how to use the other features, someone plz help?

    oh, I founf it, never mind :p

    If I type on the sign: 1st line: [detector] 2nd line: 2-2266#remove The detectors removes all items accept id:1 AND ID:98 is that a bug or do I something wrong???

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

    slymon99

    can you make it so it takes away a number of a block? like
    [detector]
    #remove19;3

    would remove 3 sponge.
     
  19. Offline

    DarklightPvP

    Great plugin, but maybe add something that only lets players with a certain item through the gate? Not just removing a certain item?
     
  20. Offline

    Snowy007

    I use @limit#block for that.
    Though it will block you if you have any more items except the specified item in your inventory.
     
  21. Offline

    Happylosertempo

    Plugin still uptodate!
     
  22. Offline

    Didag

    So this is working with 1.1?
     
  23. Offline

    Janeirio

    I have the same problem...
    I Use Multiverse. I tried to rename the .Jar and the folder
    but it´s doesn´t work...

    I hope anyone can help.
     
  24. Offline

    remcodemah

    Streammz am i allowed to update it to 1.1-R4 and post it on BukkitDev??
    Under my name and you as official creator??
     
    ChaoticTrack and Lion3025 like this.
  25. Offline

    Lion3025

    plaese update..message does not work, if the server closes the detector does not work anymore.this is the plugin I need please....
     
  26. Offline

    remcodemah

    i need permission from the original creator to RE-RELEASE but i already started updating this plugin.

    can you plz post all your bugs:
    and not working things.

    thank you
    remcodemah

    I NEED TESTERS FOR MY RELEASE (for 1.1-R4).

    If you want to test send me a message then i can give you the download link.
    before i release it public i need permission from the maker.

    if you found any bugs please tell it to me so i can fix it.

    Remcodemah.

    (and if it work can you give me a like?)

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

    remcodemah

  28. Can you update this to 1.2.3 support pls?
     
  29. Offline

    ttlegend2012

    Yeah, pretty good plugin, I'm loving it :)
    I've made a tutorial in french in 1.1, if you want to put it in your post or something else :
     
  30. Offline

    thesims3

    when will you update this to 1.2.4?
     
  31. Offline

    Snowy007

    He won't.

    But if you look literally 3 posts above yours..... 3 posts!
    You will see that someone else made an updated version that should work with 1.2+
     

Share This Page