Improve mapgen, add grass, and include the fill tool.
This commit is contained in:
parent
1e897665bb
commit
4659a008ac
86 changed files with 1098 additions and 293 deletions
57
mods/rgt_origins/init.lua
Normal file
57
mods/rgt_origins/init.lua
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
local ns = rgt
|
||||
|
||||
ns.origins = {}
|
||||
|
||||
local db = minetest.get_mod_storage()
|
||||
|
||||
--[[
|
||||
{
|
||||
name = "human", -- The name of this origin.
|
||||
label = "Human", -- The user-facing name.
|
||||
base_hp = 20, -- The base HP of this origin.
|
||||
properties = {...}, -- Object properties overridden by this origin.
|
||||
abilities = {
|
||||
|
||||
},
|
||||
on_apply = function(m) end, -- Called when this origin is first applied to a player.
|
||||
on_join = function(m) end, -- Called when a player with this origin joins.
|
||||
on_leave = function(m) end, -- Called when a player with this origin leaves.
|
||||
tick = function(m) end, -- Called every globalstep for each player that has this origin.
|
||||
}
|
||||
--]]
|
||||
function ns.register_origin(def)
|
||||
ns.origins[def.name] = def
|
||||
end
|
||||
|
||||
include_all "origins"
|
||||
|
||||
|
||||
local REALM_START = 30500
|
||||
local REALM_END = 31000
|
||||
|
||||
rgt_realms.register_realm {
|
||||
name = "startroom",
|
||||
label = "Start Room",
|
||||
min = vector.new(-100, REALM_START, -100),
|
||||
max = vector.new(100, REALM_END, 100),
|
||||
sky = {
|
||||
type = "plain",
|
||||
base_color = "#000",
|
||||
-- fog = {
|
||||
-- fog_distance = 20,
|
||||
-- fog_start = 0.3,
|
||||
-- fog_color = "#aab"
|
||||
-- }
|
||||
}
|
||||
}
|
||||
|
||||
if not db:contains "initialized" then
|
||||
minetest.after(0, function()
|
||||
local pos = vector.new(0, REALM_START +100, 0)
|
||||
minetest.emerge_area(pos, pos, function()
|
||||
say(pos:to_string())
|
||||
minetest.set_node(pos, {name = "stone"})
|
||||
end)
|
||||
db:set_string("initialized", "true")
|
||||
end)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue