Organize mods into modpacks for better overview
This commit is contained in:
parent
f9db58bf50
commit
3696ee3761
1683 changed files with 0 additions and 0 deletions
18
mods/CORE/mcl_autogroup/init.lua
Normal file
18
mods/CORE/mcl_autogroup/init.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
-- Automatically assign the “solid” group for solid nodes
|
||||
local overwrite = function()
|
||||
for nname, ndef in pairs(minetest.registered_nodes) do
|
||||
if (ndef.walkable == nil or ndef.walkable == true)
|
||||
and (ndef.collision_box == nil or ndef.collision_box.type == "regular")
|
||||
and (ndef.node_box == nil or ndef.node_box.type == "regular")
|
||||
and (ndef.groups.falling_node == 0 or ndef.groups.falling_node == nil)
|
||||
and (ndef.groups.not_solid == 0 or ndef.groups.not_solid == nil) then
|
||||
local groups = table.copy(ndef.groups)
|
||||
groups.solid = 1
|
||||
minetest.override_item(nname, {
|
||||
groups = groups
|
||||
})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
overwrite()
|
1
mods/CORE/mcl_autogroup/mod.conf
Normal file
1
mods/CORE/mcl_autogroup/mod.conf
Normal file
|
@ -0,0 +1 @@
|
|||
name = mcl_autogroup
|
Loading…
Add table
Add a link
Reference in a new issue