Companion bats

# Related mods

You can download the [Gimme bundles!](https://www.curseforge.com/minecraft/mc-mods/gimme-bundles) mod to make the bat pick up items for you with bundles.

# Introduction
*Have you ever dreamt of having a perfect sidekick?*

*Did you ever find your minecraft pets a bit … underwhelming?*

If so, get ready for your next adventure, because you are about to meet … **the companion bat**!

# How to obtain

To obtain a companion bat you will need to **feed a regular bat some pumpkin pie**.

# Characteristics

## Pocket bat

When tamed the companion bat will be added to your inventory as an item, this item can be used later to summon your new sidekick.

When summoned the bat will give the player a special flute to recall it back.

When in danger the companion bat will teleport automatically into the player’s inventory, as long as its flute is still present.

*Image: Companion Bat and Bat Flute.*
![Companion Bat and Bat Flute](https://i.imgur.com/wQ5gbQv.png)

## Leveling system

The companion bat initially starts weak but gets stronger by leveling up.

The bat can obtain experience by attacking mobs.

*Image: Gui showing bat level and stats.*
![Companion bat gui](https://media.forgecdn.net/attachments/369/447/bat_gui.png)

You can also train your Companion Bat by feeding it the rare **Pie o’ Enchanting** whch can be found in treasure chests.

## Item pick up

You can give a bundle to the companion bat by placing it in the bundle slot (the third slot in the image right above here).

When given a bundle the bat can pick up items from the ground and store them in said bundle.

When the player is nearby the bat will automatically transfer its items to the owner’s inventory.

## Bat equipments

There are currently 9 companion bats equipments and 6 accessories.

These equipments can be found in treasure chests across the various dimensions.

Each equipment grants a class that gives bat an unique set of abilities.

Accessories grant a single ability; most of these accessories possess an unique ability.

*Image: Gui showing all companion bats items*

![Creative gui](https://media.forgecdn.net/attachments/369/443/all_items.png)

## Appearance

Each armor changes the bat appearance!

*Image: A Companion bat wearing an Inferno Suit*

![Companion bat wearing an Inferno Suit](https://github.com/Fulmineo64/CompanionBats/wiki/resources/bat_wearing_inferno_suit.png)

## Classes

A class is granted to the companion bat by the equipment that it is wearing at the moment.

Classes have levels too, each level can grant a special ability to the bat.

All classes at max level grant a permanent unique ability to the bat.

*Each class has an hint on where to find them on its tooltip! Check them out on REI / JEI.*

Here’s a list of all the available classes:

### Inferno
– has increased attack
– burns enemies
– has fire resistance

### Vampire
– heals from damage inflicted to the enemies
– has increased armor

### Looter
– has a huge speed bonus
– obtains a Looting enchantment that scales with levels, up to Looting IV
– will grant the luck effect to the owner when nearby

### Knight
– armor is greatly increased
– has a chance to completely block attacks
– is the perfect starting class

### Alchemist
– can buff the owner and everyone around by throwing potions
– buffs get stronger with levels ranging from a simple speed boost to strenght and regeneration
– can heal and support its owner in emergency situations

### Duelist
– has a chance to completely block attacks
– blocked attacks will reflect a portion of the original damage back to the attacker
– has a combo attack that gets stronger over time in prolonged fights
– at the end of the combo the bat releases the stored energy to strike all the nearby enemies

### Ninja
– has increased attack
– can sneak attack enemies, when behind them, greatly increasing the damage dealt
– can teleport behind enemies
– when an enemy is killed it can instantly teleport to the next target

### Mummy
– applles the Slowness effect on-hit
– applles the Weakness effect on-hit
– applies the Wither effect on-hit

### Destroyer
– has increased armor
– can throw Dynamite to its enemies inflicting massive area damage without damaging blocks

## FAQ

**Is there a Forge version?**

Currently, the Companion Bats mod exclusively supports the Fabric modloader.

**How do you open the bat GUI / inventory?**

You can open the bat’s GUI in 5 simple steps:

– Make sure to have the Bat Item or the Bat Flute on your hotbar
– Close the player inventory if it’s open
– Select the Bat Item or the Bat Flute with the scroll wheel or the keyboard
– If you have the Bat Flute recall your bat by using the flute
– Shift-right click the Bat item (like using a flint and steel while sneaking)

## Discord
You can discuss, suggest new features and get previews of my mods on my [Discord server](https://discord.gg/G8s2q4wMnt)!

## Special thanks to

[AtomicStryker](https://www.curseforge.com/members/atomicstrykergrumpy/followers) for developing the [Pet Bats mod](https://www.curseforge.com/minecraft/mc-mods/pet-bats) which inspired this whole mod.

**The fabric community** for making the development of this mod possibile.

CTE – Combine The Experience

RU:
Этот датапак объединяет сферы опыта в одну, **сохраняя их ценность**. Он немного оптимизирует игру, а также не заставляет ждать впитывания всего опыта. По умолчанию объединяет опыт на растоянии 2 блоков, но с CTE v3 можно выбрать своё растояние с момощью `/function cte:menu` прямо внутри игры.

_Если я забыл обновить на последнюю версию mc, то обновлю по запросу._

EN:
This datapack combines the spheres of experience into one, **preserving their value**. It optimizes the game a bit, and also does not make you wait for the whole experience to be absorbed. By default, it combines the experience at a distance of 2 blocks, but with CTE v3, you can select your distance with the power of `/function cte:menu` right inside the game.

_If I forgot to upgrade to the latest version of the mc, I will update it on request._

CME is Bad

# Abstract
Players and modpack developers sometimes find the game crashed with `ConcurrentModificationExceptions` (CME) and `IndexOutOfBoundsExceptions` (IOOBE), which only give stacktrace of current thread and are hard to trace which mod causes them. Here’s one of the crashes which is caused by SimpleReloadInstance in 1.20.1 Forge:

![CME from SimpleReloadInstance](https://cdn.modrinth.com/data/cached_images/877cd1d1976b1969fffb619bdbd62b13244e02c8.png)

So this is what the mod is developed for. Players who install this mod and add javaagent to JVM Argument correctly will receive a full log for modification history of a certain collection:

![log of this mod](https://cdn.modrinth.com/data/cached_images/d3d00f23694f96591fc77d8387540d7ce29c078a.png)

# Usage
First, add this jar to mods folder.

Second, edit your Java Virtual Machine Argument in your launcher. Add `-javaagent:mods/CMESuckMyDuck-.jar=;;;`.

Finally, run the game, play and wait until the crash happens.

# Usage for Other Java Projects
This mod can not only be used for Minecraft debugging, but also be utilized to debug other java projects. Similar to Minecraft. The only different step is that you should add gson and asm jar to classpath (`-cp`) before javaagent, and add our `CMESuckMyDuck-.jar` to classpath after javaagent.

# Arguments
##
A full name of the class, which has a container that you would like to monitor. Use “ instead of `.` (a.k.a. the internal name of class).

##
A field name of the container in target class, which you would like to monitor. For Forge, use SRG name. For Fabric, use intermediary name. For NeoForge, use official name.

##
Currently, we only support three containers: `List`, `Set`, `Map`. This argument indicates the type of monitored container.

## `static` or `nonstatic`. This argument indicates the container is a static field or non-static field.

# How to get and
Let’s start with an example.

First, take a look at the stacktrace of CME/IOOBE:

![Replace this with a description](https://cdn.modrinth.com/data/cached_images/f4908f0fb44bc480d0fba4a1714bf9dbca4b8043.png)

Second, read the source code of SoundEngine and confirm which container is facing this issue:

![Replace this with a description](https://cdn.modrinth.com/data/cached_images/26c2eefabbde9a9ce3aea62dbfdf1012d736c16d.png)

Now we know we should monitor map `field_217942_m` (`instanceToChannel` in `SoundEngine`). Keep going.

Third, install this mod, and add “`-javaagent:mods/CMESuckMyDuck-1.0.0.jar=net/minecraft/client/audio/SoundEngine;field_217942_m;Map;nonstatic`” to Java Virtual Machine Argument. Relaunch the game and wait for the next crash.

Finally, open `CMESuckMyDuck.log` file and you will see which thread and which mod has concurrently modified the container.

# Examples (JVM Arguments)
## ConcurrentModificationException from SoundEngine in Forge 1.16.5 Environment
`-javaagent:mods/CMESuckMyDuck-1.0.0.jar=net/minecraft/client/audio/SoundEngine;field_217942_m;Map;nonstatic`

## ConcurrentModificationException from PotionBrewing in Forge 1.20.1 Environment
`-javaagent:mods/CMESuckMyDuck-1.0.0.jar=net/minecraft/world/item/alchemy/PotionBrewing;f_43494_;List;static`

## ArrayIndexOutOfBoundsException from Zeta mod
`-javaagent:CMESuckMyDuck-1.0.0.jar=org/violetmoon/zetaimplforge/event/ForgeZetaEventBus;convertedHandlers;Map;nonstatic`

# Other options
## Log Level
Use system property `-Dcme_suck_my_duck.log_level=` to set custom log level.

Default 1, which means no debug message will be logged.

Users can set it to 0 to output debug message, which is not recommended – query functions like Map#get, Set#containsAll will also be logged when set to 0, and make the file very very long.

## ASM API Version (v1.0.2+)

In order to maintain compatibility with the latest version of Minecraft, this mod is compiled with asm version 9.7. For older versions of Minecraft (such as 1.12.2), API level operations such as ASM_9 cannot be applied, so players need to use `-Dcme_suck_my_duck.asm_api_version=` to modify the ASM API version compatibility. For example, game version 1.12.2: `-Dcme_suck_my_duck.asm_api_version=5`.

## File Max Entries (v1.0.3+)

Since we notice that when crash happens, the last few operations in the log are much more important than the previous ones. So our mod adopts a paging strategy after v1.0.3, and only the last two pages are retained at the end. The number of logs output on each page (that is, the number of operation call stacks) is fixed, and the default value is 500. Players can use `-Dcme_suck_my_duck.file_max_entries=` to modify the maximum number of elements on the page.

## Whitelist of Constructor (v1.0.3+)

Sometimes a container in a certain class is used in many places (eg. CompoundTag#tags). Directly using this mod will cause the log to be too long or the valid content to be replaced by subsequent operations. Therefore, players can specify an additional constructor whitelist to monitor the corresponding container in the corresponding class of a specific module. The default is empty, that is, there is no whitelist. Players can use `-Dcme_suck_my_duck.whitelist_constructor_stacktrace=` to specify it. If any line in the stack trace where the container is constructed includes the content of the whitelist string, the container will be monitored – otherwise, the container will not be monitored, which greatly simplifies the log output information.

## Transform to Thread Safe (v1.0.4+)
Use system property `-Dcme_suck_my_duck.transform_to_thread_safe=true` to transform the field into a thread-safe container.

This is NOT recommended unless you like slowness and don’t want to fix the problem.

## Inject method (v1.0.4+)
Use system property `-Dcme_suck_my_duck.inject_method=true` to switch to inject mode.

If set, you should use `-javaagent:CMESuckMyDuck-.jar=;` and whenever this method is called, you will receive a stack trace in log files.

## Ignore threads (v1.0.5+)
Use system property `-Dcme_suck_my_duck.ignore_threads=;;;…` to ignore some thread that is expected to modify the given container (or call the given method). For example, `-Dcme_suck_my_duck.ignore_threads=”Server thread”`.

## Stop logging early (v1.0.7+)
Use system property `-Dcme_suck_my_duck.stop_logging_if_exception_created=false` to stop logging if critical error occurs.

## Trace ID Updater (v1.0.8+)
Use system property `-Dcme_suck_my_duck.trace_id_updater=;` to update trace ID when calling the given method. This might be useful in inject mode.

## Monitoring Local Variables (v1.1.0+)
Use system property `-Dcme_suck_my_duck.local_var_index=` to monitor local variable at given index in the given method.

If set, you should use `-javaagent:CMESuckMyDuck-.jar=;;`. By the way, the index can be reused by different local variables. So you might have to use `-Dcme_suck_my_duck.match_local_index=` to specify the ordinal of ASTORE operation to indicate which local variable to monitor.

# Conclusion
I like eating peking duck. It’s so delicious!

![Photo by Polina Tankilevitch: https://www.pexels.com/photo/close-up-photo-of-savory-peking-duck-dish-on-a-ceramic-bowl-5848604/](https://cdn.modrinth.com/data/cached_images/d4ce4bba6f0bef8780cd5843390bf3358dd9b55b_0.webp)

Clear wither hearts

Makes** withered hearts clear** to see if they are there or not.

Clear Lag

This data pack uses methods from server software like Spigot and Paper to optimize performance.
You can configure many settings and even enable a small anti-crash for your server.

# How to use
Use `/function clearlag:menu` to modify settings, view clear statistics and configure which clear/warning messages are shown.
# Methods this data pack uses
– Shorter item/experience orb despawn time (valuable items and death items wont get removed through clears)
– Automatic clears which remove all items in a configurable interval
– Freezes unused entities
– Merges experience orbs
– Removes collision from farm animals

The data pack was created with the aim of being high-performing and efficient, and should not cause any lag on its own.

## Server software
Works on vanilla, bukkit, spigot, paper, all forks of paper and modded servers.

Note: You should always prefer server software such as Paper as it has a lot more customizable options and overall performance that data packs can never reach. You should only use this data pack if you have to use vanilla or you still have a lot performance issues.

## Credits
Originally made by E4ry, modified with their permission: [ClearLag Datapack](https://www.planetminecraft.com/data-pack/clearlag-datapack/)

Cleaner Armour Armor HUD Hotbar

Removes the Empty Armor Containers from the HUD, for a cleaner GUI:

Cleaner Armour Armor HUD Hotbar In-Game

vs Minecraft Vanilla:

vs Minecraft Vanilla Armour Armor

Inspired by MC vanilla’s ‘Absorption Hearts’:

Minecraft Vanilla Absorption Hearts

v1.20.2 (latest) and above is compatible with every other resourcepack.

Just select and put this resourcepack above others in order to work.

Circular Logs

# Improve the look of your default Logs with… ↴

![Circular Log’s Logo](https://cdn.modrinth.com/data/cached_images/271d9f58613a83ac09fe634c67d279d0c5ca6e8b.png)

## Adds Vanilla-like circulated Logs Top | No Optifine or other Mods needed!

### It’s supports every Version of the game! (even including Legacy ones)
### And day-by-day will have more and more mods supported!

Supported Mods

• [Abundance](https://modrinth.com/mod/abundance) – by exoplanetary

• [Architect’s Palette](https://modrinth.com/mod/architects-palette) – by Jsburg

• [Biomes O’ Plenty](https://modrinth.com/mod/biomes-o-plenty) – by Forstride & Adubbz

• [The Aether](https://modrinth.com/mod/aether) – by Oz-Payn

• Vanilla Minecraft – by Mojang

• [Wilder Wild](https://modrinth.com/mod/wilder-wild) – by FrozenBlock

Chroma Key – Green Screen

## Description

A vanilla shader that changes lime concrete to chroma key. Green screen instead of green concrete

![preview](https://cdn.modrinth.com/data/jb5UNoM2/images/6eed9968881715b0d545dc6e531668c46402d265.png)

## Dependencies
– Fabric loader requires [Fabric API](https://modrinth.com/mod/fabric-api)

Chromakey Blocks

**A resource pack for adding chromakey blocks in Minecraft! This makes it easy to take out the background from screenshots or videos.**

Sea lanterns -> blue

Glowstone -> green

Shroomlight -> red

## Support
If you have any problems, ideas, or other feedback about this project, please contact me via discord or email. You can contact me on Discord by sending a friend request, so you can send me a message.

Discord: tibodp

Mail: [email protected]

## 🌟 My other projects:
– [Torchcraft Lobby Panorama](https://modrinth.com/resourcepack/torchcraft-lobby-panorama)
– [The Ultimate Creator](https://modrinth.com/modpack/the-ultimate-creator)
– [Chromakey Blocks](https://modrinth.com/modpack/the-ultimate-creator)
– [No Worldborder](https://modrinth.com/modpack/the-ultimate-creator)
– [Vuurwerkshow Modpack](https://modrinth.com/modpack/the-ultimate-creator)
– [Vuurwerkshow Panorama](https://modrinth.com/modpack/the-ultimate-creator)
– [Vuurwerkshow Paintings](https://modrinth.com/resourcepack/vuurwerkshow-paintings)

Chilipizdrik (Чилипиздрик) Totem of Undying

– **Chilipizdrik** is a popular variety of memes that includes the names of products and animals, such as gavkoshmyg chilipizdrik and other memes that originated in VKontakte and Telegram in 2017, the totem of immortality has been replaced by a meme

– **Чилипиздрик** это популярная разновидность мемов которая включает в себя наименование продуктов и животных как к примеру гавкошмыг чилипиздрик и другие мемы которые зародились во вконтакте и телеграме в 2017 году, тотем бессмертия заменен на мем

[ALL RESOURCEPACKS COLLECTION: MEMES + STREAMERS](https://modrinth.com/collection/sfDcDGAi)