Piggy Lib

Quick rating

Piggy Lib

No reviews yet

Just a library for Piggy's Mods, nothing fancy.

API/Library
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Optional
Server Optional

About

Project Details

Type
Mod
Latest Version
2.0.1
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

build release

Piggy Lib

A shared library providing the core infrastructure and high-performance utilities for all Piggy mods. It centralizes common systems to ensure consistency, stability, and anti-cheat compliance.


⚡ Central Piggy Action Queue

The most critical component of the Piggy suite. All player interactions (clicking slots, placing blocks, using items) must be routed through this queue.

  • Stateful Actions: Interactions are wrapped in IAction objects (e.g., InteractBlockAction, MoveItemAction).
  • Verification over Assumption: Actions are not considered "done" when the packet is sent. They use an onExecute phase to trigger and a verify phase to poll for success (e.g., checking if an item actually moved to the destination slot).
  • Rate Limiting & CPS: A global Clicks-Per-Second (CPS) limiter follows configurable server rules. Routine actions (sorting) are throttled, while life-saving actions (MLG) use ActionPriority.HIGHEST to bypass the limiter.
  • Packet Bundling: Groups related interactions into single-tick executions when safe, minimizing network overhead.

📊 Performance & Telemetry

PerfMonitor

A robust utility for tracking server-side health and network conditions.

  • Dynamic TPS Tracking: Calculates real-time Server Ticks Per Second.
  • Latency Calculation: Provides stable, smoothed ping data used by piggy-build for preemptive action triggering.

Meta-Action Sessions

A sophisticated telemetry engine for diagnosing complex failures.

  • Contextual Logging: Captures inventory states, player positions, and world metadata before and after actions.
  • Forensic Reports: Generates detailed JSON/Markdown reports for failed operations (like a failed inventory sort or a missed MLG).
  • Rich Formatting: Uses PiggyTelemetryFormatter to provide interactive, clickable chat components for administrative review.

🎒 Inventory API

InventorySearcher

A modular, high-performance engine for finding items across multiple containers.

  • Condition-Based Search: Filter items by Type, Tag, NBT, or custom predicates.
  • Multi-Slot Resolution: Handles complex searches involving split stacks or "mega-stacks" (>64 items).

🎨 UI & Configuration

  • Unified Radial Menus: Standardized GenericRadialMenuScreen for consistent selection interfaces.
  • YACL Config Wrappers: A simplified factory pattern for building beautiful, categorized configuration screens using Yet Another Config Lib.
  • Anti-Cheat Feedback: Hud overlays and floating notifications that inform players when features are restricted by the server.

Dependencies

License

CC0-1.0

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works