This repository has been archived by the owner on May 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.lua
141 lines (121 loc) · 3.84 KB
/
config.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
return {
display = {
-- The name of your shop. This will appear at the top of your shop's screen.
-- If webhooks are enabled, this will be the name of the webhook bot
shopName = "A Denarius Shop",
-- Set to true if you'd like items out of stock to be visible.
showOutOfStockItems = true,
},
krist = {
-- The name you would like to use for this shop. Should contain .kst
name = "",
-- The private key for the address above. This MUST be in raw-key format.
privatekey = "",
-- If you choose to use a Kristwallet password instead of a privatekey,
-- comment out the private key line and uncomment this line, and add your password.
-- walletpassword = "DDUfciYUBrFjL3T36Dml99-acZcxitOk",
-- Advanced: Krist node URL. Requires trailing /
node = "https://krist.dev/",
},
peripherals = {
-- Chests to search for items
chests = {"minecraft:chest_0"},
-- The network name of the turtle
networkName = "turtle_0",
-- The network name of the monitor to display the shop information on
monitorSide = "bottom",
},
heartbeat = {
-- Enable heartbeat
enable = false,
-- The side that the redstone lamp (or other) is on.
side = "top",
-- How often the "heart beats"
interval = 2
},
stock = {
-- The order that items will be rendered in. If you don't want to fiddle with this, you can comment out this line.
order = {"dia", "pc", "prot4", "mending", "oak", "stone"},
-- Items you're selling
items = {
-- The slug for the item (where players pay to)
dia = {
-- The title of the item to display.
title = "Diamond",
-- The ID of the item
name = "minecraft:diamond",
-- Price of the item
price = 3
},
oak = {
title = "Oak Log",
name = "minecraft:oak_log",
price = 0.1
},
pc = {
title = "Advanced Computer",
name = "computercraft:computer_advanced",
price = 5
},
stone = {
title = "Stone",
name = "minecraft:stone",
price = 1
},
mending = {
title = "Mending Book",
name = "minecraft:enchanted_book",
price = 1,
-- NBT tags are also supported.
nbt = "704a1bcdf9953c791651a77b1fe78891"
},
prot4 = {
title = "Protection 4 Book",
name = "minecraft:enchanted_book",
price = 1,
nbt = "574661995e9d45223026a14807eedc0c"
}
},
},
webhook = {
-- A url to a Discord webhook to send logs. Uncomment this line to enable.
-- url = "",
-- Your Discord ID. This will be pinged when an error occurs.
ownerUserID = "",
-- Toggle individual messages
messages = {
startup = true,
sale = true,
refund = true,
error = true,
}
},
-- Messages that will be used when a refund is issued
messages = {
nonExistant = "The requested item, %s, does not exist. Please try another item.",
notInStock = "Sorry, the item \"%s\" is not in stock.",
overpaid = "You overpaid for your purchase. You have been refunded %d Krist.",
notEnoughInStock = "You ordered too many items, and not enough were in stock. You have been refunded %d Krist."
},
-- Advanced: Sound effects to be played when purchases commence
soundeffects = {
enabled = false,
speaker = "speaker_0",
purchaseFailed = "minecraft:entity.villager.no",
purchaseSuccess = "minecraft:entity.villager.yes",
dispensedItems = "minecraft:entity.item.pickup",
allItemsDispensed = "minecraft:entity.player.levelup",
},
-- Profit sharing
profitSharing = {
-- The address to send
-- ["k9kig3qq9n"] = {
-- Percentage
-- percent = 80,
-- Metadata (for donate meta requirements)
-- meta = "cool=awesome"
--}
},
-- Advanced: Krist API debug
debug = false
}