Works: {
"type": "minecraft:play_sound",
"sound": {
"sound_id": "ns:example.sound"
},
"volume": 1,
"pitch": 1
}
Doesn't work: {
"type": "minecraft:play_sound",
"sound": "ns:example.sound",
"volume": 1,
"pitch": 1
}
Vanilla Sound Event | Custom Sound Event | |
|---|---|---|
Object Reference | Works | Works |
String Reference | Works | Doesn’t Work |
Check the comments for the zip containing these 3 folders:
1. The Resource Pack containing the sound.
2. The WORKING Datapack containing the enchantments: Vanilla String, Vanilla Object, and Custom Object.
3. The Datapack that throws an error containing the enchantment: Custom String
This is the zip containing all three folders mentionated above. All enchantments use a
location_changedfield, meaning you have to walk while holding the enchanted item to hear the soundPlease avoid enchanting the same item with all enchantments, because this may lead to many sounds playing, being hard to identify them