Skip to content

Minecraft 1.20.1, 1.20.4 için Icterine Mod

Gelişmeler optimizasyonu (özellikle InventoryChangeTrigger)

başlangıç Mephodio · Modrinth
Sunucuda
görüntülenme
7 görüntülenme
Güncellendi
Güncellendi 29.09.2026

Summary

  • 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.

Results

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

  • 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.
  • 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.
  • 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.
  • InventoryChangeTrigger goes over registered advancement criteria.
  • 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.
  • If criterion has only one item requirement, changed stack is checked against this requirement.
  • 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).
  • 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.

How Icterine's optimizations work

  • 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 ignore_triggers_for_emptied_stacks parameter in config file.
  • Similarly, do not call InventoryChangeTrigger if stack change was caused by decreasing stack but not emptying it (e.g. player dropped single item from the full stack). Controlled by ignore_triggers_for_decreased_stacks.
  • And also do not call InventoryChangeTrigger if stack size increased, but hasn't passed threshold for any advancement. For example, dirt stack size increased from 52 to 53, but there's no advancement for getting 53 dirt in your modpack. Controlled by optimize_triggers_for_increased_stacks.
  • Modify how game checks for changed items when player opens container screen, so it doesn't treat all the stack as changed the second you open anything. Controlled by initialize_inventory_last_slots.
  • In step 6, firstly check if changed slot matches any requirement, and only then check other stack in the inventory. Controlled by optimize_multiple_predicate_trigger.
  • In step 7, compare the stack count first to avoid unneeded tag matching. Also use previous stack count to avoid even more unneeded matching. Controlled by check_count_before_item_predicate_match.

Further optimizations are planned.

Supported versions

Icterine v1.2.0 works with Minecraft Fabric/Quilt from 1.18.2 to 1.19.4, and Forge from 1.18.2 to 1.19.2 (forge moment).

Icterine v1.3.0 has the same features as v1.2.0 and works with Fabric/Quilt 1.20 - 1.20.4, Forge 1.19.3 - 1.20.4, and NeoForge 1.20.1 - 1.20.4.

Use filter on the versions page to choose the right file.

If you need port to any other version, please open an issue, or ask on Discord server.

Icterine nasıl kurulur

With Millida Launcher

  1. Install Millida Launcher

    The launcher is free: download it at millida.net/launcher and sign in with any nickname.

  2. Click “Install” on this page

    The launcher opens and installs the mod for Minecraft 1.20–1.20.4 on Fabric, Forge, NeoForge or Quilt automatically.

  3. Launch the game

    A profile with it appears in the launcher: click “Play”.

Manually

  1. Install Fabric, Forge, NeoForge or Quilt

    The loader must match the game version of the mod file, for example Minecraft 1.20.4. After installing it, a separate profile appears in your launcher.

  2. Download the file for your version

    In the version list above, pick the file Icterine-neoforge-1.20.3-4-1.3.0.jar (37 KB) for your game version and loader.

  3. Put it in the mods folder

    The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.

  4. Launch the loader profile

    Open “Mods” in the main menu: Icterine should be in the list.

On a server

  1. A server on Fabric, Forge, NeoForge or Quilt

    The mod only works on a server with the same loader and game version, for example 1.20.4.

  2. File goes into the server’s mods folder

    Stop the server, put the mod file into the mods folder and start the server again.

  3. Or use the “To hosting” button

    On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.

Minecraft 1.20.4 runs on Java 17: with a different Java version the game may close right after launch.

Sürümler

Bağımlılıklarla

MinecraftYükleyiciDosyaTarihİşlemler
1.20.4NeoForge1.20.436.9 KB
1.20.2NeoForge1.20.236.8 KB
1.20.4Fabric, Quilt1.20.438.4 KB
1.20.2Fabric, Quilt1.20.238.4 KB
1.20.1Fabric, Quilt1.20.138.7 KB
1.20.4Forge1.20.438.4 KB
1.20.2Forge1.20.238.3 KB
1.20.1Forge, NeoForge1.20.137.9 KB

SSS

Is Icterine for Forge or Fabric?

There are files for Fabric: 1.20–1.20.4, for Forge: 1.20–1.20.4, for NeoForge: 1.20–1.20.4 and for Quilt: 1.20–1.20.4.

Does Icterine need other mods?

The author lists no required dependencies: the Fabric, Forge, NeoForge or Quilt loader is enough.

Do players need to install Icterine?

No. Icterine works on the server side: it is installed on the server only, and players do not need to download anything.

Which Java does Icterine need?

Minecraft 1.20.4 runs on Java 17. If the game closes right after launch, the usual cause is the wrong Java version in the profile settings.

Where can I download Icterine safely?

On this page: the file Icterine-neoforge-1.20.3-4-1.3.0.jar (37 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: 141cb5a0330282c3d5dcbebde6dfb05360bc97c7.

Yorumlar

Icterine için ilk puanı sen ver

Yorumlar 0

Yorum yapmak için giriş yapınGiriş yap

Benzer modlar

Tüm modlar

Bununla ilgili daha fazla

Yazar: MephodioLisans: GPL-3.0-or-laterKaynak kodu

Yazarı siz misiniz? Bize yazın — 48 saat içinde kaldırırız.