Minecraft Data Packs / Other

Datapack List [Datapack|1.13.x+]

  • check_circle Functions
  • 3,805 views, 1 today
  • 132 downloads, 0 today
  • 2
  • 1
  • 2
unnamedDE's Avatar unnamedDE
Level 49 : Master 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!
CompatibilityMinecraft 1.13
toMinecraft 1.15
Tags

Create an account or sign in to comment.

1
10/29/2019 5:19 am
Level 2 : Apprentice Miner
acki02
acki02's Avatar
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 49 : Master Technomancer
unnamedDE
unnamedDE's Avatar
it is really resource intensive to disable/enable datapacks and it might mess up datapack order/priority
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome