## Broken
execute unless block ~ ~ ~ minecraft:hopper run function vb:tick_entity/custom_block/ender_output/broken

## Set block
execute if block ~ ~ ~ minecraft:hopper[facing=north] run setblock ~ ~ ~ minecraft:hopper[facing=down]
execute if block ~ ~ ~ minecraft:hopper[facing=south] run setblock ~ ~ ~ minecraft:hopper[facing=down]
execute if block ~ ~ ~ minecraft:hopper[facing=east] run setblock ~ ~ ~ minecraft:hopper[facing=down]
execute if block ~ ~ ~ minecraft:hopper[facing=west] run setblock ~ ~ ~ minecraft:hopper[facing=down]
data merge block ~ ~ ~ {CustomName:{translate:"vb.custom_item.ender_output"}}

## Particles
execute unless block ~ ~ ~ minecraft:hopper[enabled=false] run particle minecraft:portal ~ ~0.5 ~ 0 0 0 1 1

## Take items (unless powered)
execute unless block ~ ~ ~ minecraft:hopper[enabled=false] as @e[type=item,distance=0.4..16] at @s run particle minecraft:reverse_portal ~ ~ ~ 0.1 0.1 0.1 0.03 10
execute unless block ~ ~ ~ minecraft:hopper[enabled=false] as @e[type=item,distance=0.4..16] run tp @s ~ ~0.3 ~
