Datapack TextER
Edit the text components of Minecraft: Java Edition datapacks like a document.
한국어

▶ Watch the full video on YouTube
How to use
- Open an
.mcfunction file or a datapack JSON file. Text components are underlined with dots.
- Ctrl+Alt+click one. It opens in a new window.
- Write and format the text.
- Press Ctrl+S. Nothing is written to the file before that.
- To work on several at once, Ctrl+Alt+click another one or press + at the top right of the window. Each opens in its own tab.
You can also right-click and choose Edit Text Component. Use this for a command whose text is not written yet, such as tellraw @a (with a space at the end).
Bold text in the middle of a sentence becomes:
[{"text":"","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"abc"},{"text":"de","bold":true},{"text":"fgh"}]
The first element turns off formatting that the game adds by itself, such as the italics of item lore.
Features
- Bold, italic, underline, strikethrough, obfuscated, the 16 named colors, custom colors and shadow colors
- Insert Translate, Score, Selector, Keybind, Block, Entity, Storage, Atlas and Player. Double-click one to change it.
- Item lore is edited as a whole, one line per lore line
- Click and hover events. The text shown on hover is formatted the same way.
- Fonts and other properties are kept
- Commands are written on one line, JSON files over several lines
Where it works
- Commands:
tellraw, title, bossbar, scoreboard, team, item components (give, item, clear, ...), entity and block data (summon, setblock, data, ...), dialog and more
- JSON: advancements, loot tables, item modifiers, dialogs, enchantments, recipes,
pack.mcmeta and more
Command storage, function arguments, NBT path filters and commands inside strings are not detected.
Settings
| Setting |
Description |
datapackTexter.minecraftVersion |
The Minecraft version you are making a datapack for (currently 26.3) |
datapackTexter.textEditor.openIn |
Open the editor in a new window or beside the text editor |
datapackTexter.tabSize |
Spaces for each level of indentation in JSON files, 1 to 16 (4 by default) |
datapackTexter.maximizeDelay |
Seconds from when the editor window is created until it is maximized, 0.1 to 1.5 (0.2 by default, Windows only) |
Notes
- The editor window is maximized when it opens on Windows. For this, the extension runs a small PowerShell helper while VS Code is open.
- If the cursor is exactly where you Ctrl+Alt+click, click a little beside it or use the right-click menu.
- Data formats come from vanilla-mcdoc, command syntax from mcmeta.
Acknowledgements
Special thanks to Spyglass and its documentation for providing essential resources and references that made the development of this extension possible.
The Spyglass project has been an invaluable resource for Minecraft datapack development.
This is not an official Minecraft product. It is not approved by or associated with Mojang or Microsoft.
한국어
Minecraft: Java Edition 데이터팩의 Text Component를 문서처럼 편집합니다.
▶ 전체 영상 보기 (YouTube)
사용 방법
.mcfunction 파일이나 데이터팩 JSON 파일을 엽니다. 텍스트 컴포넌트에 점선 밑줄이 표시됩니다.
- Ctrl+Alt+클릭하면 새 창에서 열립니다.
- 글을 쓰고 서식을 지정합니다.
- Ctrl+S를 누릅니다. 그 전에는 파일에 반영되지 않습니다.
- 여러 개를 함께 다루려면 다른 것을 Ctrl+Alt+클릭하거나 창 오른쪽 위의 **+**를 누릅니다. 각각 별도의 탭으로 열립니다.
우클릭 메뉴의 텍스트 컴포넌트 편집으로도 열 수 있습니다. tellraw @a (끝에 공백)처럼 아직 내용이 없는 명령어는 이 방법을 쓰세요.
기능
- 굵게, 기울임, 밑줄, 취소선, 난독화, 기본 16색, 사용자 지정 색, 그림자 색
- Translate, Score, Selector, Keybind, Block, Entity, Storage, Atlas, Player 삽입. 더블클릭하면 수정할 수 있습니다.
- 아이템 lore는 한 줄이 lore 한 줄이 되도록 전체를 한 번에 편집
- 클릭 이벤트와 호버 이벤트. 호버할 때 보이는 글자도 똑같이 꾸밀 수 있습니다.
- 글꼴 등 다른 속성은 그대로 유지
- 명령어는 한 줄, JSON은 여러 줄로 출력
설정
| 설정 |
설명 |
datapackTexter.minecraftVersion |
데이터팩을 만들 마인크래프트 버전 (현재 26.3) |
datapackTexter.textEditor.openIn |
편집 창을 새 창 또는 텍스트 편집기 옆에 열기 |
datapackTexter.tabSize |
JSON 파일의 한 단계 들여쓰기 칸 수, 1~16 (기본값 4) |
datapackTexter.maximizeDelay |
편집 창을 생성하고 최대화하기까지의 시간(초), 0.1~1.5 (기본값 0.2, Windows 전용) |
알아둘 점
- Windows에서는 편집 창이 열릴 때 최대화됩니다. 이를 위해 VS Code가 켜져 있는 동안 작은 PowerShell 도우미를 실행합니다.
- 커서가 정확히 클릭할 자리에 있으면 Ctrl+Alt+클릭이 인식되지 않습니다. 조금 옆을 클릭하거나 우클릭 메뉴를 쓰세요.
- 명령어 저장소, 함수 인자, NBT 경로 필터, 문자열 안의 명령어는 감지하지 않습니다.
감사의 말
이 확장 프로그램을 개발하는 데 꼭 필요한 자료와 참고 문헌을 제공해 준 Spyglass와 그 문서에 깊이 감사드립니다.
Spyglass 프로젝트는 마인크래프트 데이터팩 개발에 더없이 소중한 자료입니다.
마인크래프트 공식 제품이 아니며 Mojang 및 Microsoft와 관련이 없습니다.
| |