Skip to main content

Modify Powers

These powers modify various game mechanics.


origins:modify_air_speed

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

FieldTypeDefaultDescription
modifierModifier 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_attribute

Applies an attribute modifier while active.

FieldTypeDefaultDescription
attributeIdentifierrequiredMinecraft attribute ID (e.g. minecraft:generic.max_health)
modifierAttribute 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_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
modifierModifier or List[]Modifier applied to break speed
hardness_modifierModifier 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
modifierModifier 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_death_sound

Unstable

This power is currently unstable and may not work as intended. Please report if you encounter any issues with it.

Modifies the sound played when the player dies.

FieldTypeDefaultDescription
mutedBooleanfalseWhether to mute the death sound
soundWeighted Sound Entry or listrequiredReplacement sound to play on death
volumeFloat1.0Volume of the sound
pitchFloat1.0Pitch of the sound

origins:modify_effect_amplifier

Modifies the amplifier of effects apply to the player.

FieldTypeDefaultDescription
effectIdentifier or List[]Effect ID to modify
modifierModifier or ListrequiredModifier applied to the effect amplifier

origins:modify_effect_duration

Modifies the duration of effects apply to the player.

FieldTypeDefaultDescription
effectIdentifier or List[]Effect ID to modify
modifierModifier or ListrequiredModifier applied to the effect duration

origins:modify_effect_type

Modifies the type of effects apply to the player.

FieldTypeDefaultDescription
effectIdentifier or List[]Effect ID to modify
new_effectIdentifierrequiredThe new effect type to apply

origins:modify_enchantment_damage_dealt

Unstable

This power is currently unstable and may not work as intended. Please report if you encounter any issues with it.

Adds damage based on the level of a specified enchantment on the power holder's main-hand item.

FieldTypeDefaultDescription
enchantmentIdentifierrequiredEnchantment required on the main-hand item
base_valueFloatrequiredExtra damage at the first enchantment level
damage_conditionDamage ConditionoptionalCondition the dealt damage must meet
bientity_conditionBi-entity ConditionoptionalCondition between the attacker and target
target_conditionEntity ConditionoptionalCondition the damaged target must meet
modifierModifier or List[]Modifier repeatedly applied to the extra damage for each level after the first
bientity_actionBi-entity ActionoptionalAction executed between the attacker and target when this power applies

origins:modify_enchantment_damage_taken

Unstable

This power is currently unstable and may not work as intended. Please report if you encounter any issues with it.

Adds damage based on the level of a specified enchantment on the attacker's main-hand item.

FieldTypeDefaultDescription
enchantmentIdentifierrequiredEnchantment required on the attacker's main-hand item
base_valueFloatrequiredExtra damage at the first enchantment level
damage_conditionDamage ConditionoptionalCondition the incoming damage must meet
bientity_conditionBi-entity ConditionoptionalCondition between the attacker and power holder
modifierModifier or List[]Modifier repeatedly applied to the extra damage for each level after the first
bientity_actionBi-entity ActionoptionalAction executed between the attacker and power holder when this power applies

origins:modify_enchantment_level

Unstable

This power is currently unstable and may not work as intended. Please report if you encounter any issues with it.

Modifies enchantment levels.

FieldTypeDefaultDescription
enchantmentIdentifierrequiredEnchantment ID to modify
item_conditionItem ConditionoptionalCondition the item must meet
modifierModifier 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
modifierModifier 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_modifierModifier or List[]Modifier applied to food restored
saturation_modifierModifier 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
modifierModifier 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_hurt_sound

Unstable

This power is currently unstable and may not work as intended. Please report if you encounter any issues with it.

Modifies the sound played when the player is hurt.

FieldTypeDefaultDescription
mutedBooleanfalseWhether to mute the hurt sound
soundWeighted Sound Entry or listrequiredReplacement sound to play when hurt
volumeFloat1.0Volume of the sound
pitchFloat1.0Pitch of the sound

origins:modify_insomnia_ticks

Modifies phantom insomnia ticks.

FieldTypeDefaultDescription
modifierModifier 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
modifierModifier 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
dimension_distance_multiplierFloat1.0Multiplier for the distance from the spawn point in the dimension
spawn_strategyStringdefaultSpawn strategy: default or center
biomeIdentifieroptionalBiome ID for spawning
structureIdentifieroptionalStructure ID for spawning
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
modifierModifier 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
modifierModifier 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
modifierModifier 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
modifierModifier 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.