CurseForge · Minecraft mod
Clef
Adds instruments with the ability to play ABC files.
Quick answer
Which Clef release matches 1.12?
Clef-1.12.2-7.1.0.jar targets 1.12.1, 1.12, 1.12.2. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.
Where it goes
Is Clef required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Clef-1.12.2-7.1.0.jar need?
Clef-1.12.2-7.1.0.jar on 1.12. Every mod below is checked against that same setup.
Install iChunUtil first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Clef without breaking your instance.
Built for Clef-1.12.2-7.1.0.jar on 1.12. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use Clef-1.12.2-7.1.0.jar. It targets 1.12.1, 1.12, 1.12.2; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install iChunUtil first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside Clef-1.12.2-7.1.0.jar. It opens that exact file at the source.
About this project
What does Clef add?
Basics
This mod adds the ability to have instruments which plays ABC files.
By default the mod comes with several ABC tracks, and also adds the 32 instruments available in Starbound (with permission).
Clef reads any ABC files in the /mods/clef/abc folder, and instruments in the /mods/clef/instruments folder, so you are welcome to add your own ABC tracks or Instrument Packs. As an added bonus, Clef is also able to read Starbound mod packs in a .zip format.
Getting Instruments
Once in-game, to view the instruments in creative, open up the inventory and open up the Instruments creative tab. There, you will find all the instruments that Clef was able to load.
In survival though, there are three (configurable) ways to get instruments. Chest loot from structures, Mob drops, and the Instrument Player (more on the player later)
Instruments can be either two handed or one handed. By default configs, all two handed instruments will be one handed, to allow you to hold it in your off-hand slot whilst you adventure around!
Using Instruments
With your chosen instrument in hand, press the use key and a GUI would pop up, allowing you to select a song, play solo or in a band (with options to sync to their play time or their track), and to force the mod to reload all the ABC files or Instruments, and finally a Play button. Double clicking a song in the song list will immediately begin playing it.
Whilst playing an instrument, if the instrument is two handed, both hands must be free to play them. If they are one handed, the main hand will be prioritised and that will be played. To stop playing, merely use the instrument again or attack with the instrument.
Right clicking the Band Name will cycle through the available bands currently playing.
Bear in mind not to reload your ABC files if you have a significant number of them, it will cause the game to stall momentarily.
Holding shift whilst mousing over the instrument will tell you what pack the instrument is from, and what the item name for the instrument is.
The Instrument Player
The crafting recipe for the Instrument Player is as such: Planks, a chest, a note block, and a redstone torch.
{width=238 height=112}
Once placed, right click the block with an instrument to place the instrument inside. The Instrument Player has enough space for 9 instruments to be played simultaneously, once redstone power is applied.
Right click it again and you will see a similar GUI to the instrument GUI, but with some added features, most notably the storage space of the Instrument Player on the bottom right. Clicking any of the instruments there will eject the instrument on the top of the block.
There are also two buttons on the bottom of the song list, to allow you to add and view the playlist. Once you are viewing the playlist you will be able to see standard playlist settings such as shuffle, repeat, etc.
Making instruments with the Instrument Player
To make a new instrument with the instrument player, you need to fill up the Instrument Player with 9 instruments, and right click it with a name tag named as the item name of the instrument you want. To get the item name of the instrument, mouse over your instrument in the inventory and hold Shift. This item name is different from the name of the instrument.
You can only make instruments that either you have loaded to your game, or the server has loaded (configurable).
Getting more tracks and instruments
The way Clef works, is that tracks and instruments exist in actual files outside of the mod. As a result, you can easily drop any ABC file that you want to listen to in-game into the abc folder, or you can add new instruments by adding Starbound mod packs (in zip format) in the instruments folder.
There are ABC libraries available online, especially since Lord of The Rings Online and Starbound are both able to play these files.
It is also possible to unpack Starbound mods in pak format and rezip it into a zip format for Clef to read. Just be sure that the file structure follows Starbound's file structure and the root of the archive are where the sfx, items folders belong.
Known issues
The ABC files may play a little off key or off tempo or play incorrectly
Playing a little off key: I've tried my best to identify this, but I'm chalking this up to the Sound System having trouble adjusting the pitch of the tunes
Playing a little off tempo: Minecraft has a limit of 20 ticks per second. Some of the ABC files I've found has notes much shorter than that. Slightly off tempo is the best I can do.
Playing incorrectly: The ABC parser that I'm using, I wrote from scratch, so there's bound to be some problems with parsing some files one way or another. If the tune plays incorrectly, drop me a message (along with the abc file) and I'll see what I can do. At the moment the mod doesn't support more than one tune per ABC and it doesn't support verses/voices in the ABC.
Pausing the game doesn't pause a specific tune
I think it's a Minecraft thing. Just unpause and repause the game until the tune pauses.
Report other issues you've found on GitHub.
Project description from CurseForge.
Pick your setup
Clef by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.16.5
1 loader build1.16.4
1 loader build1.16.3
1 loader build1.16.1
1 loader build1.15.2
1 loader build1.12.2
1 loader build1.12.1
1 loader build1.12
1 loader build1.10.2
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Clef versions and loaders
Clef-1.12.2-7.1.0.jar
3 Mar 2019
Clef-1.12.2-7.0.0.jar
6 Oct 2017
Looking for an older file? The official CurseForge project page is in Resources.