Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
🐦⬛ Avoid allows you to remove net.minecraft references completely from your code.
🧧 Compatibility Matrix:
| Fabric | NeoForge | Sponge | ||
|---|---|---|---|---|
| 1.21.8 | ✔️ | ✖️ | ✖️ | |
| 1.21.10 | ✔️ | ✖️ | ✖️ | |
| 1.21.11 | ✔️ | ✖️ | ✔️ | [LTS¹] |
| 26.1.* | ✔️ | ✔️ | ✔️ | [LTS¹] |
| 26.2 | ✔️ | ✔️ | ✔️ | |
| 26.3 | ✔️ | ✖️ | ✖️ | [TS²] |
NeoForge for 1.21.11 was removed as it seems to have been not working.
¹ Long Term Support
² Temporary Support
Note: This mod does not require Fabric API!
🔌 Supported ModLoaders:
- Fabric
- NeoForge
🧮 API-s:
- NBT
- Client Chat
- Server Chat
- Chat Colors
- Chat Components [BETA]
- Identification (Identifier)
- Item Querying [ALPHA]
- Item Components [BETA]
- Editable Item Components [BETA]
- Entity Types [BETA]
- Entity Selectors [ALPHA]
- Transformed Item Components [BETA]
- Client API
- Client Screen API
- Client Interaction API
- Font API
- Render Layer API [BETA]
- Command API
- Command Parameter API
- Command Permission API
- Addon Loader (AvoidModLoader)
- Block Creation API [ALPHA]
- Item Creation API [ALPHA]
- Entity API [ALPHA]
- Player API [ALPHA]
- World API [ALPHA]
- Event API [BETA]
- Entity Type Creation API [BETA]
- Entity Model Creation API [BETA]
- Entity Layer API [BETA]
- Entity Renderer Creation API [BETA]
- Fluid API [BETA]
- Fog API [BETA]
- Resource Overriding [ALPHA]
🌲 Events:
- ▾ Client Chat Events
- ClientChatCommandEvent
- ClientChatReceivedEvent
- ClientChatSentEvent
- ▾ Client Keyboard Events [BETA]
- ClientKeyPressEvent
- ClientKeyReleaseEvent
- ▾ Client GUI Events [ALPHA]
- RenderTextEvent
- RenderOutlineEvent
- ▾ Server Chat Events
- ServerChatReceivedEvent
- ServerChatSendEvent
- ServerChatSentEvent
- ▾ Server Entity Events
- ServerEntityCreateEvent 🧪
- ServerEntityDropEvent
- ServerEntityEffectAddEvent
- ServerEntityEffectRemoveEvent
- ServerEntityEffectUpdateEvent
- ServerEntitySetHealthEvent
- ServerEntityStruckByBoltEvent
- ServerEntityVelocityEvent
- ServerEntityInteractEvent
- ▾ Llama
- ServerLlamaSpitEvent 🧪
- ServerLlamaSpitEvent 🧪
- ▾ Block
- ServerEntityBlockTrampleEvent 🧪
- ServerEntityBlockTrampleEvent 🧪
- ▾ Server Player Events
- ServerPlayerGameModeChangeEvent
- ServerPlayerInputEvent
- ServerPlayerSwingEvent
- ServerPlayerUpdateAbilitiesEvent
- ServerPlayerKickEvent
- ▾ Block [BETA]
- ServerPlayerCraftSlotEvent
- ServerPlayerSmithingSlotEvent
- ▾ Anvil [BETA]
- ServerPlayerAnvilEnchantmentCompatibilityCheckEvent
- ServerPlayerAnvilFailEvent
- ServerPlayerAnvilNameValidationEvent
- ServerPlayerAnvilSuccessResultEvent
- ▾ XP40 [BETA]
- ServerPlayerAnvilXP40ItemClearEvent
- ServerPlayerAnvilXP40NameChangeCostClampEvent
- ServerPlayerAnvilXP40TriggerStackedEvent
- ▾ Bed [BETA]
- ServerPlayerBedSleepFailEvent
- ServerPlayerBedSleepStopEvent
- ServerPlayerBedSleepSuccessEvent
- ▾ Enchanting Table [BETA]
- ServerPlayerEnchantingTableBookshelfAmountEvent
- ServerPlayerEnchantingTableBookshelfLimitEvent
- ServerPlayerEnchantingTableCostEvent
- ▾ Food [BETA]
- ServerPlayerSetFoodLevelEvent
- ServerPlayerSetSaturationLevelEvent
- ▾ Client Screen Events
- ScreenInitEvent
- ScreenOpenEvent [BETA]
- ▾ Client Events
- ClientTickEvent [BETA]
- ClientScreenInPortalEvent [ALPHA]
Some events and/or API-s might've been missed in the listings above.
🐙 GitHub: https://github.com/AvoidLib/Avoid
📚 Wiki: https://github.com/AvoidLib/Avoid/wiki
❓ Why?
- Compatibility
Minecraft changes API very often. This library doesn't. - Takeover Prevention
Microsoft may steal your mods for themselves when you mod Minecraft.
When you mod Avoid, you don't mod Minecraft - but any platform Avoid supports.
👀 But there's hundreds of libraries
I know. This one is created because I don't wanna use others. And because I need full coverage of Minecraft's code.
🧽 What about SpongePowered
SpongePowered doesn't seem to support Minecraft Fabric.
Also, I don't think Sponge has client API-s.
🦘 So far, AvoidLib kept compatibility through all these changes¹:
- [26.1] Rendering Name Refactor
- [26.1] Item Stack Refactor
- [26.1] Stupid World Changes
- [26.1] Stupid Player Changes
- [26.1] Stupid Chat Changes
- [26.2] Entity Refactor
- [26.2] GUI Refactor
- [26.2] Block Item IDs
- [26.3] Block Type Removal
- [26.3] Increased ItemStackNative usage
- [26.3] Entity Delta Tracking
- [26.3] Vertex Modifications
- [26.3] Move to SDL
- [26.3] Move to RenderPearl
- [26.3] PushReaction Refactor
- [26.3] ItemStackTemplate#entrySet() removal
¹ These names may not be accurate,
and some refactorings may be missing.
💴 Yet, no version support was dropped.


