Compare commits
5 Commits
5fa1ed79e0
...
a368479955
Author | SHA1 | Date |
---|---|---|
wsor4035 | a368479955 | |
unknown | e9ed181869 | |
unknown | 097b13ea02 | |
unknown | caea107393 | |
ezhh | eec4fcdc54 |
|
@ -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 ./
|
|
@ -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",
|
||||
}
|
|
@ -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.
|
11
crafting.lua
11
crafting.lua
|
@ -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]
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
default
|
||||
dye
|
|
@ -1 +0,0 @@
|
|||
Adds coloured glass, patterned stained glass, glass lights and one way windows.
|
2
init.lua
2
init.lua
|
@ -4,3 +4,5 @@ abriglass = {}
|
|||
|
||||
dofile(modpath.."nodes.lua")
|
||||
dofile(modpath.."crafting.lua")
|
||||
|
||||
abriglass.init = true
|
||||
|
|
2
mod.conf
2
mod.conf
|
@ -1 +1,3 @@
|
|||
name = abriglass
|
||||
depends = default, dye
|
||||
description = Adds coloured glass, patterned stained glass, glass lights and one way windows.
|
12
nodes.lua
12
nodes.lua
|
@ -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 |
Loading…
Reference in New Issue