Icterine
Advancements optimization (specifically, InventoryChangeTrigger)

Что это
Advancements optimization (specifically, InventoryChangeTrigger)
- Тип: мод
- Загрузчик: fabric, forge, neoforge, quilt
- Версии Minecraft: 1.18.2 – 1.20.4
- Скачиваний на Modrinth: 4 169 166
Подробно
Optimizes triggering advancements for obtaining items; Might break parity with vanilla, but doesn't affect vanilla advancements and shouldn't affect the vast majority of mods/datapacks; Even if it does affect something, advancement still should be obtainable by just dropping and picking up one of required items; Currently, there are no known incompatibilities or issues; Every injection into vanilla code can be disabled in config file. All changes are server-side.
Live test performed on dedicated server with 3 active players online, running custom Forge modpack with over 200 mods and BlazeandCave's Advancements Pack, which adds over 950 advancements. Stats collected using Spark for one hour.
With Icterine, InventoryChangeTrigger executes almost 2.5 times faster (as of version 1.1.0), spending about 7.5% of the tick time instead of 20%.
Stats comparison for Icterine 1.0.0 (~2 times faster):
How vanilla InventoryChangeTrigger works
1. When the game detects that stack in player inventory has changed, it calls InventoryChangeTrigger for it. This includes picking up items, dropping items, dropping whole stacks, moving items in your inventory. 1. Also, when you open a container (chest, furnace, etc.), game thinks that all the slots in your inventory changed, and calls trigger for all of them, including empty slots. 2. InventoryChangeTrigger counts empty, non-empty and completely filled slots in your inventory. This information could be used in advancement triggers, but is not used in vanilla. 3. InventoryChangeTrigger goes over registered advancement criteria. 4. If criterion has slot count requirements and they don't match values from step 2, or if criterion doesn't have item requirements, criterion is skipped. 5. If criterion has only one item requirement, changed stack is checked against this requirement. 6. If criterion has multiple items requirements (e.g., "Cover me with debris" requires having full netherite armor set), every item stack in the inventory is checked against every requirement (but fulfilled requirements get removed and are no longer checked). 7. Item matching, especially against tag, is very heavy. But the game first checks if the player's item type matches the one from the requirement, and only then checks other parameters like count, enchants and other NBT data.
1. In step 1, do not call InventoryChangeTrigger when you drop stacks or move them out of your inventory (e.g. to chest). This is controlled by the ignoretriggersforemptiedstacks parameter in config file. 2. Sim
Как установить
Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.
Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.
Комментарии 0
Комментарии к этому материалу отключены.
Читайте также
Better Archeology (1.20 Update)
Better Archeology adds new life to the archeology mechanic in Minecraft. 05.12.2026
Dragon Ball Z Totems Pack Optifine
A fan-made resource pack that transforms your Totem of Undying into Dragon Ball Z characters with OptiFine CIT support. Featuring Goku… 05.12.2026
Vivecraft Perfected - spooky scary edition
A variation of Vivecraft perfected leaning towards a horror experience 05.12.2026
Create: Eternal Zinc
This is an addon for the Create mod that makes zinc an infinite resource. 05.12.2026
TalkingClouds
Speech bubbles for players and for any other entities. 05.12.2026
New Sniffer Egg
Changing the texture of the sniffer egg to a more beautiful one! 05.12.2026