@@ -24,7 +43,7 @@
{/if}
-
+
As {$outputVersion.index > 0 ? " " : "JSON "}text components:
@@ -51,7 +70,7 @@
- As a lore component:
+ As a lore component:
- As a MOTD:
+ As a MOTD:
+ (BETA) As a image:
+
+ Accuracy may not be great! You have been warned!
+
+
diff --git a/src/lib/text/utils.ts b/src/lib/text/utils.ts
index 54c043e..52e5602 100644
--- a/src/lib/text/utils.ts
+++ b/src/lib/text/utils.ts
@@ -21,6 +21,8 @@ export const colorMap = [
{ name: "black", value: "#000000", code: "0" },
];
+export const sourceKeys = ["atlas_object", "player_object", "selector", "block_nbt", "entity_nbt", "storage_nbt", "keybind", "score", "translate"] as const;
+
/**
* Returns true if the specified mark is present in the content's marks, otherwise undefined.
*
@@ -165,3 +167,7 @@ export function isDefinedTextObject(
): obj is Omit