- Some misc tweaks (#301)
* - Remove molang examples * - Update has damage because apparently not every value is accepted * - Add materials enum and adjust entity/attachable accordingly * - Update damage source list * - Change to example --------- Co-authored-by: Daan Verstraten <daanverstraten@hotmail.com>
This commit is contained in:
@@ -9,6 +9,35 @@
|
|||||||
"test": { "type": "string", "title": "Test Property", "description": "Returns true when the subject entity receives the named damage type." },
|
"test": { "type": "string", "title": "Test Property", "description": "Returns true when the subject entity receives the named damage type." },
|
||||||
"operator": { "$ref": "./types/operator.json" },
|
"operator": { "$ref": "./types/operator.json" },
|
||||||
"subject": { "$ref": "./types/subject.json" },
|
"subject": { "$ref": "./types/subject.json" },
|
||||||
"value": { "type": "string", "description": "The Damage type to test.", "$ref": "../../../../general/entity/damage_source.json", "title": "Value" }
|
"value": { "type": "string", "description": "The Damage type to test.", "title": "Value", "enum": [
|
||||||
|
"anvil",
|
||||||
|
"attack",
|
||||||
|
"block_explosion",
|
||||||
|
"contact",
|
||||||
|
"drowning",
|
||||||
|
"entity_explosion",
|
||||||
|
"fall",
|
||||||
|
"falling_block",
|
||||||
|
"fatal",
|
||||||
|
"fire",
|
||||||
|
"fire_tick",
|
||||||
|
"fly_into_wall",
|
||||||
|
"lava",
|
||||||
|
"magic",
|
||||||
|
"none",
|
||||||
|
"override",
|
||||||
|
"piston",
|
||||||
|
"projectile",
|
||||||
|
"self_destruct",
|
||||||
|
"sonic_boom",
|
||||||
|
"stalactite",
|
||||||
|
"stalagmite",
|
||||||
|
"starve",
|
||||||
|
"suffocation",
|
||||||
|
"thorns",
|
||||||
|
"void",
|
||||||
|
"wither"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -14,7 +14,6 @@
|
|||||||
"entity_explosion",
|
"entity_explosion",
|
||||||
"fall",
|
"fall",
|
||||||
"falling_block",
|
"falling_block",
|
||||||
"fatal",
|
|
||||||
"fire",
|
"fire",
|
||||||
"fire_tick",
|
"fire_tick",
|
||||||
"fireworks",
|
"fireworks",
|
||||||
@@ -29,13 +28,13 @@
|
|||||||
"piston",
|
"piston",
|
||||||
"projectile",
|
"projectile",
|
||||||
"ram_attack",
|
"ram_attack",
|
||||||
|
"self_destruct",
|
||||||
"sonic_boom",
|
"sonic_boom",
|
||||||
"soul_campfire",
|
"soul_campfire",
|
||||||
"stalactite",
|
"stalactite",
|
||||||
"stalagmite",
|
"stalagmite",
|
||||||
"starve",
|
"starve",
|
||||||
"suffocation",
|
"suffocation",
|
||||||
"suicide",
|
|
||||||
"temperature",
|
"temperature",
|
||||||
"thorns",
|
"thorns",
|
||||||
"void",
|
"void",
|
||||||
|
|||||||
221
source/general/vanilla/material.json
Normal file
221
source/general/vanilla/material.json
Normal file
@@ -0,0 +1,221 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -3,6 +3,6 @@
|
|||||||
"title": "Molang Boolean",
|
"title": "Molang Boolean",
|
||||||
"description": "The minecraft molang definition that results in a boolean.",
|
"description": "The minecraft molang definition that results in a boolean.",
|
||||||
"anyOf": [{ "type": "string", "minLength": 0 }, { "type": "boolean" }],
|
"anyOf": [{ "type": "string", "minLength": 0 }, { "type": "boolean" }],
|
||||||
"examples": [0, "query.variant", "(1.0)", "query.", "variable.=;"],
|
"examples": ["(1.0)", "(0.0)"],
|
||||||
"defaultSnippets": [{ "label": "New Molang", "body": "$1" }]
|
"defaultSnippets": [{ "label": "New Molang", "body": "$1" }]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
"title": "Molang Number",
|
"title": "Molang Number",
|
||||||
"description": "The minecraft molang definition that results in a float.",
|
"description": "The minecraft molang definition that results in a float.",
|
||||||
"anyOf": [{ "type": "string", "minLength": 0 }, { "type": "number" }],
|
"anyOf": [{ "type": "string", "minLength": 0 }, { "type": "number" }],
|
||||||
"examples": [0, "query.variant", "(1.0)", "query.", "variable.=;"],
|
"examples": ["(1.0)","(0.0)"],
|
||||||
"defaultSnippets": [{ "label": "New Molang", "body": "$1" }]
|
"defaultSnippets": [{ "label": "New Molang", "body": "$1" }]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,7 +74,13 @@
|
|||||||
},
|
},
|
||||||
"materials": {
|
"materials": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": { "type": "string", "description": "A single material reference.", "title": "Material" },
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"description":
|
||||||
|
"A single material reference.",
|
||||||
|
"title": "Material",
|
||||||
|
"$ref": "../../../general/vanilla/material.json"
|
||||||
|
},
|
||||||
"description": "A collection of material references.",
|
"description": "A collection of material references.",
|
||||||
"title": "Materials"
|
"title": "Materials"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -72,9 +72,11 @@
|
|||||||
},
|
},
|
||||||
"materials": {
|
"materials": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "UNDOCUMENTED: materials.",
|
|
||||||
"title": "Materials",
|
"title": "Materials",
|
||||||
"additionalProperties": { "type": "string", "description": "UNDOCUMENTED: additionalProperties.", "title": "Material" }
|
"additionalProperties": {
|
||||||
|
"type": "string", "description": "Material Reference.", "title": "Material",
|
||||||
|
"$ref": "../../../general/vanilla/material.json"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"min_engine_version": {
|
"min_engine_version": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
@@ -71,7 +71,8 @@
|
|||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Material reference.",
|
"description": "Material reference.",
|
||||||
"title": "Material"
|
"title": "Material",
|
||||||
|
"$ref": "../../../general/vanilla/material.json"
|
||||||
},
|
},
|
||||||
"description": "A collection of material definitions.",
|
"description": "A collection of material definitions.",
|
||||||
"title": "Materials"
|
"title": "Materials"
|
||||||
|
|||||||
@@ -93,7 +93,10 @@
|
|||||||
},
|
},
|
||||||
"materials": {
|
"materials": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": { "type": "string", "description": "Material reference.", "title": "Material" },
|
"additionalProperties": {
|
||||||
|
"type": "string", "description": "Material reference.", "title": "Material",
|
||||||
|
"$ref": "../../../general/vanilla/material.json"
|
||||||
|
},
|
||||||
"description": "A collection of material definitions.",
|
"description": "A collection of material definitions.",
|
||||||
"title": "Materials"
|
"title": "Materials"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user