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

1 line
379 KiB
JSON
Raw Normal View History

2022-04-20 10:28:53 +00:00
{"$schema":"http://json-schema.org/draft-07/schema","$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-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","examples":["1.18.10","1.18.0","1.17.0","1.16.0","1.15.0","1.14.0","1.13.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18|}.${2|0|}"}]},"C":{"description":"A minecraft entity identifier","examples":["namespace:entity_name"],"pattern":"^[0-9a-zA-Z:_\\.\\-]+$","title":"Entity Identifier","type":"string","defaultSnippets":[{"label":"New Identifier","body":"$1:$2"}]},"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"}]},"F":{"type":"object","title":"Admire Item","description":"Causes the mob to ignore attackable targets for a given duration.","additionalProperties":false,"properties":{"cooldown_after_being_attacked":{"type":"integer","default":0,"description":"Duration, in seconds, for which mob won't admire items if it was hurt","title":"Cooldown After Being Attacked"},"duration":{"type":"integer","default":10,"description":"Duration, in seconds, that the mob is pacified.","title":"Duration"}},"examples":[{"cooldown_after_being_attacked":0,"duration":10}]},"H":{"description":"A minecraft item identifier","pattern":"^[0-9a-zA-Z:_\\-\\.]+$","title":"Item Identifier","type":"string","defaultSnippets":[{"label":"New Identifier","body":"$1:$2"}]},"I":{"title":"Event","description":"Minecraft behavior event","examples":["example:foo",{"event":"example:foo","target":"self"}],"defaultSnippets":[{"label":"New Event","body":"^\"$1\""}],"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"]}}}]},"G":{"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/H"}},{"type":"string","$ref":"#/definitions/H"}],"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/H"}},{"type":"array","items":{"type":"object","properties":{"growth":{"type":"number"},"item":{"$ref":"#/definitions/H"}}}},{"type":"string","$ref":"#/definitions/H"}],"title":"Feed Items"}