Only this pageAll pages
Powered by GitBook
1 of 8

QualityArmoryVehicles2

Installation

Loading...

Loading...

Customization

Loading...

Loading...

Loading...

Purchase

Creating a vehicle

Learn how to create a vehicle

For creating a vehicle I suggest editing a premade configuration.

These are all settings.

vehicle_type

The vehicle type. Available types: Car, Plane, Boat, Helicopter, Train, Drill, Tractor.

name

The vehicle name, it must be unique.

id

The vehicle id, it must be unique.

displayname

The vehicle display name.

center

A vector displaying the center of that vehicle.

passagers

A list of vectors representing the position of the passengers' seats.

stopMeleeDamage

If set to true, the vehicle will not be damaged by guns.

RequiresFuel

If set to true, the vehicle will require the fuel for being used.

widthOffset

The width of the hitbox

heightOffset

The height of the hitbox

vehicle_texture_material

The item of the vehicle

maxHealth

The max health of the vehicle

cost

The cost of the vehicle in the shop. To disable it, set it to -1.

InputManager

A map of registered inputs.

Input types: HONK, SIREN, MININUKE_BOMBER, TNT_BOMBER, 40MM_LAUNCHER, BULLETS_556.

ItemLore

A list of strings for the item lore

TurnSpeedInRadians

The turn speed

trunksize

The size of how many items can the trunk contain.

allowedInShop

If set to true, players will be able to buy the vehicle from the shop.

maxAcceleration

The max speed for the vehicle

baseAcceleration

The base speed for the vehicle

maxReverseAcceleration

The max reverse speed for the vehicle

canJumpOnBlocks

If set to true, the vehicle will be able to jump on blocks

jumpHeight

The height of how many blocks can the vehicle jump

model.ModelSize

Current available options: BABY_ARMORSTAND_HEAD, ADULT_ARMORSTAND_HEAD, ADULT_ARMORSTAND_HAND, TURTLE

rotationMultiplier

A number that is multiplied by the calculated rotation.

sound

The id of the sound that is played while driving

soundVolume

The volume of the sound

driverseat.Offset

The vector that rapresents the position of the driver seat.

Getting Started

Installation of the plugin

Installing the plugin is very simple. There are only 4 steps to do.

Install

ProtocolLib

ResourcePack

Learn how to see the custom models

QualityArmoryVehicles uses a resourcepack to create realistic vehicles without replacing existing minecraft items.

Every user of the server should install the resourcepack to see them.

Automatic installation

With the automatic installation, the resourcepack is downloaded and enabled by default on player join.

Manual installation

If you set the QAMini.sendResourcepackOnJoin option to false.

This will only work if QualityArmory is not installed.

If it is installed the resourepack will be handled from that plugin.

Configuration

Learn how to configure the plugin

The configuration documentation is structured in the following format:

Title: Setting Description: What the setting does

If an option is not documented on this list, it is a deprecated or a no longer used option

prefix

The prefix of the plugin. It is used in all messages. To disable it, just set it to "".

USE_1_13_MODEL_SYSTEM

If set to true, the plugin will use a legacy method for handling vehicles.

enable_VehicleLimiter

If set to true, the plugin will limit per-player owned vehicles based on their permission. For example, if the player has the qualityarmoryvehicles.vehiclelimit.5 permission, he will have a limit of 5 vehicles.

enable_PickupVehicles

If set to true, players will be able to pick up the vehicle from the gui.

enable_UnlockableVehicles

If set to true, when picking up a vehicle, it will be put in the player's garage.

enable_GarageCallback

If set to true, players will be able to pick up their spawned vehicles by clicking on it in the /garage gui.

enable_RequirePermsToDriveType

If set to true, players will have to have a permission to drive a vehicle. For example qualityarmoryvehicles.candrive.ambulance.

enable_SetOwnerOnVehicleSpawn

If set to true, when a vehicle is spawned, it will be automatically owned by the player who placed it.

enable_VehicleDamage

If set to true, players will be able to damage a vehicle with a gun or by hitting it.

enable_SetOwnerOfVehicleIfUnowned

If set to true, when a player enters a vehicle's driver seat, if no owner is set, he will become the vehicle's owner.

Enable_Creation_Of_Default_Files

If set to true, the plugin will generate example vehicles files.

enable_RemoveVehiclesOnDismount

If set to true, when a user dismounts a vehicle, it will be picked up.

enable_RemoveVehiclesOnPlayerQuit

If set to true, when a user quits, his vehicle will be picked up.

enable_DestroyVehiclesOnPlayerQuit

If set to true, when a user quits, his vehicle will be destroyed.

enable_StopCreativeDuplication

If set to true, users will not be able to duplicate vehicles from the creative inventory.

enable_VehiclePlayerCollision

If set to true, vehicles will have collisions when they collide with others or with players.

In rare cases, it may cause some small lag on the first collision. If this happens, I suggest disabling this option.

enable_SwapEndermiteWithCheckenForLowRider

If set to true, the plugin will use chickens for the passenger seats.

enable_FuelCarsWhenSpawnedFromGarage

If set to true, when picking a vehicle from the garage, it will be fueled.

enable_UseHeadsForGUI

If set to true, the plugin will use heads to make the vehicle gui cooler.

enable_AntiCheatHook

If set to true, the plugin will hook with the internal Minecraft anticheat to prevent users from getting kicked for flying.

freezeOnDestroy

If set to true, when a vehicle is destroyed, it will be frozen and not removed.

bypassCoalInCreative

If set to true, users will be able to bypass fuel requirement when in creative mode.

sendActionBarOnMove

If set to true, users will see a customizable message in the actionbar when moving with a vehicle.

enableShopCooldown

If set to true, there will be a cooldown of some milliseconds when shopping items in the /qav shop to prevent bugs.

makeVehiclesPublic

If set to true, all vehicles will be public.

enable_RequirePermToBuyVehicle

If set to true, players will need to have a permission to buy a vehicle. The permission format is: qualityarmoryvehicles.candrive.<type>

enable_VehiclesHaveTrunks

If set to true, vehicles will have a trunk to store items.

blockAccelerationReduction

This contains a list of blocks to accelerate the vehicle. This is the format:

blockAccelerationReduction:
  BLOCK_NAME: 1.0

enable_RemoveVehiclesOnEmpty

If set to true, when a vehicle is empty, it will be picked up.

BlacklistedWorlds

A list of worlds where the vehicles can't be used.

maxYHeight

The max height for using vehicles.

enable_useChatForOutOfdFuelMessage

If set to true, when a vehicle will be out of fuel, a message will be sent to the user in the chat. If set to false, that message will be sent in the actionbar.

enable_DestroyVehiclesOnWater

If set to true, when a vehicle will touch water, it will be destroyed.

modernPlaneMovements

If set true, the planes and helicopters will have easier controls.

You can get a list of block names .

here

Creating the model

Learn how to create the vehicle model

This is the hardest part but it's not impossible and you can do it. 💪

You can follow a tutorial on YouTube.

Here are some examples:

Creating a model

Creating a vehicle