Files
minecraft-bedrock-json-schemas/behaviour/entities/1.13.0/components/minecraft.projectile.json

290 lines
8.7 KiB
JSON
Raw Normal View History

2020-11-01 17:22:42 +01:00
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behaviour.entities.1.13.0.minecraft.projectile",
"description": "Allows the entity to be a thrown entity.",
"type": "object",
"title": "Projectile 1.13.0",
"additionalProperties": false,
"required": [],
"properties": {
"anchor": {
"type": "number",
"title": "Anchor",
"description": "UNDOCUMENTATED"
},
"angle_offset": {
"type": "number",
"default": 0,
"description": "Determines the angle at which the projectile is thrown",
"title": "Angle offset"
},
"catch_fire": {
"type": "boolean",
"default": false,
"description": "If true, the entity hit will be set on fire",
"title": "Catch fire"
},
"crit_particle_on_hurt": {
"type": "boolean",
"default": false,
"description": "If true, the projectile will produce additional particles when a critical hit happens",
"title": "Crit particle on hurt"
},
"destroy_on_hurt": {
"type": "boolean",
"default": false,
"description": "If true, this entity will be destroyed when hit",
"title": "Destroy on hurt"
},
"filter": {
"type": "string",
"default": "",
"description": "Entity Definitions defined here can't be hurt by the projectile",
"title": "Filter"
},
"fire_affected_by_griefing": {
"type": "boolean",
"default": false,
"description": "If true, whether the projectile causes fire is affected by the mob griefing game rule",
"title": "Fire affected by griefing"
},
"gravity": {
"type": "number",
"default": 0.05,
"description": "The gravity applied to this entity when thrown. The higher the value, the faster the entity falls",
"title": "Gravity"
},
"hit_sound": {
"type": "string",
"default": "",
"description": "The sound that plays when the projectile hits something",
"title": "Hit sound"
},
"homing": {
"type": "boolean",
"default": false,
"description": "If true, the projectile homes in to the nearest entity",
"title": "Homing"
},
"inertia": {
"type": "number",
"default": 0.99,
"description": "The fraction of the projectile's speed maintained every frame while traveling in air",
"title": "Inertia"
},
"is_dangerous": {
"type": "boolean",
"default": false,
"description": "If true, the projectile will be treated as dangerous to the players",
"title": "Is dangerous"
},
"knockback": {
"type": "boolean",
"default": true,
"description": "If true, the projectile will knock back the entity it hits",
"title": "Knockback"
},
"lightning": {
"type": "boolean",
"default": false,
"description": "If true, the entity hit will be struck by lightning",
"title": "Lightning"
},
"liquid_inertia": {
"type": "number",
"default": 0.6,
"description": "The fraction of the projectile's speed maintained every frame while traveling in water",
"title": "Liquid inertia"
},
"multiple_targets": {
"type": "boolean",
"default": true,
"description": "If true, the projectile can hit multiple entities per flight",
"title": "Multiple targets"
},
"offset": {
"type": "array",
"default": [0.0, 0.5, 0.0],
"description": "The offset from the entity's anchor where the projectile will spawn",
"title": "Offset",
"items": [
{
"type": "number",
"title": "X"
},
{
"type": "number",
"title": "Y"
},
{
"type": "number",
"title": "Z"
}
]
},
"on_fire_time": {
"type": "number",
"default": 5,
"description": "Time in seconds that the entity hit will be on fire for",
"title": "On fire time"
},
"on_hit": {
"additionalProperties": false,
"type": "object",
"title": "On hit",
"description": "UNDOCUMENTATED",
"properties": {
"arrow_effect": {
"description": "UNDOCUMENTATED",
"title": "Arrow effect",
"type": "object",
"additionalProperties": false
},
"impact_damage": {
"additionalProperties": false,
"type": "object",
"title": "Impact damage",
"description": "UNDOCUMENTATED",
"properties": {
"damage": {
"oneOf": [
{
"type": "number"
},
{
"type": "array",
"items": [
{
"type": "integer"
},
{
"type": "integer"
}
]
}
],
"title": "Damage",
"description": "UNDOCUMENTATED"
},
"destroy_on_hit": {
"type": "boolean",
"title": "Destroy on hit",
"description": "UNDOCUMENTATED"
},
"knockback": {
"type": "boolean",
"title": "Knockback",
"description": "UNDOCUMENTATED"
},
"max_critical_damage": {
"type": "integer",
"title": "Max critical damage",
"description": "UNDOCUMENTATED"
},
"min_critical_damage": {
"type": "integer",
"title": "Min critical damage",
"description": "UNDOCUMENTATED"
},
"power_multiplier": {
"type": "number",
"title": "Power multiplier",
"description": "UNDOCUMENTATED"
},
"semi_random_diff_damage": {
"type": "boolean",
"title": "Semi random diff damage",
"description": "UNDOCUMENTATED"
}
}
},
"stick_in_ground": {
"additionalProperties": false,
"title": "Stick in ground",
"description": "UNDOCUMENTATED",
"type": "object",
"properties": {
"shake_time": {
"title": "Shake time",
"description": "UNDOCUMENTATED",
"type": "number"
}
}
}
}
},
"particle": {
"type": "string",
"default": "iconcrack",
"description": "Particle to use upon collision",
"title": "Particle"
},
"potion_effect": {
"type": "integer",
"default": -1,
"description": "Defines the effect the arrow will apply to the entity it hits",
"title": "Potion effect"
},
"power": {
"type": "number",
"default": 1.3,
"description": "Determines the velocity of the projectile",
"title": "Power"
},
"reflect_on_hurt": {
"type": "boolean",
"default": false,
"description": "If true, this entity will be reflected back when hit",
"title": "Reflect on hurt"
},
"semi_random_diff_damage": {
"type": "boolean",
"default": false,
"description": "If true, damage will be randomized based on damage and speed",
"title": "Semi random diff damage"
},
"shoot_sound": {
"type": "string",
"default": "",
"description": "The sound that plays when the projectile is shot",
"title": "Shoot sound"
},
"shoot_target": {
"type": "boolean",
"default": true,
"description": "If true, the projectile will be shot towards the target of the entity firing it",
"title": "Shoot target"
},
"should_bounce": {
"type": "boolean",
"default": false,
"description": "If true, the projectile will bounce upon hit",
"title": "Should bounce"
},
"splash_potion": {
"type": "boolean",
"default": false,
"description": "If true, the projectile will be treated like a splash potion",
"title": "Splash potion"
},
"splash_range": {
"type": "number",
"default": 4,
"description": "Radius in blocks of the 'splash' effect",
"title": "Splash range"
},
"uncertainty_base": {
"type": "number",
"default": 0,
"description": "The base accuracy. Accuracy is determined by the formula uncertaintyBase - difficultyLevel * uncertaintyMultiplier",
"title": "Uncertainty base"
},
"uncertainty_multiplier": {
"type": "number",
"default": 0,
"description": "Determines how much difficulty affects accuracy. Accuracy is determined by the formula uncertaintyBase - difficultyLevel * uncertaintyMultiplier",
"title": "Uncertainty multiplier"
}
}
}