8x9craft2 Extension
English | 日本語
English
Overview
This is a VSCode extension for hackCraft2, a tool for learning programming through Minecraft.
Installation
- Open VSCode
- Open the Extensions view (Ctrl/Cmd + Shift + X)
- Search for "hackCraft2"
- Click Install
- Restart VSCode
Usage
- Open VSCode Settings (Ctrl/Cmd + ,)
- Search for "hackCraft2"
- Set your server host (e.g., "localhost")
- The default port (25570) is already configured
- Set your Minecraft player ID
2. Connect to Server
- Click "hackCraft2: Disconnected" in the VSCode status bar
- The extension will automatically connect using your configured settings
- Once connected, you can select a pet (the first pet is selected by default)
3. Programming
You can program using the following languages:
- TypeScript (.ts)
- JavaScript (.js)
- Python (.py)
Example:
// Draw a 4x4 square
for (let i = 0; i < 4; i++) {
for (let j = 0; j < 4; j++) {
entity.forward(1)
}
entity.turnLeft()
}
4. Run Script
- Create a new JavaScript file in VSCode
- Write your program
- Click the "Run" button in the top-right corner of the editor
- Watch your pet move in Minecraft!
Features
- Multiple programming languages support (TypeScript, JavaScript, Python)
- Entity control (movement, rotation, etc.)
- 3D view display
- Server connection management
- Script execution/stop
- Automatic pet selection
- Easy-to-use run button in the editor
Troubleshooting
Links
日本語
概要
hackCraft2のVSCode拡張機能です。Minecraftを通じてプログラミングを学ぶためのツールです。
インストール方法
- VSCodeを開く
- 拡張機能ビュー(Ctrl/Cmd + Shift + X)を開く
- "hackCraft2" を検索
- インストールボタンをクリック
- VSCodeを再起動
使い方
1. サーバー接続の設定
- VSCodeの設定を開く(Ctrl/Cmd + ,)
- "hackCraft2" で検索
- サーバーのホスト名を設定(例: "localhost")
- ポート番号(25570)はデフォルトで設定済みです
- MinecraftのプレイヤーIDを設定
2. サーバーへの接続
- VSCodeのステータスバーにある「hackCraft2:未接続」をクリック
- 設定した情報で自動的に接続されます
- 接続後、ペットを選択できます(デフォルトで最初のペットが選択されます)
3. プログラミング
以下の言語でプログラミングができます:
- TypeScript (.ts)
- JavaScript (.js)
- Python (.py)
例:
// 4x4の正方形を描く
for (let i = 0; i < 4; i++) {
for (let j = 0; j < 4; j++) {
entity.forward(1)
}
entity.turnLeft()
}
4. スクリプトの実行
- VSCodeで新しいJavaScriptファイルを作成
- プログラムを書く
- エディタ右上の実行ボタンをクリック
- Minecraftでペットの動きを確認!
機能
- 複数のプログラミング言語(TypeScript, JavaScript, Python)に対応
- エンティティの操作(移動、回転など)
- 3Dビューの表示
- サーバー接続状態の管理
- スクリプトの実行/停止
- ペットの自動選択
- エディタ内の使いやすい実行ボタン
トラブルシューティング
接続できない場合:
- VSCodeの設定でサーバー設定を確認
- Minecraftサーバーが起動しているか確認
- ファイアウォールの設定を確認
スクリプトが実行できない場合:
- サーバーに接続されているか確認
- ペットが選択されているか確認
- コードに構文エラーがないか確認
リンク
| |