Author Topic: Buildable Elevators/Trains Mod  (Read 14679 times)

Buildable vehicles may be cool and all, but there's one thing they just can't do: Elevate.

With this mod, you can spawn an elevator from a brick with events, then build your own interior for it. There are various voice commands to move the elevator around, but these can be toggled on and off by events as well.

Here's a video of some elevators and trains in action.


Event Inputs:
Elev_onArrive - Called when an elevator arrives at the brick. Allows the brick to move the elevator directly.
Elev_onCreate - Called when an elevator is created.
Elev_onFloorMatch - Called if CheckElevatorFloor matches the current floor.
Elev_onFloorMismatch - Called if CheckElevatorFloor does not match the current floor.
Elev_onFound - Called when an elevator is found for a player using FindElevator.
Elev_onHasNoRider - Called from a hasRider check if there aren't any riders.
Elev_onHasRider - Called from a hasRider check if there is at least one rider.
Elev_onStart - Called when the elevator starts moving, whether by voice command or event.
Elev_onStop - Called when the elevator stops moving, whether by voice command or event.

Event Outputs:
Elev_AddPart (Arguments) - Adds a part to the elevator. I seriously suggest you let the script handle this.
Elev_CheckFloor (Floor Number) - Checks if the elevator is at Floor Number.
Elev_CheckHasRider - Checks if the elevator has any passengers.
Elev_Create (Lowest Floor) (Highest Floor) (Interior Height in plates) (Floor Height in plates)
            Creates an elevator linked to the calling brick that ranges from Lowest Floor to Highest Floor.
            The Interior Height is the size of the space inside the elevator. The Floor Height is how much it moves up or down.
Elev_Delete - Removes the brick's elevator.
Elev_GoToFloor (Floor Number) - Causes the elevator to go to the given floor.
Elev_JumpToFloor (Floor Number) - Causes the elevator to instantly jump to the given floor.
Elev_MoveEast (Studs to Travel) (Studs per Second) - Causes the elevator to move east with the given specs.
Elev_MoveNorth (Studs to Travel) (Studs per Second) - Causes the elevator to move north with the given specs.
Elev_SetColor (Color) (Inherit) - Changes the elevator's color. Inherit makes it take the same color as its parent brick.
Elev_SetCommands (On) - Sets whether the elevator has voice commands.
Elev_SetSpeed (Speed in Plates per Second) - Sets the elevator's vertical speed in plates per second.

Voice Commands:
"Go to (the) first/second/third/fourth... floor/level/story."
"Go to floor/level/story one/two/three/four..."
"Go to (the) top floor/level/story."
"Go to (the) bottom floor/level/story."
"Go to (the) ground floor/level/story."

VCE Variables:
<var:brick:elev_floor> - returns the elevator's current floor, or -1 if the brick has no elevator.
<var:brick:elev_isMoving> - returns whether the elevator is in motion, or -1 if the brick has no elevator.

Wrench Stuff:
Key: Working Not working
Names
Lights
Emitters
Items
Raycasting/Collision (uncheck both)
Rendering
Events



Bold: New stuff. Gets unbolded after I decide it's no longer new.


The elevators are currently on display at my server. Before you ask, the server is stuffty - the mod isn't actually causing the lag, it's suffering from it. Now for some other frequently asked questions:

Q1: Can I have the mod?
A1: You can have it like everyone else when I release it, or if this gets asked too much, not at all.

Q2: What if I trade you admin/a mod/money/et cetera for it?
A2: The answer is still no and I'm disgusted that you think I'm that sort of person.

Q3: I can't build on the elevator!
A3: You have to build a brick completely inside a stopped elevator that you own.

Q4: Why is the server lagging so much?
A4: The server is a piece of stuff whose only purpose in life is to cause me misery and pain. But I can't host from my laptop.

Q6: If your mod supports VCE, why don't you have VCE?
A6: I don't like VCE but people were bugging me about it.

Q7: Why can't I turn collision off?
A7: You can. Wrench the brick and uncheck both collision and raycasting, otherwise they both remain checked.

Q8: Can you not count?
A8: There is no question five.

Q9: Can I apply events to these bricks or would that break stuff?
A9: Neither. Applied events are simply lost into cyberspace, never to be found again. Oh wait, there they are.

Q10: kan i haz admin
A10: No, but u kan haz a crash course in English grammar and spelling.

UPDATE 1: All event inputs and outputs now have "Elev_" prefixed to them to group them into one place.
UPDATE 2: I also have my own attempt at buildable vehicles. To put it mildly, it sucks.
UPDATE 3: Added the "Add Part" event, which is used for elevator saving. I don't recommend trying it by hand.
« Last Edit: December 22, 2012, 01:19:45 AM by Xalos »




Holy stuff this is great!!! I am usually against add-ons that require typing but when I saw that sort of train wok with clicking I was like "OHH I just jizzed". The fact that elevators actually work and we can put planes on them is great? I don't really think anyone would mind putting weapons on it though.


People like you are what help Blockland advance!! Thanks bro!

this is just

I can't believe Blockland is getting this advanced, a couple versions ago this was impossible
Now it's a walk in the park

Fantastic


a couple versions ago this was impossible

...according to people who hadn't the faintest idea what the hell they were talking about.

very cool.
How small did you make the loop though?

very cool.
How small did you make the loop though?

How small? What?

He means, "How long is the schedule for the movement tick?"

He means, "How long is the schedule for the movement tick?"

I know that.


I did went to Xalos's server and we had fun time at there. I told him "Xalos kick Kaphiter's ass better than Kaphiter's crappy mod." Xalos were laughed.

By god.

Xalos can I have your babies?