我的世界纯指令无水无雨激流三叉戟
特殊值为一的铁粒:/give @p iron_nugget 1 1
记分板:/scoreboard objectives add 激流 dummy
指令:
1循环保持开启,无条件和延迟
execute at @a[tag=激流] as @e[type=thrown_trident,r=10] run tag @s add 激流
2循环保持开启,无条件和延迟
execute as @e[type=thrown_trident,tag=激流] at @a[tag=激流] run tp ^^^1
3循环保持开启,无条件和延迟
execute as @a[tag=激流,hasitem={item=iron_nugget,location=slot.weapon.mainhand,data=1}] at @s run replaceitem entity @s slot.weapon.mainhand 1 trident
4循环保持开启,无条件和延迟
tag @a[hasitem={item=heart_of_the_sea,data=1}] add 激流
5循环保持开启,无条件和延迟
tag @a[hasitem={item=heart_of_sea,data=1,quantity=0}] remove 激流
6循环保持开启,无条件和延迟
execute as @a[tag=激流] at @s if entity @e[type=thrown_trident,r=10,tag=激流] run structure load 激流 ^^^-1
7连锁保持开启,无条件和延迟
execute at @e[type=thrown_trident,tag=激流] as @a[r=10,tag=激流] run playsound item.trident.riptide_3
8连锁保持开启,无条件
execute at @e[type=thrown_trident,tag=激流] as @a[tag=激流,r=15] run replaceitem entity @s slot.weapon.mainhand 1 trident
9连锁保持开启,有条件无延迟
execute if entity @e[type=thrown_trident,tag=激流] run kill @e[type=thrown_trident,tag=激流]
10循环保持开启,无条件和延迟
execute as @e[name=激流] at @s rotated as @e[name=方向] positioned ^^^0.8 run tp @s ^^^0.6 facing ^^^10
11循环保持开启,无条件和延迟
execute at @e[name=激流,type=armor_stand] as @a[r=4,tag=激流] run tp ^^^1 true
12连锁保持开启,有条件无延迟
execute as @e[name=激流,type=armor_stand] at as unless blocks ~-0.1~-0.1~-0.1~0.1~0.1~0.1 0 300 0 all run kill @s
13循环保持开启,无条件和延迟
execute if entity @a[hasitem={item=trident,location=slot.weapon.mainhand},tag=激流,c=1] as @e[name=方向] at @s rotated as @p[hasitem={item=trident,location=slot.weapon.mainhand}] positioned ^^^ run tp @s ~~~ facing ^^^4 true
14循环保持开启,无条件和延迟
execute as @e[name=激流,type=armor_stand] at @s unless score @s "激流" matches ! 1 run scoreboard players set @s 激流 5
15循环保持开启,无条件,延迟3
scoreboard players remove @e[name=激流,type=armor_stand,scores={激流=2..}] 激流 1
16循环保持开启,无条件和延迟
kill @e[scores={激流=1},name=激流,type=armor_stand]
17循环保持开启,无条件和延迟
effect @e[name=激流,type=armor_stand] invisibility 100 100 true
18循环保持开启,无条件和延迟
kill @e[name=铁粒]
特殊值海洋之心:/give @p heart_of _the_sea 1 1