Creeper Loot - lpsmods/record-api GitHub Wiki
Record API introduces a way to easily make your disc drop from a creeper that has been killed by a skeleton shooting a bow and arrow.
First you will need to create a MCFUNCTION file that will register all your item loot tables.
<datapack>/data/<namespace>/functions/record/register_creeper_drops.mcfunction
The following will add the loot table "example:item/music_disc_5" to the registry.
data modify storage record:loot_tables creeper append value "example:item/music_disc_5"Now you will need to add the MCFUNCTION file that you created above to the function tag located:
<datapack>/data/record/tags/functions/register_creeper_drops.json
Example
{
   "replace": false,
   "values": [
     "example:record/register_creeper_discs"
   ]
}Now in-game run /reload to reload the contents of the datapacks. Then run /function record:reload to re-register all loot tables. You can then test the loot table by running /function record:creeper/test which will drop a random music disc from the registry.

