Modify Grindstone (Power Type)

Modifies the result of a certain item upon repairing/removing the enchantments of the said item using a Grindstone.

Modifies the result of a certain item upon repairing/removing the enchantments of the said item using a Grindstone.

Type ID: apoli:modify_grindstone

Fields

FieldTypeDefaultDescription
result_typeString"unchanged"Determines whether to not change the initial item stack ("unchanged"), replace it with the item stack specified in the result_stack field ("specified"), replace it with the item stack from the top input slot of a Grindstone block ("from_top") or replace it with the item stack from the bottom input slot of a Grindstone block ("from_bottom").
entity_actionEntity Action TypeoptionalIf specified, this action will be executed on the player upon taking the item stack from the result slot of a Grindstone.
block_actionBlock Action TypeoptionalIf specified, this action will be executed on the Grindstone block upon taking the item stack from the result slot of the said Grindstone block.
item_actionItem Action TypeoptionalIf specified, this action will be executed on the result item stack.
item_action_after_grindingItem Action TypeoptionalIf specified, this action will be executed on the result item stack after the grinding process.
top_conditionItem Condition TypeoptionalIf specified, the specified actions will only be executed if the item stack from the top input slot of the Grindstone fulfills this condition.
bottom_conditionItem Condition TypeoptionalIf specified, the specified actions will only be executed if the item stack from the bottom input slot of the Grindstone fulfills this condition.
output_conditionItem Condition TypeoptionalIf specified, the specified actions will only be executed if the item stack from the output/result slot of the Grindstone fulfills this condition.
result_stackItem StackoptionalIf specified, this item stack will be used as a replacement only if the result_type field has a value of "specified".
xp_modifierAttribute ModifieroptionalIf specified, this modifier will be applied to the value of the experience received from removing an enchantment from an item stack.

Examples

{
    "type": "apoli:modify_grindstone",
    "xp_modifier": {
        "operation": "multiply_total_multiplicative",
        "value": 0.5
    }
}

This example will increase the experience recieved from removing enchantments from an enchanted item to 50%.

{
    "type": "apoli:modify_grindstone",
    "result_type": "specified",
    "block_action": {
        "type": "apoli:set_block",
        "block": "minecraft:air"
    },
    "output_condition": {
        "type": "apoli:ingredient",
        "ingredient": {
            "item": "minecraft:diamond_sword"
        }
    },
    "result_stack": {
        "item": "minecraft:netherite_sword"
    }
}

This example will replace the item in the output/result slot of a Grindstone with a Netherite Sword if the initial item is a Diamond Sword. This will also remove the used Grindstone block after taking the said item.