2021-10-08 12:59:03 +02:00
{
2021-10-08 13:04:13 +02:00
"$id" : "blockception.minecraft.behavior.entities.minecraft.angry" ,
2021-10-08 12:59:03 +02:00
"type" : "object" ,
2021-10-08 13:04:13 +02:00
"title" : "Angry" ,
2022-07-22 19:41:04 +02:00
"description" : "Defines the entity's 'angry' state using a timer." ,
2021-10-08 12:59:03 +02:00
"additionalProperties" : false ,
"required" : [ ] ,
"properties" : {
"broadcast_anger" : {
2022-07-17 13:19:40 +01:00
"title" : "Broadcast Anger" ,
2021-10-08 12:59:03 +02:00
"type" : "boolean" ,
"default" : false ,
2022-07-22 19:41:04 +02:00
"description" : "If true, other entities of the same entity definition within the broadcastRange will also become angry."
2021-10-08 12:59:03 +02:00
} ,
"broadcast_filters" : {
2022-07-17 13:19:40 +01:00
"title" : "Broadcast Filters" ,
2021-10-08 12:59:03 +02:00
"$ref" : "../../filters/filters.json" ,
2022-07-22 19:43:23 +02:00
"description" : "Conditions that make this entry in the list valid."
2021-10-08 12:59:03 +02:00
} ,
"filters" : {
"$ref" : "../../filters/filters.json" ,
2022-07-22 19:41:04 +02:00
"description" : "Filter out mob types that it should not attack while angry (other Piglins)."
2021-10-08 12:59:03 +02:00
} ,
"broadcast_range" : {
2022-07-17 13:19:40 +01:00
"title" : "Broadcast Range" ,
2021-10-08 12:59:03 +02:00
"type" : "integer" ,
"default" : 20 ,
2022-07-22 19:41:04 +02:00
"description" : "Distance in blocks within which other entities of the same entity definition will become angry."
2021-10-08 12:59:03 +02:00
} ,
"broadcast_targets" : {
2022-07-17 13:19:40 +01:00
"title" : "Broadcast Targets" ,
2021-10-08 12:59:03 +02:00
"type" : "array" ,
2022-07-22 19:41:04 +02:00
"description" : "A list of entity families to broadcast anger to." ,
2021-10-11 18:10:42 +02:00
"items" : {
"type" : "string" ,
2022-07-22 19:41:04 +02:00
"description" : "An entity family." ,
2021-10-11 18:10:42 +02:00
"pattern" : "^.+$" ,
"title" : "Broadcast Targets"
2022-07-22 19:43:23 +02:00
}
2021-10-08 12:59:03 +02:00
} ,
"calm_event" : {
2022-07-22 19:43:23 +02:00
"title" : "Calm Event" ,
2022-08-22 19:13:13 +01:00
"$ref" : "../types/event_object.json" ,
2022-07-22 19:43:23 +02:00
"description" : "Event to run after the number of seconds specified in duration expires (when the entity stops being \"angry\")"
2021-10-08 12:59:03 +02:00
} ,
2021-10-11 18:10:42 +02:00
"angry_sound" : {
2022-07-17 13:19:40 +01:00
"title" : "Angry Sound" ,
2022-10-02 21:51:03 +02:00
"$ref" : "../../../../general/sound_event.json" ,
2021-10-11 18:10:42 +02:00
"default" : "" ,
2022-07-22 19:43:23 +02:00
"description" : "The sound event to play when the mob is angry."
2021-10-11 18:10:42 +02:00
} ,
2021-10-08 12:59:03 +02:00
"broadcast_anger_on_attack" : {
2022-07-17 13:19:40 +01:00
"title" : "Broadcast Anger On Attack" ,
2021-10-08 12:59:03 +02:00
"type" : "boolean" ,
"default" : false ,
2022-07-22 19:43:23 +02:00
"description" : "If true, other entities of the same entity definition within the broadcastRange will also become angry whenever this mob attacks."
2021-10-08 12:59:03 +02:00
} ,
"broadcast_anger_on_being_attacked" : {
"type" : "boolean" ,
"default" : false ,
2022-07-22 19:41:04 +02:00
"description" : "If true, other entities of the same entity definition within the broadcastRange will also become angry whenever this mob is attacked." ,
2021-10-08 12:59:03 +02:00
"title" : "Broadcast Anger On Being Attacked"
} ,
2024-12-05 20:54:27 +05:00
"broadcast_anger_when_dying" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If false, when this mob is killed it does not spread its anger to other entities of the same entity definition within the broadcastRange" ,
"title" : "Broadcast Anger When Dying"
} ,
2021-10-08 12:59:03 +02:00
"duration" : {
2022-07-17 13:19:40 +01:00
"title" : "Duration" ,
2021-10-08 12:59:03 +02:00
"type" : "integer" ,
"default" : 25 ,
2022-07-22 19:43:23 +02:00
"description" : "The amount of time in seconds that the entity will be angry."
2021-10-08 12:59:03 +02:00
} ,
"duration_delta" : {
2022-07-17 13:19:40 +01:00
"title" : "Duration Delta" ,
2021-10-08 12:59:03 +02:00
"type" : "integer" ,
"default" : 0 ,
2022-07-22 19:43:23 +02:00
"description" : "Variance in seconds added to the duration [-delta, delta]."
2021-10-08 12:59:03 +02:00
} ,
"sound_interval" : {
2022-07-22 19:41:04 +02:00
"description" : "The range of time in seconds to randomly wait before playing the sound again." ,
2021-10-08 12:59:03 +02:00
"title" : "Sound Interval" ,
"oneOf" : [
{
"type" : "array" ,
"default" : [ 0 , 0 ] ,
"items" : [
2021-10-11 18:10:42 +02:00
{
"type" : "integer" ,
"minimum" : 0 ,
2022-07-22 19:41:04 +02:00
"description" : "The minimum interval." ,
2021-10-11 18:10:42 +02:00
"$comment" : "UNDOCUMENTED" ,
"title" : "Minimum"
} ,
{
"type" : "integer" ,
"minimum" : 0 ,
2022-07-22 19:41:04 +02:00
"description" : "The maximum interval." ,
2021-10-11 18:10:42 +02:00
"$comment" : "UNDOCUMENTED" ,
"title" : "Maximum"
}
2021-10-08 12:59:03 +02:00
]
} ,
{
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
2021-10-11 18:10:42 +02:00
"range_min" : {
"type" : "number" ,
2022-07-22 19:41:04 +02:00
"description" : "The minimum interval." ,
2021-10-11 18:10:42 +02:00
"$comment" : "UNDOCUMENTED" ,
"title" : "Range Minimum"
} ,
"range_max" : {
"type" : "number" ,
2022-07-22 19:41:04 +02:00
"description" : "The maximum interval." ,
2021-10-11 18:10:42 +02:00
"$comment" : "UNDOCUMENTED" ,
"title" : "Range Maximum"
}
2021-10-08 12:59:03 +02:00
}
}
]
}
2021-10-11 18:10:42 +02:00
} ,
"examples" : [
{
"broadcast_anger" : false ,
"broadcast_range" : 20 ,
"broadcast_targets" : [ ] ,
"angry_sound" : "" ,
"broadcast_anger_on_attack" : false ,
"broadcast_anger_on_being_attacked" : false ,
"duration" : 25 ,
"duration_delta" : 0
}
]
2021-10-08 12:59:03 +02:00
}