Technicmans Origins Addon - a simple apoli addon providing origin datapackers with new power types that modify and replace sound events. New powers: Replace Sound Emission
This mod aims to implement a better substitute for apugli's custom_footstep power, that can do more.
I plan to make it a part of Apoli for Origins 1.20.1 later on :>
Replaces a sound emissed by power holder with a different sound.
Type ID: techo:replace_sound_emission
| Field | Type | Default | Description |
|---|---|---|---|
| sounds | Object | An object with "key": "value" pairs that determine which sound ("key") will be replaced with a new sound ("value"). Supports regex and resourcepack sounds |
{
"type": "techo:replace_sound_emission",
"sounds": {
"minecraft:entity.player.burp": "empty",
"entity.generic.eat": "minecraft:empty"
}
}
This example will replace entity.player.burp and entity.generic.eat sound events with empty, which will mute every eating sound coming from the power holder (minecraft namespace can be omitted).
{
"type": "techo:replace_sound_emission",
"sounds": {
"block.([a-z|0-9|-|_]*).step": "block.$1.break"
},
"condition": {
"type": "apoli:on_block",
"inverted": true,
"block_condition": {
"type": "apoli:and",
"conditions": [
{
"type": "apoli:in_tag",
"tag": "minecraft:wool"
}
]
}
}
}
This example will replace any stepping sound coming from the power holder with a breaking sound used by the same block that was stepped upon (unless that block is a wool).
apoli:replace_loot_table power from Apoli mod - for letting me borrow its code
Conversation