moomodding 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/moo.js +1 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +111 -0
- package/dist/data/accessories.d.ts +2 -0
- package/dist/data/accessories.js +169 -0
- package/dist/data/ai.d.ts +2 -0
- package/dist/data/ai.js +176 -0
- package/dist/data/config.d.ts +2 -0
- package/dist/data/config.js +90 -0
- package/dist/data/groups.d.ts +2 -0
- package/dist/data/groups.js +98 -0
- package/dist/data/hats.d.ts +2 -0
- package/dist/data/hats.js +366 -0
- package/dist/data/items.d.ts +2 -0
- package/dist/data/items.js +569 -0
- package/dist/data/projectiles.d.ts +2 -0
- package/dist/data/projectiles.js +50 -0
- package/dist/data/weapons.d.ts +2 -0
- package/dist/data/weapons.js +303 -0
- package/dist/index.d.ts +20 -1
- package/dist/index.js +20 -111
- package/dist/moo.umd.js +1925 -0
- package/dist/sdk.d.ts +24 -0
- package/dist/sdk.js +36 -0
- package/dist/types/index.d.ts +212 -0
- package/dist/types/index.js +7 -0
- package/package.json +14 -3
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
export const weapons = [
|
|
2
|
+
{
|
|
3
|
+
"id": 0,
|
|
4
|
+
"type": 0,
|
|
5
|
+
"name": "tool hammer",
|
|
6
|
+
"desc": "tool for gathering all resources",
|
|
7
|
+
"src": "hammer_1",
|
|
8
|
+
"length": 140,
|
|
9
|
+
"width": 140,
|
|
10
|
+
"xOff": -3,
|
|
11
|
+
"yOff": 18,
|
|
12
|
+
"dmg": 25,
|
|
13
|
+
"range": 65,
|
|
14
|
+
"gather": 1,
|
|
15
|
+
"speed": 300
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"type": 0,
|
|
20
|
+
"age": 2,
|
|
21
|
+
"name": "hand axe",
|
|
22
|
+
"desc": "gathers resources at a higher rate",
|
|
23
|
+
"src": "axe_1",
|
|
24
|
+
"length": 140,
|
|
25
|
+
"width": 140,
|
|
26
|
+
"xOff": 3,
|
|
27
|
+
"yOff": 24,
|
|
28
|
+
"dmg": 30,
|
|
29
|
+
"spdMult": 1,
|
|
30
|
+
"range": 70,
|
|
31
|
+
"gather": 2,
|
|
32
|
+
"speed": 400
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": 2,
|
|
36
|
+
"type": 0,
|
|
37
|
+
"age": 8,
|
|
38
|
+
"pre": 1,
|
|
39
|
+
"name": "great axe",
|
|
40
|
+
"desc": "deal more damage and gather more resources",
|
|
41
|
+
"src": "great_axe_1",
|
|
42
|
+
"length": 140,
|
|
43
|
+
"width": 140,
|
|
44
|
+
"xOff": -8,
|
|
45
|
+
"yOff": 25,
|
|
46
|
+
"dmg": 35,
|
|
47
|
+
"spdMult": 1,
|
|
48
|
+
"range": 75,
|
|
49
|
+
"gather": 4,
|
|
50
|
+
"speed": 400
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": 3,
|
|
54
|
+
"type": 0,
|
|
55
|
+
"age": 2,
|
|
56
|
+
"name": "short sword",
|
|
57
|
+
"desc": "increased attack power but slower move speed",
|
|
58
|
+
"src": "sword_1",
|
|
59
|
+
"iPad": 1.3,
|
|
60
|
+
"length": 130,
|
|
61
|
+
"width": 210,
|
|
62
|
+
"xOff": -8,
|
|
63
|
+
"yOff": 46,
|
|
64
|
+
"dmg": 35,
|
|
65
|
+
"spdMult": 0.85,
|
|
66
|
+
"range": 110,
|
|
67
|
+
"gather": 1,
|
|
68
|
+
"speed": 300
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": 4,
|
|
72
|
+
"type": 0,
|
|
73
|
+
"age": 8,
|
|
74
|
+
"pre": 3,
|
|
75
|
+
"name": "katana",
|
|
76
|
+
"desc": "greater range and damage",
|
|
77
|
+
"src": "samurai_1",
|
|
78
|
+
"iPad": 1.3,
|
|
79
|
+
"length": 130,
|
|
80
|
+
"width": 210,
|
|
81
|
+
"xOff": -8,
|
|
82
|
+
"yOff": 59,
|
|
83
|
+
"dmg": 40,
|
|
84
|
+
"spdMult": 0.8,
|
|
85
|
+
"range": 118,
|
|
86
|
+
"gather": 1,
|
|
87
|
+
"speed": 300
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"id": 5,
|
|
91
|
+
"type": 0,
|
|
92
|
+
"age": 2,
|
|
93
|
+
"name": "polearm",
|
|
94
|
+
"desc": "long range melee weapon",
|
|
95
|
+
"src": "spear_1",
|
|
96
|
+
"iPad": 1.3,
|
|
97
|
+
"length": 130,
|
|
98
|
+
"width": 210,
|
|
99
|
+
"xOff": -8,
|
|
100
|
+
"yOff": 53,
|
|
101
|
+
"dmg": 45,
|
|
102
|
+
"knock": 0.2,
|
|
103
|
+
"spdMult": 0.82,
|
|
104
|
+
"range": 142,
|
|
105
|
+
"gather": 1,
|
|
106
|
+
"speed": 700
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"id": 6,
|
|
110
|
+
"type": 0,
|
|
111
|
+
"age": 2,
|
|
112
|
+
"name": "bat",
|
|
113
|
+
"desc": "fast long range melee weapon",
|
|
114
|
+
"src": "bat_1",
|
|
115
|
+
"iPad": 1.3,
|
|
116
|
+
"length": 110,
|
|
117
|
+
"width": 180,
|
|
118
|
+
"xOff": -8,
|
|
119
|
+
"yOff": 53,
|
|
120
|
+
"dmg": 20,
|
|
121
|
+
"knock": 0.7,
|
|
122
|
+
"range": 110,
|
|
123
|
+
"gather": 1,
|
|
124
|
+
"speed": 300
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": 7,
|
|
128
|
+
"type": 0,
|
|
129
|
+
"age": 2,
|
|
130
|
+
"name": "daggers",
|
|
131
|
+
"desc": "really fast short range weapon",
|
|
132
|
+
"src": "dagger_1",
|
|
133
|
+
"iPad": 0.8,
|
|
134
|
+
"length": 110,
|
|
135
|
+
"width": 110,
|
|
136
|
+
"xOff": 18,
|
|
137
|
+
"yOff": 0,
|
|
138
|
+
"dmg": 20,
|
|
139
|
+
"knock": 0.1,
|
|
140
|
+
"range": 65,
|
|
141
|
+
"gather": 1,
|
|
142
|
+
"hitSlow": 0.1,
|
|
143
|
+
"spdMult": 1.13,
|
|
144
|
+
"speed": 100
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": 8,
|
|
148
|
+
"type": 0,
|
|
149
|
+
"age": 2,
|
|
150
|
+
"name": "stick",
|
|
151
|
+
"desc": "great for gathering but very weak",
|
|
152
|
+
"src": "stick_1",
|
|
153
|
+
"length": 140,
|
|
154
|
+
"width": 140,
|
|
155
|
+
"xOff": 3,
|
|
156
|
+
"yOff": 24,
|
|
157
|
+
"dmg": 1,
|
|
158
|
+
"spdMult": 1,
|
|
159
|
+
"range": 70,
|
|
160
|
+
"gather": 7,
|
|
161
|
+
"speed": 400
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": 9,
|
|
165
|
+
"type": 1,
|
|
166
|
+
"age": 6,
|
|
167
|
+
"name": "hunting bow",
|
|
168
|
+
"desc": "bow used for ranged combat and hunting",
|
|
169
|
+
"src": "bow_1",
|
|
170
|
+
"req": [
|
|
171
|
+
"wood",
|
|
172
|
+
4
|
|
173
|
+
],
|
|
174
|
+
"length": 120,
|
|
175
|
+
"width": 120,
|
|
176
|
+
"xOff": -6,
|
|
177
|
+
"yOff": 0,
|
|
178
|
+
"projectile": 0,
|
|
179
|
+
"spdMult": 0.75,
|
|
180
|
+
"speed": 600
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"id": 10,
|
|
184
|
+
"type": 1,
|
|
185
|
+
"age": 6,
|
|
186
|
+
"name": "great hammer",
|
|
187
|
+
"desc": "hammer used for destroying structures",
|
|
188
|
+
"src": "great_hammer_1",
|
|
189
|
+
"length": 140,
|
|
190
|
+
"width": 140,
|
|
191
|
+
"xOff": -9,
|
|
192
|
+
"yOff": 25,
|
|
193
|
+
"dmg": 10,
|
|
194
|
+
"spdMult": 0.88,
|
|
195
|
+
"range": 75,
|
|
196
|
+
"sDmg": 7.5,
|
|
197
|
+
"gather": 1,
|
|
198
|
+
"speed": 400
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"id": 11,
|
|
202
|
+
"type": 1,
|
|
203
|
+
"age": 6,
|
|
204
|
+
"name": "wooden shield",
|
|
205
|
+
"desc": "blocks projectiles and reduces melee damage",
|
|
206
|
+
"src": "shield_1",
|
|
207
|
+
"length": 120,
|
|
208
|
+
"width": 120,
|
|
209
|
+
"shield": 0.2,
|
|
210
|
+
"xOff": 6,
|
|
211
|
+
"yOff": 0,
|
|
212
|
+
"spdMult": 0.7
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"id": 12,
|
|
216
|
+
"type": 1,
|
|
217
|
+
"age": 8,
|
|
218
|
+
"pre": 9,
|
|
219
|
+
"name": "crossbow",
|
|
220
|
+
"desc": "deals more damage and has greater range",
|
|
221
|
+
"src": "crossbow_1",
|
|
222
|
+
"req": [
|
|
223
|
+
"wood",
|
|
224
|
+
5
|
|
225
|
+
],
|
|
226
|
+
"aboveHand": true,
|
|
227
|
+
"armS": 0.75,
|
|
228
|
+
"length": 120,
|
|
229
|
+
"width": 120,
|
|
230
|
+
"xOff": -4,
|
|
231
|
+
"yOff": 0,
|
|
232
|
+
"projectile": 2,
|
|
233
|
+
"spdMult": 0.7,
|
|
234
|
+
"speed": 700
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"id": 13,
|
|
238
|
+
"type": 1,
|
|
239
|
+
"age": 9,
|
|
240
|
+
"pre": 12,
|
|
241
|
+
"name": "repeater crossbow",
|
|
242
|
+
"desc": "high firerate crossbow with reduced damage",
|
|
243
|
+
"src": "crossbow_2",
|
|
244
|
+
"req": [
|
|
245
|
+
"wood",
|
|
246
|
+
10
|
|
247
|
+
],
|
|
248
|
+
"aboveHand": true,
|
|
249
|
+
"armS": 0.75,
|
|
250
|
+
"length": 120,
|
|
251
|
+
"width": 120,
|
|
252
|
+
"xOff": -4,
|
|
253
|
+
"yOff": 0,
|
|
254
|
+
"projectile": 3,
|
|
255
|
+
"spdMult": 0.7,
|
|
256
|
+
"speed": 230
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"id": 14,
|
|
260
|
+
"type": 1,
|
|
261
|
+
"age": 6,
|
|
262
|
+
"name": "mc grabby",
|
|
263
|
+
"desc": "steals resources from enemies",
|
|
264
|
+
"src": "grab_1",
|
|
265
|
+
"length": 130,
|
|
266
|
+
"width": 210,
|
|
267
|
+
"xOff": -8,
|
|
268
|
+
"yOff": 53,
|
|
269
|
+
"dmg": 0,
|
|
270
|
+
"steal": 250,
|
|
271
|
+
"knock": 0.2,
|
|
272
|
+
"spdMult": 1.05,
|
|
273
|
+
"range": 125,
|
|
274
|
+
"gather": 0,
|
|
275
|
+
"speed": 700
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"id": 15,
|
|
279
|
+
"type": 1,
|
|
280
|
+
"age": 9,
|
|
281
|
+
"pre": 12,
|
|
282
|
+
"name": "musket",
|
|
283
|
+
"desc": "slow firerate but high damage and range",
|
|
284
|
+
"src": "musket_1",
|
|
285
|
+
"req": [
|
|
286
|
+
"stone",
|
|
287
|
+
10
|
|
288
|
+
],
|
|
289
|
+
"aboveHand": true,
|
|
290
|
+
"rec": 0.35,
|
|
291
|
+
"armS": 0.6,
|
|
292
|
+
"hndS": 0.3,
|
|
293
|
+
"hndD": 1.6,
|
|
294
|
+
"length": 205,
|
|
295
|
+
"width": 205,
|
|
296
|
+
"xOff": 25,
|
|
297
|
+
"yOff": 0,
|
|
298
|
+
"projectile": 5,
|
|
299
|
+
"hideProjectile": true,
|
|
300
|
+
"spdMult": 0.6,
|
|
301
|
+
"speed": 1500
|
|
302
|
+
}
|
|
303
|
+
];
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* MooModding — Official Game Registry SDK & Developer Library
|
|
3
|
+
* -------------------------------------------------------------
|
|
4
|
+
* Provides complete, strongly typed definitions and data registries
|
|
5
|
+
* for MooMoo.io items, hats, accessories, weapons, projectiles,
|
|
6
|
+
* mobs, and engine configuration.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./types/index.js";
|
|
9
|
+
export * from "./sdk.js";
|
|
10
|
+
export { hats } from "./data/hats.js";
|
|
11
|
+
export { accessories } from "./data/accessories.js";
|
|
12
|
+
export { weapons } from "./data/weapons.js";
|
|
13
|
+
export { projectiles } from "./data/projectiles.js";
|
|
14
|
+
export { groups } from "./data/groups.js";
|
|
15
|
+
export { items } from "./data/items.js";
|
|
16
|
+
export { config } from "./data/config.js";
|
|
17
|
+
export { aiTypes } from "./data/ai.js";
|
|
18
|
+
export { MooModding } from "./sdk.js";
|
|
19
|
+
import { MooModding } from "./sdk.js";
|
|
20
|
+
export default MooModding;
|
package/dist/index.js
CHANGED
|
@@ -1,111 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
.action(async (token) => {
|
|
22
|
-
await loginCommand(token);
|
|
23
|
-
});
|
|
24
|
-
program
|
|
25
|
-
.command("logout")
|
|
26
|
-
.description("Log out and clear local credentials")
|
|
27
|
-
.action(() => {
|
|
28
|
-
clearAuth();
|
|
29
|
-
console.log(pc.green("[success] Logged out successfully."));
|
|
30
|
-
});
|
|
31
|
-
program
|
|
32
|
-
.command("whoami")
|
|
33
|
-
.description("Display current user and storage quota")
|
|
34
|
-
.action(async () => {
|
|
35
|
-
await whoamiCommand();
|
|
36
|
-
});
|
|
37
|
-
// 2. Project Lifecycle Commands
|
|
38
|
-
program
|
|
39
|
-
.command("init [dir]")
|
|
40
|
-
.description("Scaffold a new MooMoo mod project")
|
|
41
|
-
.option("-n, --name <name>", "Mod display name")
|
|
42
|
-
.option("-t, --type <type>", "Mod type ('hook' or 'bundle_replacement')", "hook")
|
|
43
|
-
.action(async (dir, options) => {
|
|
44
|
-
await initCommand(dir, options);
|
|
45
|
-
});
|
|
46
|
-
program
|
|
47
|
-
.command("list")
|
|
48
|
-
.alias("ls")
|
|
49
|
-
.description("List your cloud mods and storage usage")
|
|
50
|
-
.action(async () => {
|
|
51
|
-
await listCommand();
|
|
52
|
-
});
|
|
53
|
-
program
|
|
54
|
-
.command("clone <slug> [dir]")
|
|
55
|
-
.description("Clone a cloud mod into a local directory")
|
|
56
|
-
.action(async (slug, dir) => {
|
|
57
|
-
await cloneCommand(slug, dir);
|
|
58
|
-
});
|
|
59
|
-
program
|
|
60
|
-
.command("push")
|
|
61
|
-
.description("Scan directory and push mod files to cloud")
|
|
62
|
-
.action(async () => {
|
|
63
|
-
await pushCommand();
|
|
64
|
-
});
|
|
65
|
-
program
|
|
66
|
-
.command("pull")
|
|
67
|
-
.description("Pull latest mod files from cloud")
|
|
68
|
-
.action(async () => {
|
|
69
|
-
await pullCommand();
|
|
70
|
-
});
|
|
71
|
-
program
|
|
72
|
-
.command("dev")
|
|
73
|
-
.description("Start file watcher for live cloud sync on save")
|
|
74
|
-
.action(() => {
|
|
75
|
-
devCommand();
|
|
76
|
-
});
|
|
77
|
-
// 3. Configuration command
|
|
78
|
-
program
|
|
79
|
-
.command("config <action> [key] [value]")
|
|
80
|
-
.description("View or update CLI config (e.g. moo config set api https://moomodding.io)")
|
|
81
|
-
.action((action, key, value) => {
|
|
82
|
-
const config = loadConfig();
|
|
83
|
-
if (action === "get") {
|
|
84
|
-
if (key) {
|
|
85
|
-
console.log(config[key] || pc.gray("(undefined)"));
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
console.log(JSON.stringify(config, null, 2));
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
else if (action === "set") {
|
|
92
|
-
if (!key || value === undefined) {
|
|
93
|
-
console.log(pc.red("Usage: moo config set <key> <value>"));
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
if (key === "api" || key === "apiUrl") {
|
|
97
|
-
config.apiUrl = value;
|
|
98
|
-
saveConfig(config);
|
|
99
|
-
console.log(pc.green(`[success] API URL updated: ${value}`));
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
config[key] = value;
|
|
103
|
-
saveConfig(config);
|
|
104
|
-
console.log(pc.green(`[success] '${key}' updated.`));
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
console.log(pc.red("Invalid action. Usage: moo config get [key] | moo config set <key> <value>"));
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
program.parse(process.argv);
|
|
1
|
+
/**
|
|
2
|
+
* MooModding — Official Game Registry SDK & Developer Library
|
|
3
|
+
* -------------------------------------------------------------
|
|
4
|
+
* Provides complete, strongly typed definitions and data registries
|
|
5
|
+
* for MooMoo.io items, hats, accessories, weapons, projectiles,
|
|
6
|
+
* mobs, and engine configuration.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./types/index.js";
|
|
9
|
+
export * from "./sdk.js";
|
|
10
|
+
export { hats } from "./data/hats.js";
|
|
11
|
+
export { accessories } from "./data/accessories.js";
|
|
12
|
+
export { weapons } from "./data/weapons.js";
|
|
13
|
+
export { projectiles } from "./data/projectiles.js";
|
|
14
|
+
export { groups } from "./data/groups.js";
|
|
15
|
+
export { items } from "./data/items.js";
|
|
16
|
+
export { config } from "./data/config.js";
|
|
17
|
+
export { aiTypes } from "./data/ai.js";
|
|
18
|
+
export { MooModding } from "./sdk.js";
|
|
19
|
+
import { MooModding } from "./sdk.js";
|
|
20
|
+
export default MooModding;
|