mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 16:41:06 +01:00
trims: blacklist certain iems
This commit is contained in:
parent
4dc5ad3bdb
commit
c62195662c
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue