And so it begins...
This commit is contained in:
commit
1b8091e26b
55 changed files with 962 additions and 0 deletions
40
mods/artifact_base/init.lua
Normal file
40
mods/artifact_base/init.lua
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
-- "I'll stop calling it Minetest when it stops being one."
|
||||
minetest = core
|
||||
|
||||
artifact = {
|
||||
debug = true
|
||||
}
|
||||
|
||||
-- For brevity.
|
||||
function include(file)
|
||||
dofile(minetest.get_modpath(minetest.get_current_modname()).."/"..file)
|
||||
end
|
||||
|
||||
function enum(cases)
|
||||
local out = {}
|
||||
local i = 0
|
||||
for _, x in ipairs(cases) do
|
||||
out[x] = i
|
||||
i = i +1
|
||||
end
|
||||
return out
|
||||
end
|
||||
|
||||
say = minetest.chat_send_all
|
||||
|
||||
minetest.register_lbm{
|
||||
name = ":artifact:on_load",
|
||||
nodenames = {"group:call_on_load"},
|
||||
action = function(pos, node)
|
||||
minetest.registered_nodes[node.name].on_load(pos)
|
||||
end
|
||||
}
|
||||
|
||||
if artifact.debug then
|
||||
minetest.register_chatcommand("chest", {
|
||||
func = function(name, args)
|
||||
minetest.registered_chatcommands.giveme.func(name, "chest_with_everything:chest")
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
1
mods/artifact_base/mod.conf
Normal file
1
mods/artifact_base/mod.conf
Normal file
|
|
@ -0,0 +1 @@
|
|||
name = artifact_base
|
||||
Loading…
Add table
Add a link
Reference in a new issue