Page MenuHome1F616EMO Bugtracker

No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None
diff --git a/.COPYING/zlib.md b/.COPYING/zlib.md
new file mode 100644
index 0000000..67f5f7f
--- /dev/null
+++ b/.COPYING/zlib.md
@@ -0,0 +1,13 @@
+# zlib license
+
+Copyright © 2011-2020 Hugo Locurcio and contributors
+
+**This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.**
+
+Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
+
+2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+
+3. This notice may not be removed or altered from any source distribution.
diff --git a/merge_slopes/init.lua b/merge_slopes/init.lua
new file mode 100644
index 0000000..e6f6658
--- /dev/null
+++ b/merge_slopes/init.lua
@@ -0,0 +1,28 @@
+-- twi_mods/merge_slopes/init.lua
+-- Merge Technic CNC slopes and moreblocks slopes
+-- Copyright (C) 2024 1F616EMO
+-- SPDX-License-Identifier: Zlib AND LGPL-2.0-or-later
+
+-- circular_saw.known_nodes[recipeitem] = {modname, subname}
+-- ":"..recipeitem.."_"..suffix
+
+local function handle_single(name)
+ local saw_known_nodes = circular_saw.known_nodes[name]
+ if not saw_known_nodes then return end
+
+ local cnc_node_name = name .. "_technic_cnc_slope"
+ local saw_node_name = saw_known_nodes[1] .. ":slope_" .. saw_known_nodes[2]
+
+ local cnc_node = core.registered_nodes[cnc_node_name]
+ local saw_node = core.registered_nodes[saw_node_name]
+
+ if not (cnc_node and saw_node) then return end
+ core.log("action", "[merge_slopes] Merging " .. cnc_node_name .. " into " .. saw_node_name)
+ core.register_alias_force(cnc_node_name, saw_node_name)
+end
+
+core.register_on_mods_loaded(function()
+ for name in pairs(core.registered_nodes) do
+ handle_single(name)
+ end
+end)
diff --git a/merge_slopes/mod.conf b/merge_slopes/mod.conf
new file mode 100644
index 0000000..d225fda
--- /dev/null
+++ b/merge_slopes/mod.conf
@@ -0,0 +1,2 @@
+name = merge_slopes
+depends = technic_cnc, moreblocks
\ No newline at end of file

File Metadata

Mime Type
text/x-diff
Expires
Mar 19 2026, 11:52 PM (5 w, 6 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ff/2f/d609f04400deb6fb707d5c83f20b
Default Alt Text
(2 KB)

Event Timeline