add armor specs to rainbow armor, add technic armor mod, add redef mod, add technic recycle mod
This commit is contained in:
parent
00106c85c6
commit
c1e648877d
138 changed files with 1321 additions and 4 deletions
29
mods/redef/redefinitions/aligned_textures.lua
Normal file
29
mods/redef/redefinitions/aligned_textures.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
for id,definition in pairs(core.registered_nodes) do
|
||||
local groups = definition.groups
|
||||
local origin = definition.mod_origin
|
||||
local circular_saw = id == 'moreblocks:circular_saw'
|
||||
|
||||
local stair_or_slab = groups.stair or groups.slab
|
||||
local moreblocks_object = origin == 'moreblocks' and not circular_saw
|
||||
|
||||
if stair_or_slab or moreblocks_object then
|
||||
local tiles = definition.tiles
|
||||
local target_tiles = {}
|
||||
|
||||
for index,_ in pairs(tiles) do
|
||||
if type(tiles[index]) == 'table' then
|
||||
tiles[index].align_style = 'world'
|
||||
target_tiles[index] = tiles[index]
|
||||
else
|
||||
target_tiles[index] = {
|
||||
name = tiles[index],
|
||||
align_style = 'world'
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
core.override_item(id, {
|
||||
tiles = target_tiles
|
||||
})
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue