Files
minecraft-bedrock-json-schemas/behavior/entities/entities.json

1 line
366 KiB
JSON
Raw Normal View History

2021-10-14 12:57:29 +00:00
{"$id":"blockception.minecraft.behavior.entities","examples":[{"format_version":"1.17.0","minecraft:entity":{"description":{"identifier":"namespace:entity","is_spawnable":true,"is_summonable":true},"component_groups":{},"components":{},"events":{}}}],"type":"object","title":"Entity Behavior","description":"The minecraft entity behavior specification","required":["format_version","minecraft:entity"],"additionalProperties":false,"properties":{"format_version":{"$ref":"#/definitions/A"},"minecraft:entity":{"$ref":"#/definitions/B"}},"definitions":{"A":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^(1)\\.([0-9]+)\\.([0-9]+)$","type":"string","enum":["1.17.30","1.17.0","1.16.0","1.15.0","1.14.0","1.13.0","1.12.0","1.10.0","1.8.0"]},"C":{"type":"string","title":"Entity Identifier 1.8.0","description":"A minecraft entity identifier","examples":["namespace:entity_name"],"pattern":"^[0-9a-zA-Z:_\\.\\-]+$"},"E":{"additionalProperties":false,"type":"object","title":"Add Rider","description":"Adds a rider to the entity. Requires `minecraft:rideable.`","required":["entity_type"],"properties":{"entity_type":{"type":"string","description":"The entity type that will be riding this entity","title":"Entity Type"},"spawn_event":{"type":"string","description":"The spawn event that will be used when the riding entity is created","title":"Spawn Event"}},"examples":[{"entity_type":"minecraft:rabbit"},{"entity_type":"minecraft:rabbit","spawn_event":"self:example"}]},"G":{"type":"string","title":"Item Identifier","description":"A minecraft item identifier","pattern":"^[0-9a-zA-Z:_\\-\\.]+$"},"H":{"title":"Event","description":"Minecraft behavior event","examples":[{"event":"example:foo","target":"self"}],"oneOf":[{"type":"string","pattern":"^[a-zA-Z0-9_\\-:]+$","description":"The event to fire"},{"type":"object","properties":{"event":{"type":"string","pattern":"^[a-zA-Z0-9_\\-:]+$","description":"The event to fire","title":"Event"},"target":{"type":"string","description":"The target of the event","title":"Target","enum":["baby","block","damager","other","parent","player","self","target"]}}}]},"F":{"type":"object","title":"Ageable","description":"Adds a timer for the entity to grow up. It can be accelerated by giving the entity the items it likes as defined by feedItems.","additionalProperties":false,"properties":{"drop_items":{"description":"List of items that the entity drops when it grows up.","oneOf":[{"type":"array","items":{"$ref":"#/definitions/G"}},{"type":"string","$ref":"#/definitions/G"}],"title":"Drop Items"},"duration":{"type":"number","default":1200,"description":"Amount of time before the entity grows up, -1 for always a baby.","title":"Duration"},"feed_items":{"description":"List of items that can be fed to the entity. Includes `item` for the item name and `growth` to define how much time it grows up by","oneOf":[{"type":"array","items":{"$ref":"#/definitions/G"}},{"type":"array","items":{"type":"object","properties":{"growth":{"type":"number"},"item":{"$ref":"#/definitions/G"}}}},{"type":"string","$ref":"#/definitions/G"}],"title":"Feed Items"},"grow_up":{"$ref":"#/definitions/H","description":"Event to run when this entity grows up.","title":"Grow Up"},"transform_to_item":{"type":"string","title":"Transform To Item","description":"The feed item used will transform to this item upon successful interaction. Format: itemName:auxValue"}},"examples":[{"duration":1200,"transform_to_item":"example"}]},"I":{"additionalProperties":false,"type":"object","title":"Ambient Sound Interval","description":"Sets the entity's delay between playing its ambient sound.","properties":{"event_name":{"type":"string","default":"ambient","description":"Level sound event to be played as the ambient sound.","title":"Event Name"},"range":{"type":"number","default":16,"description":"Maximum time in seconds to randomly add to the ambient sound delay time.","title":"Range"},"value":{"type":"number","default":8,"description":"Minimum time in seconds before