mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-06-28 14:36:20 +02:00
initial work
This commit is contained in:
3
df_dependencies/README.md
Normal file
3
df_dependencies/README.md
Normal 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.
|
0
df_dependencies/default.lua
Normal file
0
df_dependencies/default.lua
Normal file
23
df_dependencies/init.lua
Normal file
23
df_dependencies/init.lua
Normal 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
4
df_dependencies/mod.conf
Normal 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 =
|
Reference in New Issue
Block a user