Added the cracked glass block and its corresponding texture to the resource packs. Also made changes to the maker.ts file to include a save operation. Additionally, added a new behavior pack for the cracked glass block with specific properties. Updated the vectorUtils.ts file to include a new function for converting a Vector3 object to a command string. Finally, made changes to the triggers.ts file to register new triggers and update existing ones.
71 lines
1.7 KiB
TypeScript
71 lines
1.7 KiB
TypeScript
class Chalk {
|
|
static red(text: string): string {
|
|
return "§c" + text + "§r";
|
|
}
|
|
static yellow(text: string): string {
|
|
return "§e" + text + "§r";
|
|
}
|
|
static green(text: string): string {
|
|
return "§a" + text + "§r";
|
|
}
|
|
static blue(text: string): string {
|
|
return "§9" + text + "§r";
|
|
}
|
|
static aqua(text: string): string {
|
|
return "§b" + text + "§r";
|
|
}
|
|
static white(text: string): string {
|
|
return "§f" + text + "§r";
|
|
}
|
|
static black(text: string): string {
|
|
return "§0" + text + "§r";
|
|
}
|
|
static gold(text: string): string {
|
|
return "§6" + text + "§r";
|
|
}
|
|
static gray(text: string): string {
|
|
return "§7" + text + "§r";
|
|
}
|
|
static darkRed(text: string): string {
|
|
return "§4" + text + "§r";
|
|
}
|
|
static darkGreen(text: string): string {
|
|
return "§2" + text + "§r";
|
|
}
|
|
static darkBlue(text: string): string {
|
|
return "§1" + text + "§r";
|
|
}
|
|
static darkAqua(text: string): string {
|
|
return "§3" + text + "§r";
|
|
}
|
|
static darkPurple(text: string): string {
|
|
return "§5" + text + "§r";
|
|
}
|
|
static darkGray(text: string): string {
|
|
return "§8" + text + "§r";
|
|
}
|
|
static lightPurple(text: string): string {
|
|
return "§d" + text + "§r";
|
|
}
|
|
static bold(text: string): string {
|
|
return "§l" + text + "§r";
|
|
}
|
|
static italic(text: string): string {
|
|
return "§o" + text + "§r";
|
|
}
|
|
static underline(text: string): string {
|
|
return "§n" + text + "§r";
|
|
}
|
|
static strikethrough(text: string): string {
|
|
return "§m" + text + "§r";
|
|
}
|
|
static obfuscated(text: string): string {
|
|
return "§k" + text + "§r";
|
|
}
|
|
static reset(text: string): string {
|
|
return "§r" + text + "§r";
|
|
}
|
|
}
|
|
|
|
export default Chalk;
|