Skip to content

Commit

Permalink
- Some misc tweaks (#301)
Browse files Browse the repository at this point in the history
* - 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 <[email protected]>
  • Loading branch information
Xterionix and DaanV2 authored Aug 17, 2024
1 parent 61ee5f0 commit a84820d
Show file tree
Hide file tree
Showing 9 changed files with 324 additions and 63 deletions.
33 changes: 31 additions & 2 deletions source/behavior/entities/filters/filters/has_damage.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,35 @@
"test": { "type": "string", "title": "Test Property", "description": "Returns true when the subject entity receives the named damage type." },
"operator": { "$ref": "./types/operator.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"
]
}
}
}
}
71 changes: 35 additions & 36 deletions source/general/entity/damage_source.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,41 @@
"description": "The types of damage an entity can receive.",
"type": "string",
"enum": [
"all",
"anvil",
"block_explosion",
"campfire",
"charging",
"contact",
"drowning",
"entity_attack",
"entity_explosion",
"fall",
"falling_block",
"fatal",
"fire",
"fire_tick",
"fireworks",
"fly_into_wall",
"freezing",
"lava",
"lightning",
"magic",
"magma",
"none",
"override",
"piston",
"projectile",
"ram_attack",
"sonic_boom",
"soul_campfire",
"stalactite",
"stalagmite",
"starve",
"suffocation",
"suicide",
"temperature",
"thorns",
"void",
"all",
"anvil",
"block_explosion",
"campfire",
"charging",
"contact",
"drowning",
"entity_attack",
"entity_explosion",
"fall",
"falling_block",
"fire",
"fire_tick",
"fireworks",
"fly_into_wall",
"freezing",
"lava",
"lightning",
"magic",
"magma",
"none",
"override",
"piston",
"projectile",
"ram_attack",
"self_destruct",
"sonic_boom",
"soul_campfire",
"stalactite",
"stalagmite",
"starve",
"suffocation",
"temperature",
"thorns",
"void",
"wither"
]
}
221 changes: 221 additions & 0 deletions source/general/vanilla/material.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
2 changes: 1 addition & 1 deletion source/molang/boolean.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"title": "Molang Boolean",
"description": "The minecraft molang definition that results in a 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" }]
}
2 changes: 1 addition & 1 deletion source/molang/number.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"title": "Molang Number",
"description": "The minecraft molang definition that results in a float.",
"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" }]
}
Loading

0 comments on commit a84820d

Please sign in to comment.