Use NBT Tags to Add Special Properties to Loot Items
Understand NBT Tag Fields
Each container type in lootstock.toml has corresponding tag fields: item1tag, item2tag, etc. These allow you to attach NBT data to spawned items, enabling custom enchantments, durability values, or mod-specific properties.
Add NBT Data to Items
In the config file, enter NBT strings in the tag fields. For example, you might add enchantments or custom names to weapons and tools. The exact NBT format depends on your mod ecosystem—consult mod documentation for specific tag syntax.
Example Configuration
If item1 = "minecraft:diamond_sword", you could set item1tag to apply enchantments or custom lore. Leave tag fields empty for items that don't need special properties.
Test Your Setup
After editing tags, save the config and reload your world. Place a container and enable debug mode to inspect the generated items. Check that NBT properties are correctly applied. Adjust tag syntax if items don't spawn with expected properties, and consult mod logs for errors.