2020-11-01 17:22:42 +01:00
{
"$schema" : "http://json-schema.org/draft-07/schema" ,
"$id" : "blockception.minecraft.behaviour.entities.1.12.0.minecraft.projectile" ,
"description" : "Allows the entity to be a thrown entity." ,
"type" : "object" ,
"title" : "Projectile 1.12.0" ,
"additionalProperties" : false ,
"required" : [ ] ,
"properties" : {
2021-03-21 15:18:38 +01:00
"anchor" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "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" } ,
2020-11-01 17:22:42 +01:00
"crit_particle_on_hurt" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true, the projectile will produce additional particles when a critical hit happens" ,
2021-03-21 15:18:38 +01:00
"title" : "Crit Particle On Hurt"
2020-11-01 17:22:42 +01:00
} ,
2021-03-21 15:18:38 +01:00
"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" } ,
2020-11-01 17:22:42 +01:00
"fire_affected_by_griefing" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true, whether the projectile causes fire is affected by the mob griefing game rule" ,
2021-03-21 15:18:38 +01:00
"title" : "Fire Affected By Griefing"
2020-11-01 17:22:42 +01:00
} ,
"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"
} ,
2021-03-21 15:18:38 +01:00
"hit_sound" : { "type" : "string" , "default" : "" , "description" : "The sound that plays when the projectile hits something" , "title" : "Hit Sound" } ,
"hit_ground_sound" : { "type" : "string" , "default" : "" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"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" } ,
2020-11-01 17:22:42 +01:00
"liquid_inertia" : {
"type" : "number" ,
"default" : 0.6 ,
"description" : "The fraction of the projectile's speed maintained every frame while traveling in water" ,
2021-03-21 15:18:38 +01:00
"title" : "Liquid Inertia"
2020-11-01 17:22:42 +01:00
} ,
2021-03-21 15:18:38 +01:00
"multiple_targets" : { "type" : "boolean" , "default" : true , "description" : "If true, the projectile can hit multiple entities per flight" , "title" : "Multiple Targets" } ,
2020-11-01 17:22:42 +01:00
"offset" : {
"type" : "array" ,
"default" : [ 0 , 0.5 , 0 ] ,
"description" : "The offset from the entity's anchor where the projectile will spawn" ,
"title" : "Offset" ,
"items" : [
2021-03-21 15:18:38 +01:00
{ "type" : "number" , "description" : "X" , "title" : "X" } ,
{ "type" : "number" , "description" : "Y" , "title" : "Y" } ,
{ "type" : "number" , "description" : "Z" , "title" : "Z" }
2020-11-01 17:22:42 +01:00
]
} ,
2021-03-21 15:18:38 +01:00
"on_fire_time" : { "type" : "number" , "default" : 5 , "description" : "Time in seconds that the entity hit will be on fire for" , "title" : "On Fire Time" } ,
2020-11-01 17:22:42 +01:00
"on_hit" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTATED" ,
"title" : "UNDOCUMENTATED" ,
"properties" : {
"catch_fire" : {
"additionalProperties" : false ,
"description" : "UNDOCUMENTATED" ,
"title" : "UNDOCUMENTATED" ,
"type" : "object" ,
2021-03-21 15:18:38 +01:00
"properties" : { "fire_affected_by_griefing" : { "type" : "boolean" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } }
2020-11-01 17:22:42 +01:00
} ,
"definition_event" : {
"additionalProperties" : false ,
"description" : "UNDOCUMENTATED" ,
"title" : "UNDOCUMENTATED" ,
"type" : "object" ,
"properties" : {
2021-03-21 15:18:38 +01:00
"affect_projectile" : { "type" : "boolean" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"event_trigger" : { "$ref" : "../types/event.json" }
2020-11-01 17:22:42 +01:00
}
} ,
2021-03-21 15:18:38 +01:00
"douse_fire" : { "type" : "object" , "additionalProperties" : false , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
2020-11-01 17:22:42 +01:00
"grant_xp" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTATED" ,
"title" : "UNDOCUMENTATED" ,
"effect" : "levitation" ,
"properties" : {
2021-03-21 15:18:38 +01:00
"minXP" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"maxXP" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" }
2020-11-01 17:22:42 +01:00
}
} ,
"impact_damage" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTATED" ,
"title" : "UNDOCUMENTATED" ,
"properties" : {
2021-03-21 15:18:38 +01:00
"catch_fire" : { "type" : "boolean" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"damage" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"destroy_on_hit" : { "type" : "boolean" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"knockback" : { "type" : "boolean" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"semi_random_diff_damage" : { "type" : "boolean" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" }
2020-11-01 17:22:42 +01:00
}
} ,
"mob_effect" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTATED" ,
"title" : "UNDOCUMENTATED" ,
"effect" : "levitation" ,
"properties" : {
2021-03-21 15:18:38 +01:00
"effect" : { "type" : "string" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"durationeasy" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"durationnormal" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"durationhard" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"amplifier" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" }
2020-11-01 17:22:42 +01:00
}
} ,
"particle_on_hit" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTATED" ,
"title" : "UNDOCUMENTATED" ,
"properties" : {
2021-03-21 15:18:38 +01:00
"particle_type" : { "type" : "string" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"num_particles" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"on_entity_hit" : { "type" : "boolean" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"on_other_hit" : { "type" : "boolean" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" }
2020-11-01 17:22:42 +01:00
}
} ,
2021-03-21 15:18:38 +01:00
"remove_on_hit" : { "additionalProperties" : false , "type" : "object" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
2020-11-01 17:22:42 +01:00
"spawn_chance" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTATED" ,
"title" : "UNDOCUMENTATED" ,
"properties" : {
2021-03-21 15:18:38 +01:00
"first_spawn_percent_chance" : { "type" : "number" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"first_spawn_chance" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"second_spawn_chance" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"first_spawn_count" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"second_spawn_count" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"spawn_definition" : { "type" : "string" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"spawn_baby" : { "type" : "boolean" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" }
2020-11-01 17:22:42 +01:00
}
} ,
"spawn_aoe_cloud" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTATED" ,
"title" : "UNDOCUMENTATED" ,
"properties" : {
2021-03-21 15:18:38 +01:00
"radius" : { "type" : "number" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"radius_on_use" : { "type" : "number" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"potion" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"particle" : { "type" : "string" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"duration" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
2020-11-01 17:22:42 +01:00
"color" : {
"description" : "UNDOCUMENTATED" ,
"title" : "UNDOCUMENTATED" ,
"type" : "array" ,
"format" : "color-array" ,
"items" : [
2021-03-21 15:18:38 +01:00
{ "type" : "integer" , "minimum" : 0 , "maximum" : 255 , "description" : "R" , "title" : "R" } ,
{ "type" : "integer" , "minimum" : 0 , "maximum" : 255 , "description" : "G" , "title" : "G" } ,
{ "type" : "integer" , "minimum" : 0 , "maximum" : 255 , "description" : "B" , "title" : "B" }
2020-11-01 17:22:42 +01:00
]
} ,
2021-03-21 15:18:38 +01:00
"affect_owner" : { "type" : "boolean" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"reapplication_delay" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" }
2020-11-01 17:22:42 +01:00
}
} ,
"stick_in_ground" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTATED" ,
"title" : "UNDOCUMENTATED" ,
2021-03-21 15:18:38 +01:00
"properties" : { "shake_time" : { "type" : "integer" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } }
2020-11-01 17:22:42 +01:00
} ,
2021-03-21 15:18:38 +01:00
"teleport_owner" : { "additionalProperties" : false , "type" : "object" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
"thrown_potion_effect" : { "additionalProperties" : false , "type" : "object" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" }
2020-11-01 17:22:42 +01:00
}
} ,
2021-03-21 15:18:38 +01:00
"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" } ,
2020-11-01 17:22:42 +01:00
"semi_random_diff_damage" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true, damage will be randomized based on damage and speed" ,
2021-03-21 15:18:38 +01:00
"title" : "Semi Random Diff Damage"
2020-11-01 17:22:42 +01:00
} ,
2021-03-21 15:18:38 +01:00
"shoot_sound" : { "type" : "string" , "default" : "" , "description" : "The sound that plays when the projectile is shot" , "title" : "Shoot Sound" } ,
2020-11-01 17:22:42 +01:00
"shoot_target" : {
"type" : "boolean" ,
"default" : true ,
"description" : "If true, the projectile will be shot towards the target of the entity firing it" ,
2021-03-21 15:18:38 +01:00
"title" : "Shoot Target"
2020-11-01 17:22:42 +01:00
} ,
2021-03-21 15:18:38 +01:00
"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" } ,
"stop_on_hurt" : { "type" : "boolean" , "description" : "UNDOCUMENTATED" , "title" : "UNDOCUMENTATED" } ,
2020-11-01 17:22:42 +01:00
"uncertainty_base" : {
"type" : "number" ,
"default" : 0 ,
"description" : "The base accuracy. Accuracy is determined by the formula uncertaintyBase - difficultyLevel * uncertaintyMultiplier" ,
2021-03-21 15:18:38 +01:00
"title" : "Uncertainty Base"
2020-11-01 17:22:42 +01:00
} ,
"uncertainty_multiplier" : {
"type" : "number" ,
"default" : 0 ,
"description" : "Determines how much difficulty affects accuracy. Accuracy is determined by the formula uncertaintyBase - difficultyLevel * uncertaintyMultiplier" ,
2021-03-21 15:18:38 +01:00
"title" : "Uncertainty Multiplier"
2020-11-01 17:22:42 +01:00
}
}
}