Skip to content

Placebo

BonsUnleashed edited this page Oct 7, 2026 · 3 revisions

Placebo

Minecraft 1.20.1 / Forge: this page documents that build and its measurements. For the separate 170-control Minecraft 1.21.1 port, see Minecraft 1.21.1 NeoForge.

One control for Placebo 8.6.3 (mod id placebo): enchantment queries skip an event that nothing listens to. The switch checks the code it would change against the tested build; another build is left untouched with one WARN line (see How the patches are applied).

Key Target Side Since Kind
placebo_enchantment_event_skip Placebo 8.6.3 BOTH 1.0.28 opt

placebo_enchantment_event_skip

Since: 1.0.28 · Target: Placebo 8.6.3 · Side: BOTH · Kind: opt

Mixin: PlaceboEventFactoryMixin

Placebo enchantment queries without an empty event. Placebo routes every enchantment-level query of every item stack through a new event on Forge's event bus, so that mods such as Apotheosis can add levels. When nothing listens for that event, the post calls nobody and the answer is the value Placebo put in. The switch asks the bus's own listener list first and, when it is empty, returns that value (the all-enchantments query keeps its fresh map copy) without building or posting the event. A listener registered at any time is seen on the next query.

Measured: nothing listens in a pack of about 510 mods without Apotheosis: 45,065 queries skipped in a 5-minute client session, each identical to the posted event (shadow mode); Apotheosis listens, so with it the event is posted as before.

Bons and Furious

Minecraft 1.20.1 / Forge 1.0.34

Compatibility

Controls by mod

Links

Clone this wiki locally