Update from 22.06.2025: add MapGen mod outline, fix some require() issues

This commit is contained in:
2025-06-22 19:20:06 +07:00
parent 50606c7dfe
commit c0de09d597
45 changed files with 621 additions and 119 deletions

View File

@@ -0,0 +1,41 @@
local Item = {}
--- @class ItemDefinition
--- @field settings table
local ItemDefinition = {
settings = {
name = '',
title = '',
description = '',
visual = '', -- '3d' | 'flat'
},
callbacks = {
...
},
}
--- @param itemDef ItemDefinition
local function itemDefToLuantiDef(itemDef)
local s = itemDef.settings
local c = itemDef.callbacks
local luantiDef = table.copy(c)
return luantiDef
end
local function register3dItem(luantiDef)
local ld = luantiDef
core.register_node(ld.name, {
description = ld.description
})
end
local function registerFlatItem(luantiDef)
end
function Item:new(itemDef)
local item = {}
end