Recipes
Stonecutter
Add stonecutter recipes with optional sounds and commands.
Since v1.0.3
Add stonecutter recipes without creating extra recipe files.
Parameters
enabled
Optional. Defaults to true. Set to false to skip registering the recipe.
ingredient.item
Required. The input item shown in the stonecutter. Use a vanilla material, an ItemsAdder item, or an MMOItems item. See IDs.
ingredient:
item: STONEingredient:
item: my_pack:rough_marbleingredient:
item: mmoitems:material:rough_marbleresult.item
Required. The output item.
result:
item: STONE_BRICKSresult.amount
Optional. Defaults to 1. The number of items produced.
Completion actions
Use on_complete to play a sound and/or run commands when the recipe is crafted.
on_complete:
sound:
name: "minecraft:entity.player.levelup"
source: master # optional, default: master
volume: 1.0 # optional, default: 1.0
pitch: 1.0 # optional, default: 1.0
commands:
reward:
command: "give {player} gold_ingot 4"
as_console: true # optional, default: false{player} is replaced with the crafting player's name. Commands run as the player by default; set as_console: true to run them from console.
Full example
info:
namespace: my_pack
recipes:
stonecutter:
marble_tiles:
ingredient:
item: my_pack:rough_marble
result:
item: my_pack:marble_tiles
amount: 2
on_complete:
sound:
name: "minecraft:block.stonecutter.use"
commands:
reward:
command: "give {player} diamond 1"
as_console: trueNotes
- Supports vanilla, ItemsAdder, and MMOItems items.
- Tags such as
#minecraft:stone_tool_materialsare not supported here because the stonecutter requires one concrete input stack. - Recipe IDs such as
marble_tilesare internal identifiers. - The namespace comes from
info.namespace.