[MECH] Elevators [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by Cybran, Jan 27, 2011.

  1. Offline

    Cybran

    [​IMG]

    The plugin will be continued at dev.bukkit.org!
    Want to help? Sign up as an alpha- or beta-tester!


    What this plugin does:

    It creates vertical moving elevators, which can be controlled by redstone-powered blocks.

    Features (open)

    • Creating elevators with an individual size (square or rectangle shape).
    • Floor-management: define your own floors with their own names, being able to call an elevator on every floor by – per example – pressing a button.
    • Movement-triggers: control the elevator with redstone circuits or buttons or any other redstone-powered block!
    • Elevator movement-controls: have different buttons for moving the elevator up and down, skip floors by pressing a control button several times.
    • Command-queuing: the elevator will move to the different floors one after the other if it gets more than one command at the same time.
    • Build on the elevator whatever you want (nearly ;))
    • Use redstone outputs to link the elevator to iron doors or more complex circuits.
    • Connect the elevator to your minecart system!
    • Use the elevator as something else, like a lava door.
    • Build automtically opening/closing glass doors around or on your elevator!
    • Protect your elevator with a password or user restriction.
    • Permissions support!

    How to install (open)

    • The server mod:
      Just copy the Elevators.jar into your plugins/ folder. That's it. You can modify the config later (See section Tutorials>Configuration).
    • ???

    FAQ (open)

    • Q: I'm completely new to this plugin! What shall I do?
      A: First, install the mod (see How to install), then you can read the basic tutorials in the tutorial section below.
    • Q: I'm sick of using buttons all the time to control the elevator! I want to include my redstone circuits!
      A: You don't have to use buttons! You can right-click any type of redstone-powered block! The buttons are just the easiest way.
    • Q: I want to build several buttons or other blocks for the SAME floor! How to do it?
      A: Have a look at the "direct" command. It links other blocks to an already existing floor.
    • Q: I try to build a lava door, but the lava is transported with the elevator! How can I let displace the lava by the elevator?
      A: At first, build the elevator like it should be later. Then, use the command /elev lock. Now your elevator will not grab any blocks or fluids placed later on it.
    • Q: Is there a size limitation for the elevator's shape?
      A: Yes. Normally, there is a maximum for the area of 25 blocks. But: you can change this limitation in the config.

    Command usage & Permissions (open)

    [...] = optional parameter. ...|... = select ONE of the values, they all mean the same. <...> = put your own values here.

    /elevators|elevator|elev <command from the list below>

    The basic commands:
    • help|? - shows the commands.
    • permission|permissions - shows your current permission level.
    • create - creates a new elevator at your current position.
    • remove - removes an existing elevator from your current position.
    • call|floor <Floorname> - creates a new floor with the given Floorname.
    • up - creates a new UpBlock, right-click to select block after command.
    • down - creates a new DownBlock, right-click to select block after command.
    • go|direct [<Floorname>] - creates a new link to the given floor or the nearest. Toggled by redstone input. Right-click a block.
    • redstoneout [<Floorname>] - creates a redstoneoutput, right-click to select the output block after. Has to be a lever.
    • glassdoor [<Floorname>] - Type command and place glass blocks. A door will be created to the given floor or the nearest. Use /elev finish to finish and disable glass block listener.
    • glassremove [<Floorname>] - Removes all glass blocks linked to the given floor or from the cabin when no floor is specified.
    • finish - Finishes an action (like glassdoor placement).
    • info - creates debugging info file. CONSOLE ONLY.
    • lock - locks the cabin blocks to stop updating before every movement.
    The more advanced ones:
    • help|? - shows the commands.
    • permission|permissions - shows your current permission level.
    • create [password <Password>] [users <Username1> <Username2> <UsernameN>]- creates a new elevator at your current position, optional with password or user whitelist.
    • remove - removes an existing elevator from your current position.
    • call|floor <Floorname> [password <Password>] [users <Username1> <Username2> <UsernameN>] - creates a new floor with the given Floorname, optional with password or user whitelist.
    • up - creates a new UpBlock, right-click to select block after command.
    • down - creates a new DownBlock, right-click to select block after command.
    • go|direct [<Floorname>] - creates a new link to the given floor or the nearest. Toggled by redstone input. Right-click a block.
    • redstoneout [<Floorname>] - creates a redstoneoutput, right-click to select the output block after. Has to be a lever.
    • glassdoor [<Floorname>] [direction <DirectionIdentifier>] - Type command and place glass blocks. A door will be created to the given floor or the nearest. Use /elev finish to finish and disable glass block listener. You can use a DirectionIdentifier (left,right,up,down,splitH,splitV) to set the opening direction manually.
    • glassremove [<Floorname>] - Removes all glass blocks linked to the given floor or from the cabin when no floor is specified.
    • finish - Finishes an action (like glassdoor placement).
    • info - creates debugging info file. CONSOLE ONLY.
    • pw|password [<Floorname>] [password <Password>] - Overrides password protection for the given floor or the whole elevator.
    • user [<Floorname>] [users <Username1> <Username2> <UsernameN>] - Overrides user whitelist for the given floor or the whole elevator.
    • give [<Username>] - changes the owner of the elevator. Once changed, a reset is not possible.
    • lock - locks the cabin blocks to stop updating before every movement.
    Permission nodes:
    • elevators.builder - basic permission level, user can set up elevators.
    • elevators.advancedbuilder - advanced permission level, user can protect elevators with password / user list.
    • elevators.operator - ignores owner, passwords and user restrictions, can modify everything.

    Tutorials (open)

    Basic setup:
    • Prepare a shaft – size can be between 1x1 up to 5x5. There has to be air in the whole shaft(means also no ladders and no torches directly on the wall).
    • Build a plain of any block type in your shaft as the elevator’s ground. (I would recommend to use a block type that is not placed anywhere in the shaft again with the same shape.)
    • Stand on the ground while typing /elevator create
    • A new floor and a new “CallBlock” (to call the elevator later) are created simultaneously by first typing /elevator call <Floorname> and then right-clicking on a (already existing!!) button. The elevator will halt 2 stones below this block
    • You have to create Up- and DownBlocks (to control the elevator) on every floor OR (better) inside the elevator. Type /elevator up or /elevator down , then right-click on a button (again the buttons have to be created BEFORE).
    • Create as many floors as you want. Besides: the control-blocks can be up to 2 blocks away from the elevator
    • Now you are ready to use the elevator!
    • If you want to remove floors or control-blocks, simply destroy the blocks.
    • If you want to remove the whole elevator, stand nearby and type /elevator remove.
    Configuration:
    • After the first server startup with the plugin v1.3+, a new file named Configuration.txt is created in plugins\Elevators\
    • Feel free to modify the values in there. But keep to the given format.
    • restart the server (or use /reload command) to apply the changes.
    Enhanced redstone:
    • If you want, you can extend your calling mechanism, per example by using stone plates connected to redstone wire.
    • To make your elevator moving to a specific floor, type /elevator direct <Floorname> and right-click any redstone wire or button or stone plate...
    • You can also use /elev direct WITHOUT the floorname. This will lead to the next floor in range.
    • If you want, you can add a redstone output to the elevator. Build a LEVER near to the elevator, then type /elev redstoneout and right-click the lever. Connect the lever to your circuit with redstone wire.
    Glass doors for your elevator:
    • Type /elev glassdoor [<Floorname>] [direction <DirectionIdentifier>] to start.
    • You can use a DirectionIdentifier (left,right,up,down,splitH,splitV) to set the opening direction manually. left and right are seen from outside the elevator. splitH and splitV will let the door split horizontally or vertically from the center.
    • Now build glass blocks around the elevator or on the elevator. Use any shape you want.
    • Type /elev finish to stop adding blocks as doors.
    • Call the elevator again to the floor where you built the door. Your created door opens.
    • The door is now activated and will open and close automatically. Have fun!
    Elevator protection (advanced builders):
    • every created elevator has an owner. Only the owner can modify the elevator. To change the owner, type "/elev give <newownername>". To enable modification for every player, type "/elev give". This will remove any owner protection.
    • use the optional parameters to create an elevator/floor with protection, p.e. "/elev floor testing floor password ultimatepassword users NTcomputer Notch" would create a new floor named "testing floor" with the password "ultimatepassword", only available for the users NTcomputer and Notch.
    • modify your protection settings with the commands /elev user and /elev password, p.e.: "/elev user testing floor users Admin" will override the previous settings to only allow user Admin the usage.
    • remove protection settings? Very easy: use /elev password or /elev user without any parameters or floorname only to reset the protection.
    • so far the whitelist, but I want to create a blacklist. How to? Like this: "/elev user testing floor users * -griefer" (no, there isn't any space between the minus and the player - damn line break). * means everybody can use it, the "-" before a name indicates you hate this player and don't want to let him destroy your secret room on the testing floor ;)
    • I have set up the protection, but I'm never asked for a password?! This can have several reasons: 1.) You are an operator. 2.) You have the permission elevators.operator 3.) You are the owner of the elevator. Just let somebody else try, he WILL get a prompt. 4.) You are standing near the elevator while another player tries to use it. He/she won't be blocked.

    Known issues (open)

    • It is difficult to move yourself or turn around while moving with an elevator.
    • Don't use doors on an elevator! They will "clone" items.
    • Pressure plates don't work as Up- /DownBlocks directly. Build at least two redstone to them, type the command and right-click the end of the wire.
    • Avoid using up/down in circuits. This will force any selected redstone-block to remain in off-state. (You can use "direct", though!)

    Future Ideas (open)

    • name elevators - v1.4.4
    • signs with current floor - v1.4.5
    • allow any block type for doors - v1.4.5
    • iConomy support - coming in v1.5

    Changelog (server mod) (open)

    • Version 1.4.3 (RB #740)
      >>Download<<
      -implementation of the secret project (not useable yet)
      -fixed the chest duplication bug
      -fixed the powered/detector rail dropping bug
      -enabled plugin usage for subfolder-worlds
      -fixed some other exceptions
    • Version 1.4.2 (RB #670)
      >>Download<<
      -elevators are now stored in the world folders (-> allow backups)
      -items will drop when moved away from a wall
      -added forbidden blocks to config
      -added command abbreviations to config
      -added glassdoor directions
      -added "lock" for cabin blocks
      -prevent block changes while elevator moves
      -added more config options and messages
    • Version 1.4.1 (RB #602)
      >>Download<<
      -cabin blocks are now searched when initiating movement
      ->WorldEdit & Co for cabin blocks supported!
      -Entities are now moved along, even if they are positioned a greater distance above the ground blocks
      -merged direct and extend commands
      -enabled relative glass doors (=doors in the cabin)
      -glass doors are now "grouped" automatically for a more real opening order
      -redstone outputs floor parameter added.
      -ground blocks pending between grass and dirt are not blocking the elevator anymore
      -wheat, cactus and sugar cane item duplication bug fixed
    • Version 1.4 (RB #556)
      -Permissions support added
      -elevator and floor protection added
      ->many new commands and command parameters
      -command to remove glass doors from a specific floor
      -owner system added
      -individual elevator size support
      -fixed some bugs (can't remember which)
    • Version 1.3.1:
      >>Download<<
      -removed TSLPC
      -added go|direct command
      -improved elevator search
      -improved elevator position search (prevention of loosing the ceiling ;-))
      -storing entity positions when initiating moving - hopefully fixes fall-through bugs
      -added info console command to create debugging info files
      -binds glass doors to a command
      -fixed button and redstone bugs
      -improved storage cleanup
    • Version 1.3:
      -added automatically closing glass doors.
      -added configuration.
      -fixed a fault timing.
      -changed the command handler to onCommand in main file.
    • Version 1.2.3:
      -fixed a block checking bug.
      -redstone on the elevator is now working.
    • Version 1.2.2:
      -chests and dispensers are now working.
      -furnaces are now working.
      -adjacent mine tracks are now working.
      -item orientation bugfix.
    • Version 1.2.1:
      -color of wool is now stored.
      -Signs are now working inside the elevator.
      -orientation of levers, buttons, torches etc. is now stored (can still be glitchy, cause multiplayer servers always have problems with that)
      -fixed many bugs for the blocks built on the elevator
      -elevator blocks can be safely removed by iStick, Superpickaxe and others now
      -improved the movement system for liquids (enables lava doors and more!)
      -improved the movement system for all entities (creatures and minecarts will also be transported now)
      -elevator movement is now much smoother
      -improved floor search for up- and down-blocks when the elevator got stuck
      -changed the entire storage system
    • Version 1.2:
      - enabled building on the elevator.
      - created redstone outputs
      - fixed server crashes
      - made compatible to CraftBukkit 289+
      - improved handling of breaked blocks
      - made plugin thread-secure
      -fixed path problems on mac + linux
      - and maybe some others...
    • Version 1.1:
      - made the creation a bit easier.
      - fixed some bugs
      - increased the maximum size to 5x5
    • Version 1.0:
      - Release
     
  2. Offline

    DerNerz

    Nice work @Cybran

    I've read your post in the developers forum cuz i'm also working on an ElevatorPlugin with different Features. Really messy to move players arround actually. Especially when you got several Blocks and Entitys on the Elevator platform.
     
  3. Offline

    chernobyl360

    i still dont understand why it seems everyone is smashing me on how i helped the people that were having issues with this. i made a tutorial. got no thanks. and niji here is telling me off like im slow. yea i dont understand java but there was some one that was referring to a java timer so i went and found the definition and copied it over. i wasn't trying to make myself seem smart.

    The Tutorial:
    http://www.youtube.com/watch?v=6V8e2N4IUxs
     
  4. Offline

    TAT

    On my server, I have to do the creation of buttons twice to make them work.

    First "/elev floor floorname", right-click on the button I want to bind to. Then "/elev floor floorname" and right-click on the button again.
    Same with "/elev down" and "/elev up"
     
  5. Offline

    Cybran

    @TAT:
    I think you have to place the buttons BEFORE typing the commands. If you first type the commands and then place the buttons, the blocks BEHIND the buttons will be marked (what won't work). Posting an official tutorial video soon.
     
  6. Offline

    TAT

    Thanks, that works when placing the buttons before using commands
     
  7. Offline

    MrOxiMoron

    On my mac I'm getting a file called: "Elevators\ElevatorsStore.dat" I'm thinking the path separator is windows specific for that one.
     
  8. Offline

    moonmike

    chernobyl360 thanks for make a tut video it help alot

    Elevators are working great thanks
     
  9. Offline

    Seth.D

    Can you add a feature that allows you to create iron doors that open and close if there's an elevator near it? I'm thinking it should go like this:

    You place an iron door
    You type a command
    You right click the iron door

    It will now open and close depending on if an elevator is near the door! This would be great for preventing people from falling down elevator shafts.
     
  10. Offline

    Erik991

    I was just playing around with it, i somehow got it working.
    But alamost everytime the server crashes, i managed to ride te elev a few times.
    But sometimes it crashes will riding, and sometimes while calling.

    I'm running craftbukkit build 164
    And i got the following error('s)

    Code:
    2011-01-28 20:02:18 [SEVERE] Unexpected exception
    java.lang.NullPointerException
        at net.minecraft.server.World.d(SourceFile:1395)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:201)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    
    2011-01-28 20:08:06 [SEVERE] Unexpected exception
    java.lang.NullPointerException
    
    2011-01-28 20:11:04 [SEVERE] Unexpected exception
    java.lang.NullPointerException
        at net.minecraft.server.World.d(SourceFile:1395)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:201)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    List of plugins i use:
    Anyreg,Cleaner,Dynmap,Elevators,General,iChat,MCDocs,Permissions,SimpleHome,SpawnControl,Warp,WorldEdit,WorldGuard.

    But it crashes 9 out of 10 times while one the elevator or calling it!
     
  11. Offline

    Cybran

    @Seth.D:
    Marked the iron doors as a future functionality.

    @Erik991:
    I also had a few problems in the past. I included a check for this bug in the new version, but this won't prevent it. I was unable to reproduce this error, so I also had no chance to fix it. Just try the new version and restart your server, maybe it works.
     
  12. Great plugin, works fine. However, it seems to crash the server if an elevator is in use when the world starts saving.
     
  13. Offline

    Cybran

    Thank you so much for the advice! Will see how to avoid this.
     
  14. Offline

    Brack

    Great plugin. Love the functionality now that I understand how it all works.

    Couple suggestions:
    • Being able to add a block (or two) on the elevator for the up/down buttons.
    • A /rename command for renaming floors without having to remake them (and the up/down buttons associated with them)
    • Not sure how, but locked floors.
     
  15. Offline

    Cmars

    An idea a really good one like real elev's do.
    Make it go down to the first floor after some minutes of no use.
     
  16. Offline

    jolt76

    Crashes my server every minute or so with no server error in console. but it does work when running
     
  17. Offline

    Erik991

    Thx, it's working for me :)
    Thx you very much for this awesome plugin!
     
  18. Offline

    Brack

    I was thinking if you added the ability to either build on the elevator, or make it thicker, this plugin could be used to create hidden doorways as well. Send it up to open, call it down to close.
     
  19. Offline

    ThomasJ

    Working just fine here on b166. No crashes and people are loving it, me included :)

    The only annoyance really is how you are completely locked while the elevator moves, but I suppose there is not much that can be done about that.
     
  20. Offline

    Cybran


    Making it able to build on the elevator would make the moving routines much more difficult. But i will see what i can do.
    The rename command is no problem. Besides: You don't have to remake up/down buttons when remaking the floor. Even if it seems to be, they aren't associated.
    What especially do you mean with "locked floors"?

    I am afraid i can't [​IMG]. The server just ignores client commands while the elevator is moving, because the player's position is updated several times per second. This are system limitations, i am unable to change them.
     
  21. Offline

    Galrath

    I guess he means floors not everyone can access.
     
  22. Offline

    GothicChris

    can i build two buttons on one floor? that the eleveator come up(or down) to this floor?

    sry for my bad english
     
  23. Offline

    Galrath

    You only need one call button, which then calls the elevator to the floor where you pressed the button.
    The other buttons you need are one up button for going up and one down button for going down ;)
     
  24. Offline

    GothicChris

    ah thx, its working ;)
     
  25. Offline

    jasperino

    I really like this plugin! :)

    Just one question/suggestion (don't know if it's already there :p): Is it possible to make a button which lets you ,for example, go 2 up? Because I have 4 floors, and when Im at the lowest, i would like to be able to go up to the forth in just one click :p
     
  26. Offline

    Galrath

    From the first post:
    ;)
     
  27. Offline

    jasperino

    Ow lol, guess I missed that :p srry [​IMG]
     
  28. Offline

    Brack

    A locked floor would require something additional to the button press to make the elevator go to that floor. I don't know if it would be easiest done with a /command or it could even be something as simple as using a specific item to press the down button to make the elevator work.

    Another question I had is are multiple elevators on a single shaft that move together something that might be possible? I envision a large room with the floor and ceiling made out of stone slab. Somewhere inside is an elevator and a button and when pressed, the elevator takes you up to the second floor. The ability to have two elevators (one acting as the floor, one the ceiling) could make for some interesting implementation.
     
  29. Offline

    craftopia.net

    This plugin is awesome!! Thanks for writing it :) Finally i can do away with all these hideous staircases.

    One request, if i could?
    Is it at all possible to make the elevator itself (the 1x1 to 5x5 platform that moves) can we make it so we can build ontop of that platform, and everything move? This way we can have an actual elevator with buttons, instead of needing buttons on every floor, could just have a call button on each floor, and inside the elevator an up & down button... or a button for each floor in the elevator itself (you know, like a real elevator has).

    Thanks
     
  30. Offline

    jolt76

    I found out it was dynmap crashing the server not this plugin guess they dont like eachother tho after i took this plugin out dynmap still caused problems but once i removed dynmap and readded elevators its workin fine.
    very nice plugin gives me lots of ideas.
     
  31. Offline

    craftopia.net

    My server is running this plugin, along with DynMap without any issues, so far.
     

Share This Page