1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-21 20:46:28 +00:00
bedrock-samples/metadata/json_schemas/DurabilitySensor v1.21.10.json
Mike Ammerlaan 1440438305 v1.21.30.3
2024-09-17 09:13:33 -07:00

543 lines
23 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "1956551060",
"definitions": {
"764203503": {
"title": "minecraft:durability_sensor durability_threshold v1.21.10",
"description": "Defines both the durability threshold, and the effects emitted when that threshold is met.",
"type": "object",
"properties": {
"durability": {
"description": "The effects are emitted when the item durability value is less than or equal to this value.",
"type": "integer"
},
"particle_type": {
"description": "Particle effect to emit when the threshold is met.",
"type": "string"
},
"sound_event": {
"title": "enum SharedTypes::Legacy::LevelSoundEvent",
"description": "Sound effect to emit when the threshold is met.",
"type": "string",
"enum": [
"add.chest",
"admire",
"agitated",
"ambient",
"ambient.aggressive",
"ambient.baby",
"ambient.basalt_deltas.additions",
"ambient.basalt_deltas.loop",
"ambient.basalt_deltas.mood",
"ambient.candle",
"ambient.cave",
"ambient.crimson_forest.additions",
"ambient.crimson_forest.loop",
"ambient.crimson_forest.mood",
"ambient.in.air",
"ambient.in.raid",
"ambient.in.water",
"ambient.nether_wastes.additions",
"ambient.nether_wastes.loop",
"ambient.nether_wastes.mood",
"ambient.pollinate",
"ambient.screamer",
"ambient.soulsand_valley.additions",
"ambient.soulsand_valley.loop",
"ambient.soulsand_valley.mood",
"ambient.tame",
"ambient.underwater.enter",
"ambient.underwater.exit",
"ambient.warped_forest.additions",
"ambient.warped_forest.loop",
"ambient.warped_forest.mood",
"ambient.worried",
"angry",
"apply_effect.bad_omen",
"apply_effect.raid_omen",
"apply_effect.trial_omen",
"armor",
"armor.break_wolf",
"armor.crack_wolf",
"armor.equip_chain",
"armor.equip_diamond",
"armor.equip_elytra",
"armor.equip_generic",
"armor.equip_gold",
"armor.equip_iron",
"armor.equip_leather",
"armor.equip_netherite",
"armor.equip_wolf",
"armor.repair_wolf",
"armor.unequip_wolf",
"attach",
"attack",
"attack.nodamage",
"attack.strong",
"balloonpop",
"beacon.activate",
"beacon.ambient",
"beacon.deactivate",
"beacon.power",
"blast",
"block.bamboo_sapling.place",
"block.barrel.close",
"block.barrel.open",
"block.beehive.drip",
"block.beehive.enter",
"block.beehive.exit",
"block.beehive.shear",
"block.beehive.work",
"block.bell.hit",
"block.blastfurnace.fire_crackle",
"block.campfire.crackle",
"block.cartography_table.use",
"block.click",
"block.click.fail",
"block.composter.empty",
"block.composter.fill",
"block.composter.fill_success",
"block.composter.ready",
"block.copper_bulb.turn_off",
"block.copper_bulb.turn_on",
"block.decorated_pot.insert",
"block.decorated_pot.insert_fail",
"block.enchanting_table.use",
"block.end_portal.spawn",
"block.end_portal_frame.fill",
"block.fletching_table.use",
"block.frog_spawn.break",
"block.frog_spawn.hatch",
"block.furnace.lit",
"block.grindstone.use",
"block.loom.use",
"block.scaffolding.climb",
"block.sculk.spread",
"block.sculk_catalyst.bloom",
"block.sculk_sensor.place",
"block.sculk_shrieker.place",
"block.sculk_shrieker.shriek",
"block.sign.waxed_interact_fail",
"block.smithing_table.use",
"block.smoker.smoke",
"block.sniffer_egg.crack",
"block.sniffer_egg.hatch",
"block.stonecutter.use",
"block.sweet_berry_bush.hurt",
"block.sweet_berry_bush.pick",
"block.turtle_egg.attack",
"block.turtle_egg.break",
"block.turtle_egg.crack",
"block.turtle_egg.hatch",
"boost",
"born",
"bottle.dragonbreath",
"bottle.empty",
"bottle.fill",
"bow",
"bow.hit",
"break",
"break.block",
"break_pot",
"breathe",
"breeze_wind_charge.burst",
"brush",
"brush_completed",
"bubble.down",
"bubble.downinside",
"bubble.pop",
"bubble.up",
"bubble.upinside",
"bucket.empty.fish",
"bucket.empty.lava",
"bucket.empty.powder_snow",
"bucket.empty.water",
"bucket.fill.fish",
"bucket.fill.lava",
"bucket.fill.powder_snow",
"bucket.fill.water",
"bullet.hit",
"bundle.drop_contents",
"bundle.insert",
"bundle.insert_fail",
"bundle.remove_one",
"burp",
"button.click_off",
"button.click_on",
"cake.add_candle",
"camera.take_picture",
"cant_breed",
"cast.spell",
"cauldron_drip.lava.pointed_dripstone",
"cauldron_drip.water.pointed_dripstone",
"celebrate",
"charge",
"charge.sculk",
"chest.closed",
"chest.open",
"chime.amethyst_block",
"chorusdeath",
"chorusgrow",
"conduit.activate",
"conduit.ambient",
"conduit.attack",
"conduit.deactivate",
"conduit.short",
"convert_mooshroom",
"convert_to_drowned",
"convert_to_frog",
"convert_to_stray",
"converted_to_zombified",
"copper.wax.off",
"copper.wax.on",
"crafter.craft",
"crafter.disable_slot",
"crafter.fail",
"crossbow.loading.end",
"crossbow.loading.middle",
"crossbow.loading.start",
"crossbow.quick_charge.end",
"crossbow.quick_charge.middle",
"crossbow.quick_charge.start",
"crossbow.shoot",
"dash_ready",
"death",
"death.baby",
"death.in.water",
"death.mid.volume",
"death.min.volume",
"death.screamer",
"death.to.zombie",
"default",
"deny",
"detach",
"disappeared",
"door.close",
"door.open",
"drink",
"drink.honey",
"drink.milk",
"drip.lava.pointed_dripstone",
"drip.water.pointed_dripstone",
"drop.slot",
"eat",
"elderguardian.curse",
"elemconstruct.open",
"enderchest.closed",
"enderchest.open",
"explode",
"extinguish.candle",
"extinguish.fire",
"fall",
"fall.big",
"fall.small",
"fang",
"fence_gate.close",
"fence_gate.open",
"fire",
"fizz",
"flap",
"flop",
"fly",
"fuse",
"gallop",
"glass",
"glow_squid.ink_squirt",
"glowstick.use",
"growl",
"haggle",
"haggle.idle",
"haggle.no",
"haggle.yes",
"heartbeat",
"heavy.step",
"hit",
"horn_break",
"horn_call0",
"horn_call1",
"horn_call2",
"horn_call3",
"horn_call4",
"horn_call5",
"horn_call6",
"horn_call7",
"hurt",
"hurt.baby",
"hurt.in.water",
"hurt.reduced",
"hurt.screamer",
"icebomb.hit",
"ignite",
"imitate.blaze",
"imitate.bogged",
"imitate.breeze",
"imitate.cave_spider",
"imitate.creeper",
"imitate.drowned",
"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.warden",
"imitate.witch",
"imitate.wither",
"imitate.wither_skeleton",
"imitate.wolf",
"imitate.zombie",
"imitate.zombie_pigman",
"imitate.zombie_villager",
"insert",
"insert_enchanted",
"irongolem.crack",
"irongolem.repair",
"item.book.put",
"item.fizz",
"item.shield.block",
"item.spyglass.stop_using",
"item.spyglass.use",
"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",
"item.use.on",
"item_given",
"item_taken",
"item_thrown",
"jump",
"jump.prevent",
"jump_to_block",
"land",
"large.blast",
"launch",
"lava",
"lava.pop",
"lay_egg",
"lay_spawn",
"leashknot.break",
"leashknot.place",
"levelup",
"listening",
"listening_angry",
"lodestone_compass.link_compass_to_lodestone",
"lt.reaction.bleach",
"lt.reaction.epaste",
"lt.reaction.epaste2",
"lt.reaction.fertilizer",
"lt.reaction.fire",
"lt.reaction.fireball",
"lt.reaction.icebomb",
"lt.reaction.mgsalt",
"lt.reaction.miscexplosion",
"lt.reaction.miscfire",
"lt.reaction.miscmystical",
"lt.reaction.miscmystical2",
"lt.reaction.product",
"mace.heavy_smash_ground",
"mace.smash_air",
"mace.smash_ground",
"mad",
"milk",
"milk.screamer",
"milk_suspiciously",
"mob.armadillo.brush",
"mob.armadillo.scute_drop",
"mob.armor_stand.place",
"mob.hoglin.converted_to_zombified",
"mob.husk.convert_to_zombie",
"mob.pig.death",
"mob.player.hurt_drown",
"mob.player.hurt_freeze",
"mob.player.hurt_on_fire",
"mob.warning",
"mob.warning.baby",
"nearby_close",
"nearby_closer",
"nearby_closest",
"note",
"note.bass",
"ominous_bottle.end_use",
"ominous_item_spawner.about_to_spawn_item",
"ominous_item_spawner.spawn_item",
"ominous_item_spawner.spawn_item_begin",
"panic",
"pant",
"particle.soul_escape.loud",
"particle.soul_escape.quiet",
"pick_berries.cave_vines",
"pickup",
"pickup_enchanted",
"piston.in",
"piston.out",
"place",
"plop",
"pop",
"portal",
"portal.travel",
"potion.brewed",
"power.off",
"power.off.sculk_sensor",
"power.on",
"power.on.sculk_sensor",
"pre_ram",
"pre_ram.screamer",
"prepare.attack",
"prepare.summon",
"prepare.wololo",
"presneeze",
"pressure_plate.click_off",
"pressure_plate.click_on",
"pumpkin.carve",
"purr",
"purreow",
"raid.horn",
"ram_impact",
"ram_impact.screamer",
"random.anvil_use",
"reappeared",
"record.11",
"record.13",
"record.5",
"record.blocks",
"record.cat",
"record.chirp",
"record.creator",
"record.creator_music_box",
"record.far",
"record.mall",
"record.mellohi",
"record.otherside",
"record.pigstep",
"record.precipice",
"record.relic",
"record.stal",
"record.strad",
"record.wait",
"record.ward",
"reflect",
"remedy",
"respawn_anchor.ambient",
"respawn_anchor.charge",
"respawn_anchor.deplete",
"respawn_anchor.set_spawn",
"retreat",
"roar",
"saddle",
"scared",
"scrape",
"screech",
"shake",
"shatter_pot",
"shear",
"shoot",
"shulker.close",
"shulker.open",
"shulkerbox.closed",
"shulkerbox.open",
"sleep",
"smithing_table.use",
"sneeze",
"sonic_boom",
"sonic_charge",
"sparkler.active",
"sparkler.use",
"spawn",
"splash",
"squid.ink_squirt",
"squish.big",
"squish.small",
"stare",
"step",
"step.baby",
"step_lava",
"step_sand",
"stun",
"swim",
"swoop",
"takeoff",
"teleport",
"tempt",
"thorns",
"throw",
"thunder",
"tilt_down.big_dripleaf",
"tilt_up.big_dripleaf",
"tongue",
"trapdoor.close",
"trapdoor.open",
"trial_spawner.ambient",
"trial_spawner.ambient_ominous",
"trial_spawner.charge_activate",
"trial_spawner.close_shutter",
"trial_spawner.detect_player",
"trial_spawner.eject_item",
"trial_spawner.open_shutter",
"trial_spawner.spawn_mob",
"tripod",
"twinkle",
"ui.cartography_table.take_result",
"ui.loom.take_result",
"ui.stonecutter.take_result",
"undefined",
"unfect",
"vault.activate",
"vault.ambient",
"vault.close_shutter",
"vault.deactivate",
"vault.eject_item",
"vault.insert_item",
"vault.insert_item_fail",
"vault.open_shutter",
"vault.reject_rewarded_player",
"warn",
"water",
"whine",
"wind_charge.burst"
]
}
},
"$metaProperties": {
"CEREAL_DOCUMENTATION_TAG": false,
"CEREAL_JSON_SCHEMA": "DurabilityThreshold v1.21.10"
}
}
},
"title": "minecraft:durability_sensor v1.21.10",
"description": "Enables an item to emit effects when it receives damage. Because of this, the item also needs a `minecraft:durability` component.",
"type": "object",
"properties": {
"durability_thresholds": {
"title": "sequence container",
"description": "The list of both durability thresholds and effects emitted when each threshold is met. When multiple thresholds are met, only the threshold with the lowest durability after applying the damage is considered.",
"type": "array",
"items": {
"description": "Defines both the durability threshold, and the effects emitted when that threshold is met.",
"$ref": "#/definitions/764203503"
},
"minItems": 1
}
},
"required": [
"durability_thresholds"
],
"$metaProperties": {
"CEREAL_DOCUMENTATION_TAG": false,
"CEREAL_JSON_SCHEMA": "DurabilitySensor v1.21.10"
}
}