-
Notifications
You must be signed in to change notification settings - Fork 41
AbilityBlockEffect
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.
This object is used by the following objects:
Applies the bone meal effect to a specific block.
The key for this type is "bonemeal"
{
"attempts": [LevelBasedValue] // [Mandatory] || The amount of bone meal attempts to make.
"probability": [LevelBasedValue] // [Mandatory] || The probability of making bone meal attempts.
}
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"
The data to convert a block based on a predicate into a weighted list of other blocks.
{
"from_predicate": [BlockPredicate] // [Mandatory] || The block predicate to convert from.
"blocks_to": [WeightedRandomList of Blocks] // [Mandatory] || The blocks to convert to.
}
{
"conversion_data": [BlockConversionData] // [Mandatory] || The conversion data for the conversion.
"probability": [LevelBasedValue] // [Mandatory] || The probability of the conversion applying.
}
Summons a weighted list of entities, and applies a list of attributes to them.
The key for this type is "summon_entity"
A list of attributes to scale by the scaling value.
{
"attributes": [Attribute] // [Mandatory] || List of attributes to scale.
"scale": [LevelBasedValue] // [Mandatory] || The amount to scale by.
}
{
"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.
}
Lights the block on fire.
The key for this type is "fire"
{
"ignite_probability": [LevelBasedValue] // [Mandatory] || The chance it ignites the block.
}
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"
{
"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.
}
Breaks the a block if it matches a certain BlockPredicate.
The key for this type is "block_break"
{
"valid_blocks": [BlockPredicate] // [Mandatory] || The block predicate to match.
"probability: [LevelBasedValue] // [Mandatory] || The probability the matched block will break.
}
Creates particles on the given block given SpawnParticles data.
The key for this type is "particle"
.
{
"particle_data": [ParticleData] // [Mandatory] || The data for the particles being spawned
"particle_count": [LevelBasedValue] // [Mandatory] || The number of particles to spawn
}
■ Still have questions about Dragon Survival? Ask them in the Discord Server! I always try to help everyone as much as I can.
Datapack Documentation
- DragonSpecies
- Projectile
- General Data Formats
- Installation
- "Mod doesn't work!"
- Incompatibility
- Configuration
- Update
- Moving appearance between saves
- Linux compatibility
- How do I use Curseforge?
- Installing the modpack
- Optimizing