Bats don't do anything, and I'm thinking of making a datapack, so that when a bat gets close to a player, it will "bite" them, giving them a poison effect.

How would I do this?

1 Answer 1


If you want to make them constantly give poison to nearby players you can do this:

/execute at @e[type=minecraft:bat] run effect give @a[distance=..2] minecraft:poison 1 1 true

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .