Skip to content

Commit da4873b

Browse files
authored
Add package Youareanidiot (#8)
* fix error TS2792 * Create LICENSE * Rename LICENSE to scripts/youareanidiot/LICENSE * Create index.js * Create youareanidiot-tests.js * Create LICENSE
1 parent 05815ff commit da4873b

File tree

5 files changed

+35
-3
lines changed

5 files changed

+35
-3
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Jayly
3+
Copyright (c) each contributor listed at every package.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

scripts/command-result/command-result-tests.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { world } from "mojang-minecraft";
2-
import { CommandResult } from ".";
2+
import { CommandResult } from "./index.js";
33

44
let overworld = world.getDimension("overworld");
55
let command: CommandResult = overworld.runCommand("testfor @a");
@@ -10,4 +10,4 @@ console.warn(command.victim);
1010
let commandAsync = await overworld.runCommandAsync("ability @a mayfly true");
1111

1212
overworld.runCommand(`say commandAsync.successCount: ${commandAsync.successCount}`);
13-
})();
13+
})();

scripts/youareanidiot/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 bot174
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

scripts/youareanidiot/index.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { setInterval } from "../timers/timers.js";
2+
import { world } from "mojang-minecraft";
3+
4+
export function YouAreAnIdiot () {
5+
setInterval(() => {
6+
world.getDimension("overworld").runCommandAsync("say You are an idiot hahahhahahhaha")
7+
}, 1000)
8+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { YouAreAnIdiot } from "./index.js";
2+
3+
YouAreAnIdiot()

0 commit comments

Comments
 (0)