generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 176
Apply Effect
apace100 edited this page Nov 2, 2020
·
1 revision
Entity Action. Adds one or more status effects to the living entity. Does not have an effect on non-living entities.
Type ID: origins:apply_effect
Fields:
effect
, Status Effect Instance, optional: If set, this status effect will be applied by this action.
effects
, array of Status Effect Instances, optional: If set, these status effects will be applied by this action.
Example:
"entity_action": {
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:speed",
"duration": 400,
"amplifier": 0
}
}
This action applies a Speed I effect for 20 seconds to the entity.
Tutorials (Data packs)
Video Tutorial by CandyCaneCazoo
Tutorials (Add-ons)
Working with more unique powers
Lists
List of vanilla damage source names
Data Types