A tutorial on how to add pre-made vehicles to your server.
Finding new vehicles
To find quality vehicles, you can search on the internet for cool models. Listed below are some websites of members who are active in the VehiclesPlus community.
Once you have downloaded your new vehicles, it’s time to combine them into a singular resource pack.
Using a program like 7-Zip, unarchive the Example Resource Pack into a folder.
Unarchive the new vehicle archive into a separate folder.
Move the assets folder from the new vehicle archive to the Example Resource Pack folder. It should combine with the assets folder that is already present in the Example Resource Pack folder.
Head into the VehiclesPlus folder, then click on the vehicles folder, then click on the folder of the vehicle type you want to add.
For this tutorial, I will be using the car type. Copy the ExampleCar.yml file and rename it to the new name of the vehicle.
Now we will open the newly copied file. I recommend using Notepad++, but there are a lot of other programs that will work too. It will look like this:
# This is for the serialization of the vehicle. DO NOT TOUCH THIS!className:me.legofreak107.vehiclesplus.vehicles.objects.BaseVehicle# This is the name of the vehiclename:ExampleCar# This is the type of the vehicle, you can change CarType to (BikeType, BoatType, PlaneType, HelicopterType, TankType, HovercraftType)
vehicleType:me.legofreak107.vehiclesplus.vehicles.objects.types.CarType# This is a list of base colors the vehicle comes in, when a players buy vehicles they can click on one of those colors# You can add as much colors as you want, just copy the items and paste them. Make sure to rename the list tags.baseColorList:list0:==:ColorRED:255BLUE:0GREEN:0list1:==:ColorRED:0BLUE:0GREEN:0list2:==:ColorRED:255BLUE:255GREEN:255list3:==:ColorRED:128BLUE:128GREEN:128list4:==:ColorRED:192BLUE:192GREEN:192# This is a list of parts the vehicle has. This list contains (Seats, Skins, Wheels and all other visible addons)# You can add as much addons as you want, just copy the items and paste them. Make sure to rename the list tags.partList:list0:className:me.legofreak107.vehiclesplus.vehicles.objects.base.Skinskin:==:org.bukkit.inventory.ItemStacktype:LEATHER_BOOTSdamage:1meta:==:ItemMetameta-type:LEATHER_ARMORUnbreakable:truecolor:==:ColorRED:255BLUE:255GREEN:255xOffset:0.0yOffset:0.0UID:3be4535f-3ba0-4071-bc05-18edba786411zOffset:0.0isCustomPlaced:falselist1:className:me.legofreak107.vehiclesplus.vehicles.objects.base.Seatsteer:truexOffset:-0.2yOffset:-1.45UID:cf704624-d5ad-40ef-974d-cf548237863czOffset:0.45isCustomPlaced:falselist2:className:me.legofreak107.vehiclesplus.vehicles.objects.base.Seatsteer:falsexOffset:-0.2yOffset:-1.45UID:572961b2-a246-43e5-a65a-94d54951f8c6zOffset:-0.45isCustomPlaced:falselist3:className:me.legofreak107.vehiclesplus.vehicles.objects.base.Seatsteer:falsexOffset:-1.0yOffset:-1.45UID:974768af-7149-497e-9f8a-586a1f337ebczOffset:0.45isCustomPlaced:falselist4:className:me.legofreak107.vehiclesplus.vehicles.objects.base.Seatsteer:falsexOffset:-1.0yOffset:-1.45UID:769a72b0-435a-478d-a764-861e91ab84bbzOffset:-0.45isCustomPlaced:falselist5:className:me.legofreak107.vehiclesplus.vehicles.objects.base.Wheelsteering:truerotationOffset:180skin:==:org.bukkit.inventory.ItemStacktype:LEATHER_CHESTPLATEdamage:2meta:==:ItemMetameta-type:LEATHER_ARMORUnbreakable:truecolor:==:ColorRED:20BLUE:20GREEN:20xOffset:1.8yOffset:0.0UID:fa239f95-9706-4c84-81dc-fad43aa038f3zOffset:-1.1isCustomPlaced:falselist6:className:me.legofreak107.vehiclesplus.vehicles.objects.base.Wheelsteering:truerotationOffset:0skin:==:org.bukkit.inventory.ItemStacktype:LEATHER_CHESTPLATEdamage:2meta:==:ItemMetameta-type:LEATHER_ARMORUnbreakable:truecolor:==:ColorRED:20BLUE:20GREEN:20xOffset:1.8yOffset:0.0UID:43e0af40-de3c-4ac8-a32f-23c4a35de501zOffset:1.1isCustomPlaced:falselist7:className:me.legofreak107.vehiclesplus.vehicles.objects.base.Wheelsteering:falserotationOffset:180skin:==:org.bukkit.inventory.ItemStacktype:LEATHER_CHESTPLATEdamage:2meta:==:ItemMetameta-type:LEATHER_ARMORUnbreakable:truecolor:==:ColorRED:20BLUE:20GREEN:20xOffset:-1.67yOffset:0.0UID:439a6c92-c4b2-4a7c-b43e-9b2d641821a1zOffset:-1.1isCustomPlaced:falselist8:className:me.legofreak107.vehiclesplus.vehicles.objects.base.Wheelsteering:falserotationOffset:0skin:==:org.bukkit.inventory.ItemStacktype:LEATHER_CHESTPLATEdamage:2meta:==:ItemMetameta-type:LEATHER_ARMORUnbreakable:truecolor:==:ColorRED:20BLUE:20GREEN:20xOffset:-1.67yOffset:0.0UID:685d05d7-9600-4760-b85a-33e0b59174cezOffset:1.1isCustomPlaced:false# This are the speed settings of the vehicle. The base is the base speed it has when it is new, each upgrade will add the step value to the base until it reaches the max.
speedSettings:className:me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageUpgradeablebase:100max:200step:5upgradeCost:1000# This are the fuel tank settings of the vehicle. The base is the base size it has when it is new, each upgrade will add the step value to the base until it reaches the max.
fuelTankSettings:className:me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageUpgradeablebase:50max:100step:5upgradeCost:1000# This are the turning settings of the vehicle. The base is the base turning it has when it is new, each upgrade will add the step value to the base until it reaches the max.
turningRadiusSettings:className:me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageUpgradeablebase:7max:15step:1upgradeCost:1000# This are the acceleration settings of the vehicle. The base is the base acceleration it has when it is new, each upgrade will add the step value to the base until it reaches the max.
accelerationSettings:className:me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageUpgradeablebase:50max:100step:5upgradeCost:1000# This are the horn settings of the vehicle, here you can enable the horn and change the sound.hornSettings:className:me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageHornenabled:truesound:BLOCK_NOTE_BASS# This is the drift option, if enabled. The vehicle can drift using spacedrift:true# This are the exhaust settings of the vehicle. Here you can enable and disable the particles, as well as setting the offset and the particle type
exhaustSettings:className:me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageSmokeenabled:truexOffset:-5.0yOffset:0.0zOffset:0.0particleName:SMOKE_LARGE# Can the player exit while the vehicle is movingcanExitWhileMoving:true# The price of the vehicle when purchased in the shop. If 0 it is not displayed in the shopprice:100000.0# The fuel settings of the vehicle, here you can set the usage per 100KM on average speed and the type.fuelSettings:className:me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageFuelusage:6.0type:GASOLINE# The vehicle healthhealth:100# The trunk size of a vehicle, this HAS to be a multiple of 9trunkSize:27# The hitbox settings of a vehiclehitbox:className:me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageHitboxlength:3.0width:2.0height:1.0
4. When you are done editing, save the file and use /v reload to reload the data.