Files
minecraft-bedrock-json-schemas/resource/entity/entity.json

1 line
14 KiB
JSON
Raw Normal View History

2021-05-25 23:28:18 +00:00
{"$id":"blockception.minecraft.resource.entity","examples":[{"format_version":"1.10.0","minecraft:client_entity":{"description":{"identifier":"minecraft:entity","materials":{"default":"entity_custom"},"textures":{"default":"textures/entity/custom/entity"},"geometry":{"default":"geometry.entity"},"animations":{},"particle_effects":{},"scripts":{},"render_controllers":["controller.render.entity"],"spawn_egg":{"base_color":"#288483","overlay_color":"#2B7135"}}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/E"}},{"properties":{"format_version":{"$ref":"#/definitions/F"}}}],"definitions":{"B":{"type":"string","title":"Entity Identifier 1.8.0","description":"The minecraft entity identifier","examples":["namespace:entity_name"],"pattern":"^[0-9a-zA-Z:_\\.\\-]+$"},"C":{"type":"string","title":"Molang / String","description":"Molang definition","format":"molang"},"D":{"title":"Molang Number","description":"The minecraft molang definition that results in a float","anyOf":[{"type":"string","minLength":0,"format":"molang"},{"type":"number"}]},"A":{"type":"object","title":"Resourcepack Actor Animation 1.8.0","description":"A client side entity definition","additionalProperties":false,"required":["format_version","minecraft:client_entity"],"properties":{"format_version":{"title":"1.8.0 Format Version","type":"string","pattern":"^1.8.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"minecraft:client_entity":{"type":"object","additionalProperties":false,"title":"Client Entity","description":"The entity description for clientside rendering, animations and models","required":["description"],"properties":{"description":{"additionalProperties":false,"title":"Description","description":"The entity description for clientside rendering, animations and models","type":"object","required":["identifier"],"properties":{"animations":{"title":"Animations","description":"The collection of animations","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"A reference to an animation","title":"Animation Reference","examples":[{"basic":"controller.generic.basic"}]}},"animation_controllers":{"type":"array","minItems":1,"description":"A reference to an animation controller","title":"Animation Controllers","items":{"type":"object","description":"A collection of animation controllers","title":"Animation Controllers","additionalProperties":{"type":"string","description":"A reference to an animation","title":"Animation Reference","examples":[{"basic":"controller.generic.basic"}]}}},"enable_attachables":{"type":"boolean","description":"TODO description: enable attachables","title":"Enable Attachables"},"geometry":{"title":"Geometry","description":"The reference to defined geometries in '<resource pack>/models/'","type":"object","propertyNames":{"pattern":"[a-zA-Z0-9_\\.\\-]+"},"minProperties":1,"additionalProperties":{"type":"string","description":"The reference to the geometry","title":"Geometry Reference"}},"identifier":{"type":"string","description":"The entity indentifier","title":"Identifier","$ref":"#/definitions/B"},"materials":{"type":"object","additionalProperties":{"type":"string","description":"Material reference","title":"Material"},"description":"A collection of material definitions","title":"Materials"},"min_engine_version":{"type":"string","pattern":"[0-9]+\\.[0-9]+\\.[0-9]+","description":"The minimum engine version to be used","title":"Min Engine Version"},"particle_effects":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"Particle reference","title":"Particle"},"description":"A collection of particle definitions","title":"Particle Effects"},"particle_emitters":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"Particle emitter reference","title":"Particle Emitter"},"description":"A col