effect @a [tag=penicillin] poison 0 0 true

scoreboard objectives add timer2 dummy
scoreboard players add @a [tag=penicillin] timer2 1
execute as @a[tag=penicillin,scores={timer=10..20, poison=!100},m=!c] positioned ~ ~ ~ run scoreboard players add @a poison 1
execute as @a[tag=penicillin,scores={timer=10..20},m=!c] positioned ~ ~ ~ run scoreboard players set @a timer2 0
tag @a[tag=penicillin,scores={poison=100},m=!c] remove penicillin

scoreboard objectives add poison dummy
scoreboard players add @a [tag=penicillin] poison 0
scoreboard players set @a[tag=penicillin,scores={poison=101..10000},m=!c] poison 100
scoreboard players set @a[tag=penicillin,scores={poison=-10000..0},m=!c] poison 0
scoreboard players set @a[tag=penicillin,scores={poison=..-1},m=!c] timer 0
scoreboard players set @a [tag=!penicillin] poison 0 
