Minecraft has a lot of mobs. (See the post “Mobs” for more info) Here is a list of them showing what type they are, how they get provoked if they are neutral, and if they attack ranged or melee if they can attack. The list will be in alphabetical order.
allay-passive
axolotl-passive
bat-passive
bee-neutral- attacks if hurt or beehive it lives in is broken-melee
blaze-hostile-ranged/melee
camel-passive
cat-passive
cave spider-hostile-melee
chicken-passive
cod-passive
cow-passive
creeper-hostile-melee
dolphin-passive
donkey-passive
drowned-hostile
elder guardian-hostile-ranged/melee
ender dragon-hostile-ranged/melee
enderman-neutral-attacks if hurt or stared at in eyes-melee
endermite-hostile-melee
evoker-hostile-ranged
fox-passive
frog-passive
ghast-hostile
glow squid-passive
goat-neutral-getting hurt-melee
guardian-hostile-ranged
hoglin-hostile-melee
horse-passive
husk-hostile-melee
iron golem-neutral-if it or it’s villagers it’s guarding is hurt-melee
llama-neutral-if hurt-ranged
magma cube-hostile-melee
mooshroom-passive
mule-passive
oncelot-passive
panda-neutral-if hurt-melee
parrot-passive
phantom-hostile-melee
pig-passive
piglin-neutral-if not wearing gold or getting hurt-melee
piglin brute-hostile-melee
pillager-hostile-ranged
polar bear-neutral-if it or it’s cub is gotten too close to or hurt-melee
pufferfish-neutral-if gotten too close to–melee
rabbit-passive
ravenger-hostile-melee
salmon-passive
sheep-passive
shulker-hostile-ranged
silverfish-hostile
skeleton (skelly)-hostile-ranged
skeleton horse-passive
slime-hostile-melee
sniffer-passive
snow golem-neutral-if attacked
spider-hostile-melee
squid-passive
stray-hostile-ranged
strider-passive
tadpole-passive
tropical fish-passive
turtle-passive
vex-hostile-melee
villager-passive
vindicator-hostile-melee
wandering trader-passive
warden-hostile-ranged/melee
witch-hostile-ranged
wither-hostile-ranged/melee
wither skeleton-hostile-melee
wolf-neutral-if attacked-melee
zoglin-hostile-melee
zombie-hostile-melee
zombie horse-passive
zombie villager-hostile-melee
zombie piglin-neutral if attacked-melee