execute as @e[type=block_display,tag=jjc_portal,predicate=!colosseum_of_fools:portal_detect] at @s unless entity @a[distance=..3] on passengers run kill @s
execute as @e[type=block_display,tag=jjc_portal,predicate=!colosseum_of_fools:portal_detect] at @s unless entity @a[distance=..3] run kill @s
scoreboard players reset @a[predicate=!colosseum_of_fools:in_portal] jjc_portal_time
execute as @a[predicate=colosseum_of_fools:in_portal] at @s as @n[type=block_display,tag=jjc_portal,distance=..5,predicate=colosseum_of_fools:portal_x] at @s positioned ~-1.5 ~ ~-0.5 run scoreboard players add @a[predicate=colosseum_of_fools:in_portal,dx=2,dy=2,dz=0.5,tag=!jjc_out_portal] jjc_portal_time 1
execute as @a[predicate=colosseum_of_fools:in_portal] at @s as @n[type=block_display,tag=jjc_portal,distance=..5,predicate=colosseum_of_fools:portal_z] at @s positioned ~-0.5 ~ ~-1.5 run scoreboard players add @a[predicate=colosseum_of_fools:in_portal,dx=0.5,dy=2,dz=2,tag=!jjc_out_portal] jjc_portal_time 1
effect give @a[predicate=colosseum_of_fools:in_portal,scores={jjc_portal_time=1..}] nausea 4 0 true
execute as @a[predicate=colosseum_of_fools:in_portal,scores={jjc_portal_time=60..}] at @s run function colosseum_of_fools:world/in_portal
tag @a[predicate=!colosseum_of_fools:in_portal,tag=jjc_out_portal] remove jjc_out_portal