forked from minetest-mods/unifiedbricks
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
05e03901ca
10
.github/workflows/luacheck.yml
vendored
Normal file
10
.github/workflows/luacheck.yml
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
name: luacheck
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
luacheck:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@master
|
||||||
|
- name: Luacheck
|
||||||
|
uses: lunarmodules/luacheck@master
|
9
.luacheckrc
Normal file
9
.luacheckrc
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
read_globals = {
|
||||||
|
"minetest",
|
||||||
|
"unifieddyes",
|
||||||
|
"default"
|
||||||
|
}
|
||||||
|
|
||||||
|
globals = {
|
||||||
|
"unifiedbricks"
|
||||||
|
}
|
30
init.lua
30
init.lua
@ -12,6 +12,11 @@ unifiedbricks.old_static_list = {}
|
|||||||
unifiedbricks.old_static_list_formals = {}
|
unifiedbricks.old_static_list_formals = {}
|
||||||
unifiedbricks.old_colouredstonebrick_list = {}
|
unifiedbricks.old_colouredstonebrick_list = {}
|
||||||
|
|
||||||
|
minetest.register_alias("unifieddyes:white","unifieddyes:white_paint")
|
||||||
|
minetest.register_alias("unifieddyes:lightgrey","unifieddyes:lightgrey_paint")
|
||||||
|
minetest.register_alias("unifieddyes:grey","unifieddyes:grey_paint")
|
||||||
|
minetest.register_alias("unifieddyes:darkgrey","unifieddyes:darkgrey_paint")
|
||||||
|
|
||||||
local HUES = {
|
local HUES = {
|
||||||
"red",
|
"red",
|
||||||
"orange",
|
"orange",
|
||||||
@ -31,13 +36,6 @@ local HUES = {
|
|||||||
"lightgrey",
|
"lightgrey",
|
||||||
"white"
|
"white"
|
||||||
}
|
}
|
||||||
local TYPES = {
|
|
||||||
"clayblock_",
|
|
||||||
"clay_",
|
|
||||||
"brick_",
|
|
||||||
"brickblock_",
|
|
||||||
"multicolor_"
|
|
||||||
}
|
|
||||||
local SATURATION = {
|
local SATURATION = {
|
||||||
"_s50",
|
"_s50",
|
||||||
""
|
""
|
||||||
@ -68,13 +66,6 @@ local FORMALHUES = {
|
|||||||
"Light grey",
|
"Light grey",
|
||||||
"White"
|
"White"
|
||||||
}
|
}
|
||||||
local FORMALTYPES = {
|
|
||||||
" clay",
|
|
||||||
" clay lump",
|
|
||||||
" brick",
|
|
||||||
" bricks",
|
|
||||||
" multicolor bricks"
|
|
||||||
}
|
|
||||||
local FORMALSATURATION = {
|
local FORMALSATURATION = {
|
||||||
" (low saturation)",
|
" (low saturation)",
|
||||||
""
|
""
|
||||||
@ -190,7 +181,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_dark", {
|
|||||||
"unifiedbricks_brickblock_multicolor_dark.png"
|
"unifiedbricks_brickblock_multicolor_dark.png"
|
||||||
},
|
},
|
||||||
overlay_tiles = {
|
overlay_tiles = {
|
||||||
{ name = "unifiedbricks_mortar2.png", color = "white" }
|
{ name = "unifiedbricks_mortar.png", color = "white" }
|
||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
@ -225,7 +216,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_medium", {
|
|||||||
"unifiedbricks_brickblock_multicolor_medium.png"
|
"unifiedbricks_brickblock_multicolor_medium.png"
|
||||||
},
|
},
|
||||||
overlay_tiles = {
|
overlay_tiles = {
|
||||||
{ name = "unifiedbricks_mortar3.png", color = "white" }
|
{ name = "unifiedbricks_mortar.png", color = "white" }
|
||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
@ -260,7 +251,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_light", {
|
|||||||
"unifiedbricks_brickblock_multicolor_light.png"
|
"unifiedbricks_brickblock_multicolor_light.png"
|
||||||
},
|
},
|
||||||
overlay_tiles = {
|
overlay_tiles = {
|
||||||
{ name = "unifiedbricks_mortar4.png", color = "white" }
|
{ name = "unifiedbricks_mortar.png", color = "white" }
|
||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
@ -567,8 +558,8 @@ end
|
|||||||
for i = 1,17 do
|
for i = 1,17 do
|
||||||
for j = 1,4 do
|
for j = 1,4 do
|
||||||
if i > 12 then
|
if i > 12 then
|
||||||
formalname = FORMALHUES[i]
|
local formalname = FORMALHUES[i]
|
||||||
name = HUES[i]
|
local name = HUES[i]
|
||||||
if j == 1 then
|
if j == 1 then
|
||||||
unifiedbricks.register_old_static_block(name, formalname, "clayblock")
|
unifiedbricks.register_old_static_block(name, formalname, "clayblock")
|
||||||
elseif j == 4 then
|
elseif j == 4 then
|
||||||
@ -576,6 +567,7 @@ for i = 1,17 do
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
for k = 1,4 do
|
for k = 1,4 do
|
||||||
|
local formalname, name
|
||||||
if k == 4 then
|
if k == 4 then
|
||||||
formalname = FORMALDARKNESS[k] .. FORMALHUES[i]
|
formalname = FORMALDARKNESS[k] .. FORMALHUES[i]
|
||||||
name = DARKNESS[k] .. HUES[i]
|
name = DARKNESS[k] .. HUES[i]
|
||||||
|
4
mod.conf
4
mod.conf
@ -1,5 +1,3 @@
|
|||||||
name = unifiedbricks
|
name = unifiedbricks
|
||||||
title = Unified Bricks
|
|
||||||
description = This mod allows the user to re-color default bricks using Unified Dyes, and provides some pattern variations as well.
|
description = This mod allows the user to re-color default bricks using Unified Dyes, and provides some pattern variations as well.
|
||||||
depends = default,unifieddyes
|
depends = default, bucket, unifieddyes, vessels
|
||||||
optional_depends = moreblocks
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 170 B |
Binary file not shown.
Before Width: | Height: | Size: 170 B |
Binary file not shown.
Before Width: | Height: | Size: 170 B |
Loading…
Reference in New Issue
Block a user