Using a Single Image for Clothing Items

If you don't want to take individual images for each clothing item or want certain clothing to use a default image, you can add the image = "myClothe.png" parameter to the clothing item in your items.lua file.

This is how it works:

  • If the clothing item has its own image, that image will be shown.

  • If it doesn't have one, the image you set in items.lua will be used.

  • If neither exists, the default none.webp (box icon) will be displayed.

Example:

-- non single image
c_mask = { label = "Mask (Clothe)", clothe = true, weight = 0, type = "item", useable = false, shouldClose = false, description = "" },
-- single image
c_mask = { label = "Mask (Clothe)", clothe = true, weight = 0, type = "item", useable = false, shouldClose = false, description = "", image = "mask.webp" },

Last updated