-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathattachables.json
1 lines (1 loc) · 15.8 KB
/
attachables.json
1
{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.attachables","defaultSnippets":[{"label":"New attachable","body":{"format_version":"${1:1.10.0}","minecraft:attachable":{"description":{"identifier":"$2:${3:${TM_FILENAME/[\\.].*//}}","materials":{"default":"entity_alphatest"},"textures":{"default":"textures/items/${3:${TM_FILENAME/[\\.].*//}}"},"geometry":{"default":"geometry.${3:${TM_FILENAME/[\\.].*//}}"},"render_controllers":["controller.render.default"]}}}}],"examples":[{"format_version":"1.10.0","minecraft:attachable":{"description":{"identifier":"minecraft:item","materials":{"default":"entity_alphatest","enchanted":"entity_alphatest_glint"},"textures":{"default":"textures/items/item"},"geometry":{"default":"geometry.item"},"scripts":{},"render_controllers":["controller.render.item"]}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10"}}},"then":{"$ref":"#/definitions/E"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/E"}},{"properties":{"format_version":{"$ref":"#/definitions/F"}}}],"definitions":{"B":{"description":"A minecraft item identifier.","pattern":"^[0-9a-zA-Z:_\\-\\.]+$","title":"Item Identifier","type":"string","defaultSnippets":[{"label":"New Identifier","body":"$1:$2"}]},"C":{"title":"Material","description":"Entity or attachable material","type":"string","examples":["entity_static","entity_flat_color_line","entity_loyalty_rope","entity","opaque_block","opaque_block_color","opaque_block_color_uv2","alpha_block","alpha_block_color","entity_nocull","entity_change_color","entity_alphatest","entity_alphatest_one_sided","map","on_screen_effect","item_in_hand_entity_alphatest","item_in_hand_entity_alphatest_color","item_in_hand_entity_alphatest_one_sided_color","entity_alphablend","entity_alphablend_nocolor","guardian_ghost","player_spectator","entity_emissive","glow_squid","entity_emissive_alpha","entity_emissive_alpha_one_sided","entity_custom","item_in_hand","item_in_hand_multicolor_tint","map_decoration","map_marker","charged_creeper","item_in_hand_glint","entity_glint","entity_alphatest_glint","entity_alphatest_glint_item","entity_change_color_glint","entity_alphatest_change_color","entity_alphatest_change_color_glint","entity_alphatest_multicolor_tint","beacon_beam","beacon_beam_transparent","conduit_wind","entity_multitexture","entity_multitexture_color_mask","entity_multitexture_alpha_test","entity_multitexture_multiplicative_blend","entity_multitexture_alpha_test_color_mask","entity_lead_base","entity_multitexture_masked","moving_block","moving_block_seasons","moving_block_alpha_seasons","moving_block_alpha_single_side","moving_block_alpha","moving_block_double_side","moving_block_blend","entity_beam","entity_beam_additive","entity_dissolve_layer0","entity_dissolve_layer1","banner","banner_pole","agent","armadillo","armor","armor_leather","armor_enchanted","armor_leather_enchanted","armor_stand","arrow","axolotl","axolotl_limbs","bat","bat_v2","bed","bee","bell","blaze_head","blaze_body","boat","chalkboard","chest","chicken","chicken_legs","cow","creeper","dragon_head","dragon_head_glint","drowned","egg","elytra","elytra_glint","enchanting_table_book","ender_crystal","ender_dragon","enderman","enderman_invisible","endermite","eye_of_ender_signal","ender_pearl","evoker","fang","fireball","fireworks_rocket","fishing_hook","fox","frog","cat","clownfish","cod","conduit","pufferfish","salmon","tropicalfish","ghast","guardian","horse","horse_leather_armor","husk","husk_clothes","ravager","iron_golem","magma_cube","leash_knot","lingering_potion_enchanted","llama","llama_spit","minecart","mob_head","mob_head_glint","mooshroom","mooshroom_mushrooms","npc","ocelot","parrot","pig","hoglin","zoglin","shield","shield_glint","trident","trident_riptide","trident_glint","piston_arm","player","player_alphatest","polar_bear","panda","rabbit","sheep","shulker","shulker_box","shulker_bullet","sign","silverfish","silverfish_layers","skeleton","pillager","piglin","piglin_brute","goat","allay","warden","warden_bioluminescent_layer","chest_boat","slime","slime_outer","snowball","snow_golem","snow_golem_pumpkin","spider","spider_invisible","splash_potion_enchanted","squid","dolphin","phantom","phantom_invisible","stray","stray_clothes","strider","tadpole","turtle","camera","trial_spawner","vex","villager","villager_v2","villager_v2_masked","vindicator","wandering_trader","witch","wither_boss","wither_boss_armor","wither_skull","wolf","wolf_armor","xp_bottle","zombie","zombie_villager","zombie_villager_v2","zombie_villager_v2_masked","player_animated","experience_orb","sniffer","camel","pattern","pattern_glint","breeze","breeze_eyes","breeze_wind","breeze_wind_charge","bogged","bogged_clothes"]},"D":{"title":"Molang Number","description":"The minecraft molang definition that results in a float.","anyOf":[{"type":"string","minLength":0},{"type":"number"}],"examples":["(1.0)","(0.0)"],"defaultSnippets":[{"label":"New Molang","body":"$1"}]},"A":{"type":"object","title":"Actor Animation 1.8.0","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","required":["format_version","minecraft:attachable"],"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:attachable":{"type":"object","title":"Attachables","description":"The attachables definition for 1.8.0","required":["description"],"properties":{"description":{"additionalProperties":false,"title":"Description","description":"UNDOCUMENTED: description.","type":"object","required":["identifier","geometry"],"properties":{"animations":{"description":"The connecting of animations in animations controllers with the actuall animations, names should corosponds.","title":"Animations","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"UNDOCUMENTED: additionalProperties.","title":"Animation"}},"animation_controllers":{"type":"array","minItems":1,"description":"UNDOCUMENTED: animation controllers.","title":"Animation Controllers","items":{"type":"object","additionalProperties":{"type":"string","description":"UNDOCUMENTED: additionalProperties.","title":"Animation Controller"},"description":"UNDOCUMENTED: animation controllers.","title":"Animation Controllers"}},"enable_attachables":{"type":"boolean","description":"UNDOCUMENTED: enable attachables.","title":"Enable Attachables"},"geometry":{"title":"Geometry","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"UNDOCUMENTED: additionalProperties.","title":"Geometry"},"description":"UNDOCUMENTED: geometry."},"identifier":{"type":"string","description":"UNDOCUMENTED: identifier.","title":"Identifier","$ref":"#/definitions/B"},"item":{"type":"object","title":"Item","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","additionalProperties":{"type":"string","title":"Item","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"}},"materials":{"type":"object","title":"Materials","additionalProperties":{"type":"string","description":"Material Reference.","title":"Material","$ref":"#/definitions/C"}},"min_engine_version":{"type":"string","pattern":"[0-9]+\\.[0-9]+\\.[0-9]+","description":"UNDOCUMENTED: Minimum engine version.","title":"Minimum Engine Version"},"particle_effects":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"UNDOCUMENTED: additionalProperties.","title":"Particle Effects"},"description":"UNDOCUMENTED: particle effects.","title":"Particle Effects"},"particle_emitters":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"UNDOCUMENTED: additionalProperties.","title":"Particle Emitter"},"description":"UNDOCUMENTED: particle emitters.","title":"Particle Emitters"},"render_controllers":{"type":"array","description":"UNDOCUMENTED: render controllers.","title":"Render Controllers","minItems":1,"items":{"type":"string","description":"UNDOCUMENTED: render controllers.","title":"Render Controllers"}},"sound_effects":{"type":"array","description":"UNDOCUMENTED: sound effects.","title":"Sound Effects","minItems":1,"items":{"type":"string","description":"UNDOCUMENTED: sound effects.","title":"Sound Effects"}},"spawn_egg":{"type":"object","description":"UNDOCUMENTED: spawn egg.","title":"Spawn Egg","dependencies":{"texture":["texture_index"],"texture_index":["texture"],"base_colour":["overlay_color"],"overlay_color":["base_colour"]},"properties":{"base_colour":{"type":"string","description":"UNDOCUMENTED: base colour.","title":"Base Colour"},"overlay_color":{"type":"string","description":"UNDOCUMENTED: overlay color.","title":"Overlay Color"},"texture":{"type":"string","description":"UNDOCUMENTED: texture.","title":"Texture"},"texture_index":{"type":"integer","description":"UNDOCUMENTED: texture index.","title":"Texture Index"}}},"scripts":{"type":"object","description":"UNDOCUMENTED: scripts.","title":"Scripts","properties":{"pre_animation":{"type":"array","items":{"pattern":";$","$ref":"#/definitions/D","description":"UNDOCUMENTED: pre aninamtion.","title":"Pre Animation"},"description":"UNDOCUMENTED: pre aninamtion.","title":"Pre Animation"},"scale":{"type":"string","description":"UNDOCUMENTED: scale.","title":"Scale"},"animate":{"type":"array","title":"Animate","items":{"oneOf":[{"type":"string","description":"UNDOCUMENTED: oneOf[0].","title":"Animate"},{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"UNDOCUMENTED: additionalProperties.","title":"Animate"},"description":"UNDOCUMENTED: oneOf[1].","title":"Animate"}],"description":"UNDOCUMENTED: animate.","title":"Animate"},"description":"UNDOCUMENTED: animate."},"parent_setup":{"$ref":"#/definitions/D"}}},"textures":{"type":"object","additionalProperties":{"type":"string","description":"UNDOCUMENTED: additionalProperties.","title":"Textures"},"description":"UNDOCUMENTED: textures.","title":"Textures"}}}},"additionalProperties":false}},"additionalProperties":false},"E":{"type":"object","title":"Actor Animation 1.10.0","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","required":["format_version","minecraft:attachable"],"properties":{"format_version":{"title":"1.10.0 Format Version","type":"string","pattern":"^(1.10.0|1.10)$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"minecraft:attachable":{"type":"object","title":"Attachables","description":"The attachables definition.","required":["description"],"properties":{"description":{"title":"Description","type":"object","required":["identifier"],"additionalProperties":false,"properties":{"animations":{"type":"object","additionalProperties":{"type":"string","description":"A single animation reference.","title":"Animation"},"description":"The collection of animations references.","title":"Animations"},"animation_controllers":{"type":"array","additionalProperties":{"type":"object","description":"A collection of animation controller references.","title":"Animation Controller","additionalProperties":{"type":"string","description":"A single Animation controller reference.","title":"Animation Controller Reference"}},"description":"The specification of animation controllers.","title":"Animation Controllers"},"enable_attachables":{"type":"boolean","description":"UNDOCUMENTED: enable attachables.","title":"Enable Attachables"},"geometry":{"title":"Geometry","type":"object","propertyNames":{"pattern":"[a-zA-Z0-9_\\.\\-]+"},"minProperties":1,"additionalProperties":{"type":"string","description":"A single geometry reference.","title":"Geometry"},"description":"The geometry specification."},"identifier":{"type":"string","description":"UNDOCUMENTED: identifier.","title":"Identifier","$ref":"#/definitions/B"},"item":{"type":"object","title":"Item","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","additionalProperties":{"type":"string","title":"Item","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"}},"materials":{"type":"object","additionalProperties":{"type":"string","description":"A single material reference.","title":"Material","$ref":"#/definitions/C"},"description":"A collection of material references.","title":"Materials"},"min_engine_version":{"type":"string","pattern":"[0-9]+\\.[0-9]+\\.[0-9]+","description":"The minimum engine needed to use this.","title":"Minimum Engine Version"},"particle_effects":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"A single particle effect reference.","title":"Particle Effect"},"description":"A collection of particle effect references.","title":"Particle Effects"},"particle_emitters":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"UNDOCUMENTED: additionalProperties.","title":"Particle Emitters"},"description":"UNDOCUMENTED: particle emitters.","title":"Particle Emitters"},"render_controllers":{"type":"array","description":"UNDOCUMENTED: render controllers.","title":"Render Controllers","minItems":1,"items":{"type":"string","description":"UNDOCUMENTED: render controllers.","title":"Render Controllers"}},"scripts":{"additionalProperties":false,"type":"object","description":"UNDOCUMENTED: scripts.","title":"Scripts","properties":{"animate":{"type":"array","title":"Animate","minItems":1,"items":{"oneOf":[{"type":"string","description":"UNDOCUMENTED: oneOf[0].","title":"Animate"},{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"UNDOCUMENTED: additionalProperties.","title":"Animate"},"description":"UNDOCUMENTED: oneOf[1].","title":"Animate"}],"description":"UNDOCUMENTED: animate.","title":"Animate"},"description":"UNDOCUMENTED: animate."},"initialize":{"type":"array","description":"UNDOCUMENTED: initialize.","title":"Initialize","items":{"pattern":";$","$ref":"#/definitions/D","description":"UNDOCUMENTED: initialize.","title":"Initialize"}},"pre_animation":{"type":"array","description":"UNDOCUMENTED: pre aninamtion.","title":"Pre Animation","items":{"pattern":";$","$ref":"#/definitions/D","description":"UNDOCUMENTED: pre aninamtion.","title":"Pre Animation"}},"parent_setup":{"type":"string","description":"UNDOCUMENTED: parent setup.","title":"Parent Setup","$ref":"#/definitions/D"},"scale":{"type":"string","description":"UNDOCUMENTED: scale.","title":"Scale","$ref":"#/definitions/D"}}},"sound_effects":{"type":"array","description":"UNDOCUMENTED: sound effects.","title":"Sound Effects","minItems":1,"items":{"type":"string","description":"UNDOCUMENTED: sound effects.","title":"Sound Effects"}},"spawn_egg":{"type":"object","description":"UNDOCUMENTED: spawn egg.","title":"Spawn Egg","dependencies":{"texture":["texture_index"],"texture_index":["texture"],"base_colour":["overlay_color"],"overlay_color":["base_colour"]},"properties":{"base_colour":{"type":"string","description":"UNDOCUMENTED: base colour.","title":"Base Colour"},"overlay_color":{"type":"string","description":"UNDOCUMENTED: overlay color.","title":"Overlay Color"},"texture":{"type":"string","description":"UNDOCUMENTED: texture.","title":"Texture"},"texture_index":{"type":"integer","description":"UNDOCUMENTED: texture index.","title":"Texture Index"}}},"textures":{"type":"object","additionalProperties":{"type":"string","description":"UNDOCUMENTED: additionalProperties.","title":"Texture"},"description":"UNDOCUMENTED: textures.","title":"Textures"}},"description":"UNDOCUMENTED: description."}},"additionalProperties":false}},"additionalProperties":false},"F":{"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","default":"1.21.50","examples":["1.21.50","1.20.81","1.20.40","1.19.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18,19,20|}.${3|2|0|}"}]}}}