Skip to content

microsoft/makecode-minecraft-roller-coaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roller Coaster Builder

This is a MakeCode Extension for Minecraft Education that allows you to create minecart roller coasters using code, then ride them!

Contents

  1. What is a Minecart Roller Coaster?
  2. How to ride a minecart roller coaster?
  3. How to install?
  4. Block Help
    a. Track Segment Blocks
    b. Track Customization Blocks
  5. Sample Project

What is a Minecart Roller Coaster?

In Minecraft, the player has the ability to place rails and powered rails in the world. Minecarts can then be placed on top of rails and will follow the track that has been laid out. Powered rails, when activated with redstone, accelerate the minecart. Regular rails will simply guide it, but the cart will eventually slow down on them.

With this extension, you don't have to worry about the specifics of powering and unpowering rails - it handles all of that for you to ensure your roller coaster will never stop in its tracks (unless you want it to)! It will also ensure the roller coaster has enough vertical space to fit the player and will even protect the coaster from water and lava!

How to ride a Minecart Roller Coaster?

Once you've created a minecart roller coaster, you're free to ride it! The track should automatically have a minecart at the starting zone, but if you've already ridden it once (or destroyed the minecart) you can always place a new one on the track by adding a minecart to your hotbar, selecting it, and right clicking on the track. Once the minecart is in place, right click to enter it. Then press (right click) the blue button on the pink wall to activate your minecart and begin the ride!

StartingTheRollerCoaster

How to install?

To begin, start a new project in Microsoft MakeCode for Minecraft Education and select the Extensions button in the toolbox. image

Then select the Roller Coaster Builder extension from the list of recommended options: image

Now find the Roller Coaster category in your toolbox (postition may vary):
image

Block Help

To build your minecart roller coaster using this extension, you will construct your track segment-by-segment using code. All tracks should start with a Begin Track block, then you can append any number of segments, then finish the track with a Place Track End block. You can also use code to customize certain elements of the track, like the base block and power interval.

Track Segment Blocks

These blocks are used to construct the track. Each block adds the specified segment, picking up where the previous block left off.

Begin Track

image

This block constructs a starting zone for your roller coaster, including a small backing wall, a minecart, and a "launch button". All tracks should start with this block.

Place Track End

image

This block places a final stopping area for your roller coaster, which will bring the minecart to a halt.

Add Straight Line

image
image

This adds a straight line of the specified length to your roller coaster. If you expand the block, you can select a power level for the segment:

  • Full power will ensure every rail in the segment is powered, making your roller coaster accelerate.
  • Normal power will place powered rails at a fixed interval (see Set Normal Power Interval). Your coaster will maintain a steady pace.
  • No power means no powered rails will be added. This will cause the roller coaster to slow down. Caution: if the segment is long enough, the coaster could stop completely!

Add Ramp

image
image

This adds a ramp up or down to your roller coaster. By default, it will slope 1 block up/down for every 1 block forward, but if you expand the block, you may specify a more gradual slope by increasing the number of blocks moved forward for every 1 block moved vertically.

Add Turn

image

This adds a 90 degree turn to your roller coaster in the specified direction.

Add Spiral

image

This adds a corkscrew-like spiral to your roller coaster, turning in circles while moving up or down. The width specifies how large the circles will be while the height specifies how far up or down the corkscrew will go.

Add Free Fall

image

This adds a drop in your roller coaster, where the minecart will free-fall the specified distance and land on a rail at the base of the fall. The track resumes from there.

Add Single Powered Rail

image

This adds a single powered rail to your track. Powered rails cause the minecart to accelerate.

Add Single Rail

image

This adds a single non-powered rail to your track.

Track Customization Blocks

These blocks allow you to change features of your track, like the base block and power interval. They will only apply to track segments added after the block runs. They do not apply retroactively.

Set Base Block

image

This defines the block that will go beneath all of your rails.

Set Normal Power Interval

image

This block defines how often a powered rail is inserted into your track. A smaller interval means you will have powered rails more often, making your roller coaster faster.

Water and Lava Protection

image image

These blocks enable or disable the glass barrier that gets constructed when your track goes into water or lava. If the protection is disabled, water and lava may destroy your track, but the build will complete faster.

Other

Sample Project

To view a sample roller coaster project, import this URL: https://makecode.com/_J1K7zk4VqVfr

Run the code and type "Build" into chat ("T" to open) to construct the roller coaster!

Tips & Tricks

  1. If the track ends up exiting the "loaded" section of the world while being built, building will not be able to continue. With this in mind, if you are building a large roller coaster and it seems to stop part of the way through building, try following the coaster as it builds. That will ensure the world is always loaded while the building is in progress.

Metadata (used for search, rendering)

  • for PXT/minecraft
<script src="https://makecode.com/gh-pages-embed.js"></script><script>makeCodeRender("{{ site.makecode.home_url }}", "{{ site.github.owner_name }}/{{ site.github.repository_name }}");</script>

About

Roller coaster building extension for MakeCode in Minecraft Education

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages