Features
- Spawn work carts and trains.
- Change the forward / reverse speed of the work cart.
- Check the speed of the work cart/train.
Override Behaviors
This plugin will override the default speed behaviors of the work cart if you so choose. If you set a custom speed on a work cart, it will stay in effect until you disable it or destroy your work cart.
All spawned work carts will not take damage from anyone or anything. This is intentional to avoid the work cart from being destroyed and causing player dismount issues.
Caveats
- Players need to be seated in the work cart chair in order to run the speed command.
- Avoid making work cart speeds too fast. This will cause abnormal behavior that may lead to issues with the player getting stuck in the cart.
Permissions
mytransit.use- Allows players to use spawn, kill, and help commands.mytransit.admin- Allows players to use these additional speed and check commands.
Chat Commands
/mtspawn- Spawn a work cart/train (must be standing near a track in the under ground tunnels./mtkill- Remove your work cart/train./mtspeed<number>- Adjust the speed of your work cart. Positive numbers will make the cart go forward. Negative numbers will make the cart go in reverse./mtspeed.off- Disable custom speed and revert back to normal work cart speeds. The work cart will slow down over time, this is not an immediate jump back down to normal speeds./mtcheck- Check the speed of your work cart/train.
Default Configuration
Adjust the forward and reverse speed settings for your work carts/trains.
{
"Forward Speed": 200,
"Reverse Speed": -200,
"useFuel": false
}
Localization
{
"Spawned": "<size=18><color=#ffc34d>MyTransit</color></size>\nYou have spawned your <color=#9999ff>transit</color>.",
"BuildingBlocked": "<color=#ffc34d>MyTransit</color>: Can't spawn/recall a transit while building blocked.",
"Mounted": "<color=#ffc34d>MyTransit</color>: Can't spawn/recall a transit while mounted.",
"Help": "<size=18><color=#ffc34d>MyTransit</color></size>\n<color=#9999ff>/mtspawn</color> to spawn your transit.\n<color=#9999ff>/mtkill</color> to kill your transit.\n<color=#9999ff>/mthelp</color> to open this help menu.",
"HelpAdmin": "<size=18><color=#ffc34d>MyTransit</color></size>\n<color=#9999ff>/mtspawn</color> to spawn your transit.\n<color=#9999ff>/mtkill</color> to kill your transit.\n<color=#9999ff>/mthelp</color> to open this help menu.\n\n<size=13><color=#ff6666>Admin Commands</color></size>\n<color=#9999ff>/mtspeed</color> to set the speed of your transit.\n</size><color=#9999ff>/mtcheck</color> to check the speed of your transit.",
"Flying": "<color=#ffc34d>MyTransit</color>: Can't spawn while jumping, flying, or falling",
"NoArgs": "<color=#ffc34d>MyTransit</color>: Please specify a speed.",
"NoArgsTransit": "<color=#ffc34d>MyTransit</color>: You must specify a type of transit!\n<color=#ffc34d>/mtspawn cart</color> workcart (without couplings)\n<color=#ffc34d>/mtspawn train</color> above ground train (with couplings)\n<color=#ffc34d>/mtspawn train2</color> above ground covered train (with couplings)\n<color=#ffc34d>/mtspawn loco</color> to spawn a locomotive.\n<color=#ffc34d>/mtspawn caboose</color> to spawn a caboose.",
"OutOfBounds": "<color=#ffc34d>MyTransit</color>: Speed out of bounds. Please specify a speed between {0} and {1}",
"NotMounted": "<color=#ffc34d>MyTransit</color>: You need to be seated in the train.",
"NotNearTrack": "<color=#ffc34d>MyTransit</color>: Please stand next to a track to spawn.",
"Cooldown": "<color=#ffc34d>MyTransit</color>: You are on a 5 second cooldown.",
"TransitKilled": "<color=#ffc34d>MyTransit</color>: Your transit has been killed.",
"TransitSpeed": "<color=#ffc34d>MyTransit</color>: The transit speed is <color=#b0fa66>{0}</color>.",
"TransitSpeedDisabled": "<color=#ffc34d>MyTransit</color>: Custom speed <color=#ff6666>disabled</color>.",
"TransitSpeedEnabled": "<color=#ffc34d>MyTransit</color>: Custom speed set to <color=#b0fa66>{0}</color>.",
"TransitNotOut": "<color=#ffc34d>MyTransit</color>: You do not have a transit out.",
"TransitExists": "<color=#ffc34d>MyTransit</color>: You already have a transit out. Type <color=#9999ff>/mtkill</color> to kill it. ",
"Wounded": "<color=#ffc34d>MyTransit</color>: You cannot spawn a transit while wounded.",
"NoPerm": "<color=#ffc34d>MyTransit</color>: You don't have permission to use that.",
"Killed": "<color=#ffc34d>MyTransit</color>: You just removed your transit."
}
Credits
Thank you unboxingman for the plugin assistance.
Support
- Need help? Visit our Dark Side Development Discord
- All plugins available at Dark Side Development
- Like what I do? Your support is greatly appreciated. Check out my Ko-Fi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

