Page Menu
Home
1F616EMO Bugtracker
Search
Configure Global Search
Log In
Files
F145012
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/ethereal_mod/init.lua b/ethereal_mod/init.lua
index a2261a6..a190279 100644
--- a/ethereal_mod/init.lua
+++ b/ethereal_mod/init.lua
@@ -1,72 +1,80 @@
-- 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.
]]
-- 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
minetest.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(minetest.registered_nodes[name].groups or {})
groups.coral = 1
minetest.override_item(name, {
groups = groups
})
end
end
-- Remove flight potion
minetest.override_item("ethereal:flight_potion", {
on_use = function(itemstack, user, pointed_thing)
if user:is_player() then
minetest.chat_send_player(user:get_player_name(), S("The flight potion is disabled."))
end
return itemstack
end
})
minetest.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
\ No newline at end of file
diff --git a/ethereal_mod/mod.conf b/ethereal_mod/mod.conf
index 7275fb0..4f4afc5 100644
--- a/ethereal_mod/mod.conf
+++ b/ethereal_mod/mod.conf
@@ -1,2 +1,2 @@
name = ethereal_mod
-depends = ethereal
\ No newline at end of file
+depends = ethereal, twi_fx
\ No newline at end of file
diff --git a/twi_fx/init.lua b/twi_fx/init.lua
new file mode 100644
index 0000000..7b669bc
--- /dev/null
+++ b/twi_fx/init.lua
@@ -0,0 +1,35 @@
+-- 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
diff --git a/twi_fx/mod.conf b/twi_fx/mod.conf
new file mode 100644
index 0000000..ea1399c
--- /dev/null
+++ b/twi_fx/mod.conf
@@ -0,0 +1,2 @@
+name = twi_fx
+depends = moreblocks
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Oct 30, 3:38 PM (16 h, 20 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
24/3e/8a8dd7efcdc7f856d498997f5900
Default Alt Text
(4 KB)
Attached To
Mode
rTWIMODS Survival Server Custom Modifications
Attached
Detach File
Event Timeline
Log In to Comment