MilkyWayLib

A Library Mod used for Shared Code between GalaxiHD Projects
Back to Files

milkywaylib-1.1.0.jar

File namemilkywaylib-1.1.0.jar
Uploader
GalaxiHDGalaxiHD
Uploaded
Oct 29, 2026
Downloads
2.3K
Size
382.9 KB
Mod Loaders
NeoForge
File ID
9358581
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:milkywaylib-1678560:9358581"

Learn more about Curse Maven

What's new

1.1.0 — 2026-10-23

Mineable entities, reworked (breaking)

Mining an entity now behaves exactly like mining a block: the same speed math, tool and tier rules, cracks, sounds, particles, loot, tool damage and Jade tooltip. The old API is gone with no replacement shim.

  • Opt in by implementing MineableEntity (or extending AbstractMineableEntity) and returning a MineableProperties (hardness, harvestAs block state, loot table, optional sounds/particles overrides, tool damage). Nothing is attached to, injected into or checked on any other entity. See docs/mineable-entities.md
  • Mining is server-authoritative with per-player progress. The client only sends START/ABORT/STOP; the server validates reach and line of sight against the entity's bounding box, applies spawn protection and adventure-mode rules, and runs the vanilla block break pipeline. Creative breaks instantly with no drops
  • Loot is rolled as block loot (LootContextParamSets.BLOCK, harvestAs as the block state), so Fortune, Silk Touch and match_tool work. Looting no longer applies
  • New highlight: a live outline of the entity's animated, rotated model parts, also used for crosshair picking, built from vanilla buffers only (Sodium/Embeddium/Iris safe by construction)
  • New cancellable MineableEntityBreakEvent and the milkywaylib:entities_mined custom stat (stat.milkywaylib.entities_mined)
  • Block-breaking explosions break mineable entities like blocks: when the blast at that distance beats their harvestAs block's blast resistance they break and drop block-style explosion loot (EXPLOSION_RADIUS is passed, so survives_explosion works). Explosions that keep blocks leave them alone
  • Mineable entities are immune to all damage except #minecraft:bypasses_invulnerability (/kill, void)
  • Datapack overrides for already-mineable types at data/<ns>/mineable_entities/<entity_path>.json (hardness, harvest_as, loot, sounds, particles, tool_damage); problems and files for non-mineable types go to DatapackDiagnostics. Overrides are read on the server; clients on a dedicated server predict with the code values and snap to the server's crack stage
  • Jade shows the block-style tooltip (title, required tool with check or cross, break progress on the box edge) and hides health and armor
  • Removed: MineableEntityAPI, MineableEntityData, MineableEntityManager, MineableMobEntity, MineablePartEntity, MineableEntityProvider, the mineable_entity attachment, MixinIEntityExtension, EntityPersistentDataAccessor, MineableEntityDamageHandler, ModelPartHitboxExtractor, the old mining and progress packets and handlers, and the old highlight and render handlers
  • The network protocol version is now 1.1.0: client and server must both run MilkyWayLib 1.1.0

Fixes

  • Fixed the likely cause of a crash with Create: Aeronautics (popping a balloon) and other mods with complex entities. Mineable-entity lookup ran a full save of every entity as it spawned, was tracked, attacked or rendered, including other mods' half-built ones, and shared an unsynchronized cache between the client and server threads. Mineable entities now opt in through an interface, so other mods' entities are never read or touched
  • Joining a server no longer reloads your player file twice. The spawn-dimension hook re-read the save from disk and re-applied it to the player on every join, so every other mod listening for player loading ran three times. It now reuses the game's own load
  • Fixed a crash on launch with any other mod that changes enchantment level names. Milky Way Lib's Roman-numeral fix for levels above X was a hard redirect, which crashes when two mods do it; it now chains with other mods
  • Fixed a possible crash while entering a world with custom-fluid splash effects: the client and server could build the fluid list at the same time and read it half-built
  • Creative-tab section tooltips no longer crash if another mod hands back a read-only tooltip list

This mod has no related projects