Skip to content

Bats

  1. Hold glow berries, and flying bats come to you.
  2. Feed two bats a berry each.
  3. Get a baby bat.

Bats also like company: a bat that is about to rest hangs up next to a bat that is already resting nearby, so a group sleeps together.

What vanilla does. Vanilla bats fly around at random and rest hanging from ceilings. You can’t feed them, breed them or lead them, there are no baby bats, and bats can despawn. Wild bats appear in groups of 1 to 4. The game stops adding bats once 15 are around a player.

What the mod adds.

  • Bats eat glow berries.
  • Two fed adults breed and produce a baby bat, with experience for you.
  • Baby bats are half size and grow up over time, faster when fed.
  • Flying bats follow a player who holds glow berries, and the nearest one hovers in front of the player to be fed.
  • A bat that has eaten, and a bat born from breeding, never despawns.
  • Wild bats appear in groups of up to 5. When the game makes a bat appear, the mod adds companions at dark spots close to it until the group has 5 bats.
  • The game allows 30 bats around a player instead of 15, which is room for about 6 groups.
  • A bat that is about to rest joins a resting bat it can see within 16 blocks. It flies to a free spot right next to that bat and hangs up there, so a group sleeps together and its guano lands in one patch.
  • A resting bat shows against its ceiling, where the game has it. In vanilla, a bat that settles under a ceiling while it is still flying up or down can show up a block lower in your game, hanging in mid-air, although the game itself has it under the ceiling. With the mod it shows up against the ceiling.

What stays exactly as in vanilla.

  • The places where a bat can appear. Every bat, companions included, still needs a dark spot underground with stone, deepslate, granite, diorite, andesite or tuff under it, at the same distances from players as in vanilla.
  • Wild bats are ordinary bats. They can despawn, and each one counts toward the limit of bats around a player.
  • Resting bats. A resting bat hangs, sleeps and wakes as in vanilla, unless you feed it or it is in love. It rests only with a solid block right above it, takes off at once if that block goes, and takes off when you come within 4 blocks.
  • When a bat decides to rest. A bat still decides to rest at the same moments and as often as in vanilla. The mod only changes where it hangs up, and only when another bat is already resting nearby. A bat with no resting bat in sight rests where it is, as in vanilla.
  • How a bat flies when it has no partner to reach, no glow berries to follow and no spot next to a resting bat to reach.
  • A bat that has never eaten, and wasn’t born from breeding, can still despawn.
  • Everything else about bats. The mod changes nothing about their health or what they drop.

Bats can be bred. Feed two bats glow berries and they find each other, court for a moment and produce a baby bat. Flying bats also follow a player who holds glow berries, and one of them at a time hovers in front of the player so it is easy to feed.

Feeding, breeding and following work on every bat in the world, including bats that were there before you installed the mod.

Resting together happens wherever bats rest, in caves and under any ceiling, and also works on bats that were there before you installed the mod.

Wild bats appear where they do in vanilla: in dark places underground, on stone. With the mod they come in groups of up to 5. Bats that were already in the world stay as they are. The groups apply to bats that appear after you install the mod.

The only item you need is glow berries.

  1. Hold glow berries in your main hand or your off hand.
  2. Flying bats within 10 blocks come to you and flutter around your head. If you are sneaking or invisible, they notice you only from closer.
  3. They keep following while you hold the berries. When you put the berries away, they go back to flying around on their own.

Resting bats, the ones hanging from a ceiling, don’t follow. They stay asleep as they do in vanilla.

  1. Hold glow berries. The nearest flying bat leaves the group and hovers in front of your face, facing you, within your reach.
  2. Look at the bat and use the glow berries on it (right-click by default). The bat eats one berry.
  3. The hovering bat takes a turn of 3 seconds. If you miss it, the bat rejoins the others and waits 3 seconds before it can hover again. If another bat is following you, that one takes the next turn. Only one bat hovers in front of you at a time.

You can also feed a bat without waiting for it to hover, as long as you can reach it. That includes a resting bat. A resting bat that eats wakes up and starts flying.

  1. Feed one adult bat a glow berry. Hearts rise from it. It is now in love for 30 seconds.
  2. Feed a second adult bat within those 30 seconds. To notice each other, the two bats must be no more than 8 blocks apart north to south, east to west, and up and down. Each direction is measured on its own, so two bats on a diagonal can be farther apart than 8 blocks.
  3. The two bats fly to each other. Once they are within 2 blocks, they flutter around each other for 3 seconds.
  4. A baby bat appears where the parents are.

If the two bats drift more than 2 blocks apart while courting, the 3 seconds start over when they meet again. If the 30 seconds run out first, there is no baby and you can feed them again.

Bats rest by themselves, so there is nothing to do but watch. When a flying bat under a ceiling decides to rest, it looks for a bat that is already resting within 16 blocks and that it can see. If it finds one, it flies to a free spot right next to that bat, under a solid block, and hangs up there. The next bat does the same, so over time a cave’s bats end up hanging side by side.

  • A bat picks the nearest resting bat it can see that has a free spot next to it in sight, and the free spot nearest to itself next to that bat. Spots at the same height come first, then a block lower, then a block higher.
  • A bat that is already right next to a resting bat rests in its own block, moving to the middle of that block so the two don’t overlap.
  • A bat never hangs in the same block as a resting bat. A bat that decides to rest inside one heads for a free spot next to a resting bat instead. If there is none in sight, it keeps flying for now. A bat you summon, or one that appears, in a block where a bat already rests takes off at once.
  • A bat with no resting bat in sight rests where it is, as in vanilla.

To see it, stand back more than 4 blocks: bats that rest wake up when you come within 4 blocks, as in vanilla.

A baby bat is half the size of an adult. It grows up by itself in 20 minutes.

To speed that up, feed the baby glow berries. Each berry skips 10% of the time the baby still has left, so the first berry given to a newborn skips 2 minutes and each later berry skips a little less. Green sparkles show that the baby ate. You can feed a baby as often as you like.

  • A baby bat from each breeding.
  • Experience: an orb worth 1 to 7 points appears when the baby is born. It doesn’t appear if the mob drops game rule is turned off.
  • Bats that stay. A bat that has eaten a glow berry never despawns, and neither does a bat born from breeding. Bats that only followed you can still despawn like any vanilla bat.

Breeding gives no items.

A group that rests together drops its guano in one patch below it, so it is easier to collect. See Guano.

These are the defaults. You can change all of them, see Settings.

What Default
How long a fed adult stays in love 30 seconds
How long courtship lasts before the baby appears 3 seconds
How long a parent waits before it can fall in love again 5 minutes
How long a baby takes to grow up without feeding 20 minutes
How much of its remaining baby time one berry skips 10%
How many bats a wild group is filled up to 5 bats
How many bats, with any other ambient mobs, the game allows around one player 30 mobs
How far a bat that is about to rest looks for a resting bat to join 16 blocks

These can’t be changed:

What Value
Experience from one breeding 1 to 7 points
How often a heart rises from a bat in love every 0.5 seconds
How far from the first bat of a group a companion can appear 4 blocks sideways, 3 blocks up or down
How long a bat tries to reach its spot next to a resting bat before it gives up 10 seconds

Distances and the hover times are in Settings.

All settings are in config/canticles.json, which lists every setting. To change one, edit its value in the file and restart the game. Don’t add settings of your own or rename one: the game refuses to start if the file has a name it doesn’t know. See the guide’s front page for how the file works. The tables give each default as it is written in the file, and then what that means in the game.

Setting Default in the file That is What changing it does
love_ticks 600 ticks 30 seconds A higher value gives you longer to feed the second bat and gives the pair longer to meet. Must be a whole number above 0.
courtship_ticks 60 ticks 3 seconds A higher value makes the pair flutter around each other longer before the baby appears. Must be a whole number above 0 and less than love_ticks.
cooldown_ticks 6000 ticks 5 minutes A higher value makes parents wait longer before they can breed again. Must be a whole number above 0.
baby_ticks 24000 ticks 20 minutes A higher value keeps newborn bats babies for longer. Must be a whole number above 0.
feed_growth_fraction 0.1 10% The share of its remaining baby time that a baby skips per berry. A higher value means fewer berries to raise a baby. At 1 a single berry makes it an adult. Must be above 0 and at most 1.
baby_scale 0.5 50% A baby’s size compared with an adult. A lower value makes babies smaller. Must be above 0 and below 1.
partner_search_radius 8.0 8 blocks How far a bat in love looks for a partner in each direction: north to south, east to west, and up and down. A higher value lets bats in love find each other from farther away. Must be above 0.
mating_distance 2.0 2 blocks How close the pair must be to court. A lower value makes them stay tighter together. Must be above 0 and less than partner_search_radius.
Setting Default in the file That is What changing it does
tempt_range 10.0 10 blocks A higher value makes bats notice glow berries in your hand from farther away. Must be above 0.
flutter_radius 2.0 2 blocks A higher value lets following bats spread out more around your head. Must be above 0 and less than tempt_range.
hover_ticks 60 ticks 3 seconds A higher value gives you longer to feed the bat hovering in front of you. Must be a whole number above 0.
hover_cooldown_ticks 60 ticks 3 seconds A higher value makes a bat wait longer after its turn, so other bats get more turns. At 0 the same bat can hover again right away. Must be a whole number, 0 or more.
hover_distance 1.75 1.75 blocks How far in front of your eyes the hovering bat stays. If that would be farther than three quarters of a block inside your reach, the bat comes in to that point. It never comes closer than half a block, so a value below 0.5 acts as 0.5. Must be above 0.
Setting Default in the file That is What changing it does
group_size 5 5 bats How many bats a wild group is filled up to. A higher value makes bigger groups. At 0 the mod adds no companions, and groups are as in vanilla. A group that the game already made bigger than this is never cut down, so with a value below 4 some groups still have up to 4 bats. Must be a whole number between 0 and 32.
ambient_cap 30 30 mobs How many ambient mobs the game allows around one player before it stops adding more. At 15, which is vanilla’s value, the mod leaves the game’s limit alone. A higher value allows more bats at once. At 0 no bats appear naturally. Must be a whole number between 0 and 1000.

If another mod changes the limit. A mod that sets its own limit on ambient mobs changes the same number this setting does. When ambient_cap is anything but 15 and the game starts a world with a different limit in force, this mod writes a warning to the game’s log (logs/latest.log) that names both numbers. The other mod’s limit is then the one that counts. If another mod set the limit to something other than 15 before this mod starts, this mod replaces that number with ambient_cap and also writes a warning. Set ambient_cap to 15 to leave the limit to the other mod.

The limit is shared. “Ambient mobs” is the game’s name for a kind of creature. In vanilla, bats are the only ones. Other mods can add their own ambient mobs, and those count toward the same limit and are allowed up to the same number. So ambient_cap also changes how many of another mod’s ambient mobs can be around.

The two settings work best together. A limit of 30 with groups of 5 is room for about 6 groups around a player. With vanilla’s limit of 15, groups of 5 leave room for only 3.

Setting Default in the file That is What changing it does
cluster true on Whether a bat that is about to rest joins a resting bat nearby. Off means every bat rests where it is, as in vanilla.
search_distance 16.0 16 blocks How far, in a straight line, a bat that is about to rest looks for a resting bat to join. A higher value pulls bats together from farther away. A lower value keeps more of them resting where they are. Must be above 0 and at most 64.

The item tag canticles:bat_food lists what bats eat. By default it holds only glow berries. A datapack can change the list. Every item in it works the same way glow berries do: bats follow it, adults fall in love, and babies grow.

  • A bat can refuse a berry. An adult that is already in love, or one that bred less than 5 minutes ago, doesn’t eat. It takes nothing from your hand.
  • Babies can’t breed. A baby that eats grows, and it never falls in love.
  • Hurting a bat ends its love. There is no waiting time after that, so you can feed it again right away.
  • Bats in love don’t rest. A bat in love keeps flying until its love ends, even under a ceiling where it would normally hang.
  • A bat in love prefers its partner to you. Once another bat in love is close enough for it to notice, it flies to that bat. It also never takes the hover turn, so after you feed the hovering bat it leaves and the next nearest bat comes forward.
  • Babies follow and hover too. They take hover turns like adults.
  • Bats notice berries through walls. They don’t need a clear view of you, only to be close enough.
  • Putting the berries away ends a hover turn at once. The bat doesn’t have to wait before its next turn in that case.
  • A wild group can have fewer than 5 bats. A companion needs its own dark spot within 4 blocks sideways and 3 blocks up or down of the first bat, and the first bat must have a clear line to it. In a tight or lit cave there may not be enough such spots, and the group stays smaller.
  • A group never reaches through a wall. Companions appear only where the first bat could see them, so a group stays in one cave.
  • The last group can go past the limit. The game checks the limit before it adds a group, not after each bat, so there can be a few more than 30 bats around. Vanilla works the same way with its own limit.
  • Bats join only bats they can see. A resting bat behind a wall or around a corner doesn’t count, and neither does a spot the bat can’t see. A group doesn’t pull bats out of the next cave.
  • A bat that can’t get to its spot gives up. If it hasn’t reached the spot after 10 seconds, or the spot gets blocked or loses its ceiling, it goes back to flying. The next time it decides to rest, it rests where it is, unless a bat already rests in that block.
  • Glow berries and love come first. A bat on its way to a spot follows you if you hold glow berries, and a bat in love flies to its partner instead. Either way it forgets the spot.
  • Bats don’t share a spot. No two bats hang in the same block, and a bat that hangs next to another one hangs in the middle of its block, so their bodies don’t overlap. Where the middle of its block has no room, for example beside a fence post, it keeps flying for now. A bat skips spots where a bat is resting or that another bat is already flying to. If it still finds a bat resting in its spot when it gets there, it gives up as above. With cluster off, bats rest as in vanilla, where two bats can rarely end up in one block.
  • Love, the breeding wait and a baby’s age keep counting when a bat’s AI is off. A bat with its AI switched off, for example by the NoAI tag, still leaves love when the time runs out, finishes its breeding wait and grows up. It doesn’t follow you or fly to a partner, because that needs its AI.
  • Love, the breeding wait and a baby’s age are saved with the world. Leaving and coming back doesn’t reset them. Courtship isn’t saved, so a pair interrupted by quitting courts for the full 3 seconds again.

Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.

Canticles is made by Witold Woźniak, who alone is responsible for it. Contact: witold@witoldwozniak.dev.