我的世界手雷,燃燒瓶,煙霧彈,閃光彈投擲物指令

可擴(kuò)展式投擲物??????
注意??:
[給想要擴(kuò)展的一點(diǎn)提示]??
投擲物1是燃燒瓶
投擲物2是閃光彈
投擲物3是手榴彈
投擲物4是煙霧彈
做新的投擲物就改盔甲架的名改改效果就行了(你得有指令基礎(chǔ)吧)
[創(chuàng)建記分板]??
/scoreboard objectives add?投擲物?dummy
<手持檢測(cè)>
【標(biāo)注??:特殊值為0的是燃燒瓶,1是閃光彈,2是手榴彈,4是煙霧彈
獲取方法:give @s snowball 16?特殊值】
scoreboard players set @a?投擲物?0
scoreboard players set @a?[hasitem={item=snowball,location=slot.weapon.mainhand,slot=0,data=0}]?投擲物?1
scoreboard players set @a?[hasitem={item=snowball,location=slot.weapon.mainhand,slot=0,data=1}]?投擲物?2
scoreboard players set @a?[hasitem={item=snowball,location=slot.weapon.mainhand,slot=0,data=2}]?投擲物?3
scoreboard players set @a?[hasitem={item=snowball,location=slot.weapon.mainhand,slot=0,data=3}]?投擲物?4
<第一部分>
[讓雪球知道扔自己的是個(gè)什么貨色]??
execute @e?[type=snowball,tag=!已檢測(cè)類別]?~~~ tag @p add?投擲
<第二部分>
[讓貨色自己扔的雞蛋也知道自己是個(gè)什么貨色]??
execute @e?[tag=投擲,scores={投擲物=1}]?~~~ tag @e?[c=1,type=snowball,tag=!已檢測(cè)類別]?add?燃燒瓶
execute @e?[tag=投擲,scores={投擲物=2}]?~~~ tag @e?[c=1,type=snowball,tag=!已檢測(cè)類別]?add?閃光彈
execute @e?[tag=投擲,scores={投擲物=3}]?~~~ tag @e?[c=1,type=snowball,tag=!已檢測(cè)類別]?add?手榴彈
execute @e?[tag=投擲,scores={投擲物=4}]?~~~ tag @e?[c=1,type=snowball,tag=!已檢測(cè)類別]?add?煙霧彈
tag @e add?已檢測(cè)類別
tag @e remove?投擲
<第三部分>
[創(chuàng)建記分板]??
/scoreboard objectives add?燃燒瓶投擲?dummy
[燃燒瓶的投擲]
scoreboard players add @e?燃燒瓶投擲?0
execute @e?[type=snowball,tag=燃燒瓶,tag=已檢測(cè)類別,scores={燃燒瓶投擲=0}]?~~~ summon armor_stand?燃燒瓶?~~50~
execute @e?[type=snowball,tag=燃燒瓶,tag=已檢測(cè)類別,scores={燃燒瓶投擲=0}]?~~~ scoreboard players set @s?燃燒瓶投擲?1
scoreboard players add @e?[type=armor_stand,name=燃燒瓶]?燃燒瓶投擲?1
execute @e?[type=armor_stand,name=燃燒瓶,scores={燃燒瓶投擲=1}]?~~-50~ execute @e?[type=snowball,tag=燃燒瓶,r=2,c=1]?~~50~ scoreboard players set @e?[type=armor_stand,name=燃燒瓶,r=2,c=1,scores={燃燒瓶投擲=1}]?燃燒瓶投擲?0
execute @e?[type=armor_stand,name=燃燒瓶,scores={燃燒瓶投擲=0}]?~~-50~ execute @e?[type=snowball,tag=燃燒瓶,r=2,c=1]?~~50~ tp @e?[type=armor_stand,name=燃燒瓶,scores={燃燒瓶投擲=0},r=2,c=1]?~~~
[燃燒瓶的效果]
execute @e?[type=armor_stand,name=燃燒瓶,scores={燃燒瓶投擲=1..}]?~~~ tp @s ~~~~25
execute @e?[type=armor_stand,name=燃燒瓶,scores={燃燒瓶投擲=1..}]?~~-50~ particle minecraft:mobflame_single ^^^1.6
execute @e?[type=armor_stand,name=燃燒瓶,scores={燃燒瓶投擲=10..}]?~~-50~ particle minecraft:mobflame_single ^^^2.6
execute @e?[type=armor_stand,name=燃燒瓶,scores={燃燒瓶投擲=20..}]?~~-50~ particle minecraft:mobflame_single ^^^3.6
execute @e?[type=armor_stand,name=燃燒瓶,scores={燃燒瓶投擲=0..}]?~~~ effect @s invisibility 1 0 true
execute @e[type=armor_stand,name=燃燒瓶,scores={燃燒瓶投擲=1}]?~~-50~ playsound random.glass @a[r=50]?~ ~ ~ 100 2 100
{注意這里的100..是燃燒瓶保留的時(shí)間}
kill @e?[type=armor_stand,name=燃燒瓶,scores={燃燒瓶投擲=100..}]
{注意這里的1是傷害}
execute @e[type=armor_stand,name=燃燒瓶,scores={燃燒瓶投擲=1..}]?~~-50~ damage @e[r=3.3]1 fire_tick entity @s
<第四部分>
[創(chuàng)建記分板]??
/scoreboard objectives add?閃光彈投擲?dummy
[閃光彈的投擲]
scoreboard players add @e?閃光彈投擲?0
execute @e?[type=snowball,tag=閃光彈,tag=已檢測(cè)類別,scores={閃光彈投擲=0}]?~~~ summon armor_stand?閃光彈?~~50~
execute @e?[type=snowball,tag=閃光彈,tag=已檢測(cè)類別,scores={閃光彈投擲=0}]?~~~ scoreboard players set @s?閃光彈投擲?1
scoreboard players add @e?[type=armor_stand,name=閃光彈]?閃光彈投擲?1
execute @e?[type=armor_stand,name=閃光彈,scores={閃光彈投擲=1}]?~~-50~ execute @e?[type=snowball,tag=閃光彈,r=2,c=1]?~~50~ scoreboard players set @e?[type=armor_stand,name=閃光彈,r=2,c=1,scores={閃光彈投擲=1}]?閃光彈投擲?0
execute @e?[type=armor_stand,name=閃光彈,scores={閃光彈投擲=0}]?~~-50~ execute @e?[type=snowball,tag=閃光彈,r=2,c=1]?~~50~ tp @e?[type=armor_stand,name=閃光彈,scores={閃光彈投擲=0},r=2,c=1]?~~~
[閃光彈的效果]
execute @e?[type=armor_stand,name=閃光彈,scores={閃光彈投擲=1..}]?~~~ tp @s ~~~~25
execute @e?[type=armor_stand,name=閃光彈,scores={閃光彈投擲=2..}]?~~-50~ particle minecraft:totem_particle ^^^1
execute @e?[type=armor_stand,name=閃光彈,scores={閃光彈投擲=1..3}]?~~-50~ particle minecraft:huge_explosion_lab_misc_emitter ~~~
execute @e?[type=armor_stand,name=閃光彈,scores={閃光彈投擲=0..}]?~~~ effect @s invisibility 1 0 true
execute @e[type=armor_stand,name=閃光彈,scores={閃光彈投擲=1..3}]?~~-50~ playsound mob.enderdragon.growl @a[r=35]?~~~ 1 15 1?
execute @e[type=armor_stand,name=閃光彈,scores={閃光彈投擲=1..3}]?~~-50~ effect @e?[r=2.5]blindness 5 1 true
execute @e[type=armor_stand,name=閃光彈,scores={閃光彈投擲=1..3}]?~~-50~ effect @e?[r=2.5]nausea 5 1 true
execute @e[type=armor_stand,name=閃光彈,scores={閃光彈投擲=1..3}]?~~-50~ effect @e?[r=2.5]slowness 5 1 true
{注意這里的100..是保留的時(shí)間}
kill @e?[type=armor_stand,name=閃光彈,scores={閃光彈投擲=50..}]
<第五部分>
[創(chuàng)建記分板]??
/scoreboard objectives add?手榴彈投擲?dummy
/scoreboard objectives add?手榴倒計(jì)時(shí)?dummy
[手榴彈的投擲]
scoreboard players add @e?手榴彈投擲?0
execute @e?[type=snowball,tag=手榴彈,tag=已檢測(cè)類別,scores={手榴彈投擲=0}]?~~~ summon armor_stand?手榴彈?~~50~
execute @e?[type=snowball,tag=手榴彈,tag=已檢測(cè)類別,scores={手榴彈投擲=0}]?~~~ scoreboard players set @s?手榴彈投擲?1
scoreboard players add @e?[type=armor_stand,name=手榴彈]?手榴彈投擲?1
scoreboard players add @e?[type=armor_stand,name=手榴彈]?手榴倒計(jì)時(shí)?1
execute @e?[type=armor_stand,name=手榴彈,scores={手榴彈投擲=1}]?~~-50~ execute @e?[type=snowball,tag=手榴彈,r=2,c=1]?~~50~ scoreboard players set @e?[type=armor_stand,name=手榴彈,r=2,c=1,scores={手榴彈投擲=1}]?手榴彈投擲?0
execute @e?[type=armor_stand,name=手榴彈,scores={手榴彈投擲=0}]?~~-50~ execute @e?[type=snowball,tag=手榴彈,r=2,c=1]?~~50~ tp @e?[type=armor_stand,name=手榴彈,scores={手榴彈投擲=0},r=2,c=1]?~~~
[手榴彈的效果]
execute @e?[type=armor_stand,name=手榴彈,scores={手榴彈投擲=1..}]?~~~ detect ~~-50~ air 0 tp @s ~~-0.3~
execute @e?[type=armor_stand,name=手榴彈,scores={手榴彈投擲=1..}]?~~~ tp @s @s
execute @e?[type=armor_stand,name=手榴彈,scores={手榴彈投擲=2..}]?~~-49.7~ particle minecraft:balloon_gas_particle ~~~
execute @e?[type=armor_stand,name=手榴彈,scores={手榴倒計(jì)時(shí)=50..}]?~~-50~ particle minecraft:huge_explosion_lab_misc_emitter ~~~
execute @e?[type=armor_stand,name=手榴彈,scores={手榴彈投擲=0..}]?~~~ effect @s invisibility 1 0 true
execute @e[type=armor_stand,name=手榴彈,scores={手榴倒計(jì)時(shí)=50..}]?~~-50~ playsound random.explode @a?[r=60]?~~~ 100 1 100
execute @e[type=armor_stand,name=手榴彈,scores={手榴倒計(jì)時(shí)=50..}]?~~-50~ damage @e?[r=3]25 fire_tick entity @s
execute @e[type=armor_stand,name=手榴彈,scores={手榴倒計(jì)時(shí)=50..}]?~~-50~ damage @e[r=5]15 fire_tick entity @s
execute @e[type=armor_stand,name=手榴彈,scores={手榴倒計(jì)時(shí)=50..}]?~~-50~ effect @e?[r=6]slowness 3 3 true
execute @e[type=armor_stand,name=手榴彈,scores={手榴倒計(jì)時(shí)=50..}]?~~-50~ effect @e?[r=3]wither 3 1 true
execute @e[type=armor_stand,name=手榴彈,scores={手榴倒計(jì)時(shí)=50..}]?~~-50~ camerashake add @a?[r=3]?2 1
execute @e[type=armor_stand,name=手榴彈,scores={手榴倒計(jì)時(shí)=50..}]?~~-50~ camerashake add @a?[r=7]?1 0.5
kill @e?[type=armor_stand,name=手榴彈,scores={手榴倒計(jì)時(shí)=50..}]
<第六部分>
[創(chuàng)建記分板]??
/scoreboard objectives add?煙霧彈投擲?dummy
[煙霧彈的投擲]
scoreboard players add @e?煙霧彈投擲?0
execute @e?[type=snowball,tag=煙霧彈,tag=已檢測(cè)類別,scores={煙霧彈投擲=0}]?~~~ summon armor_stand?煙霧彈?~~50~
execute @e?[type=snowball,tag=煙霧彈,tag=已檢測(cè)類別,scores={煙霧彈投擲=0}]?~~~ scoreboard players set @s?煙霧彈投擲?1
scoreboard players add @e?[type=armor_stand,name=煙霧彈]?煙霧彈投擲?1
execute @e?[type=armor_stand,name=煙霧彈,scores={煙霧彈投擲=1}]?~~-50~ execute @e?[type=snowball,tag=煙霧彈,r=2,c=1]?~~50~ scoreboard players set @e?[type=armor_stand,name=煙霧彈,r=2,c=1,scores={煙霧彈投擲=1}]?煙霧彈投擲?0
execute @e?[type=armor_stand,name=煙霧彈,scores={煙霧彈投擲=0}]?~~-50~ execute @e?[type=snowball,tag=煙霧彈,r=2,c=1]?~~50~ tp @e?[type=armor_stand,name=煙霧彈,scores={煙霧彈投擲=0},r=2,c=1]?~~~
[煙霧彈的效果]
execute @e?[type=armor_stand,name=煙霧彈,scores={煙霧彈投擲=1..}]?~~~ tp @s ~~~~25
execute @e?[type=armor_stand,name=煙霧彈,scores={煙霧彈投擲=20..}]?~~-50~ particle minecraft:knockback_roar_particle ^^^1.6
execute @e?[type=armor_stand,name=煙霧彈,scores={煙霧彈投擲=20..}]?~~-50~ particle minecraft:knockback_roar_particle ^^^-1.6
execute @e?[type=armor_stand,name=煙霧彈,scores={煙霧彈投擲=20..}]?~~-50~ particle minecraft:knockback_roar_particle ^^^
execute @e?[type=armor_stand,name=煙霧彈,scores={煙霧彈投擲=1..20}]?~~-50~ particle minecraft:misc_fire_vapor_particle ~~~
execute @e?[type=armor_stand,name=煙霧彈,scores={煙霧彈投擲=0..}]?~~~ effect @s invisibility 1 0 true
execute @e[type=armor_stand,name=煙霧彈,scores={煙霧彈投擲=20..}]?~~-50~ playsound ambient.weather.thunder @a[r=40]?~~ 100 5 100
{注意這里的100..是保留的時(shí)間}
kill @e?[type=armor_stand,name=煙霧彈,scores={煙霧彈投擲=160..}]