找回密码
 加入最MC
搜索
热搜: 活动 交友 discuz
查看: 6821|回复: 2

[其他] [MC1.8+]无mod实现矿物探测

[复制链接]
发表于 2014-7-31 12:14:53 | 显示全部楼层 |阅读模式
本帖最后由 tyson 于 2014-7-31 12:14 编辑

大家好,我是新来到论坛的tyson,但我可不是小白,混个脸熟
今天我为大家带来[1.8+][Tyson]无mod矿物探测器



效果展示:





原理:


其中
橙色,紫红,黄色,灰色(黄色下面)蓝色为需要不断激活的命令

而白色,粉红色,绿色为之前准备用的命令



首先是白色
  1. /scoreboard objectives add diamonds dummy
复制代码
创建一个变量 diamonds

粉红色
  1. <span style="background-color: white;">/scoreboard objectives setdisplay sidebar diamonds</span>
复制代码
将侧边栏显示diamonds

绿色
  1. /gamerule commandBlockOutput False
复制代码
关闭命令方块提示



橙色
/scoreboard players set @p diamonds 1 {ActiveEffects:[{Id:2b,Amplifier:1b}]}
将拥有迟缓效果的玩家diamonds设定为1



紫红色
execute @p[score_diamonds_min=1] ~ ~ ~ fill ~-3 1 ~-3 ~3 15 ~3 minecraft:air 1 replace minecraft:diamond_ore
在diamonds为一的玩家下方把钻石替换为空气



黄色
/tellraw @p {text:"发现钻石",color:blue}
不解释



灰色
execute @p[score_diamonds_min=1] ~ ~ ~ fill ~-3 1 ~-3 ~3 15 ~3 minecraft:diamond_ore 1 replace minecraft:air
在玩家下方把空气再替换钻石



蓝色
/scoreboard players set @a[score_diamonds_min=1] diamonds 0
最后分数归0





附录
药水指令
  1. /give @p minecraft:potion 1 16421 {CustomPotionEffects:[{Id:2,Amplifier:1,Duration:400}]
复制代码

谢谢大家


评分

参与人数 1人气 +10 MC币 +30 收起 理由
TKR + 10 + 30 最MC有你更精彩!

查看全部评分

发表于 2014-12-7 12:05:00 | 显示全部楼层
屌爆了
发表于 2014-12-10 23:12:22 | 显示全部楼层
爱死1.8
您需要登录后才可以回帖 登录 | 加入最MC

本版积分规则

Archiver|手机版|小黑屋|最MC论坛 ( 粤ICP备12035413号 )

GMT+8, 2026-12-1 04:22 , Processed in 0.033106 second(s), 19 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表