Projectiles
Asset path: Server/Projectiles/*.json
Parent
When set this asset will inherit properties from the named asset.
When inheriting from another Projectile most properties will simply be copied from the parent asset to this asset. In the case where both child and parent provide a field the child field will simply replace the value provided by the parent, in the case of nested structures this will apply to the fields within the structure. In some cases the field may decide to act differently, for example: by merging the parent and child fields together.
Type information: String
Tags
Tags are a general way to describe an asset that can be interpreted by other systems in a way they see fit.
For example you could tag something with a Material tag with the values Solid and Stone, And another single tag Ore.
Tags will be expanded into a single list of tags automatically. Using the above example with Material and Ore the end result would be the following list of tags: Ore, Material, Solid, Stone, Material=Solid and Material=Stone.
Type information:
(Nullable) Map of the following:
| Key | Type |
|---|---|
any String | Array of String |
Appearance
Type information: (Nullable) String
Reference to a ModelAsset asset
Radius
Type information: Number defaults to: 0.0
Height
Type information: Number defaults to: 0.0
VerticalCenterShot
Type information: Number defaults to: 0.0
HorizontalCenterShot
Type information: Number defaults to: 0.0
DepthShot
Type information: Number defaults to: 0.0
PitchAdjustShot
Type information: Boolean defaults to: false
MuzzleVelocity
Type information: Number defaults to: 0.0
TerminalVelocity
Type information: Number defaults to: 0.0
Gravity
Type information: Number defaults to: 0.0
Bounciness
Type information: Number defaults to: 0.0
ImpactSlowdown
Type information: Number defaults to: 0.0
SticksVertically
Type information: Boolean defaults to: false
ComputeYaw
Type information: Boolean defaults to: true
ComputePitch
Type information: Boolean defaults to: true
ComputeRoll
Type information: Boolean defaults to: true
TimeToLive
Type information: Number defaults to: 0.0
BounceSoundEventId
Type information: (Nullable) String
Reference to a SoundEvent asset
BounceParticles
Type information:
(Nullable) Particle System that can be spawned in the world.
WorldParticle with the following properties:
| Key | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SystemId | String | The id of the particle system. | ||||||||||||
| Color | (Nullable) A color in the form:
| The colour used if none was specified in the particle settings. | ||||||||||||
| Scale | (Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | The scale of the particle system. | ||||||||||||
| PositionOffset | (Nullable)
Vector3f
| The position offset from the spawn position. | ||||||||||||
| RotationOffset | (Nullable)
Direction
| The rotation offset from the spawn rotation. |
HitSoundEventId
Type information: (Nullable) String
Reference to a SoundEvent asset
HitParticles
Type information:
(Nullable) Particle System that can be spawned in the world.
WorldParticle with the following properties:
| Key | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SystemId | String | The id of the particle system. | ||||||||||||
| Color | (Nullable) A color in the form:
| The colour used if none was specified in the particle settings. | ||||||||||||
| Scale | (Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | The scale of the particle system. | ||||||||||||
| PositionOffset | (Nullable)
Vector3f
| The position offset from the spawn position. | ||||||||||||
| RotationOffset | (Nullable)
Direction
| The rotation offset from the spawn rotation. |
Damage
Type information: Integer defaults to: 0
DeadTime
Type information: Number defaults to: 0.0
MissSoundEventId
Type information: (Nullable) String
Reference to a SoundEvent asset
MissParticles
Type information:
(Nullable) Particle System that can be spawned in the world.
WorldParticle with the following properties:
| Key | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SystemId | String | The id of the particle system. | ||||||||||||
| Color | (Nullable) A color in the form:
| The colour used if none was specified in the particle settings. | ||||||||||||
| Scale | (Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | The scale of the particle system. | ||||||||||||
| PositionOffset | (Nullable)
Vector3f
| The position offset from the spawn position. | ||||||||||||
| RotationOffset | (Nullable)
Direction
| The rotation offset from the spawn rotation. |
DeadTimeMiss
Type information: Number defaults to: 10.0
DeathSoundEventId
Type information: (Nullable) String
Reference to a SoundEvent asset
DeathParticles
Type information:
(Nullable) Particle System that can be spawned in the world.
WorldParticle with the following properties:
| Key | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SystemId | String | The id of the particle system. | ||||||||||||
| Color | (Nullable) A color in the form:
| The colour used if none was specified in the particle settings. | ||||||||||||
| Scale | (Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | The scale of the particle system. | ||||||||||||
| PositionOffset | (Nullable)
Vector3f
| The position offset from the spawn position. | ||||||||||||
| RotationOffset | (Nullable)
Direction
| The rotation offset from the spawn rotation. |
DeathEffectsOnHit
Type information: Boolean defaults to: false
ExplosionConfig
The explosion config associated with this projectile
Type information:
(Nullable)
ExplosionConfig with the following properties:
| Key | Type | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DamageEntities | Boolean defaults to: true | Determines whether the explosion should damage entities. | ||||||||||||||||||||||||||||||
| DamageBlocks | Boolean defaults to: true | Determines whether the explosion should damage blocks. | ||||||||||||||||||||||||||||||
| DetonateExplosiveBlocks | Boolean defaults to: true | Determines whether the explosion should detonate explosive blocks within the explosion radius. | ||||||||||||||||||||||||||||||
| BlockDamageRadius | Integer defaults to: 3 | The radius in which blocks should be damaged by the explosion. | ||||||||||||||||||||||||||||||
| BlockDamageFalloff | (Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | The falloff applied to the block damage. | ||||||||||||||||||||||||||||||
| BlockDropChance | (Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | The chance in which a block drops its loot after breaking. | ||||||||||||||||||||||||||||||
| EntityDamageRadius | (Nullable) Either Number defaults to: 5.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | The radius in which entities should be damaged by the explosion. | ||||||||||||||||||||||||||||||
| EntityDamage | (Nullable) Either Number defaults to: 50.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | The amount of damage to be applied to entities within range. | ||||||||||||||||||||||||||||||
| EntityDamageCause | String defaults to: Environment | The cause of the damage to be applied to entities within range. | ||||||||||||||||||||||||||||||
| EntityDamageFalloff | (Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | The falloff applied to the entity damage. | ||||||||||||||||||||||||||||||
| Knockback | (Nullable) Type Selector | Determines the knockback effect applied to damaged entities. | ||||||||||||||||||||||||||||||
| ItemTool | (Nullable)
ItemTool
| The item tool to reference when applying damage to blocks. | ||||||||||||||||||||||||||||||
| Particles | (Nullable) Array of the type:
ModelParticle
| The particles to spawn when the explosion is triggered. | ||||||||||||||||||||||||||||||
| SoundEventId | (Nullable) String | The sound event played to surrounding players when the explosion is triggered. |
Density
Type information: Number defaults to: 2000.0
WaterTerminalVelocityMultiplier
Type information: Number defaults to: 1.0
WaterHitImpulseLoss
Type information: Number defaults to: 0.0
DampingRotation
Type information: Number defaults to: 0.0
RotationSpeedVelocityRatio
Type information: Number defaults to: 2.0
SwimmingDampingFactor
Type information: Number defaults to: 1.0
RotationMode
Type information:
(Nullable) Any one of the following String (defaults to Velocity):
| Name | Description |
|---|---|
"None" | |
"Velocity" | |
"VelocityDamped" |
Notes:
Types referenced by this type
Type Selector
Any of these:
Key: Type | Type | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
default case: Directional | DirectionalKnockback
| ||||||||||||||||||||||||||||||
| Force | ForceKnockback
| ||||||||||||||||||||||||||||||
| Point | PointKnockback
|
ChangeVelocityType
(Nullable) Any one of the following String (defaults to Add):
| Name | Description |
|---|---|
"Add" | Adds the velocity to any existing velocity |
"Set" | Changes the velocity to the given value. Overriding existing values. |
BreakShapeDurabilityMode
Any one of the following String (defaults to PerSwing):
| Name | Description |
|---|---|
"PerSwing" | |
"PerBlock" |
EntityPart
Any one of the following String (defaults to Self):
| Name | Description |
|---|---|
"Self" | |
"Entity" | |
"PrimaryItem" | |
"SecondaryItem" |
