Modify Crafting

Power Type

Modifies the result item of a recipe using an Item Action Type or an Item Stack. It can also execute an Entity Action Type on the player and a Block Action at the block used for crafting the recipe.

Type ID: origins:modify_crafting

Caution

This power type cannot modify the result item from recipes added by the Recipe (Power Type).

Fields

Field Type Default Description
recipe Identifier optional If specified, modifies the result item of the recipe that matches the specified namespace and ID.
item_condition Item Condition Type optional If specified, the item from the result field and the specified actions will only be applied if this condition is fulfilled by the result item of a recipe.
result Item Stack optional If specified, this item will replace the item of a recipe.
item_action Item Action Type optional If specified, this action will be executed on the result item of a recipe.
entity_action Entity Action Type optional If specified, this action will be executed on the player upon crafting a recipe.
block_action Block Action Type optional If specified, this action will be executed on the block used for crafting a recipe.

Examples

{
    "type": "origins:modify_crafting",
    "recipe": "minecraft:wooden_sword",
    "result": {
        "item": "minecraft:diamond_sword"
    }
}

This example will replace the result item stack from the minecraft:wooden_sword (data/minecraft/recipes/wooden_sword.json) vanilla recipe with a Diamond Sword only for the player that has the power.