2021-10-08 12:59:03 +02:00
{
2021-10-08 13:04:13 +02:00
"$id" : "blockception.minecraft.behavior.entities.minecraft.interact" ,
2021-10-08 12:59:03 +02:00
"type" : "object" ,
2021-10-08 13:04:13 +02:00
"title" : "Interact" ,
2021-10-08 12:59:03 +02:00
"description" : "Allows the entity to be a thrown entity." ,
"additionalProperties" : false ,
"properties" : {
2021-10-11 18:10:42 +02:00
"anchor" : {
"type" : "integer" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Anchor"
} ,
2021-10-08 12:59:03 +02:00
"angle_offset" : {
"type" : "number" ,
"default" : 0 ,
"description" : "Determines the angle at which the projectile is thrown" ,
"title" : "Angle Offset"
} ,
2021-10-11 18:10:42 +02:00
"catch_fire" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true, the entity hit will be set on fire" ,
"title" : "Catch Fire"
} ,
2021-10-08 12:59:03 +02:00
"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"
} ,
2021-10-21 16:32:09 +02:00
"hit_ground_sound" : {
"type" : "string" ,
"default" : "" ,
"description" : "The sound that plays when the projectile hits the ground" ,
"title" : "Hit Ground Sound"
} ,
2021-10-11 18:10:42 +02:00
"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"
} ,
2021-10-08 12:59:03 +02:00
"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"
} ,
2021-10-11 18:10:42 +02:00
"lightning" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true, the entity hit will be struck by lightning" ,
"title" : "Lightning"
} ,
2021-10-08 12:59:03 +02:00
"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"
} ,
2021-11-09 21:01:05 +01:00
"mob_effect" : {
"type" : "object" ,
"default" : true ,
"description" : "UNDOCUMENTED" ,
"title" : "Mob Effects" ,
"properties" : {
"effect" : {
"title" : "Effect" ,
"description" : "UNDOCUMENTED" ,
"type" : "string"
} ,
"durationeasy" : {
"title" : "Duration Easy" ,
"description" : "UNDOCUMENTED" ,
"type" : "number"
} ,
"durationnormal" : {
"title" : "Duration Normal" ,
"description" : "UNDOCUMENTED" ,
"type" : "number"
} ,
"durationhard" : {
"title" : "Duration Hard" ,
"description" : "UNDOCUMENTED" ,
"type" : "number"
} ,
"amplifier" : {
"title" : "Amplifier" ,
"description" : "UNDOCUMENTED" ,
"type" : "number"
}
}
} ,
2021-10-08 12:59:03 +02:00
"offset" : {
"type" : "array" ,
2021-10-21 16:01:23 +02:00
"default" : [ 0 , 0.0 , 0 ] ,
2021-10-08 12:59:03 +02:00
"description" : "The offset from the entity's anchor where the projectile will spawn" ,
"title" : "Offset" ,
"items" : [
2021-10-21 16:01:23 +02:00
{ "type" : "number" , "description" : "X" , "title" : "X" } ,
{ "type" : "number" , "description" : "Y" , "title" : "Y" } ,
{ "type" : "number" , "description" : "Z" , "title" : "Z" }
2021-10-08 12:59:03 +02: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"
} ,
"on_hit" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "On Hit" ,
"properties" : {
2021-10-27 19:16:26 +02:00
"arrow_effect" : {
"type" : "object" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"additionalProperties" : false
} ,
2021-10-08 12:59:03 +02:00
"catch_fire" : {
"additionalProperties" : false ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Catch Fire" ,
"type" : "object" ,
"properties" : {
"fire_affected_by_griefing" : {
"type" : "boolean" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Fire Affected By Griefing"
}
}
} ,
"definition_event" : {
"additionalProperties" : false ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Event" ,
"type" : "object" ,
"properties" : {
2021-10-11 18:10:42 +02:00
"affect_projectile" : {
"type" : "boolean" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Affect Projectile"
} ,
"event_trigger" : {
"$ref" : "../types/event.json"
}
2021-10-08 12:59:03 +02:00
}
} ,
2021-10-11 18:10:42 +02:00
"douse_fire" : {
"type" : "object" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Douse Fire"
} ,
2021-10-08 12:59:03 +02:00
"impact_damage" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Impact Damage" ,
"properties" : {
2021-10-27 19:23:32 +02:00
"max_critical_damage" : {
2021-10-31 14:36:19 +01:00
"type" : "number" ,
2021-10-27 19:23:32 +02:00
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Max Critical Damage"
} ,
"min_critical_damage" : {
2021-10-31 14:36:19 +01:00
"type" : "number" ,
2021-10-27 19:23:32 +02:00
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Min Critical Damage"
} ,
"power_multiplier" : {
"type" : "number" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Filter"
} ,
2021-10-11 18:10:42 +02:00
"filter" : {
"type" : "string" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Filter"
} ,
"catch_fire" : {
"type" : "boolean" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Catch Fire"
} ,
"damage" : {
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
2021-10-27 19:16:26 +02:00
"title" : "Damage" ,
"oneOf" : [ { "type" : "integer" } , { "type" : "array" , "items" : [ { "type" : "integer" } , { "type" : "integer" } ] } ]
2021-10-11 18:10:42 +02:00
} ,
"destroy_on_hit" : {
"type" : "boolean" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Destroy On Hit"
} ,
"knockback" : {
"type" : "boolean" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Knockback"
} ,
2021-10-08 12:59:03 +02:00
"semi_random_diff_damage" : {
"type" : "boolean" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Semi Random Diff Damage"
2021-10-31 15:29:49 +01:00
} ,
"should_bounce" : {
"type" : "boolean" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Should Bounce"
} ,
"mob_effect" : {
"title" : "Mob Effect" ,
"description" : "" ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"effect" : {
"title" : "" ,
"description" : "" ,
"type" : "string"
} ,
"durationeasy" : {
"title" : "" ,
"description" : "" ,
"type" : "number"
} ,
"durationnormal" : {
"title" : "" ,
"description" : "" ,
"type" : "number"
} ,
"durationhard" : {
"title" : "" ,
"description" : "" ,
"type" : "number"
} ,
"amplifier" : {
"title" : "" ,
"description" : "" ,
"type" : "number"
}
}
2021-10-08 12:59:03 +02:00
}
}
} ,
"particle_on_hit" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Particle On Hit" ,
"properties" : {
2021-10-11 18:10:42 +02:00
"particle_type" : {
"type" : "string" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Particle Type"
} ,
"num_particles" : {
"type" : "integer" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Num Particles"
} ,
"on_entity_hit" : {
"type" : "boolean" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "On Entity Hit"
} ,
"on_other_hit" : {
"type" : "boolean" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "On Other Hit"
}
2021-10-08 12:59:03 +02:00
}
} ,
"remove_on_hit" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Remove On Hit"
} ,
"spawn_chance" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Spawn Chance" ,
"properties" : {
"first_spawn_percent_chance" : {
"type" : "number" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "First Spawn Percent Chance"
} ,
2021-10-11 18:10:42 +02:00
"first_spawn_chance" : {
"type" : "integer" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "First Spawn Chance"
} ,
"second_spawn_chance" : {
"type" : "integer" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Second Spawn Chance"
} ,
"first_spawn_count" : {
"type" : "integer" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "First Spawn Count"
} ,
"second_spawn_count" : {
"type" : "integer" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Second Spawn Count"
} ,
"spawn_definition" : {
"type" : "string" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Spawn Definition"
} ,
"spawn_baby" : {
"type" : "boolean" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Spawn Baby"
}
2021-10-08 12:59:03 +02:00
}
} ,
"spawn_aoe_cloud" : {
"additionalProperties" : false ,
"type" : "object" ,
"properties" : {
2021-10-11 18:10:42 +02:00
"radius" : {
"type" : "number" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Radius"
} ,
"radius_on_use" : {
"type" : "number" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Radius On Use"
} ,
"potion" : {
"type" : "integer" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Potion"
} ,
"particle" : {
"type" : "string" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Particle"
} ,
"duration" : {
"type" : "integer" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Duration"
} ,
2021-10-08 12:59:03 +02:00
"color" : {
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Color" ,
"type" : "array" ,
"format" : "color-array" ,
"items" : [
2021-10-11 18:10:42 +02: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"
}
2021-10-08 12:59:03 +02:00
]
} ,
2021-10-11 18:10:42 +02:00
"affect_owner" : {
"type" : "boolean" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Affect Owner"
} ,
"reapplication_delay" : {
"type" : "integer" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Reapplication Delay"
}
2021-10-08 12:59:03 +02:00
}
} ,
"stick_in_ground" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
2021-10-21 16:32:09 +02:00
"title" : "Stick In Ground" ,
"properties" : {
"shake_time" : {
"title" : "Shake Time" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
2021-10-27 19:16:26 +02:00
"type" : "number" ,
2021-10-21 16:32:09 +02:00
"minimum" : 0
}
}
2021-10-08 12:59:03 +02:00
} ,
"teleport_owner" : {
"additionalProperties" : false ,
"type" : "object" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"title" : "Teleport Owner"
2021-10-21 16:23:13 +02:00
} ,
"thrown_potion_effect" : {
"title" : "Thrown Potion Effect" ,
"type" : "object" ,
"additionalProperties" : false
2021-11-30 19:10:51 +01:00
} ,
"grant_xp" : {
"additionalProperties" : false ,
"type" : "object" ,
"title" : "Grant XP" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED" ,
"properties" : {
"minXP" : {
"title" : "Minimum XP" ,
"description" : "" ,
"type" : "integer" ,
"minimum" : 0
} ,
"maxXP" : {
"title" : "Maximum XP" ,
"description" : "" ,
"type" : "integer" ,
"minimum" : 0
}
}
2021-10-08 12:59:03 +02:00
}
}
} ,
2021-10-11 18:10:42 +02:00
"particle" : {
"type" : "string" ,
"default" : "iconcrack" ,
"description" : "Particle to use upon collision" ,
"title" : "Particle"
} ,
2021-10-08 12:59:03 +02:00
"potion_effect" : {
"type" : "integer" ,
"default" : -1 ,
"description" : "Defines the effect the arrow will apply to the entity it hits" ,
"title" : "Potion Effect"
} ,
2021-10-11 18:10:42 +02:00
"power" : {
"type" : "number" ,
"default" : 1.3 ,
"description" : "Determines the velocity of the projectile" ,
"title" : "Power"
} ,
2021-10-08 12:59:03 +02:00
"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"
} ,
2021-10-11 18:10:42 +02:00
"shoot_sound" : {
"type" : "string" ,
"default" : "" ,
"description" : "The sound that plays when the projectile is shot" ,
"title" : "Shoot Sound"
} ,
2021-10-08 12:59:03 +02:00
"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"
} ,
2021-10-11 18:10:42 +02:00
"should_bounce" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true, the projectile will bounce upon hit" ,
"title" : "Should Bounce"
} ,
2021-10-08 12:59:03 +02:00
"splash_potion" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true, the projectile will be treated like a splash potion" ,
"title" : "Splash Potion"
} ,
2021-10-11 18:10:42 +02:00
"splash_range" : {
"type" : "number" ,
"default" : 4 ,
"description" : "Radius in blocks of the `splash` effect" ,
"title" : "Splash Range"
} ,
2021-10-21 16:32:09 +02:00
"stop_on_hurt" : {
"title" : "Splash Range" ,
"type" : "boolean" ,
"description" : "UNDOCUMENTED" ,
"$comment" : "UNDOCUMENTED"
} ,
2021-10-08 12:59:03 +02:00
"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"
}
2021-10-11 18:10:42 +02:00
} ,
"examples" : [
2021-10-21 16:01:23 +02:00
{ } ,
2021-10-11 18:10:42 +02:00
{
"anchor" : 0 ,
"angle_offset" : 0 ,
"catch_fire" : false ,
"crit_particle_on_hurt" : false ,
"destroy_on_hurt" : false ,
"filter" : "" ,
"fire_affected_by_griefing" : false ,
"gravity" : 0.05 ,
"hit_sound" : "" ,
"homing" : false ,
"inertia" : 0.99 ,
"is_dangerous" : false ,
"knockback" : true ,
"lightning" : false ,
"liquid_inertia" : 0.6 ,
"multiple_targets" : true ,
"offset" : [ ] ,
"on_fire_time" : 5 ,
"on_hit" : { } ,
"particle" : "iconcrack" ,
"potion_effect" : -1 ,
"power" : 1.3 ,
"reflect_on_hurt" : false ,
"semi_random_diff_damage" : false ,
"shoot_sound" : "" ,
"shoot_target" : true ,
"should_bounce" : false ,
"splash_potion" : false ,
"splash_range" : 4 ,
"uncertainty_base" : 0 ,
"uncertainty_multiplier" : 0
}
]
2021-10-08 12:59:03 +02:00
}