modularshoot-0.1.4.jar
Curse Maven Snippet
What's new
[0.1.4] - 2026-08-10
Added
- Dynamic gun definition providers:
GunRegistrygains aregisterGunDefinitionProviderchannel, extending thegetGunlookup order to Java API registration → provider → datapack registry. This enables per-player / runtime-generated dynamic definitions (e.g. "the player is the gun" gameplay), benefiting every in-framework definition lookup site with zero changes. The facadeModularShootAPI.registerGunDefinitionProviderexposes this externally; behavior is completely unchanged when no provider is registered. - Plugins support the
adds_slotsfield: after installation a plugin can add a specified number of slots, or even create slot types the gun did not originally have (keys must be fully namespaced or baremodularshoot:keys; values are arbitrary integers, negative ones occupying slots). Effective capacity = gun slots + aggregatedadds_slotsof installed plugins; install matching and the tooltip plugin bar are both computed with effective slots. - Uninstall overflow pre-check: a non-force uninstall that would leave any slot type overflowing after removal is rejected with
WOULD_OVERFLOW(not limited to the slot-adding plugin itself — residual overflow after uninstall is refused); force uninstall bypasses this, leaving the overflowing plugin in place but that slot can no longer accept plugins; random uninstall automatically filters out candidates that would trigger overflow. - reload validation:
adds_slotskeys are checked (WARN) for existence against theplugin_typesregistry.
This mod has no additional files

