Setup your vehicle moves (On Working) - korbynullevig/craftmoto GitHub Wiki
- Example from Template.yml
## How this add-on contributes to vehicle movement.
move:
gravity:
use_custom: false ## Whether or not to use this custom gravity value.
custom: 0.0 ## The value of gravity. Negative values are downwards. Default is roughly 0.04.
collide_with_mobs: true ## Whether or not this vehicle can be pushed by mobs.
turn:
sensitivity: 1 ## Higher values will require longer to turn.
pitch:
enabled: false ## Whether or not this vehicle will pitch forward/backward with the player.
enabled_gravity: true ## Whether or not to use pitch when falling.
offset: 0 ## How much to offset the vehicle pitch from the player pitch.
gravity_cutoff: 80 ## Similar to turn sensitivity.
clamp:
lower: -90 ## The furthest down it can pitch.
upper: 90 ## The furthest up it can pitch.
gravity: 90 ## The furthest down it can pitch from gravity.
yaw_offset: 0 ## How much to offset the vehicle yaw from the player's yaw.
climb: 1 ## How many blocks this vehicle can move vertically while driving.
float:
enabled: true ## Whether or not this vehicle can float.
offset: 0.0 ## How submerged to be while floating.
normal:
reverse_directions: false ## Whether or not to reverse W/S controls.
max_acceleration: 0.28 ## The maximum acceleration.
vertical:
reverse_directions: false ## Whether or not to reverse pitched W/S y-controls.
max_acceleration: 0.17 ## The maximum acceleration (applies to fly).
strafe:
enabled: false ## Whether or not to allow the A/D strafe movement.
as_wasd: true ## Whether or not to use A/D as turn keys instead of strafe keys.
reverse_directions: false ## Whether or not to reverse A/D controls.
max_acceleration: 0.28 ## The maximum acceleration.
multipliers: ## How much to multiply the acceleration by in certain cases.
backwards: 1
in_air: 1
in_water: 1
on_land: 1
underwater: 1
fly_multipliers: ## How much to multiply the vertical acceleration by when flying.
in_air: 1
in_water: 1
on_land: 1
underwater: 1
friction: ## The percentage of speed to maintain each tick in certain cases from 0.0 to 1.0 (0% to 100%).
in_air: 0.4
in_water: 0.9
underwater: 0.9
## Here you can specify a list of items to use as a custom inventory. If you specify any items, any player joining the vehicle will have their inventory cleared and loaded with these items (in order) for as long as they're on the vehicle. WARNING: IF THE SERVER CRASHES WHILE A PLAYER IS RIDING THE VEHICLE, THEIR ORIGINAL INVENTORY WILL BE LOST.
custom_inventory:
- ==: org.bukkit.inventory.ItemStack
type: DIRT
-
-
-
- ==: org.bukkit.inventory.ItemStack
type: STONE
CONFIGURATE THE GRAVITY (Optional)
gravity:
use_custom: <true / false> ## Whether or not to use this custom gravity value.
custom: <double> ## The value of gravity. Negative values are downwards. Default is roughly 0.04.
-
Gravity system permise to your vehicle to fall at different speed or get higher automatically.
-
Be careful, at any custom gravity, vehicles gonna fall fatser and faster while falling.
-
use_custom: <true/false>
whether or not the custom gravity. -
custom: <double>
The value of gravity. if gravity is > 0, your vehicle get higher. Under 0, vehicle goes downwards. 0 is neutral.
MOBS COLLIDING (Optional)
collide_with_mobs: <true / false> ## Whether or not this vehicle can be pushed by mobs.
- If it is set on true, any mob or player can push the vehicle by walk to him.
SET UP THE TURN
turn:
sensitivity: <double> ## Higher values will require longer to turn.
pitch:
enabled: <true / false> ## Whether or not this vehicle will pitch forward/backward with the player.
enabled_gravity: <true / false> ## Whether or not to use pitch when falling.
offset: <int> ## How much to offset the vehicle pitch from the player pitch.
gravity_cutoff: <int> ## Similar to turn sensitivity.
clamp:
lower: <int> ## The furthest down it can pitch.
upper: <int> ## The furthest up it can pitch.
gravity: <int> ## The furthest down it can pitch from gravity.
yaw_offset: <int> ## How much to offset the vehicle yaw from the player's yaw.
sensitivity: <double> ## Higher values will require longer to turn.
- Put the difficulty to turn the vehicle. Higher value require more time.
- WASD doesn't use this sensitivity, and
/vinspect
only gives this sensibility.
enabled: <true / false>
- Does this vehicle will pitch with the player ? Generally used on helicopters, planes....
enabled_gravity: <true / false>
- Whether or not if the pitch will be functionnal when your vehicle is falling.