SBDevelopment
Search…
Configuration
This page describes all the options in your configuration files.

config.yml

This is the default configuration file.
1
config-version: 1.0.3
2
locale: en
3
canDriveOverSlabs: true
4
canDriveOverBlocks: true
5
repairCostDivision: 100.0
6
vehicleDamage: true
7
entityCollisionStop: true
8
entityCollisionDamageSelf: true
9
entityCollisionDamageEntity: true
10
renameCost: 1000.0
11
ownerChangeCost: 1000.0
12
onlySpawnOnSpawnpoints: false
13
showActionBar: true
Copied!

config-version

This value is used internally to determine whether or not to automatically update the config.yml file.
1
config-version: 1.0.3
Copied!
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.
1
locale: en
Copied!

canDriveOverSlabs

Changes the ability to drive over half blocks, or slabs. Disabling this will prevent vehicles from automatically "climbing" over half slabs.
1
canDriveOverSlabs: true
Copied!

canDriveOverBlocks

Changes the ability to drive over full blocks. Disabling this will prevent vehicles from automatically "climbing" over full blocks.
1
canDriveOverBlocks: true
Copied!

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
1
repairCostDivision: 100.0
Copied!

vehicleDamage

Globally enable or disable vehicle damage. When disabled, vehicles will be invincible and take no damage on collision with other objects or entities.
1
vehicleDamage: true
Copied!

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.
1
entityCollisionStop: true
Copied!

entityCollisionDamageSelf

When colliding with an entity, should the vehicle take damage? Set to false to disable vehicle damage when colliding with entities.
1
entityCollisionDamageSelf: true
Copied!

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.
1
entityCollisionDamageEntity: true
Copied!

renameCost

The price that it costs to rename your vehicle.
1
renameCost: 1000.0
Copied!

ownerChangeCost

The price that it costs to transfer your vehicle to a new owner.
1
ownerChangeCost: 1000.0
Copied!

onlySpawnOnSpawnpoints

Should vehicles only be able to spawn on a Spawnpoint? Set to false to allow vehicles to be spawned in anywhere.
1
onlySpawnOnSpawnpoints: false
Copied!

showActionBar

Should an action bar with vehicle stats be shown while in the driver's seat? Set to false to disable.
1
showActionBar: true
Copied!

sounds.yml

This is the default sounds.yml configuration file.
1
sounds:
2
examplecar-engine-idle:
3
sound: car.idle
4
duration: 6
5
examplecar-engine-start:
6
sound: car.start
7
duration: 2
8
examplecar-engine-accelerate:
9
sound: car.accelerate
10
duration: 2
11
examplecar-engine-driving:
12
sound: car.driving
13
duration: 2
14
examplecar-engine-slowingdown:
15
sound: car.slowingdown
16
duration: 2
Copied!

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.
    1.
    Begin by duplicating the examplecar sound configuration in the sounds.yml file.
    2.
    Edit the examplecar values to match the name of your vehicle. For example, if I had a vehicle named TestVehicle, I would change examplecar-engine-idle to testvehicle-engine-idle.
    3.
    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 as assets/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

    1.
    Begin by making a copy of the lang_en.yml file, located under plugins/VehiclesPlus/locale. This is the default English locale file.
    2.
    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.
    3.
    Once renamed, open the file and begin editing the messages. Once you are satisfied, save the file.
    4.
    Open your config.yml file. Find the line that says locale: en and edit it to match the name of your locale file. For example, if I had created lang_es.yml, I would change the line to locale: es.
    5.
    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 modified 2mo ago