-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move media mod into proper game textures folder * namespace the easy mods * add .luacheckrc file so my editor stops warning me * toss schematics mod since unused and better alternatives exist on cdb * namespace mapgen mod * fix some luacheck warnings * licensing * namespace track mod * namespace trees mod * add luacheck action * fix luacheck warnings in driftgame
- Loading branch information
Showing
50 changed files
with
153 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
unused_args = false | ||
allow_defined_top = true | ||
|
||
exclude_files = {".luacheckrc"} | ||
|
||
globals = { | ||
"minetest", "core", | ||
|
||
--mod provided | ||
"player_api", | ||
} | ||
|
||
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 | ||
|
||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- Register light | ||
|
||
minetest.register_node("dg_light:light", { | ||
description = "Light", | ||
tiles = {"dg_light_light.png"}, | ||
paramtype = "light", | ||
light_source = 14, | ||
is_ground_content = false, | ||
groups = {dig_immediate = 2}, | ||
}) | ||
|
||
-- Give to new player | ||
|
||
minetest.register_on_newplayer(function(player) | ||
local inv = player:get_inventory() | ||
inv:add_item("main", "dg_light:light 64") | ||
end) | ||
|
||
-- legacy compat (does require any nodes in inv to be placed and dug again for stacks to work) | ||
minetest.register_alias("light:light", "dg_light:light") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
Oops, something went wrong.