Page Menu
Home
1F616EMO Bugtracker
Search
Configure Global Search
Log In
Files
F150866
init.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
init.lua
View Options
-- twi_mods/elevator_mod/init.lua
-- Modify elevator
--[[
ISC License
Copyright (c) 2017 Beha
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
]]
-- 1. Override tiles to use Technic's iron texture
for
_
,
name
in
ipairs
({
"elevator:motor"
,
"elevator:elevator_box"
,
"elevator:elevator_on"
})
do
local
tiles
=
table
.
copy
(
core
.
registered_nodes
[
name
].
tiles
or
{})
for
i
,
texture
in
ipairs
(
tiles
)
do
if
texture
==
"default_steel_block.png"
then
tiles
[
i
]
=
"technic_wrought_iron_block.png"
end
end
core
.
override_item
(
name
,
{
tiles
=
tiles
,
})
end
-- 2. Restore farming redo-based recipes
core
.
register_craft
({
output
=
"elevator:elevator_off"
,
recipe
=
{
{
"technic:cast_iron_ingot"
,
"farming:hemp_rope"
,
"technic:cast_iron_ingot"
},
{
"technic:cast_iron_ingot"
,
"default:mese_crystal"
,
"technic:cast_iron_ingot"
},
{
"technic:stainless_steel_ingot"
,
"default:glass"
,
"technic:stainless_steel_ingot"
},
},
})
core
.
register_craft
({
output
=
"elevator:shaft"
,
recipe
=
{
{
"technic:cast_iron_ingot"
,
"default:glass"
},
{
"default:glass"
,
"farming:hemp_rope"
},
},
})
core
.
register_craft
({
output
=
"elevator:motor"
,
recipe
=
{
{
"default:diamond"
,
"technic:control_logic_unit"
,
"default:diamond"
},
{
"default:steelblock"
,
"technic:motor"
,
"default:steelblock"
},
{
"farming:hemp_rope"
,
"default:diamond"
,
"farming:hemp_rope"
}
},
})
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jan 6 2026, 11:21 PM (8 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
91/b8/af75811df6443e8ff4fe37b5f3e9
Default Alt Text
init.lua (2 KB)
Attached To
Mode
rTWIMODS Survival Server Custom Modifications
Attached
Detach File
Event Timeline
Log In to Comment