Minecraft / Data Packs

Datapack List [Datapack|1.13.x+]

  • check_circle Functions
  • 1 diamonds
  • 1,602 views, 8 today
  • 96 downloads, 0 today
  • 2 comments
  • 0 favorites
  • 1
  • 0
  • comment2
  • playlist_add
  • share
  • more_horiz
avatar unnamedDE
Level 31 : Artisan Droid
7
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!
CompatibilityMinecraft 1.13
toMinecraft 1.15
Tags

2 replies

1
10/29/2019 5:19 am
Level 1 : New Miner
acki02
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
10/29/2019 4:20 pm
Level 31 : Artisan Droid
unnamedDE
it is really resource intensive to disable/enable datapacks and it might mess up datapack order/priority

Planet Minecraft

Browse

Website

© 2010 - 2020
www.planetminecraft.com

Welcome