The Bug:
Goats can ram invisible entities.
Steps to Reproduce:
Summon a large number of goats, give yourself the invisibility effect, and switch into survival mode.
Alter any random goat's NBT data to make them want to ram nearby entities by using the command provided below multiple times.
/execute as @e[type=minecraft:goat,limit=1,sort=random] run data modify entity @s Brain.memories."minecraft:ram_cooldown_ticks".value set value 1
Keep repeating the above step until one of the goats ram you.
Take note as to whether or not goats can ram invisible entities.
Observed Behavior:
Goats can ram invisible entities.
Expected Behavior:
Goats would not be able to ram invisible entities.
Related (/duplicate) to MC-223150