From 3d7910f2fd7daa10e039a0109aef961edac24010 Mon Sep 17 00:00:00 2001 From: Buckaroo Banzai <39065740+BuckarooBanzay@users.noreply.github.com> Date: Mon, 12 Dec 2022 10:36:02 +0100 Subject: [PATCH] register some nodes to the `letters` mod (#76) Co-authored-by: BuckarooBanzay --- .luacheckrc | 4 ++-- init.lua | 5 +++++ letters.lua | 5 +++++ mod.conf | 3 ++- 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 letters.lua diff --git a/.luacheckrc b/.luacheckrc index f392828..ce9f8ea 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -21,6 +21,6 @@ read_globals = { "screwdriver", "minetest", "mesecon", - "unifieddyes" - + "unifieddyes", + "letters" } diff --git a/init.lua b/init.lua index 2d19d68..6e9cb4b 100644 --- a/init.lua +++ b/init.lua @@ -32,3 +32,8 @@ dofile(MP.."/models.lua") dofile(MP.."/octagon_panes.lua") dofile(MP.."/forcefield.lua") dofile(MP.."/crafts.lua") + +if minetest.get_modpath("letters") then + -- register letter nodes + dofile(MP.."/letters.lua") +end \ No newline at end of file diff --git a/letters.lua b/letters.lua new file mode 100644 index 0000000..5314434 --- /dev/null +++ b/letters.lua @@ -0,0 +1,5 @@ +letters.register_letters("scifi_nodes", "black", "scifi_nodes:black", "Black wall", "scifi_nodes_black.png") +letters.register_letters("scifi_nodes", "white2", "scifi_nodes:white2", "Plastic", "scifi_nodes_white2.png") +letters.register_letters("scifi_nodes", "purple", "scifi_nodes:purple", "Purple node", "scifi_nodes_purple.png") +letters.register_letters("scifi_nodes", "bluemetal", "scifi_nodes:bluemetal", "Blue metal", "scifi_nodes_bluemetal.png") +letters.register_letters("scifi_nodes", "greenmetal", "scifi_nodes:greenmetal", "Green metal", "scifi_nodes_greenmetal.png") diff --git a/mod.conf b/mod.conf index e2bd59f..6ace87b 100644 --- a/mod.conf +++ b/mod.conf @@ -11,5 +11,6 @@ mesecons_torch, mesecons_receiver, basic_materials, dye, -unifieddyes +unifieddyes, +letters """