יצירת - namespace
Last updated
Last updated
If you don't know what I mean by namespace please read namespace tutorial
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:
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...
All this "nesting" could seem boring but trust me, it reduces errors as much as possible and allows you to find everything easily.