Configuration
This page describes all the options in your configuration files.
config.yml
This is the default configuration file.
config-version
This value is used internally to determine whether or not to automatically update the config.yml
file.
Do not manually edit this value! It may result in corruption of your files.
locale
Changing this value allows you to change the language used for VehiclesPlus. The value must match a valid file under the locale
folder.
canDriveOverSlabs
Changes the ability to drive over half blocks, or slabs. Disabling this will prevent vehicles from automatically "climbing" over half slabs.
canDriveOverBlocks
Changes the ability to drive over full blocks. Disabling this will prevent vehicles from automatically "climbing" over full blocks.
repairCostDivision
The number to divide the vehicle's purchase cost by when repairing a vehicle. For example, when repairing a car that costs $15,000, by default, it will cost $150 to repair. 15000 / 100 = 150
vehicleDamage
Globally enable or disable vehicle damage. When disabled, vehicles will be invincible and take no damage on collision with other objects or entities.
entityCollisionStop
Will the vehicle come to a halt when it collides with an entity? Set to false to allow the vehicle to lose no speed when colliding with entities.
entityCollisionDamageSelf
When colliding with an entity, should the vehicle take damage? Set to false to disable vehicle damage when colliding with entities.
entityCollisionDamageEntity
When colliding with an entity, should the entity take damage? Set to false to disable entity damage when the entity is hit by a vehicle.
renameCost
The price that it costs to rename your vehicle.
ownerChangeCost
The price that it costs to transfer your vehicle to a new owner.
onlySpawnOnSpawnpoints
Should vehicles only be able to spawn on a Spawnpoint? Set to false to allow vehicles to be spawned in anywhere.
showActionBar
Should an action bar with vehicle stats be shown while in the driver's seat? Set to false to disable.
sounds.yml
This is the default sounds.yml
configuration file.
Understanding sounds.yml
Each vehicle can have its own sound effects associated with it. Currently, the example resource pack only provides sounds for the example car.
There are six different types of sounds that can be made during a vehicle's motion:
idle
start
accelerate
driving
slowingdown
Each sound corresponds to a specific type of motion that the vehicle can make.
idle
Sound produced when a vehicle is not in motion.
start
Sound produced when a vehicle starts up.
accelerate
Sound produced when a vehicle is speeding up.
driving
Sound produced when a vehicle is driving at a near-constant speed.
slowingdown
Sound produced when a car is slowing down.
The sound
value corresponds to a specific sound file found in the resource pack. Additionally, the duration
value corresponds to the sound's duration.
Adding Custom Vehicle Sounds
Editing or adding vehicle sounds is quite simple.
Begin by duplicating the
examplecar
sound configuration in thesounds.yml
file.Edit the
examplecar
values to match the name of your vehicle. For example, if I had a vehicle named TestVehicle, I would changeexamplecar-engine-idle
totestvehicle-engine-idle
.Add your sound files to your resource pack, under the
assets/minecraft/sounds
folder. It is highly recommended that you create an additional folder for your specific vehicle's sounds, such asassets/minecraft/sounds/testvehicle
.
The sounds.yml
file is case insensitive. You may choose to change your car's name to be completely lowercase if you wish, as shown in the example above.
It is important to make sure that your sound files are in the .ogg
format. Minecraft does not support any other sound format. An online MP3 to OGG converter can be found here.
Adding your own language.
Understanding Locale Files
Within a locale file, you are able to change the messages that are sent by VehiclesPlus. Every message sent by VehiclesPlus is completely customizable.
Creating a Locale File
Begin by making a copy of the
lang_en.yml
file, located underplugins/VehiclesPlus/locale
. This is the default English locale file.Rename the file to match the language that you are translating. For example, Spanish would be
lang_es.yml
. To view a list of standard 2 letter language names, click here. You do not necessarily have to match these names, but it is recommended.Once renamed, open the file and begin editing the messages. Once you are satisfied, save the file.
Open your
config.yml
file. Find the line that sayslocale: en
and edit it to match the name of your locale file. For example, if I had createdlang_es.yml
, I would change the line tolocale: es
.Save your
config.yml
and restart the server.
Do not include the lang
_ prefix or .yml
ending on the locale: en
line in your configuration.
Last updated