Vehicle Config
Vehicle Global Configuration
Global configuration manifest for the TypeWriter-Vehicle extension.
Fields
| Field | Type | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
storage | Ref<VehicleStorageEntry> | — | Ou les vehicules des joueurs sont stockes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
baseOwnershipLimit | Int | 1 | Base ownership limit if no permission/fact is specified | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sounds | VehicleSounds | — | Global sounds configuration
|
| Field | Type | Default | Description |
|---|---|---|---|
spawn | Sound | EMPTY | — |
despawn | Sound | EMPTY | — |
collision | Sound | EMPTY | — |
levelUp | Sound | EMPTY | — |
fuelEmpty | Sound | EMPTY | — |
destroyed | Sound | EMPTY | — |
messagesVehicleMessagesVehicleMessages (19)
| Field | Type | Default | Description |
|---|---|---|---|
spawned | String | <green>Vehicle summoned!</green> | — |
despawned | String | <yellow>Vehicle stored in garage.</yellow> | — |
insufficientFuel | String | <red>Not enough fuel to start the engine!</red> | — |
limitReached | String | <red>You have reached your maximum vehicle limit (%limit%).</red> | — |
repairSuccess | String | <green>Vehicle repaired successfully.</green> | — |
fuelRefilled | String | <green>Vehicle refuelled.</green> | — |
noRepairMaterial | String | <red>You lack the materials to repair this vehicle.</red> | — |
skinApplied | String | <green>Skin applied successfully!</green> | — |
destroyed | String | <dark_red>Your vehicle has been destroyed!</dark_red> | — |
needsRepair | String | <red>This vehicle is destroyed — repair it before summoning it again.</red> | — |
levelUp | String | <gold><b>LEVEL UP!</b></gold> Your vehicle is now level <yellow>%level%</yellow>! | — |
abilityNoVehicle | String? | <red>You are not driving a vehicle.</red> | — |
abilityNoDefinition | String? | <red>This vehicle has no usable definition.</red> | — |
abilityNotAvailable | String? | <red>This ability is not available for your vehicle.</red> | — |
abilityMissing | String? | <red>This ability is no longer configured.</red> | — |
abilityCooldown | String? | <yellow>This ability is on cooldown for %seconds%s.</yellow> | — |
abilityInsufficientStamina | String? | <red>Not enough stamina to use this ability.</red> | — |
abilityActivated | String? | <green>Ability activated.</green> | — |
repairAlreadyHealthy | String? | <yellow>This vehicle is already at full health.</yellow> | — |
How to use it
Create one entry and set storage to your Vehicle Storage: this is the only link between the extension and its data. baseOwnershipLimit is the default number of vehicles per player; add a Vehicle Ownership Limit fact entry to also honour typewriter.vehicle.limit.<n> permissions. sounds play for spawn, despawn, collision, level up, fuel empty and destroyed. messages use MiniMessage; %limit%, %level% and %seconds% are replaced where relevant.