-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.lua
79 lines (64 loc) · 1.79 KB
/
settings.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
-- Slingshot settings
--- Slingshot mod settings.
--
-- @module settings
--- Slingshot specific settings.
--
-- Settings unique to this mod.
--
-- @section settings_specific
--- Use old 16x16 textures.
--
-- @setting slingshot.old_textures
-- @settype bool
-- @default false
slingshot.old_textures = core.settings:get_bool("slingshot.old_textures", false)
--- Value of these items will be added to slingshot attack when thrown.
--
-- @setting slingshot.ammos
-- @settype string
-- @default default:mese_crystal=5
slingshot.ammos = core.settings:get("slingshot.ammos") or "default:mese_crystal=5"
--- General settings.
--
-- Settings commom to core & other mods.
--
-- @section settings_general
--- Enables/Disables wear when used.
--
-- @setting enable_weapon_wear
-- @settype bool
-- @default true
slingshot.enable_wear = core.settings:get_bool("enable_weapon_wear", true)
--- Log extra messages.
--
-- @setting log_mods
-- @settype bool
-- @default false
slingshot.log_mods = core.settings:get_bool("log_mods", false)
--- Log extra debug messages.
--
-- @setting enable_debug_mods
-- @settype bool
-- @default false
slingshot.debug = core.settings:get_bool("enable_debug_mods", false)
--- Determines if game is being run in creative mode.
--
-- @setting creative_mode
-- @settype bool
-- @default false
slingshot.creative = core.settings:get_bool("creative_mode", false)
--- Time in seconds for item entity (dropped items) to live.
--
-- Setting it to -1 disables the feature.
--
-- @setting item_entity_ttl
-- @settype int
-- @default 890
slingshot.thrown_duration = tonumber(core.settings:get("item_entity_ttl")) or 890
--- Determines if PVP is enabled.
--
-- @setting enable_pvp
-- @settype bool
-- @default true
slingshot.enable_pvp = core.settings:get_bool("enable_pvp", true)