Minecart Ride – Automatic minecart movement using Region ID

MINECART RIDE v1.0
by axgin96
​


Hi everyone!
I’m axgin96 — not a professional developer, just a passionate RPG Maker user who enjoys building little tools to make development easier and more fun.
Minecart Ride (KartRide.js) is my first plugin for RPG Maker MZ, created to simplify minecart sequences and minigames.
Instead of writing movement commands manually, this plugin allows you to draw a track using Region IDs and lets the minecart move automatically between two points.


Features
  • Define minecart routes using Region ID 7 tiles
  • Automatic movement between two endpoints with a single event call
  • Player switches to a vehicle graphic (index 6 in Vehicle.png) during the ride
  • The minecart event is repositioned and rotated correctly at the destination
  • Uses Self Switch A to hide/show the cart event
  • Smooth, automatic pathing
  • Works out of the box, no external plugins required

Screenshots
S9aMGO.pngJJTwiv.png
pcO6z+.png



How to Use
  1. Place KartRide.js in your project's js/plugins folder
  2. Enable it in the Plugin Manager
  3. On your map, draw a continuous track using Region ID 7
  4. Use the following script call in an event:

javascript
KartRide.toggle(eventId, [x1, y1], [x2, y2]);


Example:


javascript
KartRide.toggle(3, [10, 5], [20, 12]);


The cart will automatically move from point A to B, or B to A, depending on its current position.


Plugin Commands / Script Calls

KartRide.toggle(eventId, [x1, y1], [x2, y2]);


  • eventId: The event ID of the minecart. Only one cart event is needed; it disappears at departure and reappears at arrival.
  • [x1, y1]: Coordinates of the first endpoint
  • [x2, y2]: Coordinates of the second endpoint

Demo
A working demo is included in the Itch.io download.
It showcases the minecart in action, with map setup, events, and configuration ready to test.


Download


Terms and Credits

  • Allowed in adult-themed games
  • Credit required: Axgin96
  • Do not resell or redistribute the plugin as your own
  • Feedback and suggestions are welcome through Itch.io

Minecart Ride Plugin – Update v1.1​

Hello everyone, Here’s a small but meaningful update to the Minecart Ride plugin for RPG Maker MZ.

1.1 minecart.png
What's New in Version 1.1​

  • Improved cart movement smoothness The cart now moves more fluidly with a faster step interval (120 milliseconds)
  • Fixed (hopefully) a bug that caused the player sprite to not be correctly replaced with the cart sprite at the start of the event.
  • Included a new sample project/demo A fully editable RPG Maker MZ project is now included. You can use it as a quick test environment or as a starting point for your implementation.

Original thread: https://forums.rpgmakerweb.com/threads/minecart-ride-automatic-minecart-movement-using-region-id.178070/