The items/ folder
Everything you add lives in plugins/LodeItems/items/. LodeItems reads every .yml and .yaml file in it, at any depth. Folders are only for keeping things tidy, so organise them however you like:
.git) are skipped.
Entries and types
Each top-level key in a file is one entry. A file can hold as many entries as you want, and they can be of different kinds:items/gems/ruby.yml
type: picks what an entry is:
Ids
The key is the entry’s id. Folders are never part of it.ruby:becomeslodeitems:ruby.myserver:ruby:sets the namespace yourself, which becomesmyserver:ruby.
/lodeitems give ruby works.
Pointing at files
Textures (.png), models (.json) and sounds (.ogg) can sit anywhere inside items/, usually right next to the YAML that uses them. There are three ways to point at one:
You can leave the extension off, so
texture: ruby finds ruby.png. A path that leaves the items/ folder, or a file that doesn’t exist, is reported as an error.
LodeItems copies every file you use into the resource pack under a unique name, so two icon.png files in different folders never clash.
Texture or model
Items and props take either atexture: or a model:, never both.
- With only a texture, LodeItems makes the model for you: a flat item, held like a sword for tools and weapons, or a cube for blocks.
- With a model (a Blockbench or hand-written
.json), the textures it names are found next to the model and copied too. A model that says"0": "chair"useschair.pngfrom the model’s folder.
Existing resource packs
Drop a whole resource pack (any folder with anassets/ folder inside) anywhere in items/ and it’s merged into the pack as it is. That keeps namespace:path references from older setups working. See Resource pack.
Text formatting
Names, lore, messages and titles use MiniMessage:Durations
Anywhere a time is asked for (cooldown, time, every…), you can write:
40or40t: ticks (20 ticks is one second)1.5s,2m,1h- Several together:
1m30s
Reloading
Run/lodeitems reload after you change something. It reads every file again, rebuilds the resource pack, and sends the new pack to everyone online if it changed. Items in players’ inventories are updated to the new config.
Almost everything reloads without a restart, including new blocks. The exceptions are:
- Music disc songs and paintings. Minecraft only accepts new ones at startup. Reload warns you when a restart is needed.
- The number of block slots in
config.yml. See Blocks.
When something is wrong
One mistake never stops the rest from loading. LodeItems skips just the broken entry and tells you where it is:/lodeitems reload sees the first ten in chat.
A file that isn’t valid YAML at all is reported once and skipped as a whole.