Skip to main content

Modify Powers

These powers modify various game mechanics.


origins:modify_attribute

Applies an attribute modifier while active.

FieldTypeDefaultDescription
attributeIdentifierrequiredMinecraft attribute ID (e.g. minecraft:generic.max_health)
modifier[Attribute Modifier] or ListrequiredThe attribute modifier(s) to apply
Example
{
"type": "origins:modify_attribute",
"attribute": "minecraft:generic.max_health",
"modifier": {
"id": "origins:extra_health",
"amount": 10,
"operation": "add_value"
}
}

This example will set the total value of the entity's minecraft:generic.attack_damage attribute using the value of the example:resource (data/example/powers/resource.json) power.

origins:modify_air_speed

Modifies the player's air speed (flying horizontally in creative/elytra).

FieldTypeDefaultDescription
modifier[Modifier] or List[]Modifier applied to air speed
Example
{
"type": "origins:modify_air_speed",
"modifier": {
"operation": "multiply_total",
"value": 1.5
}
}

This example will increase the entity's air speed by 150%.

origins:modify_block_render

Modifies block rendering distance/shape.

FieldTypeDefaultDescription
block_conditionBlock ConditionoptionalCondition for blocks to apply the modification
Example
{
"type": "origins:modify_block_render",
"block_condition": {
"type": "origins:block",
"block": "minecraft:diamond_ore"
},
"block": "minecraft:diamond_block"
}

This example will make Diamond Ore blocks look like Diamond Blocks.

origins:modify_break_speed

Modifies block breaking speed.

FieldTypeDefaultDescription
modifier[Modifier] or List[]Modifier applied to break speed
hardness_modifier[Modifier] or List[]Modifier applied to block hardness
block_conditionBlock ConditionoptionalCondition for affected blocks
Example
{
"type": "origins:modify_break_speed",
"block_condition": {
"type": "origins:block",
"block": "minecraft:netherrack"
},
"modifier": {
"operation": "multiply_base",
"value": 0.5
}
}

This example will allow the player to break Netherrack 50% faster than usual.

origins:modify_camera_submersion

Modifies camera effects when submerged in fluids.

FieldTypeDefaultDescription
fromIdentifierrequiredOriginal camera submersion type
toIdentifierrequiredReplacement camera submersion type
Example
{
"type": "origins:modify_camera_submersion",
"from": "none",
"to": "water"
}

This example will make it look like the player is submerged in Water if the player is not submerged in any fluid.

origins:modify_crafting

Modifies crafting results.

FieldTypeDefaultDescription
recipeIdentifierrequiredRecipe ID to modify
resultItem StackoptionalReplacement result item
result_actionItem ActionoptionalAction applied to the crafted result
Example
{
"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.

origins:modify_damage_dealt

Modifies damage dealt by the player.

FieldTypeDefaultDescription
modifierModifier or List[]Modifier applied to damage dealt
target_conditionEntity ConditionoptionalCondition the target must meet
damage_conditionDamage ConditionoptionalCondition the damage must meet
bientity_conditionBi-entity ConditionoptionalBi-entity condition between attacker and target
self_actionEntity ActionoptionalAction executed on the attacker
target_actionEntity ActionoptionalAction executed on the target
bientity_actionBi-entity ActionoptionalBi-entity action between attacker and target
Example
{
"type": "origins:modify_damage_dealt",
"condition": {
"type": "origins:in_block_anywhere",
"block_condition": {
"type": "origins:block",
"block": "minecraft:water"
},
"comparison": ">=",
"compare_to": 1
},
"modifier": {
"name": "Extra damage when submerged",
"operation": "addition",
"value": 5.0
}
}

This example will give the entity that has the power additional 2 and a half hearts of damage if the entity is in Water, regardless of its fluid level.

origins:modify_damage_taken

Modifies damage taken by the player.

FieldTypeDefaultDescription
modifier[Modifier] or List[]Modifier applied to damage taken
damage_conditionDamage ConditionoptionalCondition the damage must meet
attacker_conditionEntity ConditionoptionalCondition the attacker must meet
Example
{
"type": "origins:modify_damage_taken",
"damage_condition": {
"type": "origins:attacker",
"entity_condition": {
"type": "origins:equipped_item",
"equipment_slot": "mainhand",
"item_condition": {
"type": "origins:or",
"conditions": [
{
"type": "origins:enchantment",
"enchantment": "minecraft:binding_curse",
"comparison": ">=",
"compare_to": 1
},
{
"type": "origins:enchantment",
"enchantment": "minecraft:vanishing_curse",
"comparison": ">=",
"compare_to": 1
}
]
}
}
},
"modifier": {
"name": "Weak to cursed items",
"operation": "addition",
"value": 5.5
}
}

This example will make the entity that has the power take 2 and a half additional hearts of damage if the attacker is holding an item with either the Curse of Binding, or Curse of Vanishing enchantments.

origins:modify_effect_amplifier

Modifies the amplifier of status effects on the player.

FieldTypeDefaultDescription
effectIdentifieroptionalEffect ID to modify
modifier[Modifier] or List[]Modifier applied to the effect amplifier

origins:modify_effect_duration

Modifies the duration of status effects on the player.

FieldTypeDefaultDescription
effectIdentifieroptionalEffect ID to modify
modifier[Modifier] or List[]Modifier applied to the effect duration

origins:modify_enchantment_level

Not yet implemented

This power type is not yet implemented in the Origins (NeoForge). It will be available in a future update.

Modifies enchantment levels.

FieldTypeDefaultDescription
enchantmentIdentifierrequiredEnchantment ID to modify
modifier[Modifier] or List[]Modifier applied to enchantment level
Example
{
"type": "origins:modify_enchantment_level",
"enchantment": "minecraft:silk_touch",
"modifier": {
"operation": "set_total",
"value": 1
}
}

This example will grant the player the ability to use Silk Touch, regardless of whether the player is holding any item or no item at all.

origins:modify_exhaustion

Modifies exhaustion gain.

FieldTypeDefaultDescription
modifier[Modifier] or List[]Modifier applied to exhaustion
Example
{
"type": "origins:modify_exhaustion",
"modifier": {
"name": "Increased exhaustion",
"operation": "multiply_base",
"value": 2.0
}
}

This example triples the exhaustion rate of the player.

origins:modify_falling

Modifies falling damage and speed.

FieldTypeDefaultDescription
take_fall_damageBooleantrueWhether the player takes fall damage
velocityFloatoptionalOverride fall velocity
Example
{
"type": "origins:modify_falling",
"velocity": 1.0,
"take_fall_damage": false,
"condition": {
"type": "origins:sneaking"
}
}

This example will make the player fall faster and not take fall damage if they're sneaking.

origins:modify_fluid_render

Modifies how fluids are rendered around the player.

FieldTypeDefaultDescription
fluidIdentifierrequiredFluid ID
block_conditionBlock ConditionoptionalCondition at the fluid position
Example
{
"type": "origins:modify_fluid_render",
"block_condition": {
"type": "origins:block",
"block": "minecraft:water"
},
"fluid": "minecraft:lava"
}

This example will make Water look like Lava.

origins:modify_food

Modifies food value when eating.

FieldTypeDefaultDescription
food_modifier[Modifier] or List[]Modifier applied to food restored
saturation_modifier[Modifier] or List[]Modifier applied to saturation restored
item_conditionItem ConditionoptionalCondition the food item must meet
Example
{
"type": "origins:modify_food",
"item_condition": {
"type": "origins:ingredient",
"ingredient": {
"item": "minecraft:dried_kelp"
}
},
"food_modifier": {
"name": "Increased food points",
"operation": "addition",
"value": 3.0
},
"saturation_modifier": {
"name": "Increased saturation points",
"operation": "addition",
"value": 1
}
}

This example will add 1 and a half shanks of hunger, and 1 saturation point if a player eats a dried kelp, totalling to 2 shanks of hunger and 6.4 saturation points.

origins:modify_grindstone

Modifies grindstone results.

FieldTypeDefaultDescription
result_actionItem ActionoptionalAction applied to the grindstone result
resultItem StackoptionalReplacement result item
Example
{
"type": "origins: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%.

origins:modify_harvest

Modifies harvest behavior (drops, silk touch, fortune).

FieldTypeDefaultDescription
block_conditionBlock ConditionoptionalCondition for affected blocks
allowBooleantrueWhether harvesting is allowed
Example
{
"type": "origins:modify_harvest",
"block_condition": {
"type": "origins:block",
"block": "minecraft:diamond_block"
},
"allow": true
}

This example will allow players to harvest a Diamond Block regardless of using the proper tool or not.

origins:modify_healing

Modifies natural health regeneration.

FieldTypeDefaultDescription
modifier[Modifier] or List[]Modifier applied to healing
Example
{
"type": "origins:modify_healing",
"modifier": {
"operation": "multiply_total",
"value": 1
}
}

This example will double the effectiveness of all healing used on you.

origins:modify_insomnia_ticks

Modifies phantom insomnia ticks.

FieldTypeDefaultDescription
modifier[Modifier] or List[]Modifier applied to insomnia ticks
Example
{
"type": "origins:modify_insomnia_ticks",
"modifier": {
"operation": "set_total",
"value": 0
}
}

This example will set the value used for calculating when a Phantom will spawn for a player to 0, essentially disabling Phantoms from spawning for the player that has the power.

origins:modify_jump

Modifies jump height.

FieldTypeDefaultDescription
modifier[Modifier] or List[]Modifier applied to jump velocity
Example
{
"type": "origins:modify_jump",
"modifier": {
"operation": "addition",
"value": 0.4
},
"entity_action": {
"type": "origins:execute_command",
"command": "particle cloud ~ ~ ~ 0.3 0.3 0.3 0.01 16 normal @a"
}
}

This example will increase the entity that has the power's jump height to 4 blocks and display a cloud particle at the entity's feet upon jumping.

origins:modify_player_spawn

Modifies where the player spawns/respawns.

FieldTypeDefaultDescription
dimensionIdentifierrequiredDimension ID for spawning
spawn_strategyStringdefaultSpawn strategy: default or center
Example
{
"type": "origins:modify_player_spawn",
"dimension": "minecraft:the_end",
"structure": "minecraft:end_city",
"spawn_strategy": "center"
}

This example will let players spawn at an End City in The End dimension.

origins:modify_projectile_damage

Modifies projectile damage.

FieldTypeDefaultDescription
modifier[Modifier] or List[]Modifier applied to projectile damage
damage_conditionDamage ConditionoptionalCondition the damage must meet
Example
{
"type": "origins:modify_projectile_damage",
"damage_condition": {
"type": "origins:projectile",
"projectile": "minecraft:spectral_arrow"
},
"modifier": {
"operation": "addition",
"value": 8.0
}
}

This example will modify the damage of the Spectral Arrow projectile entity shot by the entity that has the power to deal additional 4 hearts of damage.

origins:modify_slipperiness

Modifies how slippery blocks are for the player.

FieldTypeDefaultDescription
modifier[Modifier] or List[]Modifier applied to block slipperiness
block_conditionBlock ConditionoptionalCondition for affected blocks
Example
{
"type": "origins:modify_slipperiness",
"modifier": {
"operation": "multiply_total",
"value": 0.5
},
"block_condition": {
"type": "origins:block",
"block": "minecraft:dirt"
}
}

This example will increase the entity's friction by 50% while standing on dirt blocks.

origins:modify_velocity

Modifies the player's velocity in response to knockback, explosions, etc.

FieldTypeDefaultDescription
modifier[Modifier] or List[]Modifier applied to velocity changes
Example
{
"type": "origins:modify_velocity",
"modifier": {
"value": -2,
"operation": "multiply_total"
},
"axes": [
"x",
"y",
"z"
]
}

This example will make all of the player's velocity reversed. You'll fall upwards, your movement keys will be inverted, etc.

origins:modify_xp_gain

Modifies experience gained.

FieldTypeDefaultDescription
modifier[Modifier] or List[]Modifier applied to XP gain
Example
{
"type": "origins:modify_xp_gain",
"modifier": {
"operation": "multiply_base",
"value": 2.0
}
}

This example will triple the gained experience from experience orbs.