Page MenuHome1F616EMO Bugtracker

No OneTemporary

Size
4 KB
Referenced Files
None
Subscribers
None
diff --git a/twi_fx/init.lua b/animalia_mod/init.lua
similarity index 62%
copy from twi_fx/init.lua
copy to animalia_mod/init.lua
index 6c24a90..ec8efc7 100644
--- a/twi_fx/init.lua
+++ b/animalia_mod/init.lua
@@ -1,39 +1,31 @@
--- twi_mods/twi_fx/init.lua
--- Common functions
+-- twi_mods/animalia_mod/init.lua
+-- modification of animalia
--[[
- Copyright © 2024 1F616EMO
+ MIT License
+
+ Copyright (c) 2022 ElCeejo
+ Copyright (c) 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 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.
+ 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
+minetest.override_item("animalia:nest_song_bird", {
+ buildable_to = true,
+ floodable = true,
+})
diff --git a/animalia_mod/mod.conf b/animalia_mod/mod.conf
new file mode 100644
index 0000000..c57814d
--- /dev/null
+++ b/animalia_mod/mod.conf
@@ -0,0 +1,2 @@
+name = animalia_mod
+depends = animalia
diff --git a/twi_fx/init.lua b/twi_fx/init.lua
index 6c24a90..fd38ffb 100644
--- a/twi_fx/init.lua
+++ b/twi_fx/init.lua
@@ -1,39 +1,49 @@
-- 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

Mime Type
text/x-diff
Expires
Wed, Jun 10, 2:15 AM (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
52/3d/9dc989cd80b76b9830bc37792d29
Default Alt Text
(4 KB)

Event Timeline