Compare commits

...

5 Commits

Author SHA1 Message Date
wsor4035 a368479955
fix link 2022-08-21 22:07:31 -04:00
unknown e9ed181869 update nodes for new texture alpha options 2022-08-21 21:11:34 -04:00
unknown 097b13ea02 actually fix all luacheck warnings 2022-08-21 21:09:09 -04:00
unknown caea107393 add luacheck, github action for luacheck, fix luacheck warnings, remove depreciated files 2022-08-21 21:07:34 -04:00
ezhh eec4fcdc54 Improve cage glass 2017-08-13 10:20:55 +01:00
10 changed files with 72 additions and 21 deletions

18
.github/workflows/luacheck.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: luacheck
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: apt
run: sudo apt-get install -y luarocks
- name: luacheck install
run: luarocks install --local luacheck
- name: luacheck run
run: $HOME/.luarocks/bin/luacheck ./

25
.luacheckrc Normal file
View File

@ -0,0 +1,25 @@
unused_args = false
allow_defined_top = true
exclude_files = {".luacheckrc"}
globals = {
"minetest", "core",
--mod provided
"abriglass",
}
read_globals = {
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},
--luac
"math", "table",
-- Builtin
"vector", "ItemStack", "dump", "DIR_DELIM", "VoxelArea", "Settings", "PcgRandom", "VoxelManip", "PseudoRandom",
--mod produced
"default",
}

View File

@ -38,4 +38,4 @@ Textures for this mod are released under CC BY-SA 4.0 (https://creativecommons.o
Recommended Additions
-----------------------
- [abriflame](https://github.com/Ezhh/abriflame) allows coloured flames to be lit on coloured glass nodes.
- [abriflame](https://github.com/mt-mods/abriflame) allows coloured flames to be lit on coloured glass nodes.

View File

@ -15,7 +15,6 @@ local plain_colors = {
"green", "blue", "red", "yellow",
}
local i
for i in ipairs(plain_colors) do
local name = plain_colors[i]
local nodesuffix = 'glass_light_'..name
@ -137,7 +136,15 @@ minetest.register_craft({
-- cooking recipes
local cook_list = { "stainedglass_pattern01", "stainedglass_pattern02", "stainedglass_pattern03", "stainedglass_pattern04", "stainedglass_pattern05", "stainedglass_tiles_dark", "stainedglass_tiles_pale"}
local cook_list = {
"stainedglass_pattern01",
"stainedglass_pattern02",
"stainedglass_pattern03",
"stainedglass_pattern04",
"stainedglass_pattern05",
"stainedglass_tiles_dark",
"stainedglass_tiles_pale"
}
for i = 1, #cook_list do
local name = cook_list[i]

View File

@ -1,2 +0,0 @@
default
dye

View File

@ -1 +0,0 @@
Adds coloured glass, patterned stained glass, glass lights and one way windows.

View File

@ -4,3 +4,5 @@ abriglass = {}
dofile(modpath.."nodes.lua")
dofile(modpath.."crafting.lua")
abriglass.init = true

View File

@ -1 +1,3 @@
name = abriglass
depends = default, dye
description = Adds coloured glass, patterned stained glass, glass lights and one way windows.

View File

@ -17,7 +17,7 @@ for i in ipairs(glass_list) do
description = description.." Glass",
tiles = {"abriglass_plainglass.png^[colorize:#"..colour..":122"},
groups = {cracky = 3},
use_texture_alpha = true,
use_texture_alpha = "blend",
sunlight_propagates = true,
light_source = 4,
drawtype = "glasslike",
@ -32,7 +32,7 @@ minetest.register_node("abriglass:clear_glass", {
description = "Clear Glass",
tiles = {"abriglass_clearglass.png"},
groups = {cracky = 3},
use_texture_alpha = true,
use_texture_alpha = "blend",
sunlight_propagates = true,
paramtype = "light",
drawtype = "glasslike",
@ -57,7 +57,7 @@ for i in ipairs(light_list) do
description = description.. "Glass Light",
tiles = {"abriglass_" ..image.. ".png"},
groups = {cracky = 3},
use_texture_alpha = true,
use_texture_alpha = "blend",
sunlight_propagates = true,
light_source = 14,
drawtype = "glasslike",
@ -87,7 +87,7 @@ for i in ipairs(pattern_list) do
description = description,
tiles = {"abriglass_"..image..".png"},
groups = {cracky = 3},
use_texture_alpha = true,
use_texture_alpha = "blend",
sunlight_propagates = true,
light_source = 5,
drawtype = "glasslike",
@ -194,7 +194,7 @@ minetest.register_node("abriglass:ghost_crystal", {
tiles = {"abriglass_ghost_crystal.png"},
wield_image = "abriglass_ghost_crystal_wield.png",
groups = {cracky = 3},
use_texture_alpha = true,
use_texture_alpha = "blend",
sunlight_propagates = true,
light_source = 14,
drawtype = "glasslike",
@ -208,7 +208,7 @@ minetest.register_node("abriglass:hidden_light", {
description = "Hidden Light",
tiles = {"abriglass_oneway_plain_glass.png"},
groups = {cracky = 3, not_in_creative_inventory=1},
use_texture_alpha = true,
use_texture_alpha = "blend",
sunlight_propagates = true,
walkable = false,
light_source = 7,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB