Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Changelog

## [1.0.0-1.21.1] - 2025-08-22

### Added

- Full compatibility with Minecraft 1.21.1
- Updated to Fabric Loader 0.16.5

### Changed

- Updated datapack format from 10 to 48 (1.21.1 requirement)
- Migrated tags directory structure: `tags/blocks/` → `tags/block/`, `tags/items/` → `tags/item/`
- Updated ResourceLocation API calls to use new 1.21.1 syntax
- Updated mixin targeting for 1.21.1 BlockBehaviour changes
- Fixed block ID references: `minecraft:grass` → `minecraft:short_grass`

### Technical Notes

- Maintains data-driven approach using tags for block sound assignments
- All original sound functionality preserved
- Clean codebase following original mod structure
- Compatible with ModMenu for configuration

### Dependencies

- Minecraft 1.21.1
- Fabric Loader 0.16.5+
- Fabric API 0.104.0+1.21.1

### Optional Dependencies

- ModMenu (for in-game configuration)
- Cloth Config API (for configuration GUI)
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ minecraft_version=1.21.1
loader_version=0.16.5

# Mod Properties
mod_version = 0.0.7-1.21.1
mod_version = 1.0.0-1.21.1
maven_group = com.sydokiddo
archives_base_name = auditory

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
// Any blocks in the respective tags will use the respective sound group.
// This is entirely data-driven and can be controlled by adding the block's ID to the respective tag through a datapack or mod.

@Mixin(BlockBehaviour.class)
@Mixin(BlockBehaviour.BlockStateBase.class)
abstract class BlockSoundsMixin {

@Inject(at = @At("HEAD"), method = "getSoundType", cancellable = true)
private void auditory_alterSoundType(BlockState state, CallbackInfoReturnable<SoundType> info) {
private void auditory_alterSoundType(CallbackInfoReturnable<SoundType> info) {
BlockState state = (BlockState) (Object) this;

if (state.is(AuditoryTags.BASALT_SOUNDS) && (Auditory.getConfig().block_sounds.blockSoundsConfig.overworldStoneVariantSounds)) {
info.setReturnValue(SoundType.BASALT);
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/auditory.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"required": true,
"minVersion": "0.8",
"package": "net.sydokiddo.auditory.mixin",
"compatibilityLevel": "JAVA_17",
"compatibilityLevel": "JAVA_21",
"mixins": [
"blocks.BlockSoundsMixin",
"blocks.CakeEatingSoundMixin",
Expand All @@ -27,4 +27,4 @@
"injectors": {
"defaultRequire": 1
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"values": [
"minecraft:grass",
"minecraft:short_grass",
"minecraft:dead_bush",
"minecraft:tall_grass",
"minecraft:fern",
Expand All @@ -21,4 +21,4 @@
"minecraft:red_mushroom",
"minecraft:sugar_cane"
]
}
}

This file was deleted.

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions src/main/resources/data/auditory/tags/blocks/sandstone_sounds.json

This file was deleted.

28 changes: 8 additions & 20 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@

"name": "Auditory",
"description": "A mod that expands and improves upon the sound and audio aspects of Minecraft!",
"authors": [
"Sydokiddo (Developer)",
"AmberSand (Additional Sounds)"
],
"authors": ["Sydokiddo (Developer)", "AmberSand (Additional Sounds)"],
"contact": {
"homepage": "https://www.curseforge.com/minecraft/mc-mods/auditory",
"issues": "https://github.com/Sydokiddo/auditory/issues",
Expand All @@ -20,19 +17,11 @@
"environment": "*",

"entrypoints": {
"main": [
"net.sydokiddo.auditory.Auditory"
],
"client": [
"net.sydokiddo.auditory.AuditoryClient"
],
"modmenu": [
"net.sydokiddo.auditory.misc.config.ModMenuCompatibility"
]
"main": ["net.sydokiddo.auditory.Auditory"],
"client": ["net.sydokiddo.auditory.AuditoryClient"],
"modmenu": ["net.sydokiddo.auditory.misc.config.ModMenuCompatibility"]
},
"mixins": [
"auditory.mixins.json"
],
"mixins": ["auditory.mixins.json"],

"depends": {
"fabricloader": ">=0.16.5",
Expand All @@ -41,8 +30,7 @@
"java": ">=21"
},
"suggests": {
"another-mod": "*",
"modmenu" : "*",
"cloth config" : "*"
"modmenu": "*",
"cloth-config": "*"
}
}
}
12 changes: 5 additions & 7 deletions src/main/resources/template_datapack/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"pack":{
"pack_format": 10,
"description": [
{"text":"Auditory Template Datapack","color":"gold"}
]
}
}
"pack": {
"pack_format": 48,
"description": [{ "text": "Auditory Template Datapack", "color": "gold" }]
}
}