forked from VoxeLibre/VoxeLibre
trims: blacklist certain iems
This commit is contained in:
parent
4dc5ad3bdb
commit
c62195662c
|
@ -1,13 +1,13 @@
|
||||||
mcl_armor_trims = {
|
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"},
|
overlays = {"sentry","dune","coast","wild","tide","ward","vex","rib","snout","eye","spire"},
|
||||||
colors = {"bf352d"}
|
colors = {"bf352d"}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
local function define_items()
|
local function define_items()
|
||||||
local register_list = {}
|
local register_list = {}
|
||||||
for itemname, itemdef in pairs(minetest.registered_items) do
|
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
|
for _, overlay in pairs(mcl_armor_trims.overlays) do
|
||||||
local new_name = itemname .. "_trimmed_" .. overlay
|
local new_name = itemname .. "_trimmed_" .. overlay
|
||||||
minetest.override_item(itemname, {_mcl_armor_trims_trim = new_name})
|
minetest.override_item(itemname, {_mcl_armor_trims_trim = new_name})
|
||||||
|
|
Loading…
Reference in New Issue