Update note
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
Update note
Features
- Messages for
ALARM
andDISABLED
interaction modes are now configurable.
/repeatersound alarmMessage <message>
to set the message ofALARM
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 ofDISABLED
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 interactionMode
are not case-sensitive anymore. -
Fixed a bug where the option
useRandom
has 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.
Update note
- 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.