-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodworldgenmain.lua
More file actions
62 lines (56 loc) · 1.51 KB
/
modworldgenmain.lua
File metadata and controls
62 lines (56 loc) · 1.51 KB
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
53
54
55
56
57
58
59
60
61
62
local modenv = env
GLOBAL.setfenv(1, GLOBAL)
local seed = 325007510 -- change this if you want to try a different map
local map_type = modenv.GetModConfigData("map_gen")
if map_type == "fixed" then
print("Setting world gen random seed")
-- SetWorldGenSeed is not defined yet :/
math.randomseed(seed)
math.random()
SEED = seed
end
LEVELTYPE.GLUTTON = "LEVELTYPE_GLUTTON"
modenv.AddLevel(LEVELTYPE.GLUTTON, {
id = "GLUTTON_FOREST",
name = "Glutton preset",
desc = "Glutton preset description!",
location = "forest",
version = 2,
overrides = {
flint = "often",
grass = "often",
sapling = "often",
carrot = "often",
mushroom = "often",
spiders = "often",
bees = "often",
birds = "often",
butterfly = "always",
ponds = "often",
pigs = "often",
rock = "often",
rabbits = "always",
},
})
modenv.AddLevel(LEVELTYPE.GLUTTON, {
id = "GLUTTON_CAVE",
name = "Glutton preset",
desc = "Glutton preset description!",
location = "cave",
version = 2,
overrides = {
--flint = "often",
grass = "often",
sapling = "often",
carrot = "often",
mushroom = "often",
spiders = "often",
--bees = "often",
--birds = "often",
--butterfly = "always",
ponds = "often",
--pigs = "often",
rock = "often",
--rabbits = "always",
},
})