New Schem system, Added Wither Spawning
This commit is contained in:
parent
c428e0a93a
commit
4ddcec6dda
7
init.lua
7
init.lua
@ -1,5 +1,7 @@
|
||||
skycraft = {}
|
||||
|
||||
skycraft.modpath = minetest.get_modpath("skycraft")
|
||||
|
||||
do
|
||||
local file = io.open(minetest.get_worldpath() .. "/skycraft", "r")
|
||||
if file then
|
||||
@ -18,11 +20,10 @@ end)
|
||||
|
||||
minetest.register_privilege("skycraft", "Use Skycraft commands")
|
||||
|
||||
local modpath = minetest.get_modpath("skycraft")
|
||||
local modules = minetest.deserialize(io.open(modpath .. "/modules.txt", "r"):read())
|
||||
local modules = minetest.deserialize(io.open(skycraft.modpath .. "/modules.txt", "r"):read())
|
||||
local function load_module(m)
|
||||
for _, f in pairs(modules[m]) do
|
||||
dofile(modpath .. "/src/" .. m .. "/" .. f .. ".lua")
|
||||
dofile(skycraft.modpath .. "/src/" .. m .. "/" .. f .. ".lua")
|
||||
end
|
||||
end
|
||||
load_module("common")
|
||||
|
@ -1 +1 @@
|
||||
return {common={"common","random","request",},main={"commands","flower_spread","lobby","lucky_block","mapgen","money","plots","ranks","spawns","tpa","trade",},onload={"lava_cooling","lobby_load","monster_egg_stone_block","nether_portal","sapling_mutation","shop","spawn","void",},}
|
||||
return {common={"common","random","request","schems",},main={"commands","flower_spread","lobby","lucky_block","mapgen","money","plots","ranks","spawns","tpa","trade","wither_spawn",},onload={"lava_cooling","lobby_load","monster_egg_stone_block","nether_portal","sapling_mutation","shop","spawn","void",},}
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user