Held Item Format [Technical]
24-10-2022
To give an item with custom stats in Devas, the format of the item tag typically goes like the following:
give @s diamond_sword{Stats:{Weapon:{WeaponDmg:10, Strength:5, Health:20}}}
This line of command would give an item which has:
- Weapon Damage: 10
- Strength: 5
- Health: 20
when held on mainhand.
In the first curly bracket, you would see the Stats object. Inside of it, is what the datapack reads, and evaluates the stats.
               Guide
give @s diamond_sword{ Stats: { Weapon: { ... }, Shield: { ... }, Helmet: { ... }, Chestplate: { ... }, Leggings: { ... }, Boots: { ... }, AbilitySlot: { ... }, Bow: { # Note: Bow has special stats syntax. ... }, Wand: { # Note: Wand has special stats syntax. ... }, Ability: { # Note: Ability has special stats syntax. ... }, Food: { # Note: Food has special stats syntax. ... } } }