Inactive [FUN/MECH] Pitfall v0.6 - Make pressure and redstone triggered traps! [766]

Discussion in 'Inactive/Unsupported Plugins' started by petrifiednightmares, Apr 23, 2011.

  1. Pitfall - Make clay (configurable) become a trapdoor
    Version: v0.6

    A configurable plugin that allows certain blocks to act as pressure traps. Once a player steps on them, the blocks disappear temporarily causing the victim to tumble into the pit you dug below.

    Features:
    • Allows the user to create traps with clay (configurable). Building a layer of clay, and then a layer of any material above it will cause it to become a trap. Whenever a player steps on the layer above the clay, both layers will temporarily disappear, plunging the victim into the depths of the abyss you dug below. After a second, the two layers will reappear, waiting to claim another hapless soul.
    • Configuration of what block to be used instead of clay.
    • Allows setting up a list of blacklist blocks. These are blocks that will not disappear even if placed above the clay block. Format: [3,24,33,2]
    • Allows the user to create redstone triggered traps with brick (configurable). Once a brick block receives a redstone current from either above or below, it (along with all adjacent block bricks) will disappear for a few seconds. Pictures:
      Show Spoiler
      [​IMG][​IMG]
    Download The Pitfall Plugin/Source

    Note for navigating github:
    You may press the "Downloads" button to download this as a zip file. If you don't want the source and only want the .jar file, just click on the Pitfall.jar. Then click view raw, and it should give you a download file. If not, right click view raw and click save link as.​

    Review:
    A review by jamescosten:

    Pictures:
    Pictures (open)

    Constructing the trap:
    [​IMG]




    Filling up the top layer with same block as surroundings:

    [​IMG]


    The completed trap is indistinguishable from normal land:

    [​IMG]


    HOWEVER:

    AHHHHHH
    [​IMG]


    The trap closes back up above me:

    [​IMG]

    Changelog:
    Version 0.6
    • Configurable trap delays
    Version 0.5
    • Sign's texts will be restored.
    • Will print an error message if any blocks are unable to be restored.
    • Jumping over the clay will no longer trigger trap.
    • Trap will only be triggered if standing on solid block above the clay.
    Version 0.4b
    • Fixed a null pointer exception error when first using the plugin.
    Version 0.4a
    • Minor change to how the plugin gets the version number.
    Version 0.4
    • Added configurable redstone triggered blocks
    Version 0.3
    • Fixed a stupid bug where the plugin will not work if you don't have a blacklist enabled.
    Version 0.2
    • Changed name to Pitfall
    • Added a config file that allows you to specify what block to use as the trap block
    • Config file also allows you to define blacklist blocks to be placed above the trap block
    Version 0.1
    • Added the plugin
    Notes:

    Thanks to Avous for features suggestions. :)



    Todo:
    • Add support for mobs
    • Add support for changing what block to use (instead of clay)
    • Redstone triggered traps
    • Keep special data of certain entities. (Texts for signs, items in chests, etc) if they disappear as a result of trap. (Configurable as option)
    • Permissions support
     

    Attached Files:

  2. Offline

    Johnienna

    I am using fly plugin and when i fall in this trap and come up the trap closes into me,then i got an error in my server console.Thats how my server crashes.
     
  3. Offline

    SulimirCular

    i would love to use this.. but i can't for a strange reason.. :(

    Code:
    at java.lang.Thread.run(Thread.java:636)
    > 18:53:54 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    > 18:53:54 [SEVERE] at com.bukkit.jason.pitfall.PitfallPlayerListener$3.run(PitfallPlayerListener.java:127)
    > 18:53:54 [SEVERE] at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:127)
    > 18:53:54 [SEVERE] at net.minecraft.server.World.setTypeId(World.java:307)
    > 18:53:54 [SEVERE] at net.minecraft.server.World.setRawTypeId(World.java:248)
    > 18:53:54 [SEVERE] at net.minecraft.server.Chunk.a(Chunk.java:297)
    > 18:53:54 [SEVERE] at net.minecraft.server.Chunk.g(Chunk.java:196)
    > 18:53:54 [SEVERE] at net.minecraft.server.World.a(World.java:1366)
    > 18:53:54 [SEVERE] at net.minecraft.server.World.a(World.java:1393)
    > 18:53:54 [SEVERE] java.lang.NullPointerException 
     
  4. yeah this is a really strange and somewhat rare bug that I have been trying to tackle. For some reason the clay block was unreferenced... I'll let you know if I figure out a fix.
     
  5. Is there plans for making monsters fall in the traps too?
     
  6. Offline

    EggRoll

    Can you make it so that you can set the delay time in the yaml file? It disappears a bit too quickly.
     
  7. Yes.

    Ok

    These changes would be coming out next week hopefully
     
  8. Offline

    EggRoll

    Sounds good.
     
  9. Offline

    flea1777

    A question would this work with mobs like if they went over the ground and it collapses on them?
     
  10. Offline

    Najamastir

    This Plugin is amazing! Great idea :) I had an idea for the next update :) maybe (if there is a way :) ) you could set it up to where Redstone can disable the trap. It would be a good way to make a trap door for griefers or people trying to get into your house. Just thought of that and thought i might share. (sry if you can already do that :p Just got the plugin and messing with it Thanks bye :)
     
  11. Offline

    QQCucumber

    Did a reload, got this. Doesn't seem to happen every time.

    2011-05-11 01:13:29 [SEVERE] Nag author: 'petrifiednightmares' of 'Pitfall' about the following: This plugin is not properly shutting down its async tasks when it is being reloaded. This may cause conflicts with the newly loaded version of the plugin
     
  12. Offline

    sim14789

    Ok, i had a epic idea, at the end of a hard dungeon you stare down a hallway to see a cake and a sighn. As soon as you come into veiw of the sighn it will say the cake is a lie...
     
  13. Updated, to allow configurable delays.
     
  14. Offline

    jamescosten

    :(Cant get the bricks to dissapear. They are powered by redstone.....

    Ignore didnt change the config file lol
     
    petrifiednightmares likes this.
  15. Offline

    jamescosten

  16. Offline

    CainFoool

    Until you fix
    Code:
    17:59:44 [SEVERE] Unexpected exception
    java.lang.IllegalStateException: TickNextTick list out of synch
        at net.minecraft.server.World.a(World.java:1693)
        at net.minecraft.server.World.doTick(World.java:1465)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:361)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    I am not using your plugin, sorry.
     
  17. Offline

    jamescosten

    I never experienced this error, it worked great in my video did it not
     

  18. Are you trying on the latest version? All threadcalls are changed to sync now, which should eliminate this problem.
     
  19. Offline

    RazorFlint

    I'v got 2 suggestions for you.
    1. Add it so you can use it as a wall (Same Concept, Clay Behind) But in a wall form and opens when the players infront?
    2. Detects Items.
    :)
     
  20. Offline

    Logan448772470

    i have an error code... happens when someone stands on a redstone plate too long and the blocks are trying to come back or if someone is standing on the edge of a pit when they are trying to return to the game. Do you know a fix for this?
    Code:
    2011-05-18 23:18:45 [SEVERE] java.lang.NullPointerException
    2011-05-18 23:18:45 [SEVERE]     at net.minecraft.server.World.doLighting(World.java:1354)
    2011-05-18 23:18:45 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:365)
    2011-05-18 23:18:45 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    2011-05-18 23:18:45 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-18 23:18:45 [SEVERE] Unexpected exception
    java.lang.NullPointerException
        at net.minecraft.server.World.doLighting(World.java:1354)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:365)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  21. Offline

    Ranch

    Request: Can you make it so the user does not get affected by the trap?
     
  22. Offline

    WooJoo

    just to mention it in cb818 the pitfall plugin spits

    pages long that at line 145 and 146 inside the playerlistener.destroy an error accoured im not sure if its the plugin or a different one ^^ sry couldnt save the error msg since it crashed the box
     
  23. Offline

    lucent

    I really like this plugin! Perfect for creating nice variety in user-created dungeons.

    Is it possible to get it with multiworld support? :)
     
  24. Offline

    Atticus Craft

    Can we please get this updated? Thank you! Great plugin!
     
  25. Offline

    just_charlie

    need's to be updated :) then i will use this non stop :D
     
  26. Offline

    bruceweed

    How do you config the time delay for traps?
     
  27. Offline

    TheSamAlder

    Well After Stuffing Around With This Great Plugin For A While... I Discovered A Ridiculously Cool Glitch ( Or Whatever You Want To Call It )
    I Went Into The Config File And Changed The Redstone Activated Trap To Stone Instead Of Bricks.
    And I Then Went Into My Cave And Placed The Redstone Into A Hole ( 1x1 ) In The Wall Then Set Up A Lever About 2 or 3 Blocks Away.
    Heres The Cool Bit.
    When I Pushed The Lever On And Off, It Made A Tunnel.
    Not Just Any Tunnel.
    A Freakin Huge Tunnel.
    A Tunnel After 30 Mins Of Playing I Am Yet To Reach The End Of ( If There Is An End ).
    The Tunnels Size Varies From 2 High And 1 Wide, To About 10 Wide And 3 High.
    Just Thought Id Let You Know.
    Ive Done This 3 Times And Its Made My Server SOOOOOO Laggy.
    So I Dont Recommend It On A World That You Like :p
     
  28. Offline

    alomo34

    can you make a single player version of this mod please
     
  29. Offline

    G1R Productions

    Please update.
     
  30. Offline

    chronopolis

    @petrifiednightmares I know the plugin seems inactive - but if you update is there a chance it can be done to use the new trapdoor block (to simply open them, not make them disappear)? If not I will do it myself :cool:
     
    Dark_Arc likes this.
  31. Offline

    keitron

    will this be updated to 1.6.6?
     

Share This Page