events: interact: entity: left: chance: 0.3 message: text: "§eLightning triggered on §c{target_name}" target: player execute_command: command: "execute at {target_name} run summon minecraft:lightning_bolt ~ ~ ~" target: target damage: amount: 4 target: target play_particle: type: electric_spark amount: 20 speed: 0.2 offset: 0.2 location: target potion_effect_1: type: SLOW duration: 40 amplifier: 10 target: target potion_effect_2: type: MINING_FATIGUE duration: 40 amplifier: 10 target: target