请选择 进入手机版 | 继续访问电脑版
查看: 2299|回复: 19

[技巧教程] [我不会命令方块]某萌新的小玩意——忍者套装

[复制链接]
回帖奖励 3 金锭 回复本帖可获得 1 金锭奖励! 每人限 1 次(中奖概率 90%)

99

主题

2390

帖子

1438

积分

Lv.7 下界居民

UID
5000750
小麦
727
金锭
925
下界之星
0
发表于 2018-8-7 14:38:36 | 显示全部楼层 |阅读模式
某萌新的小玩意——忍者套装
前言
本来是参加活动的,不过活动不允许1.13的java版
好吧,反正奖励也没什么用
我还是做完了,嗯,权当练习好了
-----------------------------------------------------------------------------
作品演示
视频扔到B站了
-----------------------------------------------------------------------------
命令部分
用Function写的,以下是高频的部分
  1. execute as @e[type=item,nbt={Item:{id:"minecraft:emerald",Count:1b},OnGround:1b}] at @s if block ~ ~-1 ~ minecraft:gold_block if block ~1 ~-1 ~ minecraft:obsidian if block ~-1 ~-1 ~ minecraft:obsidian if block ~ ~-1 ~1 minecraft:obsidian if block ~ ~-1 ~-1 minecraft:obsidian if block ~1 ~-1 ~1 minecraft:obsidian if block ~-1 ~-1 ~-1 minecraft:obsidian if block ~1 ~-1 ~-1 minecraft:obsidian if block ~-1 ~-1 ~1 minecraft:obsidian run execute as @e[type=item,nbt={Item:{id:"minecraft:ink_sac",Count:1b},OnGround:1b},distance=..2] run execute as @e[type=item,nbt={Item:{id:"minecraft:diamond_sword",Count:1b},OnGround:1b},distance=..2] run summon item ~ ~0.5 ~ {Tags:["ninja"],Item:{id:"minecraft:golden_sword",Count:1b,tag:{Unbreakable:1b,HideFlags:1,Enchantments:[{id:"minecraft:sharpness",lvl:5s},{id:"minecraft:knockback",lvl:2s}],display:{Name:""ninja's sword"",Lore:["NOTHING IS TRUE","EVERYTHING IS PERMITTED"]}}}}
  2. #绿宝石*1+墨囊*1+钻石剑*1
  3. execute as @e[tag=ninja,type=item] at @s run kill @e[type=item,tag=!ninja,distance=..2]
  4. execute as @e[tag=ninja,type=item] at @s run particle minecraft:smoke ~ ~ ~ 0.05 0.1 0.05 0.02 1 normal @a
  5. execute as @a[nbt={Inventory:[{id:"minecraft:golden_sword",Count:1b,tag:{HideFlags:1},Slot:-106b}]}] run scoreboard players set @s ninja 2
  6. scoreboard players remove @a[scores={ninja=1..}] ninja 1
  7. clear @a[scores={ninja=1}] minecraft:golden_sword{Unbreakable:1b,HideFlags:1} 1
  8. execute as @a[scores={ninja=1}] at @s run particle minecraft:smoke ~ ~ ~ 1.5 1.5 1.5 0.01 2000
  9. execute as @a[scores={ninja=1}] run replaceitem entity @s armor.head minecraft:leather_helmet{display:{color:0,Name:""ninja's helmet""},Unbreakable:1b,Enchantments:[{id:"minecraft:protection",lvl:5s}]} 1
  10. execute as @a[scores={ninja=1}] run replaceitem entity @s armor.chest minecraft:leather_chestplate{display:{color:0,Name:""ninja's chestplate""},Unbreakable:1b,Enchantments:[{id:"minecraft:protection",lvl:5s}]} 1
  11. execute as @a[scores={ninja=1}] run replaceitem entity @s armor.legs minecraft:leather_leggings{display:{color:0,Name:""ninja's leggings""},Unbreakable:1b,Enchantments:[{id:"minecraft:protection",lvl:5s}]} 1
  12. execute as @a[scores={ninja=1}] run replaceitem entity @s armor.feet minecraft:leather_boots{display:{color:0,Name:""ninja's boots""},Unbreakable:1b,Enchantments:[{id:"minecraft:protection",lvl:5s}]} 1
  13. execute as @a[scores={ninja=1}] run replaceitem entity @s container.0 minecraft:golden_sword{Unbreakable:1b,Enchantments:[{id:"minecraft:sharpness",lvl:5s},{id:"minecraft:knockback",lvl:2s}],display:{Name:""ninja's sword"",Lore:["NOTHING IS TRUE","EVERYTHING IS PERMITTED"]}} 1
  14. execute as @a[scores={ninja=1}] run replaceitem entity @s container.1 minecraft:feather{display:{Name:""技能一""},Enchantments:[{id:"minecraft:protection",lvl:1s}],HideFlags:63} 1
  15. execute as @a[scores={ninja=1}] run replaceitem entity @s container.2 minecraft:gray_dye{display:{Name:""技能二""},Enchantments:[{id:"minecraft:protection",lvl:1s}],HideFlags:63} 1
  16. execute as @a[scores={ninja=1}] run replaceitem entity @s container.3 minecraft:nether_star{display:{Name:""技能三""},Enchantments:[{id:"minecraft:protection",lvl:1s}],HideFlags:63} 1
  17. scoreboard players set @a[scores={ninja=1}] ninja 0
  18. #判断全套装备------------------------------
  19. scoreboard players set @a[nbt={Inventory:[{id:"minecraft:leather_helmet",Count:1b,Slot:103b,tag:{Unbreakable:1b,display:{color:0,Name:""ninja's helmet""}}},{id:"minecraft:leather_chestplate",Count:1b,Slot:102b,tag:{Unbreakable:1b,display:{color:0,Name:""ninja's chestplate""}}},{id:"minecraft:leather_leggings",Count:1b,Slot:101b,tag:{Unbreakable:1b,display:{color:0,Name:""ninja's leggings""}}},{id:"minecraft:leather_boots",Count:1b,Slot:100b,tag:{Unbreakable:1b,display:{color:0,Name:""ninja's boots""}}}]}] ninja_armor 2
  20. scoreboard players remove @a[scores={ninja_armor=1..}] ninja_armor 1
  21. effect give @a[scores={ninja_armor=1}] minecraft:night_vision 1 1 true
  22. #技能1----------------------
  23. scoreboard players set @a[scores={ninja_armor=1},nbt={Inventory:[{id:"minecraft:feather",Slot:-106b,Count:1b,tag:{Enchantments:[{id:"minecraft:protection",lvl:1s}]}}]}] skill_1 1
  24. execute as @a[scores={skill_1=1}] at @s anchored eyes if block ^ ^ ^6 minecraft:air run tp @s ^ ^ ^6
  25. execute as @a[scores={skill_1=1}] run effect give @s minecraft:speed 2 2 true
  26. execute as @a[scores={skill_1=1}] run effect give @s minecraft:jump_boost 2 1 true
  27. execute as @a[scores={skill_1=1}] run scoreboard players set @s skill_1_CD 200
  28. clear @a[scores={skill_1=1}] minecraft:feather{Enchantments:[{id:"minecraft:protection",lvl:1s}]}
  29. scoreboard players set @a[scores={skill_1=1}] skill_1 0
  30. scoreboard players remove @a[scores={skill_1_CD=0..}] skill_1_CD 1
  31. execute as @a[scores={skill_1_CD=0}] run replaceitem entity @s container.1 minecraft:feather{display:{Name:""技能一""},Enchantments:[{id:"minecraft:protection",lvl:1s}],HideFlags:63} 1
  32. #技能2-------------------------
  33. scoreboard players set @a[scores={ninja_armor=1},nbt={Inventory:[{id:"minecraft:gray_dye",Slot:-106b,Count:1b,tag:{Enchantments:[{id:"minecraft:protection",lvl:1s}]}}]}] skill_2 1
  34. execute as @a[scores={skill_2=1}] run tag @s add skill_2
  35. execute as @a[tag=skill_2] at @s run effect give @p[tag=!skill_2,distance=..15] minecraft:blindness 4 0 true
  36. execute as @a[tag=skill_2] at @s run effect give @p[tag=!skill_2,distance=..15] minecraft:weakness 6 2 true
  37. execute as @a[tag=skill_2] at @s run execute as @p[tag=!skill_2,distance=..15] at @s run particle smoke ~ ~2.5 ~ 0.01 0.01 0.01 0.01 100 normal
  38. execute as @a[tag=skill_2] run scoreboard players set @s skill_2_CD 240
  39. tag @a[tag=skill_2] remove skill_2
  40. clear @a[scores={skill_2=1}] minecraft:gray_dye{Enchantments:[{id:"minecraft:protection",lvl:1s}]}
  41. execute as @a[scores={skill_2=1}] run scoreboard players set @s skill_2 0
  42. scoreboard players remove @a[scores={skill_2_CD=0..}] skill_2_CD 1
  43. execute as @a[scores={skill_2_CD=0}] run replaceitem entity @s container.2 minecraft:gray_dye{display:{Name:""技能二""},Enchantments:[{id:"minecraft:protection",lvl:1s}],HideFlags:63} 1
  44. #技能3----------------------------
  45. scoreboard players set @a[scores={ninja_armor=1},nbt={Inventory:[{id:"minecraft:nether_star",Slot:-106b,Count:1b,tag:{Enchantments:[{id:"minecraft:protection",lvl:1s}]}}]}] skill_3 1
  46. execute as @a[scores={skill_3=1}] run tag @s add skill_3
  47. execute as @a[tag=skill_3] at @s run execute as @p[distance=..20,tag=!skill_3] at @s anchored eyes run tp @a[tag=skill_3] ^ ^ ^-1.5
  48. execute as @a[tag=skill_3] run effect give @s minecraft:strength 4 2 true
  49. clear @a[tag=skill_3] minecraft:nether_star{display:{Name:""技能三""},Enchantments:[{id:"minecraft:protection",lvl:1s}],HideFlags:63}
  50. execute as @a[tag=skill_3] run scoreboard players set @s skill_3_CD 300
  51. execute as @a[tag=skill_3] run scoreboard players set @s skill_3 0
  52. execute as @a[tag=skill_3] run tag @s remove skill_3
  53. scoreboard players remove @a[scores={skill_3_CD=0..}] skill_3_CD 1
  54. execute as @a[scores={skill_3_CD=0}] run replaceitem entity @s container.3 minecraft:nether_star{display:{Name:""技能三""},Enchantments:[{id:"minecraft:protection",lvl:1s}],HideFlags:63} 1
  55. #击杀刷新CD
  56. execute as @a[scores={skill_3_kill=1..}] run scoreboard players set @s skill_3_CD 1
  57. scoreboard players set @a[scores={skill_3_kill=1..}] skill_3_kill 0
复制代码
简单写了注释  虽然并没有实际用处
都是简单的指令,不多说了
-----------------------------------------------------------------------------
数据包下载
ninja.rar (2.44 KB, 下载次数: 13)

5

主题

211

帖子

98

积分

Lv.3 矿物能手

UID
153756
小麦
38
金锭
734
下界之星
0
发表于 2018-8-7 16:14:10 | 显示全部楼层

回帖奖励 +1 金锭

好像得用基岩版...

点评

本来也没打算参加=.=  发表于 2018-8-7 16:29

11

主题

1547

帖子

1017

积分

Lv.7 下界居民

UID
288467
小麦
614
金锭
2922
下界之星
0
发表于 2018-8-7 16:18:26 | 显示全部楼层

回帖奖励 +1 金锭

看的我眼花缭乱

88

主题

4万

帖子

1万

积分

Lv.10 屠龙领主

Lv.MAX 水泵

UID
876177
小麦
853
金锭
23057
下界之星
0

三周年纪念勋章二周年纪念勋章

发表于 2018-8-7 20:28:57 | 显示全部楼层

回帖奖励 +1 金锭

看不懂

0

主题

6

帖子

2

积分

Lv.1 新手木匠

UID
5596939
小麦
0
金锭
0
下界之星
0
发表于 2018-8-15 17:22:09 | 显示全部楼层
还行awa

24

主题

670

帖子

201

积分

Lv.5 农牧专家

UID
176047
小麦
7
金锭
343
下界之星
0
发表于 2018-8-15 18:04:53 | 显示全部楼层

回帖奖励 +1 金锭

来,我给你的3个技能起名字【警告,中二病患者来袭!】
技能1:闪烁
技能2:迷失黑雾
技能3:死亡背击

233333

评分

参与人数 2 小麦 +2 收起 理由
小红娘QwQ + 1 观点赞同
Argon_gas + 1 乐于助人

查看全部评分

一个姓施的神经质

0

主题

39

帖子

10

积分

Lv.1 新手木匠

UID
5638162
小麦
0
金锭
44
下界之星
0
发表于 2018-8-16 21:10:18 | 显示全部楼层

回帖奖励 +1 金锭

这题目

406

主题

9612

帖子

5162

积分

Lv.9 终界行者

如需远程协助,请点击本人签名档联系我。

UID
187749
小麦
2296
金锭
4128
下界之星
0

三周年纪念勋章二周年纪念勋章

发表于 2018-8-16 22:15:43 | 显示全部楼层

回帖奖励 +1 金锭

领锭失败

1

主题

32

帖子

9

积分

Lv.1 新手木匠

UID
5365979
小麦
0
金锭
4
下界之星
0
发表于 2018-8-27 16:09:48 | 显示全部楼层
666666

65

主题

795

帖子

372

积分

Lv.5 农牧专家

UID
14859
小麦
93
金锭
456
下界之星
0
发表于 2018-8-28 21:47:57 | 显示全部楼层
真巧,我也不会命令方块,一起摸鱼吧
甘小蔗是我,我是甘小蔗!不是盗取什么的!委屈!

14

主题

819

帖子

264

积分

Lv.5 农牧专家

UID
4921490
小麦
39
金锭
1194
下界之星
0
发表于 2018-8-29 09:02:52 | 显示全部楼层

回帖奖励 +1 金锭

MCSugar_cane 发表于 2018-8-28 21:47
真巧,我也不会命令方块,一起摸鱼吧

真巧!我也是,来来来组队摸鱼[2/10]

22

主题

381

帖子

121

积分

Lv.4 怪物猎人

UID
267984
小麦
2
金锭
375
下界之星
0
发表于 2018-8-29 18:21:18 | 显示全部楼层

回帖奖励 +1 金锭

挺好

3

主题

33

帖子

11

积分

Lv.1 新手木匠

UID
5565279
小麦
0
金锭
39
下界之星
0
发表于 2018-9-3 15:41:48 | 显示全部楼层
6666666666

0

主题

3

帖子

1

积分

Lv.1 新手木匠

UID
5770226
小麦
0
金锭
8
下界之星
0
发表于 2018-9-30 19:53:01 | 显示全部楼层
66666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666虽然我看不懂66666666666666666666666666666666666666666666666666666666666666666666666但还是发点吧666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
头像被屏蔽

0

主题

6

帖子

3

积分

Lv.? 禁止发言

UID
5943155
小麦
1
金锭
-10
下界之星
0
发表于 2019-3-24 10:11:10 | 显示全部楼层

回帖奖励 +1 金锭

提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

返回顶部