execute if score @s invis_timer matches 1.. run return run function pctf:logic/items/trap_kit/is_invis

damage @s 9 minecraft:generic_kill
function pctf:logic/items/lucky_block/effects/trapped/start {duration: 70}
tellraw @s {"text":"You walked into an enemy trap!","italic":true,"color":"gray"}
particle minecraft:damage_indicator ~ ~1 ~ 0 0 0 0.35 50 force @a