UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

390 lines 13.3 kB
{ "description": "Delay for an entity playing its sound", "fields": [ { "id": "event_name", "dataType": 2, "lookupId": "entityTypeEvents", "samples": { "/vanilla/behavior_pack/entities/allay.json": [ { "path": "/minecraft:entity/components/minecraft:ambient_sound_interval/", "content": "ambient" } ], "/vanilla/behavior_pack/entities/bee.json": [ { "path": "/minecraft:entity/component_groups/look_for_food/minecraft:ambient_sound_interval/", "content": "ambient.pollinate" }, { "path": "/minecraft:entity/component_groups/default_sound/minecraft:ambient_sound_interval/", "content": "ambient" } ], "/vanilla/behavior_pack/entities/creaking.json": [ { "path": "/minecraft:entity/component_groups/minecraft:hostile/minecraft:ambient_sound_interval/", "content": "undefined" } ], "/vanilla/behavior_pack/entities/evocation_illager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:raid_configuration/minecraft:ambient_sound_interval/", "content": "ambient.in.raid" } ], "/vanilla/behavior_pack/entities/fox.json": [ { "path": "/minecraft:entity/component_groups/minecraft:fox_ambient_sleep/minecraft:ambient_sound_interval/", "content": "sleep" }, { "path": "/minecraft:entity/component_groups/minecraft:fox_ambient_night/minecraft:ambient_sound_interval/", "content": "screech" }, { "path": "/minecraft:entity/component_groups/minecraft:fox_ambient_defending_target/minecraft:ambient_sound_interval/", "content": "mad" } ], "/vanilla/behavior_pack/entities/pillager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:raid_configuration/minecraft:ambient_sound_interval/", "content": "ambient.in.raid" } ] }, "defaultValue": "ambient", "description": "Level sound event to be played as the ambient sound.", "title": "Event Name" }, { "id": "event_names", "title": "Event Names", "description": "List of dynamic level sound events, with conditions for choosing between them. Evaluated in order, first one wins. If none evaluate to true, 'event_name' will take precedence.", "dataType": 15, "subForm": { "description": "List of dynamic level sound events, with conditions for choosing between them. Evaluated in order, first one wins. If none evaluate to true, 'event_name' will take precedence.", "fields": [ { "id": "condition", "title": "Condition", "description": "The condition that must be satisfied to select the given ambient sound", "dataType": 2 }, { "id": "event_name", "title": "Event Name", "description": "Level sound event to be played as the ambient sound", "dataType": 2 } ] }, "samples": { "/vanilla/behavior_pack/entities/allay.json": [ { "path": "/minecraft:entity/components/minecraft:ambient_sound_interval/", "content": [ { "event_name": "ambient.tame", "condition": "query.is_using_item" }, { "event_name": "ambient", "condition": "!query.is_using_item" } ] } ], "/vanilla/behavior_pack/entities/warden.json": [ { "path": "/minecraft:entity/components/minecraft:ambient_sound_interval/", "content": [ { "event_name": "angry", "condition": "query.anger_level(this) >= 80" }, { "event_name": "agitated", "condition": "query.anger_level(this) >= 40" } ] } ] } }, { "id": "range", "title": "Range", "description": "Maximum time in seconds to randomly add to the ambient sound delay time.", "defaultValue": 16, "dataType": 3, "samples": { "/vanilla/behavior_pack/entities/allay.json": [ { "path": "/minecraft:entity/components/minecraft:ambient_sound_interval/", "content": 5 } ], "/vanilla/behavior_pack/entities/bee.json": [ { "path": "/minecraft:entity/component_groups/look_for_food/minecraft:ambient_sound_interval/", "content": 3 } ], "/vanilla/behavior_pack/entities/evocation_illager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:raid_configuration/minecraft:ambient_sound_interval/", "content": 4 } ], "/vanilla/behavior_pack/entities/fox.json": [ { "path": "/minecraft:entity/component_groups/minecraft:fox_ambient_night/minecraft:ambient_sound_interval/", "content": 160 } ], "/vanilla/behavior_pack/entities/pillager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:raid_configuration/minecraft:ambient_sound_interval/", "content": 4 } ], "/vanilla/behavior_pack/entities/ravager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:raid_configuration/minecraft:ambient_sound_interval/", "content": 8 } ] } }, { "id": "value", "title": "Value", "description": "Minimum time in seconds before the entity plays its ambient sound again.", "defaultValue": 8, "dataType": 3, "samples": { "/vanilla/behavior_pack/entities/allay.json": [ { "path": "/minecraft:entity/components/minecraft:ambient_sound_interval/", "content": 5 } ], "/vanilla/behavior_pack/entities/bee.json": [ { "path": "/minecraft:entity/component_groups/look_for_food/minecraft:ambient_sound_interval/", "content": 2 } ], "/vanilla/behavior_pack/entities/evocation_illager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:raid_configuration/minecraft:ambient_sound_interval/", "content": 2 } ], "/vanilla/behavior_pack/entities/fox.json": [ { "path": "/minecraft:entity/component_groups/minecraft:fox_ambient_night/minecraft:ambient_sound_interval/", "content": 80 } ], "/vanilla/behavior_pack/entities/ravager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:raid_configuration/minecraft:ambient_sound_interval/", "content": 4 } ] } } ], "title": "Ambient Sound Interval", "samples": { "/vanilla/behavior_pack/entities/allay.json": [ { "path": "/minecraft:entity/components/minecraft:ambient_sound_interval/", "content": { "value": 5, "range": 5, "event_name": "ambient", "event_names": [ { "event_name": "ambient.tame", "condition": "query.is_using_item" }, { "event_name": "ambient", "condition": "!query.is_using_item" } ] } } ], "/vanilla/behavior_pack/entities/armadillo.json": [ { "path": "/minecraft:entity/component_groups/minecraft:unrolled/minecraft:ambient_sound_interval/", "content": {} } ], "/vanilla/behavior_pack/entities/bee.json": [ { "path": "/minecraft:entity/component_groups/look_for_food/minecraft:ambient_sound_interval/", "content": { "event_name": "ambient.pollinate", "range": 3, "value": 2 } }, { "path": "/minecraft:entity/component_groups/default_sound/minecraft:ambient_sound_interval/", "content": { "event_name": "ambient", "range": 0, "value": 0 } } ], "/vanilla/behavior_pack/entities/creaking.json": [ { "path": "/minecraft:entity/component_groups/minecraft:neutral/minecraft:ambient_sound_interval/", "content": {} }, { "path": "/minecraft:entity/component_groups/minecraft:hostile/minecraft:ambient_sound_interval/", "content": { "event_name": "undefined" } } ], "/vanilla/behavior_pack/entities/donkey.json": [ { "path": "/minecraft:entity/components/minecraft:ambient_sound_interval/", "content": {} } ], "/vanilla/behavior_pack/entities/evocation_illager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:raid_configuration/minecraft:ambient_sound_interval/", "content": { "value": 2, "range": 4, "event_name": "ambient.in.raid" } } ], "/vanilla/behavior_pack/entities/fox.json": [ { "path": "/minecraft:entity/component_groups/minecraft:fox_ambient_normal/minecraft:ambient_sound_interval/", "content": { "event_name": "ambient" } }, { "path": "/minecraft:entity/component_groups/minecraft:fox_ambient_sleep/minecraft:ambient_sound_interval/", "content": { "event_name": "sleep" } }, { "path": "/minecraft:entity/component_groups/minecraft:fox_ambient_night/minecraft:ambient_sound_interval/", "content": { "event_name": "screech", "value": 80, "range": 160 } }, { "path": "/minecraft:entity/component_groups/minecraft:fox_ambient_defending_target/minecraft:ambient_sound_interval/", "content": { "event_name": "mad" } } ], "/vanilla/behavior_pack/entities/horse.json": [ { "path": "/minecraft:entity/components/minecraft:ambient_sound_interval/", "content": {} } ], "/vanilla/behavior_pack/entities/mule.json": [ { "path": "/minecraft:entity/components/minecraft:ambient_sound_interval/", "content": {} } ], "/vanilla/behavior_pack/entities/pillager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:raid_configuration/minecraft:ambient_sound_interval/", "content": { "value": 2, "range": 4, "event_name": "ambient.in.raid" } } ], "/vanilla/behavior_pack/entities/ravager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:raid_configuration/minecraft:ambient_sound_interval/", "content": { "value": 4, "range": 8, "event_name": "ambient.in.raid" } } ], "/vanilla/behavior_pack/entities/skeleton_horse.json": [ { "path": "/minecraft:entity/components/minecraft:ambient_sound_interval/", "content": {} } ], "/vanilla/behavior_pack/entities/vindicator.json": [ { "path": "/minecraft:entity/component_groups/minecraft:raid_configuration/minecraft:ambient_sound_interval/", "content": { "value": 2, "range": 4, "event_name": "ambient.in.raid" } } ], "/vanilla/behavior_pack/entities/warden.json": [ { "path": "/minecraft:entity/components/minecraft:ambient_sound_interval/", "content": { "value": 2, "range": 4, "event_name": "ambient", "event_names": [ { "event_name": "angry", "condition": "query.anger_level(this) >= 80" }, { "event_name": "agitated", "condition": "query.anger_level(this) >= 40" } ] } } ], "/vanilla/behavior_pack/entities/witch.json": [ { "path": "/minecraft:entity/component_groups/minecraft:raid_configuration/minecraft:ambient_sound_interval/", "content": { "value": 2, "range": 4, "event_name": "ambient.in.raid" } } ], "/vanilla/behavior_pack/entities/zombie_horse.json": [ { "path": "/minecraft:entity/components/minecraft:ambient_sound_interval/", "content": {} } ] }, "id": "minecraft:ambient_sound_interval" }