|
1 | 1 | # MACROPAD Hotkeys example: Minecraft Effects (Creative) for Bedrock Edition |
2 | 2 |
|
3 | | -# NOTE: There appears to be a line length limit. Exceeding that limit appears |
| 3 | +# Note: Must enable "full keyboad gameplay" to equip armor automatically. |
| 4 | +# This is found under "settings", then "keyboard and mouse". |
| 5 | + |
| 6 | +# NOTE: There is a line length limit (? ~100 char ?). Exceeding that limit appears |
4 | 7 | # to result in silent failure. Therefore, the key sequences are split |
5 | 8 | # across multiple lines. |
6 | 9 |
|
| 10 | + |
| 11 | + |
7 | 12 | from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values |
8 | 13 |
|
9 | 14 | # See https://minecraft.fandom.com/wiki/Effect |
|
17 | 22 |
|
18 | 23 | from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values |
19 | 24 |
|
20 | | -DELAY_AFTER_COMMAND = 0.10 |
| 25 | +DELAY_AFTER_COMMAND = 0.75 |
21 | 26 | DELAY_AFTER_SLASH = 0.80 # required so minecraft has time to bring up command screen |
22 | | -CONFIGURABLE_KEY_EQUIP_CURRENTLY_HELD_ITEM = 'E' |
| 27 | +DELAY_BEFORE_RETURN = 0.10 # give minecraft time to show all the keys pressed... |
| 28 | + |
| 29 | + |
| 30 | +# If "full-keyboard gameplay" is not enabled, armor can be left in inventory |
| 31 | +# CONFIGURABLE_KEY_EQUIP_CURRENTLY_HELD_ITEM = Keycode.PAGE_UP |
| 32 | +CONFIGURABLE_KEY_EQUIP_CURRENTLY_HELD_ITEM = Keycode.E |
23 | 33 |
|
24 | 34 | app = { |
25 | 35 | 'name': 'Minecraft PE (equip)', |
26 | 36 | 'macros': [ |
27 | 37 | (0x003000, 'helm', [ |
28 | 38 | '/', DELAY_AFTER_SLASH, |
29 | 39 | 'replaceitem entity @s slot.weapon.mainhand 0 destroy netherite_helmet', |
30 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 40 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
31 | 41 | '/', DELAY_AFTER_SLASH, |
32 | 42 | 'enchant @s mending 1', |
33 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 43 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
34 | 44 | '/', DELAY_AFTER_SLASH, |
35 | 45 | 'enchant @s protection 4', |
36 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 46 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
37 | 47 | '/', DELAY_AFTER_SLASH, |
38 | 48 | 'enchant @s respiration 3', |
39 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 49 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
40 | 50 | '/', DELAY_AFTER_SLASH, |
41 | 51 | 'enchant @s aqua_affinity 1', |
42 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 52 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
43 | 53 | '/', DELAY_AFTER_SLASH, |
44 | 54 | 'enchant @s unbreaking 3', |
45 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 55 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
46 | 56 | CONFIGURABLE_KEY_EQUIP_CURRENTLY_HELD_ITEM]), |
47 | | - (0x003000, 'plate', [ |
| 57 | + (0x003000, 'elytra', [ |
48 | 58 | '/', DELAY_AFTER_SLASH, |
49 | 59 | 'replaceitem entity @s slot.weapon.mainhand 0 destroy netherite_chestplate', |
50 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 60 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
51 | 61 | '/', DELAY_AFTER_SLASH, |
52 | 62 | 'enchant @s mending 1', |
53 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
54 | | - '/', DELAY_AFTER_SLASH, |
55 | | - 'enchant @s protection 4', |
56 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 63 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
57 | 64 | '/', DELAY_AFTER_SLASH, |
58 | 65 | 'enchant @s unbreaking 3', |
59 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 66 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
60 | 67 | CONFIGURABLE_KEY_EQUIP_CURRENTLY_HELD_ITEM]), |
61 | 68 | (0x003000, 'legs', [ |
62 | 69 | '/', DELAY_AFTER_SLASH, |
63 | 70 | 'replaceitem entity @s slot.weapon.mainhand 0 destroy netherite_leggings', |
64 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 71 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
65 | 72 | '/', DELAY_AFTER_SLASH, |
66 | 73 | 'enchant @s mending 1', |
67 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 74 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
68 | 75 | '/', DELAY_AFTER_SLASH, |
69 | 76 | 'enchant @s protection 4', |
70 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 77 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
71 | 78 | '/', DELAY_AFTER_SLASH, |
72 | 79 | 'enchant @s unbreaking 3', |
73 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 80 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
74 | 81 | CONFIGURABLE_KEY_EQUIP_CURRENTLY_HELD_ITEM]), |
75 | 82 | (0x003000, 'boots', [ |
76 | 83 | '/', DELAY_AFTER_SLASH, |
77 | 84 | 'replaceitem entity @s slot.weapon.mainhand 0 destroy netherite_boots', |
78 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 85 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
79 | 86 | '/', DELAY_AFTER_SLASH, |
80 | 87 | 'enchant @s mending 1', |
81 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 88 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
82 | 89 | '/', DELAY_AFTER_SLASH, |
83 | 90 | 'enchant @s protection 4', |
84 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 91 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
85 | 92 | '/', DELAY_AFTER_SLASH, |
86 | 93 | 'enchant @s feather_falling 4', |
87 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 94 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
88 | 95 | '/', DELAY_AFTER_SLASH, |
89 | 96 | 'enchant @s depth_strider 3', |
90 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 97 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
91 | 98 | '/', DELAY_AFTER_SLASH, |
92 | 99 | 'enchant @s soul_speed 3', |
93 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 100 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
94 | 101 | '/', DELAY_AFTER_SLASH, |
95 | 102 | 'enchant @s unbreaking 3', |
96 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 103 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
97 | 104 | CONFIGURABLE_KEY_EQUIP_CURRENTLY_HELD_ITEM]), |
98 | 105 | (0x003000, 'frosty', [ |
99 | 106 | '/', DELAY_AFTER_SLASH, |
100 | 107 | 'replaceitem entity @s slot.weapon.mainhand 0 destroy netherite_boots', |
101 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 108 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
102 | 109 | '/', DELAY_AFTER_SLASH, |
103 | 110 | 'enchant @s mending 1', |
104 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 111 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
105 | 112 | '/', DELAY_AFTER_SLASH, |
106 | 113 | 'enchant @s protection 4', |
107 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 114 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
108 | 115 | '/', DELAY_AFTER_SLASH, |
109 | 116 | 'enchant @s feather_falling 4', |
110 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 117 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
111 | 118 | '/', DELAY_AFTER_SLASH, |
112 | 119 | 'enchant @s frost_walker 2', |
113 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 120 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
114 | 121 | '/', DELAY_AFTER_SLASH, |
115 | 122 | 'enchant @s soul_speed 3', |
116 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 123 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
117 | 124 | '/', DELAY_AFTER_SLASH, |
118 | 125 | 'enchant @s unbreaking 3', |
119 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 126 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
120 | 127 | CONFIGURABLE_KEY_EQUIP_CURRENTLY_HELD_ITEM]), |
121 | 128 | (0x300000, 'feedme', [ |
122 | 129 | '/', DELAY_AFTER_SLASH, |
123 | 130 | 'replaceitem entity @s slot.weapon.mainhand 0 destroy netherite_sword', |
124 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 131 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
125 | 132 | '/', DELAY_AFTER_SLASH, |
126 | 133 | 'enchant @s mending 1', |
127 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 134 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
128 | 135 | '/', DELAY_AFTER_SLASH, |
129 | 136 | 'enchant @s fire_aspect 2', |
130 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 137 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
131 | 138 | '/', DELAY_AFTER_SLASH, |
132 | 139 | 'enchant @s knockback 2', |
133 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 140 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
134 | 141 | '/', DELAY_AFTER_SLASH, |
135 | 142 | 'enchant @s looting 3', |
136 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 143 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
137 | 144 | '/', DELAY_AFTER_SLASH, |
138 | 145 | 'enchant @s sharpness 5', |
139 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 146 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
140 | 147 | '/', DELAY_AFTER_SLASH, |
141 | 148 | 'enchant @s unbreaking 3', |
142 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 149 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
143 | 150 | Keycode.PAGE_UP, -Keycode.PAGE_UP]), |
144 | 151 | (0x300000, 'excal', [ |
145 | 152 | '/', DELAY_AFTER_SLASH, |
146 | 153 | 'replaceitem entity @s slot.weapon.mainhand 0 destroy netherite_sword', |
147 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 154 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
148 | 155 | '/', DELAY_AFTER_SLASH, |
149 | 156 | 'enchant @s mending 1', |
150 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 157 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
151 | 158 | '/', DELAY_AFTER_SLASH, |
152 | 159 | 'enchant @s fire_aspect 2', |
153 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 160 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
154 | 161 | '/', DELAY_AFTER_SLASH, |
155 | 162 | 'enchant @s knockback 2', |
156 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 163 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
157 | 164 | '/', DELAY_AFTER_SLASH, |
158 | 165 | 'enchant @s looting 3', |
159 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 166 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
160 | 167 | '/', DELAY_AFTER_SLASH, |
161 | 168 | 'enchant @s sharpness 5', |
162 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 169 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
163 | 170 | '/', DELAY_AFTER_SLASH, |
164 | 171 | 'enchant @s unbreaking 3', |
165 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 172 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
166 | 173 | Keycode.PAGE_UP, -Keycode.PAGE_UP]), |
167 | 174 | (0x300000, 'trident', [ |
168 | 175 | '/', DELAY_AFTER_SLASH, |
169 | 176 | 'replaceitem entity @s slot.weapon.mainhand 0 destroy trident', |
170 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 177 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 178 | + '/', DELAY_AFTER_SLASH, |
171 | 179 | 'enchant @s mending 1', |
172 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 180 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 181 | + '/', DELAY_AFTER_SLASH, |
173 | 182 | 'enchant @s loyalty 3', |
174 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 183 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 184 | + '/', DELAY_AFTER_SLASH, |
175 | 185 | 'enchant @s channeling 1', |
176 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 186 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 187 | + '/', DELAY_AFTER_SLASH, |
177 | 188 | 'enchant @s riptide 3', |
178 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 189 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 190 | + '/', DELAY_AFTER_SLASH, |
179 | 191 | 'enchant @s impaling 5', |
180 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 192 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 193 | + '/', DELAY_AFTER_SLASH, |
181 | 194 | 'enchant @s unbreaking 3', |
182 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 195 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
183 | 196 | Keycode.PAGE_UP, -Keycode.PAGE_UP]), |
184 | 197 | (0x300000, 'bow', [ |
185 | 198 | '/', DELAY_AFTER_SLASH, |
186 | 199 | 'replaceitem entity @s slot.weapon.mainhand 0 destroy bow', |
187 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 200 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
188 | 201 | '/', DELAY_AFTER_SLASH, |
189 | 202 | 'enchant @s mending 1', |
190 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 203 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
191 | 204 | '/', DELAY_AFTER_SLASH, |
192 | 205 | 'enchant @s power 5', |
193 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 206 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
194 | 207 | '/', DELAY_AFTER_SLASH, |
195 | 208 | 'enchant @s punch 2', |
196 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 209 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
197 | 210 | '/', DELAY_AFTER_SLASH, |
198 | 211 | 'enchant @s unbreaking 3', |
199 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 212 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
200 | 213 | Keycode.PAGE_UP, -Keycode.PAGE_UP]), |
201 | 214 | (0x000030, 'silky', [ |
202 | 215 | '/', DELAY_AFTER_SLASH, |
203 | 216 | 'replaceitem entity @s slot.weapon.mainhand 0 destroy netherite_pickaxe', |
204 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 217 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
205 | 218 | '/', DELAY_AFTER_SLASH, |
206 | 219 | 'enchant @s mending 1', |
207 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 220 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
208 | 221 | '/', DELAY_AFTER_SLASH, |
209 | 222 | 'enchant @s efficiency 5', |
210 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 223 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
211 | 224 | '/', DELAY_AFTER_SLASH, |
212 | 225 | 'enchant @s silk_touch 1', |
213 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 226 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
214 | 227 | '/', DELAY_AFTER_SLASH, |
215 | 228 | 'enchant @s unbreaking 3', |
216 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 229 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
217 | 230 | Keycode.PAGE_UP, -Keycode.PAGE_UP]), |
218 | 231 | (0x000030, 'pickme', [ |
219 | 232 | '/', DELAY_AFTER_SLASH, |
220 | 233 | 'replaceitem entity @s slot.weapon.mainhand 0 destroy netherite_pickaxe', |
221 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 234 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
222 | 235 | '/', DELAY_AFTER_SLASH, |
223 | 236 | 'enchant @s mending 1', |
224 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 237 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
225 | 238 | '/', DELAY_AFTER_SLASH, |
226 | 239 | 'enchant @s efficiency 5', |
227 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 240 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
228 | 241 | '/', DELAY_AFTER_SLASH, |
229 | 242 | 'enchant @s fortune 3', |
230 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 243 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
231 | 244 | '/', DELAY_AFTER_SLASH, |
232 | 245 | 'enchant @s unbreaking 3', |
233 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 246 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
234 | 247 | Keycode.PAGE_UP, -Keycode.PAGE_UP]), |
235 | 248 | (0x000030, 'axe', [ |
236 | 249 | '/', DELAY_AFTER_SLASH, |
237 | 250 | 'replaceitem entity @s slot.weapon.mainhand 0 destroy netherite_axe', |
238 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 251 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
239 | 252 | '/', DELAY_AFTER_SLASH, |
240 | 253 | 'enchant @s mending 1', |
241 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 254 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
242 | 255 | '/', DELAY_AFTER_SLASH, |
243 | 256 | 'enchant @s fortune 3', |
244 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 257 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
245 | 258 | '/', DELAY_AFTER_SLASH, |
246 | 259 | 'enchant @s efficiency 5', |
247 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 260 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
248 | 261 | '/', DELAY_AFTER_SLASH, |
249 | 262 | 'enchant @s sharpness 5', |
250 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 263 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
251 | 264 | '/', DELAY_AFTER_SLASH, |
252 | 265 | 'enchant @s unbreaking 3', |
253 | | - Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
| 266 | + DELAY_BEFORE_RETURN, Keycode.RETURN, -Keycode.RETURN, DELAY_AFTER_COMMAND, |
254 | 267 | Keycode.PAGE_UP, -Keycode.PAGE_UP]), |
255 | 268 | ] |
256 | 269 | } |
0 commit comments