• Functions
  • 549 views • 2 today
  • 9 downloads • 0 today
  • 2
  • 0
mzxciap
Level 49 : Master Procrastinator
24
RedLib is a datapack that is designed to make life easier (mainly for me) in working with redstone,
and doubles as a place to put code that may change frequently in newer updates (though it is not a substitute for manually updating code).
This datapack, put simply, allows you to check if a position is being powered by redstone.
This datapack may be a dependency on some of my datapacks.

NOTE: THE FOLLOWING IS FOR DEVELOPERS ONLY, THIS DATAPACK SHOULD ONLY BE INSTALLED AS A DEPENDENCY

Internals:
Just run redlib:drv to check if the current position is being powered by redstone
If it is, you get the redlib_pow tag.

Also adds misc item tags:
#redlib:misc/food Food Items
#redlib:misc/seeds Seeds
And some redstone related tags such as #redlib:air witch includes air and fluids.

VERSIONING SYSTEM:
Run function redlib:setup on load to setup the versioning system.
Then, run redlib:version to get the current RedLib version under the "version" player for objective "redlib_install_info" as a number.
If this command fails, redlib ain't installed, otherwise, check to see if the version number is the required version.
(Version formula=(n-1)*10+1, where n is the pretty-printed version (so version 1.1 is 2, version 1.0 is 1, version 2.2 is 13, etc.))
Also adds a pretty-printed version string under redlib:tmp versionString.
CompatibilityMinecraft 1.19
toMinecraft 1.20
Tags

1 Update Logs

V1.1 : by mzxciap 07/22/2023 10:21:45 pmJuly 23, 2023 @ 2:21 am UTC

Updated to version 1.1 (id 2)
REQUIRES 1.20 (sorry)
* Performance improvements via /return
* Minor fixes for some (but not all) bugs
* ???

  Have something to say?

Welcome