Page Menu
Home
1F616EMO Bugtracker
Search
Configure Global Search
Log In
Files
F156288
init.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
998 B
Referenced Files
None
Subscribers
None
init.lua
View Options
-- 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
)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 28, 6:25 PM (3 d, 7 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3b/41/ed9fc74187fc6af7233f98a3e418
Default Alt Text
init.lua (998 B)
Attached To
Mode
rTWIMODS Survival Server Custom Modifications
Attached
Detach File
Event Timeline
Log In to Comment