Skip to main content

Get 25% OFF on your first order with BisectHosting using code "DAQEM"!

Strike Lightning

The arc:strike_lightning reward type summons a lightning bolt at a target location.

Parameters

ParameterTypeRequiredDefaultDescription
positionArcPositionTargetRequired-No default valueTarget position.
visual_onlybooleanOptionalfalseVisual only (no damage).

Example

The following example strikes lightning on an entity when the player hits it with a trident.

data/my_datapack/arc/zeus_trident.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_hurt_entity",
"conditions": [
{
"type": "arc:item_in_hand",
"item": "minecraft:trident"
}
],
"rewards": [
{
"type": "arc:strike_lightning",
"position": "ENTITY",
"visual_only": false
}
]
}

Compatible Action Types