DPlib

DPlib

Data pack

Datapack Library | Provides Maths, Threading, Real datetime ...

Server Library

61 downloads
3 followers
Createda year ago
Updateda year ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.
Filter versions...

DPlib v1.2.1

by Z0rillac on May 19, 2023
Download
  • Added an icon if DPlib is used as a dependency.
  • Fix the dplib.threading documentation. Some terms were still in the old version.
  • Fix of dplib.threading:hierarchy/set_chilf_of and dplib.threading:hierarchy/set_parent_of, the target was not setting up.

DPlib v1.2

by Z0rillac on May 19, 2023
Download

New features!

This version brings new concepts and new features: the possibility to get the real date and time, the possibility to control exactly who runs which function, many optimizations and more.

Changelog

Global

  • subdomains divided into separate modules

  • core renamed to private

  • added a module manager

  • shared enum and const values are in the module manager

  • Separation and rewriting of the doc

  • addition of full IMP-doc

  • hidden private files with DHP

  • Updated credit request

  • Updated license

dplib.math

  • added functions with binary search algorithm, a bit slower but extremely accurate:

    • sin_bsa
    • cos_bsa
    • tan_bsa
  • added lcg random generators:

    • random_binary_lcg
    • random_range_lcg
    • random_lcg
  • added lcm

  • fsin, fcos, have been replaced by sin, cos

  • ftan, tan have been replaced by tan_bsa

  • sin, cos have been replaced by sin_bsa, cos_bsa

  • sin, cos anti overflow scaling

  • sqrt optimized, 1250 times faster

  • cbrt optimized, 19 times faster

  • gcd optimized, 0.3 times faster

  • clamp optimized

  • comb optimized

  • random fixed, it could not mathematically give -2147483648

  • some parameters have been unified:

    • copysign: $number becomes $in1, $source becomes $in2
    • pow: $number becomes $in1, $exponent becomes $in2

dplib.threading

added a threading module to control the execution of functions

  • thread/new
  • thread/kill
  • hierarchy/set_child_of
  • hierarchy/set_parent_of
  • scheduler
  • dplib.threading:child (predicate)
  • dplib.threading:parent (predicate)

dplib.datetime

Added a module to get the real world date and time

  • get unix timestamp
  • get UTC datetime
  • get local time
  • conversion/timestamp_to_datetime
  • uninstallation warn

dplib.benchmark

added a benchmark module for datapack development

  • start

DPlib v1.1

by Z0rillac on Apr 20, 2023
Download

Datapack library v1.1

  • adds faster trigonometric function : fcos, fsin, ftan
  • adds more useful constants
  • updates docs

DPlib v1.0

by Z0rillac on Apr 20, 2023
Download

Datapack library

v1.0.0

  • Basic mathematical tools and functions.
  • Full documentation

External resources



Project members

Z0rillac

Owner


Technical information

License
Project ID