1
0
Fork 0

trims: blacklist certain iems

This commit is contained in:
chmodsayshello 2023-06-07 16:42:34 +02:00
parent 4dc5ad3bdb
commit c62195662c
1 changed files with 2 additions and 2 deletions

View File

@ -1,13 +1,13 @@
mcl_armor_trims = {
blacklisted = {["mcl_farming:pumpkin_face"]=true, ["mcl_armor:elytra"]=true, ["mcl_armor:elytra_enchanted"]=true},
overlays = {"sentry","dune","coast","wild","tide","ward","vex","rib","snout","eye","spire"},
colors = {"bf352d"}
}
local function define_items()
local register_list = {}
for itemname, itemdef in pairs(minetest.registered_items) do
if itemdef._mcl_armor_texture and type(itemdef._mcl_armor_texture) == "string" then
if itemdef._mcl_armor_texture and type(itemdef._mcl_armor_texture) == "string" and not mcl_armor_trims.blacklisted[itemname] then
for _, overlay in pairs(mcl_armor_trims.overlays) do
local new_name = itemname .. "_trimmed_" .. overlay
minetest.override_item(itemname, {_mcl_armor_trims_trim = new_name})