Skip to content

Commit 206ed01

Browse files
docs: enhance Minecraft guide with command block teleportation instructions
1 parent ee3aea1 commit 206ed01

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/build-0xfab1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: Optimize images
3939
run: |
40-
python site_manager.py optimize --mode all --quiet
40+
python site_manager.py optimize --mode all
4141
4242
- name: Deploy Github Pages
4343
env:

docs/tech/tools/games/minecraft.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,34 @@ Process:
232232
4. Portal activates automatically when complete
233233
```
234234

235+
#### Portal between two coordinates
236+
237+
Give yourself a command block
238+
239+
```txt
240+
/give @p command_block
241+
```
242+
243+
Place the command block (behind or under your portal frame).
244+
245+
Enter this command
246+
247+
```txt
248+
execute as @p[x=PORTALX,y=PORTALY,z=PORTALZ,distance=..2] run tp @s DESTX DESTY DESTZ
249+
```
250+
251+
Adjust coordinates:
252+
253+
- PORTALX/Y/Z = coordinates of the portal
254+
- DESTX/Y/Z = coordinates where you want to teleport
255+
256+
Set the command block
257+
258+
- Block Type: Repeat
259+
- Condition: Always Active
260+
261+
Build a second portal the same way to teleport back
262+
235263
### Advanced Block Mechanics
236264

237265
#### Redstone Components

0 commit comments

Comments
 (0)