This repository has been archived by the owner on Apr 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
init.lua
52 lines (36 loc) · 1.44 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
-- Definitions made by this mod that other mods can use too
aotearoa = {}
aotearoa.path = minetest.get_modpath("aotearoa")
-- Load files
dofile(aotearoa.path .. "/functions.lua")
dofile(aotearoa.path .. "/blocks.lua")
dofile(aotearoa.path .. "/node_defs.lua")
dofile(aotearoa.path .. "/schematics.lua")
dofile(aotearoa.path .. "/mapgen.lua")
dofile(aotearoa.path .. "/trees.lua")
dofile(aotearoa.path .. "/crafting.lua")
--use sounds if possible
if minetest.get_modpath("ambience") then
dofile(aotearoa.path .. "/ambience.lua")
end
minetest.log("MOD: Aotearoa loaded")
----------------------
----------------------
--intro world creation (the geneaology of creation)
--seeds to make up for removing default sources
minetest.register_on_newplayer(function(player)
local you = player:get_player_name()
local inventory = player:get_inventory()
inventory:add_item("main", "farming:seed_wheat 2")
inventory:add_item("main", "farming:seed_cotton 2")
inventory:add_item("main", "default:axe_stone")
minetest.sound_play("te_kore_whakapapa", {to_player = you, gain = 2})
end)
----------------------------------------
--custom groups:
--[[
soft_stone = 1
Soft rocks that can be dug with a shovel (like sandstone and other loosely consolidated sedimentary rocks),
and are unusable for tools. Yet they are still good enough for furnaces etc
(considering mud would be good enough for a furnace.)
]]