יצירת - namespace

Creating an items_packs subfolder

In order to keep everything organized you have to create your own namespace. First step is to create a subfolder inside: plugins\ItemsAdder\data\items_packs

In this example namespace will be myitems so create a folder names like the namespace.

Open the myitems folder and create a new file, you can call it like as prefer, I named it myswords.yml

Open the new .yml file and paste this:

info:
  namespace: myitems

As you see I set namespace to myitems, which is the namespace I chose before and it's the same name of the folder. Remember to change it based on your namespace.

You can create as many namespaces you want! This allows you to easly organize your packs of items.

You can create as many as .yml files you want in the same namespace! This allows you to organize items/things types better. For example I divided my items in swords, blocks, food, drinks...

Last updated

Was this helpful?