Skip to content
Mqx edited this page Feb 20, 2025 · 1 revision

If your Datapack provides items for a player, the following functions should be available to the player:

Datapack/
├─ pack.mcmeta
└─ data/
   └─ <namespace>/
      └─ function/
         ├─ item/
         │  └─ all/
         │     └─ give.mcfunction
         └─ app/
            └─ <...>/
               └─ <module>/
                  └─ give.mcfunction
  • <namespace>:item/all/give Gives the player all available items provided by the datapack.
  • <namespace>:<...>/<module>/give Gives the player all/the available items for the respective module.

    For example, <namespace>:app/blocks/glowing_dirt/give would give the player the items for the module glowing_dirt.

Clone this wiki locally