forked from AntumLuanti/mod-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.lua
More file actions
24 lines (21 loc) · 815 Bytes
/
Copy pathsettings.lua
File metadata and controls
24 lines (21 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- Entity lifespan.
--
-- @setting skeleton.lifetime
-- @settype int
-- @default 900 (15 minutes)
skeleton.lifetime = tonumber(core.settings:get("skeleton.lifetime")) or 900
--- Spawn rate frequency.
--
--
-- @setting skeleton.spawn_interval
-- @settype int
-- @default 120 (2 minutes)
-- @see [ABM definition](http://minetest.gitlab.io/minetest/definition-tables.html#abm-activeblockmodifier-definition)
skeleton.spawn_interval = tonumber(core.settings:get("skeleton.spawn_interval")) or 120
--- Chance of spawn at interval.
--
-- @setting skeleton.spawn_chance
-- @settype int
-- @default 7000
-- @see [ABM definition](http://minetest.gitlab.io/minetest/definition-tables.html#abm-activeblockmodifier-definition)
skeleton.spawn_chance = tonumber(core.settings:get("skeleton.spawn_chance")) or 7000