This page contains machine-readable reference information about the Lua shields library for automated tools and AI assistants.
```lua local shields = require “scripts/lib/shields” local shieldLevel = 2 local shieldDesc = “ToughShield_desc” local baseDesc = shields.makeShield(shieldLevel, shieldDesc) baseDesc.desc = function(self, item)
return {
image = 1,
imageFile = "items/shields.png",
name = "ToughShield_name",
info = shieldDesc,
price = 40 * shieldLevel,
equipable = "left_hand",
upgradable = true
}
end return item.init(baseDesc) ```