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:
    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

    TheGurw

    Hoping to see this up to 928 in the near future, I'm on 860 still but will be updating within the next couple of days.
     
  3. Offline

    zenyl

    Good plugin, but when i try to use it with the permission nodes, Permissions dont work... :(
     
  4. Offline

    Appeltaart

    Great plugin!
    A suggestion; can you add damage detection of items? Like 35:11? I like to detect woll colors. : )
     
  5. Offline

    Bobbertly

    how would you make it so you have to have 60 anywhere in your inv or it will kill you? is this even possible?
     
  6. Offline

    Maxis010

    #kill60
     
  7. Offline

    Bobbertly

    no, that kills you IF you have that in your inventory.. I meant to ask if I WOULDN'T get killed if that was in my inventory.
     
  8. Offline

    Maxis010

    Ah, that isn't possible right now, closest it make it kill you if you have anything except that in your inventory
     
  9. Offline

    djrazr

    So tell me why dont @None #pit doesnt work? (Add some proper itemID's first)
     
  10. Offline

    Bobbertly

    Ok, well nvm then
     
  11. Offline

    Alesana

    This plugin is very usefull!! Can you add the feature that will store the player inventory into a simple database when the player pass a door (#[email protected],NAME) and restore it when he pass another door (#[email protected])?

    Thanks! :)
     
  12. Offline

    FreezeFrazer

    Hi, i would make a wish for the next version of the ItemDetector-Plugin :) A new # or @ option. I would protect a room with the Gate. Only other players shouldnt enter my room.

    e. g:
    [detector]
    @<name1>,<name2>
    <ID1>,<ID2> ...#block

    Thanks for reading

    /edit
    your plugin is very nice :D
     
  13. Offline

    Maxis010

    Get Lockette
     
  14. Offline

    Alesana

    New items (trapdoor, map, piston and shears) are not detected ... can you please fixe it?
     
  15. Offline

    FreezeFrazer

    The protection with lockette is very bad ...
    An admin can destroy the sign or the protectet door even allow-admin-bypass is false. Maybe good protection would be if the player will be killed after destroying the doorm, and the door reappear :p
     
  16. Offline

    Maxis010

    Place the sign inside the room, admin bypass false
    Now the admin can't destroy the sign without destroying another part of the building
     
  17. Offline

    emcitement

    This looks fabulous.

    What all does the add-on kit do?
     
  18. Offline

    ferrousphantom

    for the record, with pit if you walk through the pit opens BEHIND you, so it doesnt really do anything unless you want it to.

    at this point, the block makes you unable to even go back out, so your just stuck in the gate until someone else breaks it, and you can walk right through before the pit. i dont see any way this could work non-lethaly other than removing the item.

    i got a way to work around the other thing, but would it be possible to make a gate 2 wide?

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

    Demonofbirth

    I have a request.... for pit, have it detect items on the surface block AND one below... if you dig a hidden minecart track under it and you walk through with the item when you fall down the 1 deep 3x3 pit it closes over your face and kills you.
     
  20. Offline

    matthewpipie

    When I start up my server this error appears and the plugin doesnt work
    Error:
    Code:
    [SEVERE] Error occurred while enabling ItemDetector v1.0 (Is it up to date?): null
    java.lang.NullPointerException
        at net.gamesketch.bukkit.itemdetector.Data.stringToData(Data.java:107)
        at net.gamesketch.bukkit.itemdetector.Data.Load(Data.java:33)
        at net.gamesketch.bukkit.itemdetector.core.onEnable(core.java:39)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  21. Offline

    Chasingu

    So, If I had a gate that detected snow block, could I make it so if someone tried to go through with a snow block it would get deleted from their inventory?
     
  22. Offline

    Demonofbirth

    yes but that's an odd item to be worried about.
     
  23. Offline

    Snipe76

    works great.. suggestion:
    add option to give items too, not only removing them...
     
  24. Offline

    Demonofbirth

    It is meant to detect items, it doesn't even have to remove them, it can do other things.
     
  25. Offline

    Chasingu

    I want it for spleefing, but I don't want to have a chest full of snow for repairing the map, and let people take it and just build with it. Its a no spawning server.
     
  26. Offline

    emcitement

    Can anyone tell me what the add-on kit does?

    And is there a more compact way to activate the portals than what's in the video? I mean, I could cover it all up but it takes a lot of space.

    And my last question is how do the nodes on this plugin work?
    Generally, someone with * set in permissions will receive everything.
    However, there's a node for removing. Does this mean by default, anyone with the '*' permission will have their items removed when going through an item removal portal?
    If so, then that should be changed so that you need the node to prevent items from being removed.
    The same with the rest of them.

    If it's the complete opposite of what I just said then nevermind.
     
  27. Offline

    Snipe76

    the #block detector kinda glitchy...
    it makes you stuck and spams with the block message
     
  28. Offline

    killdave

    i'm sorry if u said this already... but how do i remove item and do the pit... i tryed many different ways... and it say "make proper id first"

    i tryed
    [detector]
    #pit1-9999#remove1-9999
     
  29. Offline

    Maxis010

  30. How can I use this like a key? Say now you must have a slimeball to go through the gate, else you get killed.
     
  31. Offline

    Blobinet

    Amazing plugin. But can you make so it detects players within specific groups ?

    Also, I have a problem, with #block, players get stuck, they can't move back from the gate.
     

Share This Page