Mineuniverse
Data Packs
Scoreboard Math

Scoreboard Math

DATA PACK
The Math Datapack provides math utility functions. Contains pure scoreboard operations without using entities. Powers the Pool and Billiards Datapack.
by YMS2001
Download Claim this project
191 downloads
0 likes
Updated Oct 14, 2026
0 hypes
Tech Utility
Advertisement Remove ads with Premium →

Math-Minecraft-Squid-Workshop-Project

Minecraft math helper by Mingshi Yang - Squid Workshop.
Minecraft Java Edition 1.13+ is supported (versions before 1.16 were just briefly tested).

You may need to edit pack.mcmeta to remove the compatibility warning.
The datapack content is identical across supported versions, so modifying this single file is easier than maintaining multiple nearly identical copies. Please refer to the Pack Format documentation and adjust the pack.mcmeta file according to your Minecraft version.

Introduction

This datapack provide fast, high precision math operation functions using Scoreboard.

  • Constants are stored under objective swMath_C. Feel free to define more in this file.
  • Variables, including inputs and outputs, are stored under objective swMath_V.
  • "sw" means Squid Workshop.
  • For high precision computation, the input and output may have units of 0.0001. i.e., the score 10000 is used to represent 1, utilizing 4 digits. Actual error in computation is usually on magnitude of 0.01%. One visualization of different magnitudes of error is here. See example for implementation detail.
  • No entities involved in calculations, avoiding entity selection ensures high throughout performance, compatibility and easy maintenance.

Additional Info

Users can find the source code, user guide and more details here.

v1.0.0-mc1.16_1.20
MC 1.16.3, 1.13.1, 1.17.1, 1.16.1, 1.18.1, 1.14.3, 1.15, 1.16, 1.13, 1.16.5, 1.19.3, 1.20.2, 1.19.4, 1.14.4, 1.14.1, 1.17, 1.20.5, 1.18, 1.20.1, 1.20, 1.20.6, 1.15.2, 1.14
Release 2026-03-07 Get
v1.0.0-mc1.21
MC 1.21, 1.21.8, 1.21.5, 1.21.4, 1.21.1, 1.21.6, 1.21.3, 1.21.7, 1.21.2, 1.21.9, 1.21.10, 1.21.11
Release 2026-03-07 Get

Requirements & install

How to use this data pack in Minecraft
Mods needed
None, works in vanilla
Minecraft
1.21.4 – 1.21.11
Install folder
saves/<world>/datapacks

How to install data packs

  1. Download the data pack .zip file (do not extract it).
  2. New world: click Data Packs on the world creation screen and drop the .zip in. Existing world: open .minecraft/saves/<world>/datapacks.
  3. Put the .zip into the datapacks folder of the world (servers: world/datapacks).
  4. Run /reload in game (or rejoin the world) and check it with /datapack list.
Browse more: Data Packs for 1.21.11 All data packs

More from YMS2001

Advertisement Remove ads with Premium →

You Might Also Like