forked from ChimneySwift/fancy_vend
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinit.lua
More file actions
42 lines (39 loc) · 1.92 KB
/
init.lua
File metadata and controls
42 lines (39 loc) · 1.92 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
-- /$$$$$$$$ /$$ /$$ /$$
-- | $$_____/ | $$ | $$ | $$
-- | $$ /$$$$$$ /$$$$$$$ /$$$$$$$ /$$ /$$ | $$ | $$ /$$$$$$ /$$$$$$$ /$$$$$$$
-- | $$$$$|____ $$| $$__ $$ /$$_____/| $$ | $$ | $$ / $$//$$__ $$| $$__ $$ /$$__ $$
-- | $$__/ /$$$$$$$| $$ \ $$| $$ | $$ | $$ \ $$ $$/| $$$$$$$$| $$ \ $$| $$ | $$
-- | $$ /$$__ $$| $$ | $$| $$ | $$ | $$ \ $$$/ | $$_____/| $$ | $$| $$ | $$
-- | $$ | $$$$$$$| $$ | $$| $$$$$$$| $$$$$$$ \ $/ | $$$$$$$| $$ | $$| $$$$$$$
-- |__/ \_______/|__/ |__/ \_______/ \____ $$ \_/ \_______/|__/ |__/ \_______/
-- /$$ | $$
-- | $$$$$$/
-- \______/
--
-- A full-featured, fully-integrated vendor mod for Minetest
fancy_vend = {
display_node = (core.settings:get("fancy_vend.display_node") or "default:obsidian_glass"),
max_logs = (tonumber(core.settings:get("fancy_vend.log_max")) or 40),
autorotate_speed = (tonumber(core.settings:get("fancy_vend.autorotate_speed")) or 1),
no_alerts = core.settings:get_bool("fancy_vend.no_alerts"),
drop_vendor = "fancy_vend:player_vendor"
}
local MP = core.get_modpath("fancy_vend")
dofile(MP.."/display_node.lua")
dofile(MP.."/privileges.lua")
dofile(MP.."/utils.lua")
dofile(MP.."/disable_global.lua")
if core.global_exists("awards") then
dofile(MP.."/awards.lua")
end
dofile(MP.."/display_item.lua")
dofile(MP.."/functions.lua")
dofile(MP.."/inventory_helpers.lua")
dofile(MP.."/integrations.lua")
dofile(MP.."/purchase.lua")
dofile(MP.."/formspecs.lua")
dofile(MP.."/node_helpers.lua")
dofile(MP.."/receive_fields.lua")
dofile(MP.."/vendor_node.lua")
dofile(MP.."/copy_tool.lua")
dofile(MP.."/upgrade.lua")