-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
2,425 additions
and
4,348 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run lint && npm run generate-all && npm run pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/prettierrc", | ||
"printWidth": 120, | ||
"tabWidth": 4, | ||
"trailingComma": "none", | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import * as Minecraft from "mojang-minecraft"; | ||
import * as GameTest from "mojang-gametest"; | ||
import * as Minecraft from 'mojang-minecraft'; | ||
import * as GameTest from 'mojang-gametest'; | ||
|
||
globalThis.totalTicks = 0; | ||
Minecraft.world.events.tick.subscribe(() => { | ||
globalThis.totalTicks += 1; | ||
}); | ||
|
||
GameTest.register("gametest", "remote", (test) => { | ||
GameTest.register('gametest', 'remote', (test) => { | ||
test.succeed(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import * as Minecraft from "@minecraft/server"; | ||
import * as GameTest from "@minecraft/server-gametest"; | ||
import * as Minecraft from '@minecraft/server'; | ||
import * as GameTest from '@minecraft/server-gametest'; | ||
|
||
globalThis.totalTicks = 0; | ||
Minecraft.world.events.tick.subscribe(() => { | ||
globalThis.totalTicks += 1; | ||
}); | ||
|
||
GameTest.register("gametest", "remote", (test) => { | ||
GameTest.register('gametest', 'remote', (test) => { | ||
test.succeed(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import * as Minecraft from "@minecraft/server"; | ||
import * as GameTest from "@minecraft/server-gametest"; | ||
import * as Minecraft from '@minecraft/server'; | ||
import * as GameTest from '@minecraft/server-gametest'; | ||
|
||
globalThis.totalTicks = 0; | ||
Minecraft.system.run(function handler() { | ||
globalThis.totalTicks += 1; | ||
Minecraft.system.run(handler); | ||
}); | ||
|
||
GameTest.register("gametest", "remote", (test) => { | ||
GameTest.register('gametest', 'remote', (test) => { | ||
test.succeed(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export default [ | ||
['\'/summon Creeper', '/summon creeper'], | ||
['/recipe take @s ^\'*^\'', '/recipe take @s "*"'], | ||
["'/summon Creeper", '/summon creeper'], | ||
["/recipe take @s ^'*^'", '/recipe take @s "*"'], | ||
['cak_', 'oak_'], | ||
['scul_', 'soul_'] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import js from '@eslint/js'; | ||
import html from 'eslint-plugin-html'; | ||
import prettier from 'eslint-plugin-prettier/recommended'; | ||
import globals from 'globals'; | ||
|
||
export default [ | ||
js.configs.recommended, | ||
prettier, | ||
{ | ||
files: ['**/*.html'], | ||
plugins: { html }, | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
...globals.browser | ||
} | ||
} | ||
}, | ||
{ | ||
ignores: ['output/*'], | ||
languageOptions: { | ||
globals: { | ||
...globals.node | ||
} | ||
} | ||
} | ||
]; |
Oops, something went wrong.