Minecraft Data Packs / Server Utility

Igtarr's Math Constants Library

  • check_circle Functions
  • 1,036 views, 2 today
  • 13 downloads, 0 today
  • 1
  • 0
Igtarr's Avatar Igtarr
Level 37 : Artisan Engineer
7
Igtarr's Math Constants Datapack

This datapack utility automatically creates scoreboard constants from -10,000 to 10,000 (inclusive) for the purpose of math operations. You can access these values under the objective "igt.const"

Numbers are formatted as the numerical value (including negative sign if applicable), with a # symbol at the end. I understand that this naming system kind of goes against the convention for fake players, but I think it gives a more readable appearance when used in commands.
Examples:
-20# = -20
0# = 0
5# = 5

Since this is a scoreboard you are also able to add your own values outside of the given range, but this datapack is a good start.

Feel free to modify, reverse engineer, use in your projects, etc., but please do not redistribute without credit!
CompatibilityMinecraft 1.13
toMinecraft 1.19
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome