Skip to content

TheBlackSwitch/switch-lib

Repository files navigation

👍 My other projects:

Also Check Out my other projects at theblackswitch.com!


📝Pack Description:

This is a library datapack which contains code that is included in almost all my datapacks! It's located under the namespace theblackswitch and contains code that would otherwise conflict with my other packs since it would be installed multiple times. It also allows me to write datapack features faster since I don't have to re-invent the wheel every datapack.

⭐What this pack adds:

  • Movement predicates (forward, backward, jump, sneak...)
  • A player ID system
  • A slowtick system
  • A player specific storage
  • A temp score for temp values
  • A server data score for server data
  • An overlay plugin used to show overlays to the user (using equipment)
  • A tag you can add to your custom data of an item to kill it when dropped
  • A lightweight easing api used to ease between 2 positions easily. Useful for cutscenes!
  • A random predicate to run stuff with a random chance
  • A newtonian approximation algorithm for a square root

🖥️For developers:

If you want to use this library or contribute, you can take a look at the wiki

📜License

theblackswitch datapack-common-code © 2025 by theblackswitch is licensed under Creative Commons Attribution No Derivatives 4.0 International An exception is made for video content, which can be monetized. However, video creators must give appropriate credit by leaving a link to this page in the video

About

A useful datapack library I use for almost all of my projects

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors