1
0
Files
frost-zx.github.io/docs/content/tutorial-custom-block-in-minecart.md
2025-10-13 10:20:34 +08:00

31 lines
785 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "「Minecraft」矿车内显示自定义方块"
date: 2025-03-16T19:32:19Z
lastmod: 2025-03-16T19:38:03Z
tags: [Minecraft,教程,命令,命令方块]
---
# 「Minecraft」矿车内显示自定义方块
参考资料:[Minecraft Wiki](https://zh.minecraft.wiki/%E5%91%BD%E4%BB%A4)
已测试可用的游戏版本Minecraft Java 正式版 1.10.X、1.11.X、1.12.X
---
## 用到的命令
```text
/summon Minecart ~ ~ ~ {CustomDisplayTile:1,DisplayTile:"`方块 ID`",DisplayData:`方块数据值`,DisplayOffset:`方块垂直位移`}
```
```text
/entitydata @e[r=`半径`,type=Minecart] {CustomDisplayTile:1,DisplayTile:"`方块 ID`",DisplayData:`方块数据值`,DisplayOffset:`方块垂直位移`}
```
---
[阅读全文](https://www.bilibili.com/read/cv1718197)