docs: update vehiclesplus/configuration/vehicles
This commit is contained in:
parent
a12fd27b80
commit
ec755b6636
1 changed files with 41 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
title: Vehicle Configuration
|
||||
description: Configure the base vehicles.
|
||||
published: true
|
||||
date: 2023-07-22T14:07:37.924Z
|
||||
date: 2023-07-22T14:14:20.195Z
|
||||
tags:
|
||||
editor: markdown
|
||||
dateCreated: 2023-07-22T14:07:37.924Z
|
||||
|
@ -10,7 +10,6 @@ dateCreated: 2023-07-22T14:07:37.924Z
|
|||
|
||||
# Vehicle Configuration
|
||||
## Settings per vehicle
|
||||
### The configuration file
|
||||
This section explains which settings are available per vehicle.
|
||||
*Per setting will be explained what it means as a comment (`#`).*
|
||||
```yaml
|
||||
|
@ -220,6 +219,7 @@ The skin part represents the chassic of the vehicle.
|
|||
|
||||
#### Seat
|
||||
![carseat.png](/carseat.png =10%x)
|
||||
*Please note, this part is NOT visible. The visible seat MUST be included in the skin.*
|
||||
|
||||
The seat parts represents a seat in the vehicle. Players can sit on each seat.
|
||||
```yaml
|
||||
|
@ -240,7 +240,45 @@ The seat parts represents a seat in the vehicle. Players can sit on each seat.
|
|||
isCustomPlaced: false
|
||||
```
|
||||
|
||||
####
|
||||
#### Wheel
|
||||
The wheel parts represents the wheels of a vehicle. Wheels can rotate when steering.
|
||||
```yaml
|
||||
[...]
|
||||
# DO NOT CHANGE
|
||||
className: me.legofreak107.vehiclesplus.vehicles.vehicles.objects.addons.Wheel
|
||||
# If true, the wheel moves when steering
|
||||
steering: true
|
||||
# The rotation offset at spawn, depends on the configuration in the model.
|
||||
rotationOffset: 180
|
||||
# The skin item to show.
|
||||
# For all the available settings, check out: https://www.spigotmc.org/wiki/itemstack-serialization/
|
||||
skin:
|
||||
==: org.bukkit.inventory.ItemStack
|
||||
v: 3337
|
||||
type: LEATHER_CHESTPLATE
|
||||
meta:
|
||||
==: ItemMeta
|
||||
meta-type: COLORABLE_ARMOR
|
||||
Unbreakable: true
|
||||
Damage: 2
|
||||
# The color of the skin item (will only work for COLORABLE_ARMOR).
|
||||
color:
|
||||
==: Color
|
||||
ALPHA: 255
|
||||
RED: 20
|
||||
BLUE: 20
|
||||
GREEN: 20
|
||||
# The X offset (from the base).
|
||||
xOffset: 0.0
|
||||
# The Y offset (from the base).
|
||||
yOffset: 0.0
|
||||
# The Z offset (from the base).
|
||||
zOffset: 0.0
|
||||
# DO NOT CHANGE
|
||||
UID: 7b0b9d87-502b-46c7-8b50-9bc285e0a868
|
||||
# DO NOT CHANGE
|
||||
isCustomPlaced: false
|
||||
```
|
||||
|
||||
## Modifying an existing vehicle
|
||||
The plugin comes with a standard vehicle per type (cars, motorcycles, boats, etc.).
|
||||
|
|
Reference in a new issue