Tags
Creators
Details
1.139.0
Compatibility
Changes
1.139.0
Before you update
Network version
Vector fields can be written as one expression, and apoli:add_velocity has a new vector field. Both travel to the client with powers, so the network version went up on all three loaders. A client and server need the same Apoli version to connect, and a mismatched pair gets a message saying so.
Power-gated recipes with FastWorkbench
On NeoForge 1.21.1 with FastWorkbench installed, players without an apoli:recipe power could craft its recipe. They can't any more, so a server that relied on that by accident will see those recipes disappear for players without the power.
Added
FastWorkbench and FastSuite
On NeoForge 1.21.1, apoli:modify_crafting and power-gated recipes run inside FastWorkbench's batched grid updates and its shift-click crafting. With FastSuite, power-gated recipe lookups use its parallel matching, and Apoli clears FastSuite's recipe lists after adding power recipes so they're included. Both mods add no types.
AppleSkin
AppleSkin's food tooltips and hunger preview show the values apoli:modify_food gives, on all three versions.
Spell Engine
Registration-gated types for Spell Engine, on all three versions:
| Type | Kind |
|---|---|
apoli:action_on_spell_cast |
Power |
apoli:action_on_spell_hit |
Power |
apoli:action_when_hit_by_spell |
Power |
apoli:prevent_spell_cast |
Power |
apoli:bypass_spell_requirements |
Power |
apoli:spells |
Power |
apoli:cast_spell |
Entity action |
apoli:clear_spell_cooldown |
Entity action |
apoli:casting_spell |
Entity condition |
apoli:spell_on_cooldown |
Entity condition |
apoli:has_spell |
Entity condition |
apoli:spell |
Damage condition |
Spell files can also use Apoli: a CUSTOM impact whose handler names an apoli:function runs that function on the target, and the apoli:power, apoli:condition and apoli:bientity_condition entity predicates work in target conditions.
Guns
Registration-gated types for Vic's Point Blank on all three versions and for Timeless and Classics Zero on NeoForge 1.21.1:
| Type | Kind |
|---|---|
apoli:modify_gun_damage |
Power |
apoli:modify_gun_damage_taken |
Power |
apoli:modify_head_shot_damage |
Power |
apoli:modify_gun_fire_rate |
Power |
apoli:modify_gun_recoil |
Power |
apoli:prevent_aim |
Power |
apoli:prevent_gun_fire |
Power |
apoli:action_on_gun_fire |
Power |
apoli:action_on_gun_block_hit |
Power |
apoli:aiming |
Entity condition |
apoli:gun |
Item condition |
apoli:gun |
Damage condition |
Vectors in expressions
Expressions can build and combine vectors with vec, length, normalize, dot, cross, distance, lerp and .x, .y, .z, and read pos, eye_pos, velocity and look, with the target_ and actor_ prefixes. A random value a vector uses more than once is rolled once for the whole vector. Fields that take a vector, such as the spread of apoli:spawn_particles, accept a whole vector expression as one string. New number variables: eye_y, look_x, look_y and look_z.
{
"type": "apoli:add_velocity",
"vector": "look * 1.5 + vec(0, 0.4, 0)"
}
This launches the entity forward the way it faces, with a small lift.
vector on add_velocity
apoli:add_velocity, as an entity and as a bi-entity action, takes a vector field that replaces x, y and z with one vector.
Fixed
modify_crafting with FastWorkbench
On NeoForge 1.21.1 with FastWorkbench installed, apoli:modify_crafting did nothing: no result, no item_action, no actions after crafting, by click or by shift-click.
item_condition on shift-click crafting
A shift-click passed an empty stack to apoli:modify_crafting, so an item_condition that checks the crafted item failed and the after-crafting actions didn't run. It now checks the item that was crafted.
1.138.0
Before you update
Explosions are silent
The apoli:explode entity, bi-entity and block actions no longer play the explosion sound or spawn explosion particles. They still break blocks, deal damage, knock entities back and start fires. Add apoli:play_sound and apoli:spawn_particles next to them for the old look. Each explode page in the Handbook ends with an example that does this.
Network version
Custom effects now carry their network ID to the client, so the network version went up on all three loaders. A client and server need the same Apoli version to connect, and a mismatched pair gets a message saying so.
Projectiles hit what they start inside
A projectile from apoli:fire_projectile that spawns overlapping an entity now hits it on its first tick, as long as bientity_condition and owner_bientity_condition allow it. Before, it flew through anything standing where it started.
Changed
Releasing a key
/apoli:key release and apoli:force_key_pressed with release: true now let go of a key the player is holding down themselves, not only of a forced one. The key stays up, through key repeat as well, until the player releases it and presses it again. apoli:key release @p key.use stops a player eating or drawing a bow.
unpress on prevent_key_press
unpress releases only the keys the power blocks. When a block ends, presses of the blocked keys that queued up during it are dropped, and keys the player is still holding keep working. Other keys are never touched.
attribute[] with an unknown attribute
attribute[...] in an expression reads 0 for an attribute ID that isn't registered, and the log warns once when the power loads. The expression no longer fails to parse.
Fixed
Custom effects showing the wrong name and icon
A player could get the right custom effect but see another effect's name and icon in their inventory. It happened when a server ran /reload after adding an effect whose ID sorts before the others, for players who joined afterwards, and after playing a pack with custom effects in singleplayer before joining a server. The client now places every custom effect at the server's network ID.
prevent_key_press releasing every key
Starting or ending a prevent_key_press block let go of every key, so blocking jump also stopped a player sneaking, walking or attacking.
Translucent models under shader packs
With a shader pack in use, alpha below 1.0 on a translucent, translucent_cull or emissive model or overlay is baked into the texture, so packs that ignore opacity from the tint, such as Bliss, still draw the model see-through. Packs that draw every entity opaque until a setting is turned on, such as Bliss with Translucent Entities off, still need that setting.
Furnace stacking items with different components
apoli:furnace could add a cooked item to a result stack of the same item with different components. It now stacks only matching items, like a furnace block.
Performance
Station powers
Saving a furnace or brewing stand power's contents no longer sends the whole inventory to the player's client, which happened every five seconds while it worked and on every item change. Checking for a station every tick no longer allocates, and the furnace looks up its recipe once on the ticks where its input changes or an item finishes, instead of twice.
action_on_advancement
Completing an advancement no longer sets anything up for players who don't have an apoli:action_on_advancement power, and the advancement's tab root is looked up once instead of once per power.
1.137.0
Before you update
Ghost blocks stop fluids
Water and lava now flow around an apoli:ghost_block instead of washing it away. A pack that cleared ghost blocks with water needs another way to remove them, such as a shorter duration. When a ghost block expires, the fluids next to it flow into the space.
NeoForge network version
The NeoForge network version went up for the new slider packet, so a NeoForge client and server need the same Apoli version to connect.
Added
apoli:gui
A power that opens a menu built from JSON. Its elements place images, buttons, sliders, entity previews and item slots on a box in the middle of the screen, and the player's inventory can sit at the bottom like it does in a chest. The menu is a real Minecraft container, so slots sync, shift-click and drag the way vanilla slots do.
| Field | Default | Description |
|---|---|---|
title |
none | The name in the top-left corner. |
key |
primary | The key that opens the menu. |
id |
the power's ID | The name the saved items and slider values are stored under, and the name conditions and actions use. |
width, height |
176, 166 |
The size of the menu's box. |
show_inventory |
true |
Adds the player's inventory and hotbar at the bottom. |
show_vanilla_background |
false |
Draws the plain gray container panel and slot frames. |
memory |
true |
Keeps the slot items and slider values between openings. |
pause_game |
false |
Pauses a singleplayer game while the menu is open. |
elements |
[] |
apoli:image, apoli:button, apoli:slider, apoli:entity and apoli:slot entries. |
Every element takes x, y, anchor, width, height, gui_scale_lock and a condition that hides it while it fails. Images can be progress bars driven by an expression, buttons run actions when pressed, while held and when let go, sliders snap to a step and run actions as they move, entity previews show a new entity, the player or an entity found by a selector or an entity set, and slots take an item_condition or only give items out.
{
"type": "apoli:gui",
"title": "Pouch",
"show_vanilla_background": true,
"elements": [
{
"type": "apoli:slot",
"x": 61,
"y": 34
},
{
"type": "apoli:slot",
"x": 79,
"y": 34
},
{
"type": "apoli:slot",
"x": 97,
"y": 34
}
]
}
Slider values in actions
Inside a slider's action_on_slide and action_on_release, its value is the slider variable in every expression and $(slider) in the command of apoli:execute_command, with or without an arguments object. The text of a slider shows $(slider) the same way.
apoli:slider
An entity condition that compares a slider's value. It takes gui (the GUI power or its id), slider (the slider's id), comparison and compare_to, and reads the saved value while the menu is closed.
apoli:item_in_gui, apoli:change_item_in_gui and apoli:open_gui
apoli:item_in_gui is the apoli:inventory condition and apoli:change_item_in_gui the apoli:inventory_action action, both set to work on a power's slots, with gui as another name for their power field. Both of the original types now accept a GUI power, or its id, in power. apoli:open_gui is another name for apoli:open_station, whose power field now opens GUI powers as well as station powers.
A single value for inventory_types
The inventory_types field of the apoli:inventory condition takes one value as well as a list.
Fixed
Custom models jittering
apoli:custom_model_render geometry shook in place when two powers drew the same model, such as a body and a glowing layer on top, and shook harder during moves. The two powers shared one animation clock and restarted each other's clip every frame. Each power keeps its own clock now, and two powers that pick the same clip at the same time stay in step.
Ghost cobwebs and water
Flowing water washed away cobwebs placed with apoli:ghost_block, and they dropped string, which made the Arachnid's webbing a string farm. Fluids now flow around ghost blocks.
Riptide with ignore_fluid
A Riptide trident refused to launch while the player stood in water hidden by apoli:ignore_fluid. It launches now.
Fireballs stopping in the air on 1.20.1
Fireballs and small fireballs fired with apoli:fire_projectile slowed to a stop a couple of seconds after leaving on Fabric 1.20.1. They get the same forward push a ghast's fireball has.
First-person hand particles
Particles anchored to a hand with model_part showed up beside the hand in first person when an apoli:modify_player_model animation posed the arm. They now go where the hand is drawn.
1.136.0
Before you update
apoli:shader stacks with other post effects
The power's shader is now drawn after the post effect in the game's own slot, so it shows together with the spectator creeper, spider and enderman views, Super Secret Settings and Vista's viewfinder lenses. It used to replace whatever was in that slot.
toggleable only keeps the power's own shader on
With toggleable: false, F4 still toggles every other post effect and leaves only the power's shader on. It used to block F4 for everything while the shader was applied.
prevent_bee_anger actions on Fabric 1.20.1
bientity_action now runs only for the bees the power kept calm, as it already did on 1.21.1. On 1.20.1 it ran for every bee leaving the hive, including the ones the conditions didn't calm.
Fixed
Night vision with shader packs
apoli:night_vision now answers the game's night vision strength, which Iris and Oculus pass to shader packs as the nightVision uniform. The power only brightened the lightmap before, and most shader packs never sample the lightmap, so it did nothing with a pack enabled.
Night vision with Chloride's True Darkness
Chloride pulls the lightmap back down to its own darkness target unless the player has the Night Vision effect, which undid the power in every mode except Vanilla. Chloride now stands down while the power's strength is above 0.
Night vision with Polytone lightmaps
Polytone's custom lightmaps replace the game's lightmap code and only looked for the Night Vision effect. They now brighten by the power's strength too.
apoli:shader flickering and smearing next to Vista
Vista asks Moonlight to manage the game's post effect slot every tick, and Moonlight wraps whatever sits in that slot in a new combined effect each time. Apoli treated every new instance as its shader being replaced and rebuilt the shader from scratch, 20 times a second, which caused the flicker and smear. Apoli now keeps its shader in its own chain and draws it after the game's slot, so nothing else can replace it.
modify_fog colour with shader packs
The colour is now written as soon as the game has picked its fog colour, before anything reads it. Iris snapshots the fog colour to clear the sky, and with some mod load orders the snapshot happened before Apoli changed the colour. The fogColor, fogStart and fogEnd uniforms and Iris's sky colour now always carry the power's values. Packs that build their own overworld fog, such as Complementary Reimagined, still ignore them.
Startup crash with Sinew
Sinew and Apoli both put a @ModifyConstant on the item use slowdown in LocalPlayer.aiStep. That injector lets only one mod claim a constant, so Sinew's injectors were skipped, and Sinew requires them, so the game crashed at startup. Apoli now uses @ModifyExpressionValue, which works on whatever the other mod produced: Sinew's value comes first and apoli:modify_use_slowdown applies on top, in either load order.
Changed
No injector locks other mods out any more
Every remaining @Redirect and @ModifyConstant in Apoli was replaced with an injector that leaves the call or constant open to other mods, with the same behaviour as before. That covers both hive hooks of apoli:prevent_bee_anger, the phasing in-wall overlay and the sprint swim speed of apoli:modify_swim_speed on every loader, and on Fabric 1.20.1 the gravity hook of apoli:modify_falling, the entity reach extension and the powers stamped onto crafting results.
Performance
modify_fog does no work without a fog power
The fog colour, fog distance and sky hooks now return straight away when no fog power is active or fading. They used to allocate a colour vector and box floats every frame for every player.
Optional dependencies
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:i2NQbLvK:EogJPdki"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:i2NQbLvK:EogJPdki"
}

