Skip to content

Andrewp2/piechart-resize-mod

Repository files navigation

Pie Chart Resize Mod (Minecraft 1.16.1, Fabric)

Client-only mod for Minecraft 1.16.1 that changes the on-screen size of the debug profiler pie chart.

Requirements

  • Java 8
  • Git
  • Linux or macOS recommended for the commands below
  • Fabric Loader compatible with Minecraft 1.16.1

If you don't want to change your global JAVA_HOME, you can pin Gradle to Java 8 in gradle.properties:

org.gradle.java.home=/usr/lib/jvm/temurin-8-jdk-amd64

Quick start

Clone the project and run a dev client:

chmod +x gradlew
./gradlew genSources
./gradlew runClient

Build

Create a distributable jar:

./gradlew build

Output:

  • build/libs/ contains the mod jar

Install

  1. Install Fabric Loader for Minecraft 1.16.1.
  2. Copy the jar from build/libs/ into your Minecraft mods/ folder.
  3. Launch the Fabric 1.16.1 profile.

Configuration

This project is intended to store one setting: a scale factor for the profiler pie chart.

  • Config file location: config/
  • Config file name: piescale.json

If the config file does not exist, the mod should create it with a default scale of 1.0.

Current config keys (all values are floats, units are pixels unless noted):

  • scale — pie chart scale factor (min 0.01, no max)
  • anchorOffsetX — X offset from the vanilla pie center used as the scale anchor
  • anchorOffsetY — Y offset from the vanilla pie center used as the scale anchor
  • pieOffsetX — X offset applied only to the pie chart
  • pieOffsetY — Y offset applied only to the pie chart
  • textOffsetX — X offset applied only to the profiler text
  • textOffsetY — Y offset applied only to the profiler text
  • leftOffsetX — X offset for the left bound used by the clamp math
  • rightOffsetX — X offset for the right bound used by the clamp math
  • topOffsetY — Y offset for the top bound used by the clamp math
  • bottomOffsetY — Y offset for the bottom bound used by the clamp math

Useful Gradle tasks

./gradlew tasks
./gradlew clean
./gradlew build
./gradlew runClient
./gradlew genSources

Contributing

  • Keep the mod client-only.
  • Avoid adding new dependencies unless strictly necessary.
  • Prefer small, reviewable changes.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages