From b4d7320002556d065a4426e12e65bcf4d55bed5b Mon Sep 17 00:00:00 2001 From: alexcrea Date: Sat, 20 Jun 2026 05:43:23 +0200 Subject: [PATCH] add sound & degradation in config --- defaultconfigs/1.21.11/config.yml | 26 ++++++++++++++++++++++++++ defaultconfigs/1.21.9/config.yml | 27 +++++++++++++++++++++++++++ defaultconfigs/1.21/config.yml | 27 +++++++++++++++++++++++++++ src/main/resources/config.yml | 26 ++++++++++++++++++++++++++ 4 files changed, 106 insertions(+) diff --git a/defaultconfigs/1.21.11/config.yml b/defaultconfigs/1.21.11/config.yml index c3ea6204..22de446f 100644 --- a/defaultconfigs/1.21.11/config.yml +++ b/defaultconfigs/1.21.11/config.yml @@ -476,6 +476,32 @@ monetary_cost: work_penalty: 1.0 # for work penalty (aka use penalty) recipe: 1.0 # for custom anvil recipe cost +# Chance that an anvil get degraded +# set it to zero if you wish to disable it +anvil_degradation: 0.12 + +# see https://www.digminecraft.com/lists/sound_list_pc.php +# for a list of most of the sounds +anvil_sound: + enabled: true + # The sound are weighted so if there is multiples of them one is selected randomly + # so if you want to add a "rare sound" as an easter egg you can ! + # If invalid, it will be removed from the list. and if empty it will use the default + use: + default: + sound: block.anvil.use + category: blocks + volume: 1.0 + pitch: 1.0 + weight: 1.0 + destroy: + default: + sound: block.anvil.destroy + category: blocks + volume: 1.0 + pitch: 1.0 + weight: 1.0 + # Whether to show debug logging debug_log: false diff --git a/defaultconfigs/1.21.9/config.yml b/defaultconfigs/1.21.9/config.yml index 614c8df0..4d1ae9d6 100644 --- a/defaultconfigs/1.21.9/config.yml +++ b/defaultconfigs/1.21.9/config.yml @@ -468,6 +468,33 @@ monetary_cost: work_penalty: 1.0 # for work penalty (aka use penalty) recipe: 1.0 # for custom anvil recipe cost +# Chance that an anvil get degraded +# set it to zero if you wish to disable it +anvil_degradation: 0.12 + +# see https://www.digminecraft.com/lists/sound_list_pc.php +# for a list of most of the sounds +anvil_sound: + enabled: true + # The sound are weighted so if there is multiples of them one is selected randomly + # so if you want to add a "rare sound" as an easter egg you can ! + # If invalid, it will be removed from the list. and if empty it will use the default + use: + default: + sound: block.anvil.use + category: blocks + volume: 1.0 + pitch: 1.0 + weight: 1.0 + destroy: + default: + sound: block.anvil.destroy + category: blocks + volume: 1.0 + pitch: 1.0 + weight: 1.0 + + # Whether to show debug logging debug_log: false diff --git a/defaultconfigs/1.21/config.yml b/defaultconfigs/1.21/config.yml index a0bcbd86..50b94f1b 100644 --- a/defaultconfigs/1.21/config.yml +++ b/defaultconfigs/1.21/config.yml @@ -456,6 +456,33 @@ monetary_cost: work_penalty: 1.0 # for work penalty (aka use penalty) recipe: 1.0 # for custom anvil recipe cost +# Chance that an anvil get degraded +# set it to zero if you wish to disable it +anvil_degradation: 0.12 + +# see https://www.digminecraft.com/lists/sound_list_pc.php +# for a list of most of the sounds +anvil_sound: + enabled: true + # The sound are weighted so if there is multiples of them one is selected randomly + # so if you want to add a "rare sound" as an easter egg you can ! + # If invalid, it will be removed from the list. and if empty it will use the default + use: + default: + sound: block.anvil.use + category: blocks + volume: 1.0 + pitch: 1.0 + weight: 1.0 + destroy: + default: + sound: block.anvil.destroy + category: blocks + volume: 1.0 + pitch: 1.0 + weight: 1.0 + + # Whether to show debug logging debug_log: false diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 6d946d4d..218c3a1f 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -463,6 +463,32 @@ monetary_cost: work_penalty: 1.0 # for work penalty (aka use penalty) recipe: 1.0 # for custom anvil recipe cost +# Chance that an anvil get degraded +# set it to zero if you wish to disable it +anvil_degradation: 0.12 + +# see https://www.digminecraft.com/lists/sound_list_pc.php +# for a list of most of the sounds +anvil_sound: + enabled: true + # The sound are weighted so if there is multiples of them one is selected randomly + # so if you want to add a "rare sound" as an easter egg you can ! + # If invalid, it will be removed from the list. and if empty it will use the default + use: + default: + sound: block.anvil.use + category: blocks + volume: 1.0 + pitch: 1.0 + weight: 1.0 + destroy: + default: + sound: block.anvil.destroy + category: blocks + volume: 1.0 + pitch: 1.0 + weight: 1.0 + # Whether to show debug logging debug_log: false