1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2025-09-30 22:51:19 +00:00
Files
bedrock-samples/metadata/json_schemas/server/entity/1.21.120/AvoidBlockGoalDefinition.json
2025-09-09 10:02:11 -07:00

786 lines
21 KiB
JSON

{
"$id": "3326653763",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"1057349585": {
"properties": {
"max": {
"type": "number"
},
"min": {
"type": "number"
}
},
"title": "FloatRange",
"type": "object"
},
"1088251937": {
"description": "Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects.",
"oneOf": [
{
"$ref": "#/definitions/4150989894"
},
{
"items": {
"$ref": "#/definitions/1088251937",
"description": "Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects."
},
"type": "array"
},
{
"properties": {
"AND": {
"$ref": "#/definitions/1088251937",
"description": "Evaluates all tests in the group, all must pass in order for the group to pass."
},
"NOT": {
"$ref": "#/definitions/1088251937",
"description": "Evaluates all tests in the group, all must fail in order for the group to pass."
},
"OR": {
"$ref": "#/definitions/1088251937",
"description": "Evaluates tests in the group, one or more must pass in order for the group to pass."
},
"all": {
"$ref": "#/definitions/1088251937",
"description": "Evaluates all tests in the group, all must pass in order for the group to pass."
},
"all_of": {
"$ref": "#/definitions/1088251937",
"description": "Evaluates all tests in the group, all must pass in order for the group to pass."
},
"any": {
"$ref": "#/definitions/1088251937",
"description": "Evaluates tests in the group, one or more must pass in order for the group to pass."
},
"any_of": {
"$ref": "#/definitions/1088251937",
"description": "Evaluates tests in the group, one or more must pass in order for the group to pass."
},
"none_of": {
"$ref": "#/definitions/1088251937",
"description": "Evaluates all tests in the group, all must fail in order for the group to pass."
}
},
"type": "object"
}
],
"title": "Filter Group"
},
"1447642202": {
"properties": {
"event": {
"type": "string"
},
"filters": {
"$ref": "#/definitions/1088251937",
"description": "Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects."
},
"target": {
"enum": [
"self",
"other",
"player",
"target",
"parent",
"baby",
"block",
"damager",
"holder",
"item"
],
"title": "FilterSubject",
"type": "string"
}
},
"title": "ActorDefinitionTrigger",
"type": "object"
},
"1531870811": {
"oneOf": [
{
"type": "string"
},
{
"additionalProperties": {
"type": "string"
},
"type": "object"
}
],
"title": "Item Descriptor"
},
"4150989894": {
"properties": {
"domain": {
"description": "The domain the test should be performed in.",
"oneOf": [
{
"type": "boolean"
},
{
"type": "integer"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"operator": {
"description": "The comparison to apply with 'value'.",
"oneOf": [
{
"type": "boolean"
},
{
"type": "integer"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"subject": {
"description": "The subject of this filter test.",
"oneOf": [
{
"type": "boolean"
},
{
"type": "integer"
},
{
"type": "number"
},
{
"type": "string"
}
]
},
"test": {
"description": "The name of the test to apply.",
"type": "string"
},
"value": {
"description": "The value being compared with the test.",
"oneOf": [
{
"type": "boolean"
},
{
"type": "integer"
},
{
"type": "number"
},
{
"type": "string"
}
]
}
},
"required": [
"test"
],
"title": "Filter Test",
"type": "object"
}
},
"description": "Allows this entity to avoid certain blocks.",
"properties": {
"avoid_block_sound": {
"description": "The sound event to play when the mob is avoiding a block.",
"enum": [
"item.use.on",
"hit",
"step",
"step.baby",
"fly",
"jump",
"jump.prevent",
"break",
"place",
"heavy.step",
"gallop",
"fall",
"hurt",
"hurt.baby",
"hurt.in.water",
"death",
"death.baby",
"death.in.water",
"death.to.zombie",
"ambient",
"ambient.baby",
"ambient.in.water",
"ambient.in.air",
"ambient.tame",
"ambient.pollinate",
"breathe",
"mad",
"boost",
"bow",
"squish.big",
"squish.small",
"fall.big",
"fall.small",
"splash",
"fizz",
"flap",
"swim",
"drink",
"drink.honey",
"drink.milk",
"eat",
"takeoff",
"shake",
"plop",
"land",
"saddle",
"armor",
"mob.armor_stand.place",
"add.chest",
"throw",
"attack",
"attack.nodamage",
"attack.strong",
"warn",
"shear",
"milk",
"thunder",
"explode",
"fire",
"ignite",
"fuse",
"stare",
"spawn",
"born",
"shoot",
"break.block",
"launch",
"blast",
"large.blast",
"twinkle",
"remedy",
"unfect",
"convert_to_drowned",
"levelup",
"bow.hit",
"bullet.hit",
"extinguish.fire",
"item.fizz",
"chest.open",
"chest.closed",
"shulkerbox.open",
"shulkerbox.closed",
"enderchest.open",
"enderchest.closed",
"power.on",
"power.off",
"attach",
"detach",
"deny",
"tripod",
"pop",
"drop.slot",
"note",
"thorns",
"piston.in",
"piston.out",
"portal",
"water",
"lava.pop",
"lava",
"beacon.activate",
"beacon.ambient",
"beacon.deactivate",
"beacon.power",
"conduit.activate",
"conduit.ambient",
"conduit.attack",
"conduit.deactivate",
"conduit.short",
"bubble.pop",
"bubble.up",
"bubble.upinside",
"bubble.down",
"bubble.downinside",
"burp",
"bucket.fill.water",
"bucket.empty.water",
"bucket.fill.lava",
"bucket.empty.lava",
"bucket.fill.fish",
"bucket.empty.fish",
"armor.equip_chain",
"armor.equip_diamond",
"armor.equip_elytra",
"armor.equip_generic",
"armor.equip_gold",
"armor.equip_iron",
"armor.equip_leather",
"armor.equip_netherite",
"record.13",
"record.cat",
"record.blocks",
"record.chirp",
"record.creator",
"record.creator_music_box",
"record.far",
"record.mall",
"record.mellohi",
"record.stal",
"record.strad",
"record.ward",
"record.11",
"record.wait",
"record.pigstep",
"record.precipice",
"record.relic",
"record.otherside",
"record.5",
"record.tears",
"record.lava_chicken",
"flop",
"elderguardian.curse",
"teleport",
"shulker.open",
"shulker.close",
"mob.warning",
"mob.warning.baby",
"haggle",
"haggle.yes",
"haggle.no",
"haggle.idle",
"disappeared",
"reappeared",
"chorusgrow",
"chorusdeath",
"glass",
"potion.brewed",
"cast.spell",
"prepare.attack",
"prepare.summon",
"prepare.wololo",
"fang",
"charge",
"camera.take_picture",
"leashknot.break",
"leashknot.place",
"growl",
"whine",
"pant",
"purr",
"purreow",
"death.min.volume",
"death.mid.volume",
"imitate.blaze",
"imitate.cave_spider",
"imitate.creeper",
"imitate.elder_guardian",
"imitate.ender_dragon",
"imitate.enderman",
"imitate.endermite",
"imitate.evocation_illager",
"imitate.ghast",
"imitate.husk",
"imitate.magma_cube",
"imitate.polar_bear",
"imitate.shulker",
"imitate.silverfish",
"imitate.skeleton",
"imitate.slime",
"imitate.spider",
"imitate.stray",
"imitate.vex",
"imitate.vindication_illager",
"imitate.witch",
"imitate.wither",
"imitate.wither_skeleton",
"imitate.wolf",
"imitate.zombie",
"imitate.zombie_pigman",
"imitate.zombie_villager",
"block.end_portal_frame.fill",
"block.end_portal.spawn",
"random.anvil_use",
"bottle.dragonbreath",
"balloonpop",
"sparkler.active",
"item.trident.hit",
"item.trident.hit_ground",
"item.trident.return",
"item.trident.riptide_1",
"item.trident.riptide_2",
"item.trident.riptide_3",
"item.trident.throw",
"item.trident.thunder",
"block.fletching_table.use",
"elemconstruct.open",
"icebomb.hit",
"lt.reaction.icebomb",
"lt.reaction.bleach",
"lt.reaction.epaste",
"lt.reaction.epaste2",
"lt.reaction.fertilizer",
"lt.reaction.fireball",
"lt.reaction.mgsalt",
"lt.reaction.miscfire",
"lt.reaction.fire",
"lt.reaction.miscexplosion",
"lt.reaction.miscmystical",
"lt.reaction.miscmystical2",
"lt.reaction.product",
"sparkler.use",
"glowstick.use",
"block.turtle_egg.break",
"block.turtle_egg.crack",
"block.turtle_egg.hatch",
"block.turtle_egg.attack",
"block.sniffer_egg.crack",
"block.sniffer_egg.hatch",
"block.frog_spawn.hatch",
"block.frog_spawn.break",
"swoop",
"presneeze",
"sneeze",
"scared",
"ambient.aggressive",
"ambient.worried",
"cant_breed",
"block.scaffolding.climb",
"block.bamboo_sapling.place",
"crossbow.loading.start",
"crossbow.loading.middle",
"crossbow.loading.end",
"crossbow.shoot",
"crossbow.quick_charge.start",
"crossbow.quick_charge.middle",
"crossbow.quick_charge.end",
"item.shield.block",
"portal.travel",
"item.book.put",
"block.grindstone.use",
"block.bell.hit",
"block.campfire.crackle",
"block.sweet_berry_bush.hurt",
"block.sweet_berry_bush.pick",
"block.stonecutter.use",
"block.cartography_table.use",
"block.composter.empty",
"block.composter.fill",
"block.composter.fill_success",
"block.composter.ready",
"roar",
"stun",
"block.barrel.open",
"block.barrel.close",
"raid.horn",
"ui.stonecutter.take_result",
"ui.cartography_table.take_result",
"ui.loom.take_result",
"block.smoker.smoke",
"block.blastfurnace.fire_crackle",
"block.smithing_table.use",
"block.loom.use",
"ambient.in.raid",
"screech",
"sleep",
"block.furnace.lit",
"convert_mooshroom",
"milk_suspiciously",
"celebrate",
"block.beehive.enter",
"block.beehive.exit",
"block.beehive.shear",
"block.beehive.work",
"block.beehive.drip",
"ambient.cave",
"angry",
"retreat",
"converted_to_zombified",
"step_lava",
"tempt",
"panic",
"admire",
"particle.soul_escape.quiet",
"particle.soul_escape.loud",
"respawn_anchor.charge",
"respawn_anchor.deplete",
"respawn_anchor.set_spawn",
"respawn_anchor.ambient",
"ambient.crimson_forest.mood",
"ambient.warped_forest.mood",
"ambient.soulsand_valley.mood",
"ambient.nether_wastes.mood",
"ambient.crimson_forest.additions",
"ambient.warped_forest.additions",
"ambient.soulsand_valley.additions",
"ambient.nether_wastes.additions",
"ambient.basalt_deltas.additions",
"ambient.crimson_forest.loop",
"ambient.warped_forest.loop",
"ambient.soulsand_valley.loop",
"ambient.nether_wastes.loop",
"ambient.basalt_deltas.loop",
"lodestone_compass.link_compass_to_lodestone",
"ambient.basalt_deltas.mood",
"power.on.sculk_sensor",
"power.off.sculk_sensor",
"smithing_table.use",
"default",
"lay_egg",
"lay_spawn",
"bucket.fill.powder_snow",
"bucket.empty.powder_snow",
"cauldron_drip.water.pointed_dripstone",
"cauldron_drip.lava.pointed_dripstone",
"tilt_down.big_dripleaf",
"tilt_up.big_dripleaf",
"drip.water.pointed_dripstone",
"pick_berries.cave_vines",
"drip.lava.pointed_dripstone",
"copper.wax.on",
"copper.wax.off",
"scrape",
"item.spyglass.use",
"item.spyglass.stop_using",
"chime.amethyst_block",
"mob.player.hurt_drown",
"mob.player.hurt_on_fire",
"mob.player.hurt_freeze",
"ambient.screamer",
"hurt.screamer",
"death.screamer",
"milk.screamer",
"jump_to_block",
"pre_ram",
"pre_ram.screamer",
"ram_impact",
"ram_impact.screamer",
"squid.ink_squirt",
"glow_squid.ink_squirt",
"convert_to_stray",
"cake.add_candle",
"extinguish.candle",
"ambient.candle",
"block.click",
"block.click.fail",
"block.sculk_catalyst.bloom",
"block.sculk_shrieker.shriek",
"nearby_close",
"nearby_closer",
"nearby_closest",
"agitated",
"listening",
"heartbeat",
"tongue",
"item_given",
"item_taken",
"item_thrown",
"irongolem.crack",
"irongolem.repair",
"horn_break",
"horn_call0",
"horn_call1",
"horn_call2",
"horn_call3",
"horn_call4",
"horn_call5",
"horn_call6",
"horn_call7",
"imitate.warden",
"listening_angry",
"sonic_boom",
"sonic_charge",
"convert_to_frog",
"block.sculk.spread",
"charge.sculk",
"block.sculk_sensor.place",
"block.sculk_shrieker.place",
"block.enchanting_table.use",
"bundle.drop_contents",
"bundle.insert",
"bundle.insert_fail",
"bundle.remove_one",
"step_sand",
"dash_ready",
"pressure_plate.click_off",
"pressure_plate.click_on",
"button.click_off",
"button.click_on",
"door.open",
"door.close",
"trapdoor.open",
"trapdoor.close",
"fence_gate.open",
"fence_gate.close",
"insert",
"pickup",
"insert_enchanted",
"pickup_enchanted",
"shatter_pot",
"break_pot",
"brush",
"brush_completed",
"block.sign.waxed_interact_fail",
"note.bass",
"pumpkin.carve",
"mob.husk.convert_to_zombie",
"mob.pig.death",
"mob.hoglin.converted_to_zombified",
"ambient.underwater.enter",
"ambient.underwater.exit",
"bottle.fill",
"bottle.empty",
"block.decorated_pot.insert",
"block.decorated_pot.insert_fail",
"crafter.craft",
"crafter.fail",
"crafter.disable_slot",
"block.copper_bulb.turn_on",
"block.copper_bulb.turn_off",
"breeze_wind_charge.burst",
"imitate.breeze",
"trial_spawner.open_shutter",
"trial_spawner.detect_player",
"trial_spawner.close_shutter",
"trial_spawner.spawn_mob",
"trial_spawner.eject_item",
"trial_spawner.ambient",
"mob.armadillo.brush",
"mob.armadillo.scute_drop",
"armor.equip_wolf",
"armor.unequip_wolf",
"reflect",
"vault.open_shutter",
"vault.close_shutter",
"vault.eject_item",
"vault.insert_item",
"vault.insert_item_fail",
"vault.ambient",
"vault.activate",
"vault.deactivate",
"hurt.reduced",
"wind_charge.burst",
"armor.break_wolf",
"armor.crack_wolf",
"armor.repair_wolf",
"mace.smash_air",
"mace.smash_ground",
"mace.heavy_smash_ground",
"trial_spawner.charge_activate",
"trial_spawner.ambient_ominous",
"apply_effect.bad_omen",
"apply_effect.raid_omen",
"apply_effect.trial_omen",
"ominous_item_spawner.spawn_item",
"ominous_bottle.end_use",
"ominous_item_spawner.spawn_item_begin",
"ominous_item_spawner.about_to_spawn_item",
"imitate.bogged",
"vault.reject_rewarded_player",
"imitate.drowned",
"sponge.absorb",
"imitate.creaking",
"block.creaking_heart.trail",
"creaking_heart_spawn",
"activate",
"deactivate",
"freeze",
"unfreeze",
"open",
"open_long",
"close",
"close_long",
"imitate.phantom",
"imitate.zoglin",
"imitate.guardian",
"imitate.ravager",
"imitate.pillager",
"place_in_water",
"state_change",
"imitate.happy_ghast",
"armor.unequip_generic",
"ambient.weather.the_end_light_flash",
"lead.leash",
"lead.unleash",
"lead.break",
"unsaddle",
"armor.equip_copper",
"place_item",
"single_swap",
"multi_swap",
"undefined"
],
"title": "LevelSoundEvent",
"type": "string"
},
"control_flags": {
"items": {
"enum": [
"move",
"look",
"jump"
],
"title": "Goal's control flags",
"type": "string"
},
"type": "array"
},
"on_escape": {
"description": "Escape triggers.",
"items": {
"$ref": "#/definitions/1447642202"
},
"type": "array"
},
"priority": {
"minimum": 0,
"type": "integer"
},
"search_height": {
"description": "Maximum distance to look for a block in y. Default value: 0.",
"type": "integer"
},
"search_range": {
"description": "Maximum distance to look for a block in xz. Default value: 0.",
"type": "integer"
},
"sound_interval": {
"$ref": "#/definitions/1057349585"
},
"sprint_speed_modifier": {
"description": "Modifier for sprint speed. 1.0 means keep the regular speed, while higher numbers make the sprint speed faster. Default value: 1.",
"type": "number"
},
"target_blocks": {
"description": "List of block types this mob avoids.",
"items": {
"$ref": "#/definitions/1531870811"
},
"type": "array"
},
"target_selection_method": {
"description": "Block search method. Default value: nearest.",
"type": "string"
},
"tick_interval": {
"description": "Should start tick interval. Default value: 1.",
"type": "integer"
},
"walk_speed_modifier": {
"description": "Modifier for walking speed. 1.0 means keep the regular speed, while higher numbers make the walking speed faster. Default value: 1.",
"type": "number"
}
},
"title": "minecraft:behavior.avoid_block",
"type": "object",
"x-format-version": "1.21.120"
}