2021-06-06 10:07:19 +00:00
{
"$id" : "blockception.minecraft.behavior.entities.1.8.0.minecraft.projectile" ,
"description" : "Allows the entity to be a thrown entity." ,
"type" : "object" ,
"title" : "Projectile 1.8.0" ,
"additionalProperties" : false ,
"required" : [ ] ,
"properties" : {
2021-07-01 17:42:32 +02:00
"angleoffset" : {
"type" : "number" ,
"default" : 0 ,
"description" : "Determines the angle at which the projectile is thrown" ,
"title" : "Angle Offset"
} ,
"catchFire" : { "type" : "boolean" , "default" : false , "description" : "If true, the entity hit will be set on fire" , "title" : "Catch Fire" } ,
2021-06-06 10:07:19 +00:00
"critParticleOnHurt" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true, the projectile will produce additional particles when a critical hit happens" ,
2021-07-01 17:42:32 +02:00
"title" : "Crit Particle On Hurt"
} ,
"destroyOnHurt" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true, this entity will be destroyed when hit" ,
"title" : "Destroy On Hurt"
2021-06-06 10:07:19 +00:00
} ,
"filter" : {
"$ref" : "../../filters/filters.json" ,
2021-07-01 17:42:32 +02:00
"description" : "Entity Definitions defined here can't be hurt by the projectile"
2021-06-06 10:07:19 +00:00
} ,
"fireAffectedByGriefing" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true, whether the projectile causes fire is affected by the mob griefing game rule" ,
2021-07-01 17:42:32 +02:00
"title" : "Fire Affected By Griefing"
2021-06-06 10:07:19 +00: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" ,
2021-07-01 17:42:32 +02:00
"title" : "Gravity"
2021-06-06 10:07:19 +00:00
} ,
2021-07-01 17:42:32 +02:00
"hitSound" : { "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" } ,
2021-06-06 10:07:19 +00:00
"inertia" : {
"type" : "number" ,
"default" : 0.99 ,
"description" : "The fraction of the projectile's speed maintained every frame while traveling in air" ,
2021-07-01 17:42:32 +02:00
"title" : "Inertia"
2021-06-06 10:07:19 +00:00
} ,
"isdangerous" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true, the projectile will be treated as dangerous to the players" ,
2021-07-01 17:42:32 +02:00
"title" : "Is Dangerous"
2021-06-06 10:07:19 +00:00
} ,
"knockback" : {
"type" : "boolean" ,
"default" : true ,
"description" : "If true, the projectile will knock back the entity it hits" ,
2021-07-01 17:42:32 +02:00
"title" : "Knockback"
2021-06-06 10:07:19 +00:00
} ,
2021-07-01 17:42:32 +02:00
"lightning" : { "type" : "boolean" , "default" : false , "description" : "If true, the entity hit will be struck by lightning" , "title" : "Lightning" } ,
2021-06-06 10:07:19 +00:00
"liquid_inertia" : {
"type" : "number" ,
"default" : 0.6 ,
"description" : "The fraction of the projectile's speed maintained every frame while traveling in water" ,
2021-07-01 17:42:32 +02:00
"title" : "Liquid Inertia"
2021-06-06 10:07:19 +00:00
} ,
"multipletargets" : {
"type" : "boolean" ,
"default" : true ,
"description" : "If true, the projectile can hit multiple entities per flight" ,
2021-07-01 17:42:32 +02:00
"title" : "Multiple Targets"
2021-06-06 10:07:19 +00:00
} ,
"offset" : {
"$ref" : "../../../../general/array_3_number.json" ,
"default" : [ 0.0 , 0.5 , 0.0 ] ,
"description" : "The offset from the entity's anchor where the projectile will spawn" ,
2021-07-01 17:42:32 +02:00
"title" : "Offset"
} ,
"onFireTime" : {
"type" : "number" ,
"default" : 5 ,
"description" : "Time in seconds that the entity hit will be on fire for" ,
"title" : "On Fire Time"
2021-06-06 10:07:19 +00:00
} ,
2021-07-01 17:42:32 +02:00
"particle" : { "type" : "string" , "default" : "iconcrack" , "description" : "Particle to use upon collision" , "title" : "Particle" } ,
2021-06-06 10:07:19 +00:00
"potionEffect" : {
"type" : "integer" ,
"default" : -1 ,
"description" : "Defines the effect the arrow will apply to the entity it hits" ,
2021-07-01 17:42:32 +02:00
"title" : "Potion Effect"
2021-06-06 10:07:19 +00:00
} ,
2021-07-01 17:42:32 +02:00
"power" : { "type" : "number" , "default" : 1.3 , "description" : "Determines the velocity of the projectile" , "title" : "Power" } ,
2021-06-06 10:07:19 +00:00
"reflectOnHurt" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true, this entity will be reflected back when hit" ,
2021-07-01 17:42:32 +02:00
"title" : "Reflect On Hurt"
2021-06-06 10:07:19 +00:00
} ,
"semirandomdiffdamage" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true, damage will be randomized based on damage and speed" ,
2021-07-01 17:42:32 +02:00
"title" : "Semi Random Difference Damage"
2021-06-06 10:07:19 +00:00
} ,
2021-07-01 17:42:32 +02:00
"shootSound" : { "type" : "string" , "description" : "The sound that plays when the projectile is shot" , "title" : "Shoot Sound" } ,
2021-06-06 10:07:19 +00:00
"shoottarget" : {
"type" : "boolean" ,
"default" : true ,
"description" : "If true, the projectile will be shot towards the target of the entity firing it" ,
2021-07-01 17:42:32 +02:00
"title" : "Shoot Target"
2021-06-06 10:07:19 +00:00
} ,
2021-07-01 17:42:32 +02:00
"shouldbounce" : { "type" : "boolean" , "default" : false , "description" : "If true, the projectile will bounce upon hit" , "title" : "Should Bounce" } ,
2021-06-06 10:07:19 +00:00
"splashPotion" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true, the projectile will be treated like a splash potion" ,
2021-07-01 17:42:32 +02:00
"title" : "Splash Potion"
2021-06-06 10:07:19 +00:00
} ,
2021-07-01 17:42:32 +02:00
"splashRange" : { "type" : "number" , "default" : 4 , "description" : "Radius in blocks of the `splash` effect" , "title" : "Splash Range" } ,
2021-06-06 10:07:19 +00:00
"uncertaintyBase" : {
"type" : "number" ,
"default" : 0 ,
"description" : "The base accuracy. Accuracy is determined by the formula uncertaintyBase - difficultyLevel * uncertaintyMultiplier" ,
2021-07-01 17:42:32 +02:00
"title" : "Uncertainty Base"
2021-06-06 10:07:19 +00:00
} ,
"uncertaintyMultiplier" : {
"type" : "number" ,
"default" : 0 ,
"description" : "Determines how much difficulty affects accuracy. Accuracy is determined by the formula uncertaintyBase - difficultyLevel * uncertaintyMultiplier" ,
2021-07-01 17:42:32 +02:00
"title" : "Uncertainty Multiplier"
2021-06-06 10:07:19 +00:00
}
}
}