▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
DPlib

DPlib

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

242
4

DPlib v1.2.1

release20 мая 2023 г.
  • 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

release20 мая 2023 г.

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

release20 апреля 2023 г.

Datapack library v1.1

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

DPlib v1.0

release20 апреля 2023 г.

Datapack library

v1.0.0

  • Basic mathematical tools and functions.
  • Full documentation

Совместимость

Minecraft: Java Edition

1.19.x1.18.x1.17.x

Платформы

Поддерживаемые окружения

Клиент и сервер

Создатели

Детали

Лицензия:MIT
Опубликован:2 года назад
Обновлён:2 года назад
Главная