SBDevelopment
Search…
Adding new vehicles
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.
Resources
BKDev Model Marketplace
SEBXTER.PL
Home
MKModels

Adding the vehicles to your resourcepack

Once you have downloaded your new vehicles, it’s time to combine them into a singular resource pack.
    1.
    Using a program like 7-Zip, unarchive the Example Resource Pack into a folder.
    2.
    Unarchive the new vehicle archive into a separate folder.
    3.
    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.
    4.
    Use 7-zip to re-archive the resource pack.
    5.
    Follow along with Step 2 of the Installing the Resource Pack guide.

Adding the vehicles to the plugin

    1.
    Head into the VehiclesPlus folder, then click on the vehicles folder, then click on the folder of the vehicle type you want to add.
    2.
    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.
    3.
    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:
1
# This is for the serialization of the vehicle. DO NOT TOUCH THIS!
2
className: me.legofreak107.vehiclesplus.vehicles.objects.BaseVehicle
3
4
# This is the name of the vehicle
5
name: ExampleCar
6
7
# This is the type of the vehicle, you can change CarType to (BikeType, BoatType, PlaneType, HelicopterType, TankType, HovercraftType)
8
vehicleType: me.legofreak107.vehiclesplus.vehicles.objects.types.CarType
9
10
# This is a list of base colors the vehicle comes in, when a players buy vehicles they can click on one of those colors
11
# You can add as much colors as you want, just copy the items and paste them. Make sure to rename the list tags.
12
baseColorList:
13
list0:
14
==: Color
15
RED: 255
16
BLUE: 0
17
GREEN: 0
18
list1:
19
==: Color
20
RED: 0
21
BLUE: 0
22
GREEN: 0
23
list2:
24
==: Color
25
RED: 255
26
BLUE: 255
27
GREEN: 255
28
list3:
29
==: Color
30
RED: 128
31
BLUE: 128
32
GREEN: 128
33
list4:
34
==: Color
35
RED: 192
36
BLUE: 192
37
GREEN: 192
38
39
# This is a list of parts the vehicle has. This list contains (Seats, Skins, Wheels and all other visible addons)
40
# You can add as much addons as you want, just copy the items and paste them. Make sure to rename the list tags.
41
partList:
42
list0:
43
className: me.legofreak107.vehiclesplus.vehicles.objects.base.Skin
44
skin:
45
==: org.bukkit.inventory.ItemStack
46
type: LEATHER_BOOTS
47
damage: 1
48
meta:
49
==: ItemMeta
50
meta-type: LEATHER_ARMOR
51
Unbreakable: true
52
color:
53
==: Color
54
RED: 255
55
BLUE: 255
56
GREEN: 255
57
xOffset: 0.0
58
yOffset: 0.0
59
UID: 3be4535f-3ba0-4071-bc05-18edba786411
60
zOffset: 0.0
61
isCustomPlaced: false
62
list1:
63
className: me.legofreak107.vehiclesplus.vehicles.objects.base.Seat
64
steer: true
65
xOffset: -0.2
66
yOffset: -1.45
67
UID: cf704624-d5ad-40ef-974d-cf548237863c
68
zOffset: 0.45
69
isCustomPlaced: false
70
list2:
71
className: me.legofreak107.vehiclesplus.vehicles.objects.base.Seat
72
steer: false
73
xOffset: -0.2
74
yOffset: -1.45
75
UID: 572961b2-a246-43e5-a65a-94d54951f8c6
76
zOffset: -0.45
77
isCustomPlaced: false
78
list3:
79
className: me.legofreak107.vehiclesplus.vehicles.objects.base.Seat
80
steer: false
81
xOffset: -1.0
82
yOffset: -1.45
83
UID: 974768af-7149-497e-9f8a-586a1f337ebc
84
zOffset: 0.45
85
isCustomPlaced: false
86
list4:
87
className: me.legofreak107.vehiclesplus.vehicles.objects.base.Seat
88
steer: false
89
xOffset: -1.0
90
yOffset: -1.45
91
UID: 769a72b0-435a-478d-a764-861e91ab84bb
92
zOffset: -0.45
93
isCustomPlaced: false
94
list5:
95
className: me.legofreak107.vehiclesplus.vehicles.objects.base.Wheel
96
steering: true
97
rotationOffset: 180
98
skin:
99
==: org.bukkit.inventory.ItemStack
100
type: LEATHER_CHESTPLATE
101
damage: 2
102
meta:
103
==: ItemMeta
104
meta-type: LEATHER_ARMOR
105
Unbreakable: true
106
color:
107
==: Color
108
RED: 20
109
BLUE: 20
110
GREEN: 20
111
xOffset: 1.8
112
yOffset: 0.0
113
UID: fa239f95-9706-4c84-81dc-fad43aa038f3
114
zOffset: -1.1
115
isCustomPlaced: false
116
list6:
117
className: me.legofreak107.vehiclesplus.vehicles.objects.base.Wheel
118
steering: true
119
rotationOffset: 0
120
skin:
121
==: org.bukkit.inventory.ItemStack
122
type: LEATHER_CHESTPLATE
123
damage: 2
124
meta:
125
==: ItemMeta
126
meta-type: LEATHER_ARMOR
127
Unbreakable: true
128
color:
129
==: Color
130
RED: 20
131
BLUE: 20
132
GREEN: 20
133
xOffset: 1.8
134
yOffset: 0.0
135
UID: 43e0af40-de3c-4ac8-a32f-23c4a35de501
136
zOffset: 1.1
137
isCustomPlaced: false
138
list7:
139
className: me.legofreak107.vehiclesplus.vehicles.objects.base.Wheel
140
steering: false
141
rotationOffset: 180
142
skin:
143
==: org.bukkit.inventory.ItemStack
144
type: LEATHER_CHESTPLATE
145
damage: 2
146
meta:
147
==: ItemMeta
148
meta-type: LEATHER_ARMOR
149
Unbreakable: true
150
color:
151
==: Color
152
RED: 20
153
BLUE: 20
154
GREEN: 20
155
xOffset: -1.67
156
yOffset: 0.0
157
UID: 439a6c92-c4b2-4a7c-b43e-9b2d641821a1
158
zOffset: -1.1
159
isCustomPlaced: false
160
list8:
161
className: me.legofreak107.vehiclesplus.vehicles.objects.base.Wheel
162
steering: false
163
rotationOffset: 0
164
skin:
165
==: org.bukkit.inventory.ItemStack
166
type: LEATHER_CHESTPLATE
167
damage: 2
168
meta:
169
==: ItemMeta
170
meta-type: LEATHER_ARMOR
171
Unbreakable: true
172
color:
173
==: Color
174
RED: 20
175
BLUE: 20
176
GREEN: 20
177
xOffset: -1.67
178
yOffset: 0.0
179
UID: 685d05d7-9600-4760-b85a-33e0b59174ce
180
zOffset: 1.1
181
isCustomPlaced: false
182
183
# 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.
184
speedSettings:
185
className: me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageUpgradeable
186
base: 100
187
max: 200
188
step: 5
189
upgradeCost: 1000
190
191
# 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.
192
fuelTankSettings:
193
className: me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageUpgradeable
194
base: 50
195
max: 100
196
step: 5
197
upgradeCost: 1000
198
199
# 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.
200
turningRadiusSettings:
201
className: me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageUpgradeable
202
base: 7
203
max: 15
204
step: 1
205
upgradeCost: 1000
206
207
# 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.
208
accelerationSettings:
209
className: me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageUpgradeable
210
base: 50
211
max: 100
212
step: 5
213
upgradeCost: 1000
214
215
# This are the horn settings of the vehicle, here you can enable the horn and change the sound.
216
hornSettings:
217
className: me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageHorn
218
enabled: true
219
sound: BLOCK_NOTE_BASS
220
221
# This is the drift option, if enabled. The vehicle can drift using space
222
drift: true
223
224
# 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
225
exhaustSettings:
226
className: me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageSmoke
227
enabled: true
228
xOffset: -5.0
229
yOffset: 0.0
230
zOffset: 0.0
231
particleName: SMOKE_LARGE
232
233
# Can the player exit while the vehicle is moving
234
canExitWhileMoving: true
235
236
# The price of the vehicle when purchased in the shop. If 0 it is not displayed in the shop
237
price: 100000.0
238
239
# The fuel settings of the vehicle, here you can set the usage per 100KM on average speed and the type.
240
fuelSettings:
241
className: me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageFuel
242
usage: 6.0
243
type: GASOLINE
244
245
# The vehicle health
246
health: 100
247
248
# The trunk size of a vehicle, this HAS to be a multiple of 9
249
trunkSize: 27
250
251
# The hitbox settings of a vehicle
252
hitbox:
253
className: me.legofreak107.vehiclesplus.vehicles.objects.base.storage.StorageHitbox
254
length: 3.0
255
width: 2.0
256
height: 1.0
Copied!
4. When you are done editing, save the file and use /v reload to reload the data.
Last modified 2mo ago