本帖最后由 123456789xxxx 于 2015-11-15 15:09 编辑
嗯,第........次发帖了呢
这几个月闭关修炼计分板,结果也什么都没学成= =
这次来了点灵感,想到了个非常有实用性的东西
那么本帖就结束了
很多RPG加生存服务器里面都有用多少游戏币来够买什么权限之类的
但是有些细心的童鞋会发现有的就是一堵墙,一个按钮,但是后面没有命令方块或者什么的
那么在没有插件的情况下我们怎么实现呢









这分割线真难看
那么首先,我们需要一堵墙
:废话!
在某个隐蔽的地方放这么几个命令方块
虽然不是很隐蔽233
蓝色羊毛处
上:
复制代码下:复制代码
超频,不多说
复制代码
这一步很重要,如果不加数据值的话那么你放一个木按钮它就会触发
数据值填什么
黄色羊毛处填你想要触发的指令
弄完了之后我们来按一下按钮
墙后面是没有任何方块的



这分割线真的好丑
谢谢观看
嗯,第........次发帖了呢
这几个月闭关修炼计分板,结果也什么都没学成= =
这次来了点灵感,想到了个非常有实用性的东西
那么本帖就结束了
很多RPG加生存服务器里面都有用多少游戏币来够买什么权限之类的
但是有些细心的童鞋会发现有的就是一堵墙,一个按钮,但是后面没有命令方块或者什么的
那么在没有插件的情况下我们怎么实现呢









这分割线真难看
那么首先,我们需要一堵墙


在某个隐蔽的地方放这么几个命令方块

虽然不是很隐蔽233
蓝色羊毛处
上:
- /setblock ~ ~-1 ~ redstone_block
- /setblock ~ ~1 ~ air
超频,不多说
- /testforblock x y z minecraft:wooden_button 数据值
这一步很重要,如果不加数据值的话那么你放一个木按钮它就会触发
数据值填什么
黄色羊毛处填你想要触发的指令
弄完了之后我们来按一下按钮

墙后面是没有任何方块的



这分割线真的好丑
谢谢观看
嗯新人发帖请大家原谅
沙发233
沙发233
原来如此,长了见识了呢{:10_512:}
谁不知道啊-_-#
话说可以顶贴么= =
知道了,我还以为是真正的隐形,别人看不见,没法拆(我恨拆CB的家伙)
哦,原来是用命令方块测试那个按钮的数据,当数据发生变化时,比较器数出能量,激活你要的命令,简单,等我会用命令方块来做mod时,我发个贴,因为某人的贴用不了
840196733mw 发表于 2015-11-15 09:13
知道了,我还以为是真正的隐形,别人看不见,没法拆(我恨拆CB的家伙)
除了创造模式,没人能破坏命令方块,但是通过一个命令方块激活多个命令我还是会的,就是不太熟
还是在标题上边打上适用版本吧,不然看不懂
不记得是哪个版本加的testforblock了