initial work

This commit is contained in:
FaceDeer
2022-08-01 11:51:14 -06:00
parent 47a63a1f09
commit 1d8cb46272
7 changed files with 63 additions and 34 deletions

View File

@ -0,0 +1,3 @@
The DF_Caverns modpack was originally written based on the minetest_game. It made extensive use of various nodes and helper functions that came from minetest_game's constituent mods.
When Mineclone games rose in popularity, the task of making it compatible was a daunting one - there were dependencies on minetest_game's mods scattered everywhere. To make the task manageable, I created this mod to serve as a central location where analogous objects could be taken from those games to be referenced in a generic way.

View File

23
df_dependencies/init.lua Normal file
View File

@ -0,0 +1,23 @@
df_dependencies = {}
local modpath = minetest.get_modpath(minetest.get_current_modname())
local debug_dump = false
if minetest.get_modpath("default") then
dofile(modpath.."/default.lua")
end
if debug_dump then
local file = io.open(minetest.get_worldpath().."/df_dependencies.json", "w")
if file then
local items = {}
for item, _ in pairs(df_dependencies) do
table.insert(items, item)
end
table.sort(items)
file:write(minetest.serialize(items))
file:close()
end
end
-- This mod is meant to only exist at initialization time. Other mods should make copies of anything it points to for their own use.
minetest.after(1, function() df_dependencies = nil end)

4
df_dependencies/mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = df_dependencies
description = A utility mod for df_caverns that gathers all dependencies on the default minetest_game in one place, to ease compatibility efforts with mineclone and other such non-default games
depends = default
optional_depends =