scoreboard players set @s scientist.laser.min 7
execute as @e[type=interaction,tag=damage.capsule] on passengers unless items entity @s container.0 air run function ws:work/misc/tier2/scientist/modifylasermin with entity @s item.components."minecraft:custom_data".modifiers[]
execute if score @s meteorite.rotation >= @s scientist.laser.min run scoreboard players set @s meteorite.rotation 39
execute at @n[tag=red_laser,type=item_display,scores={laser.rotation=1}] run playsound minecraft:block.beacon.power_select block @a ~ ~ ~ 3.5 2
execute at @n[tag=red_laser,type=item_display] run particle dust{color:[0.722,0.000,0.000],scale:2} ~ ~ ~ 0 0.1 2.1 5 2 normal
execute unless score @s meteorite.rotation matches 39 run return 0
function ws:work/misc/tier2/scientist/damagemeteorite
playsound minecraft:block.calcite.break player @a ~ ~ ~ 3 0
$particle minecraft:item{item:"$(id)"} ~ ~ ~ 1.5 1.5 1.5 0.3 300
execute as @e[type=interaction,tag=damage.capsule] on passengers run function ws:work/misc/tier2/scientist/usecapsule