Data Packs Other

Datapack List [Datapack|1.13.x+]

  • 3.9k views 0 today
  • save_alt 135 downloads
Compatibility
Minecraft 1.13
to version
Minecraft 1.15
Changes include
  • Functions
  • 2
  • 1
  • 2
unnamedDE
Lvl 50Grandmaster Technomancer
27
This pack is only for datapack developers


The datapack adds only a scoreboard and a function tag.
The tag gets called a few seconds after load/reload and you can add to it a function which includes the command: scoreboard players set <PACKNAMESPACE> datapack_list 1. Please also add to your uninstall function the command: scoreboard players reset <PACKNAMESPACE> datapack list.

If your pack requires another pack you can check for it with: /execute if score <REQUIREDPACKNAMESPACE> datapack list matches 1..
and display an error message if it is not installed. Please note that the required pack has to include the function listed above.

Please do these steps to your datapack, so other developers can check if it is installed and it won't make your datapack lag because it are only two commands and they only get executed once!

More like this

  Have something to say?

acki02
10/29/2019 5:19 am
Level 2 : Apprentice Miner
you can check for datapack using execute store success by trying to disable the datapack, then if it's true load it again, so yours datapack is a bit useless :v
1
unnamedDE
10/29/2019 4:20 pm
Level 50 : Grandmaster Technomancer
it is really resource intensive to disable/enable datapacks and it might mess up datapack order/priority
1

Welcome