Page Menu
Home
1F616EMO Bugtracker
Search
Configure Global Search
Log In
Files
F155936
init.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
init.lua
View Options
-- twi_mods/ethereal_mod/init.lua
-- Ethereal modifications
--[[
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.
]]
local
S
=
core
.
get_translator
(
"ethereal_mod"
)
-- place_param2 = 0
local
node_list
=
{
"ethereal:basandra_wood"
,
"ethereal:sakura_wood"
,
"ethereal:willow_wood"
,
"ethereal:redwood_wood"
,
"ethereal:frost_wood"
,
"ethereal:yellow_wood"
,
"ethereal:palm_wood"
,
"ethereal:banana_wood"
,
"ethereal:birch_wood"
,
"ethereal:olive_wood"
,
}
for
_
,
name
in
ipairs
(
node_list
)
do
core
.
override_item
(
name
,
{
place_param2
=
0
})
end
-- Coral group
for
_
,
prefix
in
ipairs
({
"coral2"
,
"coral3"
,
"coral4"
,
"coral5"
})
do
for
_
,
var
in
ipairs
({
""
,
"_rooted"
})
do
local
name
=
"ethereal:"
..
prefix
..
var
local
groups
=
table
.
copy
(
core
.
registered_nodes
[
name
].
groups
or
{})
groups
.
coral
=
1
core
.
override_item
(
name
,
{
groups
=
groups
})
end
end
-- Remove flight potion
core
.
override_item
(
"ethereal:flight_potion"
,
{
on_use
=
function
(
itemstack
,
user
,
pointed_thing
)
if
user
:
is_player
()
then
core
.
chat_send_player
(
user
:
get_player_name
(),
S
(
"The flight potion is disabled."
))
end
return
itemstack
end
})
core
.
clear_craft
({
output
=
"ethereal:flight_potion"
,
})
-- Stairsplus for mosses
for
_
,
name
in
ipairs
({
"crystal"
,
"mushroom"
,
"fiery"
,
"gray"
,
"green"
,
})
do
twi_fx
.
register_all_stairsplus
(
"ethereal"
,
name
..
"_moss"
)
end
-- alloying recipe of crystal ingots
technic
.
register_alloy_recipe
({
input
=
{
"ethereal:crystal_spike"
,
"default:mese_crystal"
},
output
=
"ethereal:crystal_ingot"
,
})
-- Reduce selection box height of fern
core
.
override_item
(
"ethereal:fern"
,
{
selection_box
=
{
type
=
"fixed"
,
fixed
=
{
-
5
/
16
,
-
0.5
,
-
5
/
16
,
5
/
16
,
7
/
16
,
5
/
16
}
}
})
-- Allow crafting oil extract from bush and mushroom top
for
_
,
name
in
ipairs
({
"ethereal:bush"
,
"ethereal:bush2"
,
"ethereal:bush3"
,
"ethereal:mushroom_pore"
,
"ethereal:mushroom"
,
"ethereal:mushroom_brown"
,
})
do
twi_fx
.
override_group
(
name
,
{
leaves
=
1
,
})
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 26, 2:14 AM (6 d, 2 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a0/99/aa40936569ca11a17a0caa2de7d0
Default Alt Text
init.lua (3 KB)
Attached To
Mode
rTWIMODS Survival Server Custom Modifications
Attached
Detach File
Event Timeline
Log In to Comment