Page Menu
Home
1F616EMO Bugtracker
Search
Configure Global Search
Log In
Files
F156400
init.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
init.lua
View Options
-- twi_mods/twi_fx/init.lua
-- Common functions
--[[
Copyright © 2024 1F616EMO
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
]]
twi_fx
=
{}
function
twi_fx
.
register_all_stairsplus
(
modname
,
name
)
local
nodename
=
modname
..
":"
..
name
local
def
=
table
.
copy
(
minetest
.
registered_nodes
[
nodename
])
def
.
is_ground_content
=
false
def
.
sunlight_propagates
=
true
stairsplus
:
register_all
(
modname
,
name
,
nodename
,
def
)
end
function
twi_fx
.
chat_send_moderators
(
msg
)
beerchat
.
on_channel_message
(
"Moderators"
,
"SYSTEM"
,
msg
)
end
function
twi_fx
.
override_group
(
name
,
new_groups
)
local
groups
=
table
.
copy
(
minetest
.
registered_items
[
name
].
groups
or
{})
for
k
,
v
in
pairs
(
new_groups
)
do
groups
[
k
]
=
v
==
0
and
nil
or
v
end
minetest
.
override_item
(
name
,
{
groups
=
groups
,
})
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 1, 6:51 AM (2 d, 16 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
92/c3/742ded2aec0be2d0a7b498780a07
Default Alt Text
init.lua (1 KB)
Attached To
Mode
rTWIMODS Survival Server Custom Modifications
Attached
Detach File
Event Timeline
Log In to Comment