-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add luacheck * add mod.conf remove depends.txt * locale: remove unused string * move global definition to top along with 'global' functions * whitespace and indentation fix part 1 also minetest.* to core.* * move lines part 2 * move crafting recipes to own file * update some comments some comment code comming in subsequent commits * cleanup unified_inventory handling also add blank sticker to unified_inventory * re-order crafts and add missing recycling recipes * amendment to unified_inventory cleanup * rename vars to avoid shadowing to help understand also minetest -> core * fix blank sticker mess * whitespace changes * use double quotes in user facing strings * remove or comment out not needed lines * add sticker group for recycling recepes * add stray blank sticker registration * use moder meta getting method * reduce chat spam * formspec: remove depricated 'invsize' * formspec: add listring So shift-clicking stacks works * use ipairs not pairs for looping list * simplify logic and reduce amount of indents needed * cleanup: stray stuff * Some more comment tweaks * Separate block and sticker description * locale updates * drop intllib and use core translation * locale add Spanish and Catalán * update changelog and tweak some capitalization issues
- Loading branch information
Showing
16 changed files
with
536 additions
and
615 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,10 @@ | ||
globals = { | ||
"ehlphabet", | ||
} | ||
|
||
read_globals = { | ||
"core", | ||
"screwdriver", | ||
"unified_inventory", | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
-- TODO: xcompat: paper, stick, coal lump | ||
|
||
if ehlphabet.has_unified_inventory then | ||
unified_inventory.register_craft_type("ehlphabet", { | ||
description = "Printing", | ||
icon = 'ehlphabet_machine_front.png', | ||
width = 1, | ||
height = 1, | ||
}) | ||
|
||
unified_inventory.register_craft({ | ||
type = "ehlphabet", | ||
items = { "default:paper" }, | ||
output = "ehlphabet:32_sticker", | ||
}) | ||
end | ||
|
||
-- Build the machine! | ||
core.register_craft({ | ||
output = "ehlphabet:machine", | ||
recipe = { | ||
{ "default:stick", "default:coal_lump", "default:stick" }, | ||
{ "default:coal_lump", "ehlphabet:block", "default:coal_lump" }, | ||
{ "default:stick", "default:coal_lump", "default:stick" }, | ||
}, | ||
}) | ||
|
||
-- Blank blocks. | ||
core.register_craft({ | ||
output = "ehlphabet:block 8", | ||
recipe = { | ||
{ "default:paper", "default:paper", "default:paper" }, | ||
{ "default:paper", "", "default:paper" }, | ||
{ "default:paper", "default:paper", "default:paper" }, | ||
}, | ||
}) | ||
|
||
-- Uncraft blocks back into paper | ||
core.register_craft({ | ||
output = "default:paper", | ||
recipe = { "ehlphabet:block" }, | ||
type = "shapeless", | ||
}) | ||
|
||
-- Recycle printed blocks. | ||
core.register_craft({ | ||
type = "shapeless", | ||
output = "ehlphabet:block", | ||
recipe = { "group:ehlphabet_block" }, | ||
}) | ||
|
||
-- Recycle printed stickers. | ||
core.register_craft({ | ||
type = "shapeless", | ||
output = "default:paper", | ||
recipe = { "group:ehlphabet_sticker" }, | ||
}) | ||
|
||
-- Chinese character blocks - craft from latin characters. | ||
core.register_craft({ | ||
output = "ehlphabet:231140 4", | ||
recipe = { | ||
{ "", "", "" }, | ||
{ "ehlphabet:78", "", "" }, | ||
{ "ehlphabet:69", "ehlphabet:75", "ehlphabet:79" }, | ||
}, | ||
}) | ||
|
||
core.register_craft({ | ||
output = "ehlphabet:229140 5", | ||
recipe = { | ||
{ "ehlphabet:78", "ehlphabet:79", "ehlphabet:82" }, | ||
{ "ehlphabet:84", "ehlphabet:72", "" }, | ||
{ "", "", "" }, | ||
}, | ||
}) | ||
|
||
core.register_craft({ | ||
output = "ehlphabet:228184 5", | ||
recipe = { | ||
{ "ehlphabet:69", "ehlphabet:65", "ehlphabet:83" }, | ||
{ "ehlphabet:84", "", "ehlphabet:83" }, | ||
{ "", "", "" }, | ||
}, | ||
}) | ||
|
||
core.register_craft({ | ||
output = "ehlphabet:230157 5", | ||
recipe = { | ||
{ "ehlphabet:69", "ehlphabet:65", "ehlphabet:83" }, | ||
{ "ehlphabet:84", "", "ehlphabet:84" }, | ||
{ "", "", "" }, | ||
}, | ||
}) | ||
|
||
core.register_craft({ | ||
output = "ehlphabet:229141 5", | ||
recipe = { | ||
{ "ehlphabet:83", "ehlphabet:79", "ehlphabet:85" }, | ||
{ "ehlphabet:84", "ehlphabet:72", "" }, | ||
{ "", "", "" }, | ||
}, | ||
}) | ||
|
||
core.register_craft({ | ||
output = "ehlphabet:232165 4", | ||
recipe = { | ||
{ "ehlphabet:87", "ehlphabet:69", "ehlphabet:83" }, | ||
{ "ehlphabet:84", "", "" }, | ||
{ "", "", "" }, | ||
}, | ||
}) | ||
|
||
core.register_craft({ | ||
output = "ehlphabet:231171 7", | ||
recipe = { | ||
{ "ehlphabet:83", "ehlphabet:84", "ehlphabet:65" }, | ||
{ "ehlphabet:84", "ehlphabet:73", "ehlphabet:79" }, | ||
{ "ehlphabet:78", "", "" }, | ||
}, | ||
}) | ||
|
||
-- Chinese stickers. | ||
core.register_craft({ | ||
output = "ehlphabet:231140_sticker 4", | ||
recipe = { | ||
{ "", "", ""}, | ||
{ "ehlphabet:78_sticker", "", "" }, | ||
{ "ehlphabet:69_sticker", "ehlphabet:75_sticker", "ehlphabet:79_sticker" }, | ||
}, | ||
}) | ||
|
||
core.register_craft({ | ||
output = "ehlphabet:229140_sticker 5", | ||
recipe = { | ||
{ "ehlphabet:78_sticker", "ehlphabet:79_sticker", "ehlphabet:82_sticker" }, | ||
{ "ehlphabet:84_sticker", "ehlphabet:72_sticker", "" }, | ||
{ "", "", "" }, | ||
}, | ||
}) | ||
|
||
core.register_craft({ | ||
output = "ehlphabet:228184_sticker 5", | ||
recipe = { | ||
{ "ehlphabet:69_sticker", "ehlphabet:65_sticker", "ehlphabet:83_sticker" }, | ||
{ "ehlphabet:84_sticker", "", "ehlphabet:83_sticker" }, | ||
{ "", "", "" }, | ||
}, | ||
}) | ||
|
||
core.register_craft({ | ||
output = "ehlphabet:230157_sticker 5", | ||
recipe = { | ||
{ "ehlphabet:69_sticker", "ehlphabet:65_sticker", "ehlphabet:83_sticker" }, | ||
{ "ehlphabet:84_sticker", "", "ehlphabet:84_sticker" }, | ||
{ "", "", "" }, | ||
}, | ||
}) | ||
|
||
core.register_craft({ | ||
output = "ehlphabet:229141_sticker 5", | ||
recipe = { | ||
{ "ehlphabet:83_sticker", "ehlphabet:79_sticker", "ehlphabet:85_sticker" }, | ||
{ "ehlphabet:84_sticker", "ehlphabet:72_sticker", "" }, | ||
{ "", "", "" }, | ||
}, | ||
}) | ||
|
||
core.register_craft({ | ||
output = "ehlphabet:232165_sticker 4", | ||
recipe = { | ||
{ "ehlphabet:87_sticker", "ehlphabet:69_sticker", "ehlphabet:83_sticker" }, | ||
{ "ehlphabet:84_sticker", "", "" }, | ||
{ "", "", "" }, | ||
}, | ||
}) | ||
|
||
core.register_craft({ | ||
output = "ehlphabet:231171_sticker 7", | ||
recipe = { | ||
{ "ehlphabet:83_sticker", "ehlphabet:84_sticker", "ehlphabet:65_sticker" }, | ||
{ "ehlphabet:84_sticker", "ehlphabet:73_sticker", "ehlphabet:79_sticker" }, | ||
{ "ehlphabet:78_sticker", "", "" }, | ||
}, | ||
}) | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.