Repeater Sound Mod
Features
- Adding sounds to these redstone components when they are clicked.
- Repeater
- Redstone wire
- Daylight detector
- The sounds (including comparator sound) are adjustable in these aspects.
- Pitch of the sound
- Volume of the sound
- Random offset to the pitch of the sound
- Different interaction modes to adjust the behavior of blocks when clicked
Behavior of Affected Blocks
- Repeater
- A sound will be played when it got clicked (delay changed), the pitch of the sound will change with the delay of that repeater (when not using random pitch)
- Comparator
- The sound and interaction of comparator can be modified by the mod
- Redstone Wire
- A sound will be played when it got clicked (shape changed), the pitch of the sound will change depends on the shape of it, similar to comparator (when not using random pitch)
- Daylight Detector
- A sound will be played when it got clicked (mode changed), the pitch of the sound will change depends on the mode of it, similar to comparator (when not using random pitch)
Interaction Modes
There are three Interaction Modes to change the behavior of blocks when they are clicked
-
NORMAL: The standard behavior of both vanilla Minecraft and the RepeaterSound mod. -
ALARM: A more noticeable sound will be played and a chat message will be sent to you when you interact with a block affected by this mod.- The block will still be "clicked", and its state will change accordingly.
- The alarm message can be configured using a command provided by this mod
-
DISABLED: This mode disables interactions with blocks affected by this mod.- The alarm message can be configured using a command provided by this mod
You can switch between interaction modes using the command /repeatersound interactionMode <mode>. The arguments are: NORMAL, ALARM, DISABLED.
Please note that these arguments are case-sensitive and must be in uppercase.
Configuration
Command
Command /repeatersound allows you to edit the options in-game, here is a list of arguments you can use in this command:
/repeatersound setBasePitch <pitch>- Used to adjust the base pitch that will be applied,
<pitch>requires afloatnumber
- Used to adjust the base pitch that will be applied,
/repeatersound useRandomPitch <random>- Used to set if the random offset will be applied to the base pitch,
<random>requires abooleanvalue
- Used to set if the random offset will be applied to the base pitch,
/repeatersound setVolume <volume>- Used to set the volume of sounds,
volumerequires afloatnumber
- Used to set the volume of sounds,
/repeatersound interactionMode <mode>- Used to switch interaction modes
/repeatersound alarmMessage <message>- Used to set the message that will be sent to you in
ALARMinteraction mode, use{Block}and{Pos}to get the block and its pos - For example
/repeatersound alarmMessage "c: {Block}, p: {Pos}"and click a repeater at 0 0 0 will send this message:c: Block{minecraft:repeater}, p: 0, 0, 0 - Please note that the quotes outside of
<message>are necessary.
- Used to set the message that will be sent to you in
/repeatersound disabledMessage <message>- Used to set the message that will display on screen in
DISABLEDinteraction mode. - Please note that the quotes outside of
<message>are necessary.
- Used to set the message that will display on screen in
Mod Menu
Repeater Sound Mod provides a config screen in Mod Menu using Cloth Config API
Config File
After the first initialize of the mod, a config file repeatersound.json will be created in the game's config directory. You can edit this file manually if you want.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 20d ago | 1 | ||||
| 4mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 |
- Fixes/Optimizations**
- Fixed
/repeatersound alarmMessagewriting to the wrong config key (interaction_mode→alarm_message) - Fixed the config screen label for
disabled_messageso it no longer reuses the alarm message text - Refactored
ComparatorBlockMixinto remove shared mutable fields and rely only on per-call parameters - Centralized config validation in
ConfigManager, so commands and config screen now share the same validation rules - Normalized and validated stored config values on startup, automatically repairing invalid entries with defaults
- Unified configuration validation flow for all entrypoints (startup, commands and config screen)
- Other**
- Updated to Minecraft 26.1
- News**
- Added mod menu configuration screen (Cloth Config API required)
- Fixes/Optimizations**
- Added mod id tag to log messages
- Optimized config file, now config entries have a fixed order
- Fixed a bug when updating config below version 1.3.0
- Config option values are validated when the mod initializes
- Moved mod version from file name of config file into config entries
- Others**
~~why my code before is so shit~~
- Fixes/Optimizations**
- Optimized log messages
- Optimized command suggestions of
/repeatersound interactionMode - Optimized config file
- Features**
- Messages for
ALARMandDISABLEDinteraction modes are now configurable.
>
/repeatersound alarmMessage <message> to set the message of ALARM mode.>
> - Used to set the message that will be sent to you in
ALARM interaction mode, use {Block} and {Pos} to get the block and its pos.>
> - For example:
/repeatersound alarmMessage "c: {Block}, p: {Pos}" and click a repeater at 0 0 0 will send this message: c: Block{minecraft:repeater}, p: 0, 0, 0>
> - Please note that
<message> must be enclosed in quotes.>
>
/repeatersound disabledMessage <message> to set the message of DISABLED mode.>
> - Used to set the message that will display on screen in
DISABLED interaction mode.>
> - Please note that
<message> must be enclosed in quotes.- Setting config using commands will send feedback via a chat message now.
- Invalid config value will not be saved now.
- Fixes/Optimizations**
- The arguments of command
/repeatersound interactionModeare not case-sensitive anymore.
- Fixed a bug where the option
useRandomhas incorrect id in the config checker.
- Implemented deferred config writing. The config will now only be written to disk when you quit a world/server. ~~Previously it will be write to disk each time you use the command.~~
- Implemented value verification when setting config by command, invalid value will not be saved to config.
- New Feature: “Interaction Mode” with three available modes:
NORMAL: This is the standard behavior of both vanilla Minecraft and the RepeaterSound mod.ALARM: A more noticeable sound will be played and a chat message will be sent to you when you interact with a block affected by this mod. Please note that the block will still be "clicked", and its state will change accordingly.DISABLED: This mode disables interactions with blocks affected by this mod.- You can switch between interaction modes using the command
/repeatersound interactionMode <mode>. The arguments are:NORMAL,ALARM,DISABLED. Please note that these arguments are case-sensitive and must be in uppercase. - The entire configuration-related code has been rewritten. Don’t worry, your configuration from previous versions (below 1.3.0) will be migrated automatically.
- Other code optimizations.
- Added daylight detector sound
- Volume of sounds in the mod(including comparator) can now be adjusted by command
/repeatersound setVolume <volume>,<volume>requires afloatnumber - Optimized logic of loading config
- The mod now works without any dependency
- Fixed the comparator mixin not only work in client environment
- The pitch adjustments also affect comparator sound now
- Optimized code & file, now using Minecraft's own sound instead of adding new sounds
- Merged the mod for Minecraft 1.16-1.18 into a single file
- The pitch of repeater and redstone wire sounds are now configurable
- Added an option to apply a random offset to the base pitch
- There are two ways to adjust these two options:
- Adjust them through a config file
repeatersound.json5which is located in the game'sconfigdirectory - Use the newly added command
/repeatersound, there are two arguments you can use in this command /repeatersound setBasePitch <pitch>is used for the adjustment of the base pitch that will be applied on both repeater and redstone wire,<pitch>requires afloatnumber/repeatersound useRandomPitch <random>is used to set if the random offset will be applied to the base pitch,<random>requires abooleanvalue
- Added redstone wire sound event.
Changed:
- The pitch of repeater sound now depend on the delay of that repeater.
- The mod is now displayed as "Client" in [Mod Menu](https://modrinth.com/mod/modmenu).