求告知命令方块指令怎么做出检测到玩家走到某个指定方块上就会传送,或者就会有反应。
【就像是玩家踩到了压力板一样,传出红石信号做出反应】
还有一个小问题。
为什么我用命令方块发出消息,怎么只支持数字的?
不是可以发中文,或者汉字的吗?【版本1.12.1】



【就像是玩家踩到了压力板一样,传出红石信号做出反应】
还有一个小问题。
为什么我用命令方块发出消息,怎么只支持数字的?
不是可以发中文,或者汉字的吗?【版本1.12.1】
高频命令方块:
execute @p ~ ~ ~ detect ~ ~-1 ~ minecraft:方块名 0 tp @p 坐标
你tellraw的格式不对
应该是
tellraw @a {"text":"内容"}
execute @p ~ ~ ~ detect ~ ~-1 ~ minecraft:方块名 0 tp @p 坐标
你tellraw的格式不对
应该是
tellraw @a {"text":"内容"}
1.复制代码
2.点击http://minecraft.tools/en/tellraw.php就行
- execute @p x y z(那个方块的坐标的y+1)tp @p x2 y2 z2(要传送的地方)
2.点击http://minecraft.tools/en/tellraw.php就行
可以试试在 @a[x.z.y=范围]
1.不知道你要的是下面哪一种
(1)
保持开启模式
命令:tp @a[x=检测点坐标,y=检测点坐标,z=检测点坐标,dx=0,dy=0,dz=0] 目的地的坐标
注意:目的地坐标和检测点坐标不能相同
效果:走到检测点坐标会被传送到目的地坐标,不管脚下是什么方块
(2)
保持开启模式
命令:execute @a ~ ~ ~ detect ~ ~-1 ~ 检测方块id 方块数据值 tp @p 目的地坐标目的地坐标下方不得有 检测方块
效果:走到任意 检测方块 上就会传送到目的地坐标,不管现在所在的坐标
(例如execute @a ~ ~ ~ detect ~ ~-1 ~ stone 0 tp @p 目的地坐标,就是踩到石头就传送到目的地坐标)
(3)综合上面两种
保持开启模式
命令:execute @a[x=检测点坐标,y=检测点坐标,z=检测点坐标,dx=0,dy=0,dz=0] ~ ~ ~ detect ~ ~-1 ~ 检测方块id 方块数据值 tp @p 目的地坐标
效果:在检测点坐标踩到检测方块就传送到目的地坐标
(4)楼主又说要红石信号的,那就这样

保持开启
我不是很建议使用这种
<1>命令:testfor @a[x=检测点坐标,y=检测点坐标,z=检测点坐标,dx=0,dy=0,dz=0]
效果:检测点坐标有玩家,则会输出红石信号
<2>命令:execute @a ~ ~ ~ testforblock ~ ~-1 ~ 检测方块 数据值
效果:玩家走到检测方块上则会输出红石信号
<3>综合,命令:execute @a[x=检测点坐标,y=检测点坐标,z=检测点坐标,dx=0,dy=0,dz=0] ~ ~ ~ testforblock ~ ~-1 ~ 检测方块 数据值
效果:走到检测点坐标并且脚下是检测方块就输出红石信号
2.你起码应该输入tellraw @a {"text":"内容"}
https://minecraft-zh.gamepedia.com/%E5%91%BD%E4%BB%A4#tellraw
看里面的原始json文本和tellraw命令,还可以加些color(颜色)之类的东西
(1)

命令:tp @a[x=检测点坐标,y=检测点坐标,z=检测点坐标,dx=0,dy=0,dz=0] 目的地的坐标
注意:目的地坐标和检测点坐标不能相同
效果:走到检测点坐标会被传送到目的地坐标,不管脚下是什么方块
(2)

命令:execute @a ~ ~ ~ detect ~ ~-1 ~ 检测方块id 方块数据值 tp @p 目的地坐标目的地坐标下方不得有 检测方块
效果:走到任意 检测方块 上就会传送到目的地坐标,不管现在所在的坐标
(例如execute @a ~ ~ ~ detect ~ ~-1 ~ stone 0 tp @p 目的地坐标,就是踩到石头就传送到目的地坐标)
(3)综合上面两种

命令:execute @a[x=检测点坐标,y=检测点坐标,z=检测点坐标,dx=0,dy=0,dz=0] ~ ~ ~ detect ~ ~-1 ~ 检测方块id 方块数据值 tp @p 目的地坐标
效果:在检测点坐标踩到检测方块就传送到目的地坐标
(4)楼主又说要红石信号的,那就这样


我不是很建议使用这种
<1>命令:testfor @a[x=检测点坐标,y=检测点坐标,z=检测点坐标,dx=0,dy=0,dz=0]
效果:检测点坐标有玩家,则会输出红石信号
<2>命令:execute @a ~ ~ ~ testforblock ~ ~-1 ~ 检测方块 数据值
效果:玩家走到检测方块上则会输出红石信号
<3>综合,命令:execute @a[x=检测点坐标,y=检测点坐标,z=检测点坐标,dx=0,dy=0,dz=0] ~ ~ ~ testforblock ~ ~-1 ~ 检测方块 数据值
效果:走到检测点坐标并且脚下是检测方块就输出红石信号
2.你起码应该输入tellraw @a {"text":"内容"}
https://minecraft-zh.gamepedia.com/%E5%91%BD%E4%BB%A4#tellraw
看里面的原始json文本和tellraw命令,还可以加些color(颜色)之类的东西
不是不能中文是你的指令不对,tellraw是这样用的
tellraw @a {"text":"中文字"}
然后走方块那个是
execute @p x y z tp @p x` y` z`
tellraw @a {"text":"中文字"}
然后走方块那个是
execute @p x y z tp @p x` y` z`