moomodding 1.0.0 → 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.
@@ -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
- export {};
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,112 +1,20 @@
1
- import { Command } from "commander";
2
- import pc from "picocolors";
3
- import { loginCommand } from "./commands/login.js";
4
- import { whoamiCommand } from "./commands/whoami.js";
5
- import { initCommand } from "./commands/init.js";
6
- import { listCommand } from "./commands/list.js";
7
- import { cloneCommand } from "./commands/clone.js";
8
- import { pushCommand } from "./commands/push.js";
9
- import { pullCommand } from "./commands/pull.js";
10
- import { devCommand } from "./commands/dev.js";
11
- import { clearAuth, loadConfig, saveConfig } from "./core/config.js";
12
- const program = new Command();
13
- program
14
- .name("moo")
15
- .description(pc.bold(pc.green("🐄 MooModding Developer CLI")) +
16
- pc.gray(" — Build, test, and sync MooMoo.io mods with zero friction."))
17
- .version("1.0.0");
18
- // 1. Auth Commands
19
- program
20
- .command("login [token]")
21
- .description("MooModding hesabınıza giriş yapın (Kişisel Erişim Belirteci ile)")
22
- .action(async (token) => {
23
- await loginCommand(token);
24
- });
25
- program
26
- .command("logout")
27
- .description("Yerel oturum belirtecini temizler")
28
- .action(() => {
29
- clearAuth();
30
- console.log(pc.green("✅ Başarıyla çıkış yapıldı."));
31
- });
32
- program
33
- .command("whoami")
34
- .description("Aktif oturum ve depolama kotası bilgilerini gösterir")
35
- .action(async () => {
36
- await whoamiCommand();
37
- });
38
- // 2. Project Lifecycle Commands
39
- program
40
- .command("init [dir]")
41
- .description("Yeni bir MooMoo mod şablonu oluşturur")
42
- .option("-n, --name <name>", "Modun görünen adı")
43
- .option("-t, --type <type>", "Mod türü ('hook' veya 'bundle_replacement')", "hook")
44
- .action(async (dir, options) => {
45
- await initCommand(dir, options);
46
- });
47
- program
48
- .command("list")
49
- .alias("ls")
50
- .description("Buluttaki kayıtlı modlarınızı ve durumlarını listeler")
51
- .action(async () => {
52
- await listCommand();
53
- });
54
- program
55
- .command("clone <slug> [dir]")
56
- .description("Buluttaki bir modu yerel klasöre indirir")
57
- .action(async (slug, dir) => {
58
- await cloneCommand(slug, dir);
59
- });
60
- program
61
- .command("push")
62
- .description("Geçerli dizindeki mod dosyalarını otomatik tarayıp buluta aktarır")
63
- .action(async () => {
64
- await pushCommand();
65
- });
66
- program
67
- .command("pull")
68
- .description("Buluttaki en güncel dosyaları yerel dizine çeker")
69
- .action(async () => {
70
- await pullCommand();
71
- });
72
- program
73
- .command("dev")
74
- .description("Canlı izleme modu (dosyalar kaydedildikçe anında buluta senkronize eder)")
75
- .action(() => {
76
- devCommand();
77
- });
78
- // 3. Configuration command
79
- program
80
- .command("config <action> [key] [value]")
81
- .description("CLI ayarlarını görüntüleyin veya değiştirin (ör: moo config set api http://localhost:8000)")
82
- .action((action, key, value) => {
83
- const config = loadConfig();
84
- if (action === "get") {
85
- if (key) {
86
- console.log(config[key] || pc.gray("(tanımsız)"));
87
- }
88
- else {
89
- console.log(JSON.stringify(config, null, 2));
90
- }
91
- }
92
- else if (action === "set") {
93
- if (!key || value === undefined) {
94
- console.log(pc.red("Kullanım: moo config set <key> <value>"));
95
- return;
96
- }
97
- if (key === "api" || key === "apiUrl") {
98
- config.apiUrl = value;
99
- saveConfig(config);
100
- console.log(pc.green(`✅ API adresi güncellendi: ${value}`));
101
- }
102
- else {
103
- config[key] = value;
104
- saveConfig(config);
105
- console.log(pc.green(`✅ '${key}' güncellendi.`));
106
- }
107
- }
108
- else {
109
- console.log(pc.red("Geçersiz eylem. Kullanım: moo config get [key] | moo config set <key> <value>"));
110
- }
111
- });
112
- 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;