movblock.mov

Radiation profiles

Split item radiation into channels and add hazards by tag or item.

File: data/<namespace>/leafia/radiation_profile/<path>.json. The registry loads with the world and syncs to clients. Profiles apply after NTM's code hazards and hbm:hazard bindings, before the hazard tables publish.

Fields

FieldMeaning and defaultRange
targetsItem ID, #namespace:tag, or item-ID list.
radiation​OptionalRadiation spectrum replacing the target's first hbm:radiation entry; applies while enable_rad_classification is true.
additions​OptionalHazard entries appended to the target's data, after the spectrum; default empty.
base_tag​OptionalItem tag ID without #. A tag target without hazard data starts from this tag's data, as it was before any profile applied.
mutex​OptionalReplaces the data's mutex bits.\texttt{i32}

Unknown fields are ignored. A profile with neither an applicable radiation nor additions changes nothing.

Application

A profile copies the target's hazard data, keeping its mutex and priority. With an applicable radiation, it removes the first hbm:radiation entry and adds one entry for each nonzero channel. Each channel entry reads the stack's minecraft:custom_data keys <channel>_abs, an absolute level, and <channel>_mod, a multiplier. additions follow, then mutex if present.

A tag target without data starts from base_tag's data, or from new data with mutex 1. An item target without data starts from new data with mutex 0. NTM then folds an item's hazard data as described in Item hazards: data whose mutex bits overlap bits already taken is skipped.

Two profiles naming the same tag, or the same item among item targets, stop the world from loading. To neutralize a shipped profile, override its resource ID with the same targets and no radiation or additions.

Shipped profiles use the IDs leafia:tag/<tag-namespace>/<tag-path> and leafia:item/<item-namespace>/<item-path>. The resource ID has no other effect.

Examples

data/leafia/leafia/radiation_profile/tag/c/crystals/francium.json:

{"additions": [{"type": "leafia:alkaline", "level": 6.0}], "radiation": {"alpha": 1500000.0, "gamma": 14000000.0}, "targets": "#c:crystals/francium"}

data/leafia/leafia/radiation_profile/tag/c/crystals/neptunium.json inherits from the canonical isotope tag:

{"base_tag": "c:crystals/neptunium_237", "radiation": {"alpha": 25.0}, "targets": "#c:crystals/neptunium"}

© 2026 movblock. Original site text is licensed under CC BY-SA 4.0 unless otherwise noted. Built with Fumadocs.

On this page