Play sound
too-many-attributes:play_soundentity action
Plays a sound at the entity. It takes the same sound, category, volume and pitch as Origins' origins:play_sound, plus three more fields.
| Field | Type | Default | Description |
|---|---|---|---|
sound | Sound id | required | Like minecraft:entity.wither.spawn. |
category | String | the entity's | Which volume slider controls it: master, music, records, weather, blocks, hostile, neutral, players, ambient or voice. |
volume | Float | 1 | Volume. Above 1 it's heard further away, 16 blocks per 1 volume. |
pitch | Float | 1 | Pitch, from 0.5 to 2. |
follow_entity | Boolean | false | The sound moves with the entity while it plays. |
global | Boolean | false | Everyone in the dimension hears it at full volume. Players out of normal range hear it 2 blocks away, from the entity's direction. |
hear_self | Boolean | true | false: when the entity is a player, everyone except that player hears it. |
- With
global, a far-away player hears the sound stay put in the entity's direction, even withfollow_entity. - From Overgrown's Apoli: Overgrown's
internal: trueishear_self: false. Category names are vanilla's, so useblocksandrecordsfor Overgrown'sblockandrecord.globaldefaults tofalse. Overgrown turns it on wheneverfollow_entityis on, so set both to match. Overgrown'sglobalis only heard within the sound's normal range. TMA's reaches the whole dimension.
Example: "War horn". Pressing your primary key plays a raid horn that the whole dimension hears, once a minute.
{
"type": "origins:active_self",
"entity_action": {
"type": "too-many-attributes:play_sound",
"sound": "minecraft:event.raid.horn",
"category": "players",
"global": true
},
"cooldown": 1200,
"key": {
"key": "key.origins.primary_active"
}
}