Mostly a remake of the concept of mortars/pestles that showed up in "CT Mortar" mod for 1.12.x
From
description of the said mod:
This mod was designed to be used by modpack authors who want a crafting item with durability. The idea is that you, as a modpack author, will include the items provided by this mod in your own custom recipes. Six default recipes that use the mortars are included.
Default crafting recipes provided by the mod include shapeless recipes to:
- convert 1 cobblestone to 1 gravel using 1 durability with the iron and diamond mortars
- convert 1 gravel to 1 sand using 1 durability with any mortar
I suggest some different features in comparision to CT Mortar, first one, obviously, is allow registering of mortar recipes by datapacks, in the same general style of vanilla recipe system, something like:
{
"type": "namespace:mortar",
"ingredient": {
"item": "foo:bar"
},
"result": "bar:foo",
"count": 1,
"damage": 0.25
}
Second would be the "default" recipes shipped by the mod's internal datapack. If the modder will add a "default" recipe for the mod (it isnt a requirement to me, tbh) I think bone -> bonemeal (reflecting the vanilla crafting recipe) would be the best example recipe to show the capabilities of the mod, since does far more sense to grind bones to get the bonemeal than doing that on a crafting table. BUT, it would be better to let players to add any recipes themselves, because i would be tempted to override the vanilla bonemeal recipe myself to be a mortar one (and i dont know if such override can be done by a mod's internal datapack).