我的世界魚竿槍指令教程(可直接復(fù)制)

1.先創(chuàng)建一個積分榜(這樣可以計算彈藥飛行時間從而刪除彈藥減免卡頓)
[/scoreboard objectives add distance dummy ]←(這里可以隨便編輯一個①execute @e[type=fishing_hook] ~~~ boat
這個是在魚竿前生成船(也就是子彈)
②execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~30 ~ tp @e[name=v,r=3,c=1] ^ ^ ^-0.01 facing ~ ~ ~
這個是讓船朝向玩家視角前方
③effect @e[type=boat] invisibility 1 1
給予④execute @e[type=boat] ~~~ tp @s ^^^ -2
這條是讓船向玩家前方tp
⑤execute @e[type=boat] ~~-1000~ effect @e[r=1.5] instant_damage 1 0 true
(最重要的一點 想調(diào)傷害把那個零的數(shù)值調(diào)一下就行)
這個是在船范圍內(nèi) 造成一定的傷害
⑥execute @e [type=!boat] ~~1000~ kill @e[type=boat,r=1.5]
這個指令讓⑦execute @e[type=fishing_hook] ~~~ summon boat
檢測魚竿,然后生成船
⑧execute @e[type=fishing_hook] ~~~ execute @p ~~1000~ tp @e[type=boat,c=1] ^^^0.1 facing ~~~
在玩家上方1000格生成船
然后朝著玩家的方向tp
⑨execute @e[type=fishing_hook] ~~~ playsound block.false_permissions @s
這個就播放槍械聲音(我這里填的是清脆的響聲) 可在@s 與 playsound 之間 的指令進行更改
⑩kill @e[type=fishing_hook]
清除魚竿?execute @e[type=boat] ~~-999~ particle minecraft:endrod ~~~?scoreboard players add @e[type=boat] distance 1
給船添加數(shù)值一
?kill @e[scores={distance=30}] ,避免造成卡頓
船成一次性的船隱身效果)