2021-10-08 12:59:03 +02:00
{
2021-10-08 13:04:13 +02:00
"$id" : "blockception.minecraft.behavior.entities.minecraft:entity" ,
"title" : "Entity" ,
2021-10-08 12:59:03 +02:00
"required" : [ "description" ] ,
"dependencies" : { "component_groups" : [ "events" ] } ,
"additionalProperties" : false ,
"type" : "object" ,
"properties" : {
"description" : {
"required" : [ "identifier" ] ,
"title" : "Description" ,
2022-07-22 19:41:04 +02:00
"description" : "The description of the this entity." ,
2021-10-08 12:59:03 +02:00
"properties" : {
"animations" : {
"title" : "Animations" ,
"description" : "Sets the mapping of internal animation / animation controllers references to actual animations. This is a JSON Object of name/animation pairs" ,
"type" : "object" ,
"additionalProperties" : {
"title" : "Animation / Controller" ,
2022-07-22 19:41:04 +02:00
"description" : "The name of the animation controller / animation." ,
2021-10-08 12:59:03 +02:00
"type" : "string" ,
"examples" : [ "animation." , "controller." ]
}
} ,
"identifier" : {
"$ref" : "../../../general/entity/identifier.json" ,
"description" : "Sets the identifier for this entity's description." ,
"title" : "Identifier"
} ,
"is_spawnable" : {
"type" : "boolean" ,
"title" : "Is Spawnable" ,
2021-10-08 13:04:13 +02:00
"description" : "Sets whether or not this entity has a spawn egg in the creative ui." ,
"default" : false
2021-10-08 12:59:03 +02:00
} ,
"is_summonable" : {
"type" : "boolean" ,
"title" : "Is Summonable Property" ,
2021-10-08 13:04:13 +02:00
"description" : "Sets whether or not we can summon this entity using commands such as /summon." ,
"default" : true
2021-10-08 12:59:03 +02:00
} ,
"is_experimental" : {
"type" : "boolean" ,
"title" : "Is Experimental" ,
2021-10-08 13:04:13 +02:00
"description" : "Sets whether or not this entity is experimental. Experimental entities are only enabled when the experimental toggle is enabled." ,
"default" : false
2021-10-08 12:59:03 +02:00
} ,
"runtime_identifier" : {
"type" : "string" ,
"title" : "Runtime Identifier" ,
2021-10-08 13:04:13 +02:00
"description" : "Sets the name for the Vanilla Minecraft identifier this entity will use to build itself from." ,
"examples" : [ "minecraft." ]
2021-10-08 12:59:03 +02:00
} ,
"scripts" : {
"type" : "object" ,
"title" : "Scripts" ,
"description" : "Sets the mapping of internal animation controller references to actual animation controller. This is a JSON Array of name/animation-controller pairs" ,
"properties" : {
"animate" : {
"type" : "array" ,
"title" : "Animate" ,
2022-07-22 19:41:04 +02:00
"description" : "Tells minecraft to run which animation / animation controllers and under what conditions." ,
2021-10-08 12:59:03 +02:00
"items" : {
"oneOf" : [
2022-07-22 19:41:04 +02:00
{ "type" : "string" , "title" : "Animation" , "description" : "The name of an animation controller referenced in animations." } ,
2021-10-08 12:59:03 +02:00
{
"type" : "object" ,
"title" : "Conditional Animation" ,
2022-07-22 19:41:04 +02:00
"description" : "A conditional statement to run the animation under a specified condition." ,
2021-10-08 12:59:03 +02:00
"$comment" : "UNDOCUMENTED" ,
"additionalProperties" : { "type" : "string" , "title" : "Animation" }
}
]
}
}
}
}
}
} ,
"component_groups" : {
"title" : "Component Groups" ,
2022-07-22 19:41:04 +02:00
"description" : "Each group when add / remove the default components." ,
2021-10-08 12:59:03 +02:00
"uniqueItems" : true ,
"type" : "object" ,
2021-10-08 14:18:36 +02:00
"propertyNames" : { "examples" : [ "self:" ] } ,
2021-10-08 12:59:03 +02:00
"additionalProperties" : {
2021-10-08 13:04:13 +02:00
"$ref" : "./components.json" ,
2021-10-08 12:59:03 +02:00
"uniqueItems" : true ,
2022-07-22 19:41:04 +02:00
"description" : "The components that are added as the foundation of the entity." ,
2021-10-08 12:59:03 +02:00
"title" : "Component"
}
} ,
"components" : {
2021-10-08 13:04:13 +02:00
"$ref" : "./components.json" ,
2021-10-08 12:59:03 +02:00
"uniqueItems" : true ,
2022-07-22 19:41:04 +02:00
"description" : "The components that are added as the foundation of the entity." ,
2021-10-08 12:59:03 +02:00
"title" : "Component"
} ,
"events" : {
"$ref" : "./events.json" ,
"uniqueItems" : true ,
2022-07-22 19:41:04 +02:00
"description" : "The events that the entity can run, these add or remove components_groups." ,
2021-10-08 12:59:03 +02:00
"title" : "Events"
}
}
}