Carry Mechanics (0.0.0-beta.46)
Curse Maven Snippet
What's new
v0.0.0-beta.46 — Carried entities are now visible, hostile mobs blocked by Enemy interface, player pickup removed
Feat
- Carried animals and villagers are now visible in both first and third person. They render piggyback-style on the player's back/shoulders, with their rear toward the player and their head facing the direction the player is walking. Uses the same entity-render-dispatcher approach as Carry On, adapted for this Minecraft version's render state system.
- Hostile mob blocking via
Enemyinterface: on top of the existingMobCategory.MONSTERcheck, the mod now also checksentity instanceof Enemy(the vanilla marker interface implemented by zombies, skeletons, creepers, etc.) for a more robust criterion that doesn't rely solely on datapack tags or category enums.
Removed
- Player pickup has been removed entirely: the
pickupPlayersconfig option, the associated code branches inPickupHandlerandPlacementHandler, and the README entries are gone. The networking packetsClientboundStartRidingOtherPlayerPacketandClientboundStartRidingPacketremain registered but are never sent.
Technical Changes
CarriedObjectRender.drawEntity()(new) — renders a carried entity viaEntityRenderDispatcher.extractEntity()/submit(), with shadow disabled and camera state auto-created.CarryRenderHelper.setupEntityTransformations()andapplyEntityTransformations()(new) — matrix transforms for entity rendering, adapted from Carry On: 180° X pitch, positioning behind player's head/back, adaptive scaling by entity size, and sneak/swim support.PickupHandler.tryPickupEntity()— blocks player pickup with earlyinstanceof Playerreturn; blocks hostile mobs with combinedEnemy+MobCategory.MONSTERcheck.CarryConfig/ConfigData/ConfigAccess— removedpickupPlayersconfig option.HumanoidModelMixin— arm pose now applies to both BLOCK and ENTITY carried types (wider Y-spread for entities, matching the piggyback posture).ClientEvents.onRenderHand()— first-person hand cancellation now covers both BLOCK and ENTITY, not just blocks.
This mod has no additional files