Assorted Lib 4.3.0 (NeoForge)
Curse Maven Snippet
What's new
4.3.0
IPlatformHelper#registerFlammablelets fire spread to and burn away a mod's block, with the same odds on both loaders.PlayerDeathDropsEventfires once a player's death is final, after any totem, and before their inventory and experience drop. Fabric's own death events come either before the totem or after the drops.IClientHelper#registerLevelSubmitadds geometry to every level frame, after entities and block entities, on both loaders.- Registry aliases, for a mod that moves its content to a new id:
IRegistryFactory#alias, orRegistryProvider#aliasFrom(oldNamespace)to alias everything a provider registers. A world saved under the old ids loads the same entities, items and blocks. SharedCreativeTabsgives a family of mods one creative tab between them, registered by whichever is installed first and filled in a fixed order.- A mod's manual chapters can join another namespace's section:
LibManualProvidertakes a manual namespace, and a section'siconcan list several items, the first registered drawn. MovedIdskeeps a player's recipe book and advancement progress when a mod moves its recipes and advancements to new ids:inherit(oldNamespace, newNamespace), andrenameCriteriafor criteria that were renamed. It also carries over structures already in a world and the loot of chests that were never opened.migration.carryOverMovedIdsin the newassortedlib-common.toml(.jsonon Fabric) turns it off.ICanColormarks a block a paint roller can recolor, so blocks from one mod take another mod's paint.AdvancementIconsdraws an advancement with the first of several items that is installed, for a root advancement a family of mods ships between them.- Mods can join a family to share a creative tab and manual section, and each one can be turned off in the family's parts config.
creative.hideUncraftableItemsinassortedlib-common.toml(.jsonon Fabric) hides items from the creative menu when nothing installed provides their material. Mods add those items withCreativeTabItems#addIfObtainable, andItemUtil.isTagEmptydoes the check.- The storage pieces Assorted Storage's parts share now live here, so they can become separate mods.
core.storagehasStorageMaterial, the base storage block, block entity and menus, andcore.storage.enderthe locked ender inventories. Their screens are inclient.screen.storage. - The chest, barrel, hopper and shulker box blocks are here too, with their block entities, menus,
renderers and models, so Assorted Locks can own the locked vanilla ones while each part keeps its
materials. Nothing is registered by Lib. A mod hands its blocks the block entity and menu types it
registered through
StorageTypes, and a block entity takes its type from its block. LockConversionssays what a lock turns a block into, so one padlock locks the containers of whichever mods are installed.LockItemsand the newc:locksandc:keystags let a container take a lock or check a key without knowing the mod that adds them.LevelUpgradessays how a mod's containers upgrade from one material to the next, so a level upgrade works on all of them.StorageAccessUtilmoved here too, andregisterKeySourceadds somewhere else a key can be, such as an accessory slot.SharedDataComponentsgives a family of mods one data component type between them, registered under its id by whichever asks first.StorageInfo, the lock and level lines on storage items, uses it, and the shared container backgrounds are Lib's own textures now.core.toolholds the tool materials Assorted Tools' parts share.ToolTiers.get()gives wood through netherite and 17 extra materials such as tin and ruby, fromassortedlib-tool-tiers.toml, which only exists once a mod asks for it.ArmorMaterialConfig,ConfigurableArmorItem,ConfigurableTieredItemandHarvestTierscame with them.ISwitchModesitems share one switch-modes key, Z by default. A mod turns it on withModeSwitching.enable()and, on the client,ModeSwitchKey.enable(); without one, there is no key and no packet.MovedIdsalso carries over data-driven entries saved under an old id, such as an enchantment on an item or a book, which vanilla would drop.IConditionHelper#conditionalOutputtakes a function from a recipe id to its conditions instead of a map. A mod that calls it directly can passmap::get.- Fixed recipe conditions, tooltips and biome changes that could go missing on NeoForge when several mods added them at the same time while loading.
This mod has no additional files