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

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

  1. 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

    Taemera

    Ah! I like the permissions!
     
  3. Offline

    XXLPaprika

    Is there a Sign command, that it will create a Pit if you have any Item with you?
     
  4. Offline

    Dope

    Use #pit@all
     
    XXLPaprika likes this.
  5. Offline

    XXLPaprika

    Thanks but i already found it out ^^ :p
     
  6. Version 0.8 out!
    • 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)
     
  7. Offline

    Kalais

    Permissions aren't working for my admins. I've tried the following:
    itemdetector.*
    itemdetector.create.*
    detector.*
    detector.create.*

    They all get the message "You don't have permissions..."
     
  8. can you give me exactly what you've entered?
    like - 'itemdetector.create.*'

    Anyhow, i'll check this now
     
  9. Offline

    Kalais

    I have the following added to the Admin group:
    itemdetector.*
    itemdetector.create.*

    When that didn't work I added it directly to the player:
    itemdetector.create.*
     
  10. It works for me, You sure you didn't made any typo's?

    Code:
        Trusted:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'itemdetector.create.*'
    
    works fine
     
  11. Offline

    Kalais

    Code:
      Admin:
        default: false
        permissions:
        - essentials
        - essentials.banip
        - essentials.burn
        - essentials.clearinventory.others
        - essentials.cooldown.bypass
        - essentials.deljail
        - essentials.delwarp
        - essentials.eco
        - essentials.give
        - essentials.god
        - essentials.heal
        - essentials.heal.others
        - essentials.help
        - essentials.invsee
        - essentials.item
        - essentials.jails
        - essentials.kickall
        - essentials.kit.*
        - essentials.mute
        - essentials.protect.*
        - essentials.sell
        - essentials.setjail
        - essentials.setspawn
        - essentials.signs.protection.override
        - essentials.spawmob
        - essentials.spawnmob
        - essentials.teleport.cooldown.bypass
        - essentials.teleport.timer.bypass
        - essentials.togglejail
        - essentials.unbanip
        - essentials.warp.list
        - essentials.world
        - groupmanager.*
        - groupmanager.mantogglesave
        - itemdetector.*
        - itemdetector.create.*
        - nocheat.airbuild
        - nocheat.bedteleport
        - nocheat.moving
        - nocheat.notify
        - nocheat.p
        - nocheat.speedhack
        - weatherman.*
        - worldedit.*
        - worldguard.*
        inheritance:
        - mod
        info:
          prefix: '&9'
          build: true
          suffix: ''
     
  12. you must have a ' before and after the nodes.

    Wrong:
    Code:
    - itemdetector.*
    Right:
    Code:
    - 'itemdetector.*'
     
  13. Offline

    Kalais

    I've added, through the client: /mangaddp Admin 'itemdetector.*' and it shows up in groups.yml without the '

    All of the other plugins I have installed work without the '.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  14. then I guess that plugin is doing stuff different then the official permissions plugin does.
    If i add it manually with the 'itemdetector.*' it works fine

    edit: i'll try it myself without the ''
    EDIT:
    Sorry, it seems a plugin problem, i still had my OP enabled so it bypassed permissons, fixing!
     
  15. Offline

    Kalais

    :D
    Awaiting the verdict!
     
  16. done, silly error by me..
    i forgot a capital in the name of "Permissions"

    redownload it
     
  17. Offline

    Kalais

    Great, it's working just fine!

    Couple questions:
    1. What would have to be on a sign to prevent people with an empty inventory from passing through?
    2. How exactly do you set up the anticheat?
     
  18. That reminds me that i forgot to add the @empty, ill add that tomorrow,
    About the anticheat, you dont have to set that up, its on every gate already.
    If you want people to ignore the anticheat, use the node of permissions.
     
  19. Offline

    Kalais

    Perhaps an "@any" command as well instead of having to use "@all,@empty."
     
  20. Hey, I'm not sure if this is even possible but can you make the detector look for things inside of chests? If youcan that'd be great, if not i still love the mod. Great work.
     
  21. Offline

    Kalais

    Request:

    Code:
    [detector]
    #allow
    @list#
    
    or
    
    [detector]
    #deny
    @list#
    
    Allow - Allows certain users permission
    Deny  - Denies certain users permission
    List# - Player list stored in list#.txt (# being the number of the list being used) you have saved in your /plugins/ItemDetector folder
     
  22. "@aNy" is possible with "@all#limit"

    I don't know who changed the [733] to [740] in the topic title, but thanks for it. (tested&works)
    0.9 will be released in a couple of hours

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

    deathhorn

    something like the 'only-holding-item'-option is coming with o.9 ? *looking forward to* ;D
    and #remove@all don't works for me, but i don't get an error or something like that.
    any idea ?

    also found a interesting bug :
    if you are removing the block UNDER the sign the Gate still excist and is removeing, launching the people who walk through =D
    [torch][wood][torch]
    [dirt][diamond][dirt] deleting the diamondblock will cause this (it's only diamond in this)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  24. I'll get that fixed in 0.9
    about the #remove@all, let me look to that

    edit: works normally for me (maybe I fixed that without me knowing in the 0.9)
     
  25. Offline

    dekduee

    I have the same issue with #remove, it's not working for me, btw, is it possible to add 2 #options in the same sign so they would work like: detect the item so it #heals you AND then #removes it?

    EDIT: Also wanted to check out the bug deathhorn stated, and not only happens when you remove that single block, the #option still works when the entire gate is destroyed
     
  26. Offline

    deathhorn

    jeah it'S not removing in fact it should do (i think)

    EDIT: Your problem: hmm you could build 2. gates directly after first so you could create such by you own =D
    i.E.
    first Gate:
    Code:
    [detector]
    #heal ID('s)
    second Gate:
    Code:
    [detector]
    #remove (same)ID('s)
     
  27. Yes that's possible, just use
    Code:
    [detector]
    #heal#remove
    1,2,3,4
    as example

    fixed in 0.9 ;)

    @both about the #remove@all, can you try it again with 0.9 and tell me if it doesn't work?

    Version 0.9 up!

    • 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
    • fixed the destroying of gates

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

    deathhorn

    could you fix the console with actual version =?
    but i'm quite now testing the #remove@all =D
     
  29. done, you can redownload
     
  30. Offline

    deathhorn

    Results for 0.9

    - nice feature with the make first framework
    - many things don't work with me because i think i'm op or somehting like that all other players go through and get set in fire and me not ;((#remove@all or #fire322)
    - the @hold works fine
    Qustion
    Code:
    [detector]
    #remove276#heal
    @always
    it don't remove the sword(276) but it always heal the player ..
     
  31. remove the @always in the sign, becouse that one will ignore any other item ID's

    about the op, if you use permissions for it you should do - '-itemdetector.ignore.*' i thought, it was meant for debugging purposes, but i didn't thought of the servers doing '*' for admins

    edit:
    is it an regular server where you try it on? if so, can I check on your server?
     

Share This Page