3.1.0.0-beta
Curse Maven Snippet
What's new
3.1.0.0-beta
- Ported the changes from 2.4.36.1 to 2.5.6.0 from 1.21.1
Data Pack / Modpack creators
- Living entities now stay wet for 5 seconds (configurable) after touching water, rain, or being hit by a Splash or Lingering Water Bottle, dripping water in the meantime. Lava dries them. Being wet does nothing on its own, but other mods and data packs can use it
- Added the
insanelib:wetentity sub predicate, usable in loot tables, advancements, enchantments, etc. - Added the
/insanelib wetnesscommand to get, set, add and clear the time entities stay wet for
- Added the
- Looting can now depend on the weapon that killed the mob, instead of what the killer is holding when the mob dies (e.g. shooting an arrow and then swapping to a sword with Looting no longer works). Disabled by default, can be enabled in the config or by other mods
- Projectiles use the weapon that shot them. If they weren't shot by a weapon (e.g. snowballs), Looting isn't applied
- Deaths without an attacker (e.g. fire, fall) use the weapon of the last hit, if taken in the last 5 seconds
- Looting isn't applied to anything else not caused by a weapon (e.g. TNT, potions, Thorns)
- Added the
insanelib:off_ground_mining_speedplayer attribute, the multiplier applied to the mining speed when off ground (0.2 by default like vanilla, 1 means no penalty). Moved from Rune Enchanting - Thrown tridents damage is now calculated from the attack damage modifiers of the item thrown (moved from Insane's Survival Overhaul), instead of a fixed 8. Vanilla tridents still deal 8, but changes to the trident attack damage (data packs, mods) now apply when thrown too
- Endermen can no longer teleport inside full blocks that can be passed through (e.g. cobwebs, powder snow, or leaves with mods that make them pass through), where they could get stuck, or on top of such blocks if they would fall through them. Can be disabled in the config
- Fixed the
Error sending packet clientbound/minecraft:disconnecterror spamming the server log when a status connection (e.g. a server list ping) fails, for example when reset by the other side. The status protocol has no disconnect packet, so the connection is now closed without trying to send it. Can be disabled in the config - Increased the slot limit of NeoForge's item handlers (e.g. shulker boxes as items) from 99 to the increased stack limit, so mods inserting items through them no longer split stacks over 99 into multiple slots
- Config screen
- Modules and features are now shown in a single row, with the button to enable / disable them next to the one to edit their options. Previously they were two separate rows, and all the modules' toggles were listed before the modules' sections
- SERVER configs can now be edited from the config screen in the main menu (previously "only available while a world is loaded"). The global
config/<modid>-server.tomlfile is edited, so worlds with an override insaves/<world>/serverconfig/are not affected - The SERVER config screen now shows at the top if the global config file or the world's own one (in
serverconfig) is being edited
- Fixed the
insanelib:feature_enabledcondition being false for SERVER features during the first data pack load, so their recipes were discarded until/reload. Data packs are loaded before the SERVER config, so until it's loaded the condition now reads the feature's and the module's toggles from the file NeoForge will load (the world'sserverconfigoverride,config/ordefaultconfigs/), using the default values if the file or the option is missing - Fixed JsonFeatures in the SERVER config not reading their jsons when the world is loaded (only after
/reload), as the data packs are loaded before the SERVER config, when the feature is still disabled - Fixed the "Server config reloaded and synced" message being sent twice when saving from the config screen, and being sent in singleplayer ("synced to 0 players")
Technical
- The config type (COMMON / SERVER / CLIENT) is now per feature instead of per module, so the same module can have features in different config files
- New
@ConfigType(ModConfig.Type)annotation for features. Without it the feature uses the config type of its module as before, so existing mods work without changes - A module appears in each config file it has features of, with its own section and "Enable" toggle containing only the features of that file. Each toggle enables / disables only the features in its own file, e.g. the client can't disable COMMON or SERVER features. The module's description, "can be disabled" and "enabled by default" apply to all its files
- New
ILModConfig(modId, type, modEventBus, classLoader)constructor, that loads the features of the given type of the modules already registered by the mod - New
Module.Builder.create(id, name, defaultConfigType, modEventBus): modules no longer need a config builder, so they can be created once before all the ILModConfigs. The overload with the builder is deprecated, as isModule#setConfigBuilder - Modules without features are no longer added to the config ("Enable" toggle included) and a warning is logged
- CLIENT features are skipped on dedicated servers per feature, also when the mod doesn't create the CLIENT config there
- A warning is logged for features with a config type for which the mod didn't create an ILModConfig, and for features not loaded because their module was registered after the ILModConfig of their config type was created
- New
- Fixed mods with multiple configs (e.g. a SERVER and a CLIENT one) logging "No module found with ID ..." warnings for features of the configs created later, even if everything was loaded correctly
- A
modulein@LoadFeaturethat no config registers (e.g. a typo) is now reported once all the mods are loaded, unless the feature'srequiresModsare missing - A
@LoadFeaturewithoutmodulein a mod with multiple modules is now always reported, also when it was loaded in the only module existing at that time
- A
Feature.isEnabled(Class)crashes again (now with a clear message) when the feature failed to load, instead of silently returning false since 3.0.1.0. It still returns false for features not loaded because theirrequiresModsare missing or for CLIENT features on dedicated servers- Feature names generated from the class name (when
@LoadFeaturehas noname) now strip the words "Feature", "Server", "Client" and "Common" anywhere in the name (e.g.ServerHealthFeature→ "Health"). Only whole CamelCase words are removed (e.g. "Featured" or "Servers" are kept), so the name keeps its first letter capitalized and has no double spaces. Previously only "feature" was removed, also inside other words (e.g.FeaturedItemsFeature→ "d items")- Config keys and data paths of features named this way may change
- Fixed configs registered by a mod without ILModConfig making modules read their options. With two SERVER configs, if the other one was synced first the error aborted the event, so the mod's listener for that config never ran and clients kept its default values (e.g. Rune Enchanting's
runes.toml) - Item components
- Added post processors (
ItemComponentsReloadListener.addPostProcessor(type, processor)), that transform the final value of a component type after both the programmatic providers and the data pack definitions have been applied. They are called for every item having the component (patched or not) and skip items whose component was removed by a data pack - Fixed patches of programmatic providers (e.g. ISO's stack sizes) reading SERVER config values not applied when the world is loaded (only after
/reload): default components are bound before the SERVER config is loaded, so the patches used its default values or the ones of the previous world. They are now computed again once the SERVER config is loaded - Patches are now computed again when a SERVER config made with ILModConfig is reloaded while the server is running (e.g. the file edited by hand), and synced to the players if changed
- Added post processors (
- Added
KillCredit, that tells who killed an entity and the weapon that did it. Mods can use it to make Looting depend on the weapon that killed the mob (KillCredit.enable()), and to declare the weapon of their own entities (KillCredit.setWeapon) and damage (WeaponDamageSource) - Added the
Wetnessclass (isWet,getTicks,setTicks,wet,dry) - Fixed
MCUtils.hurtIgnoreInvulnerabilityleaving the entity's last hurt damage set to the damage just dealt, so during the remaining invulnerability frames hits stronger than that damage (instead of stronger than the previous hit) went through
This mod has no additional files