Skip to content

AbilityBlockEffect

seelderr edited this page Jan 13, 2025 · 4 revisions

Description

An AbilityBlockEffect is an effect from an ability that is applied to a specific block. Each effect applies to one block at a time, determined by the AbilityTargeting.

Parents

This object is used by the following objects:

  1. AbilityTargeting

AbilityBlockEffect Types

Bone Meal

Applies the bone meal effect to a specific block.

The key for this type is "bonemeal"

Schema

{
    "attempts": [LevelBasedValue]                // [Mandatory] || The amount of bone meal attempts to make.
    "probability": [LevelBasedValue]             // [Mandatory] || The probability of making bone meal attempts.
}

Conversion

Converts one block to another based on a BlockPredicate and a weighted random list of blocks to convert to.

The key for this type is "conversion"

BlockConversionData

The data to convert a block based on a predicate into a weighted list of other blocks.

Schema

{
    "from_predicate": [BlockPredicate]          // [Mandatory] || The block predicate to convert from.
    "blocks_to": [WeightedRandomList of Blocks] // [Mandatory] || The blocks to convert to.
}

Schema

{
    "conversion_data": [BlockConversionData]          // [Mandatory] || The conversion data for the conversion.
    "probability": [LevelBasedValue]                  // [Mandatory] || The probability of the conversion applying.
}

Summon Entity

Summons a weighted list of entities, and applies a list of attributes to them.

The key for this type is "summon_entity"

AttributeScale

A list of attributes to scale by the scaling value.

Schema

{
    "attributes": [Attribute]    // [Mandatory] || List of attributes to scale.
    "scale": [LevelBasedValue]   // [Mandatory] || The amount to scale by.
}

Schema

{
    "entities": [SimpleWeightedRandomList of Entities]       // [Mandatory] || The entities to summon.
    "id": [ResourceLocation]                                 // [Mandatory] || The ID to tag the summoned entities with.
    "max_summons": [LevelBasedValue]                         // [Mandatory] || The max number of entities that can be summoned by this ability.
    "duration": [LevelBasedValue]                            // [Optional]  || How long the summoned entities stay before disappearing. Defaults to infinite duration (-1).
    "attribute_scales": [AttributeScale]                     // [Optional]  || The attributes to scale on the summoned entities.
    "should_set_allied": [bool]                              // [Optional]  || Whether the summoned entities are allied or not. Defaults to true.
}

Fire

Lights the block on fire.

The key for this type is "fire"

Schema

{
    "ignite_probability": [LevelBasedValue]       // [Mandatory] || The chance it ignites the block.
}

Area Cloud

Makes an area cloud on the ground on top of the targeted block. (These are spawned from lingering potions in vanilla). Uses PotionData.

The key for this type is "area_cloud"

Schema

{
    "potion": [PotionData]                 // [Mandatory] || The data to define the potion effect.
    "duration": [LevelBasedValue]          // [Mandatory] || How long the area cloud lingers.
    "probability: [number]                 // [Mandatory] || The chance the area cloud spawns.
    "particle": [ParticleOption]           // [Mandatory] || The particle to use for the area cloud.
}

Block Break

Breaks the a block if it matches a certain BlockPredicate.

The key for this type is "block_break"

Schema

{
    "valid_blocks": [BlockPredicate]       // [Mandatory] || The block predicate to match.
    "probability: [LevelBasedValue]        // [Mandatory] || The probability the matched block will break.
}

Particle

Creates particles on the given block given SpawnParticles data.

The key for this type is "particle".

Schema

{
    "particle_data": [ParticleData]        // [Mandatory] || The data for the particles being spawned
    "particle_count": [LevelBasedValue]    // [Mandatory] || The number of particles to spawn
}
Datapack Documentation
Clone this wiki locally