LTCatt 6 years ago
parent
commit
a0bb26696f

+ 1 - 1
data/mini/functions/phantom/game/give_trident.mcfunction

@@ -1,2 +1,2 @@
 clear @s trident{GameItem:1b}
-replaceitem entity @s hotbar.8 trident{GameItem:1b,Unbreakable:1b,Enchantments:[],display:{Name:'{"text":"叉鸟戟","color":"aqua","italic": false}',Lore:['{"text":"用来插幻翼再合适不过了!","color":"white","italic": false}']}} 1
+replaceitem entity @s hotbar.8 trident{GameItem:1b,Unbreakable:1b} 1

+ 2 - 1
data/mini/functions/phantom/game/summon2.mcfunction

@@ -1,4 +1,5 @@
 
 execute as @e[tag=new_phantom] at @s run tp @s ~ 35 ~
-attribute @e[tag=new_phantom,limit=1] generic.max_health base set 8
+attribute @e[tag=new_phantom,limit=1] generic.max_health base set 6
+attribute @e[tag=new_phantom,limit=1] generic.attack_damage base set 1
 tag @e[tag=new_phantom] remove new_phantom

+ 1 - 1
data/mini/functions/phantom/game/use_trident.mcfunction

@@ -1,5 +1,5 @@
 # 设置玩家分数
-scoreboard players set @s countdown 2
+scoreboard players set @s countdown_fast 25
 scoreboard players reset @s useTrident
 
 # 清除三叉戟以防bug

+ 2 - 2
data/mini/functions/phantom/tick2.mcfunction

@@ -2,10 +2,10 @@
 execute as @a[tag=mini_running] if score @s useTrident matches 1.. run function mini:phantom/game/use_trident
 
 # 给予三叉戟
-execute as @a[tag=mini_running] unless data entity @s Inventory[{id:"minecraft:trident",tag:{GameItem:1b}}] unless score @s countdown matches 1.. run function mini:phantom/game/give_trident
+execute as @a[tag=mini_running] unless data entity @s Inventory[{id:"minecraft:trident",tag:{GameItem:1b}}] unless score @s countdown_fast matches 1.. run function mini:phantom/game/give_trident
 
 # 清理错位的三叉戟
-execute as @a[tag=mini_running] unless score @s countdown matches 1.. unless data entity @s Inventory[{id:"minecraft:trident",Slot:8b,tag:{GameItem:1b}}] if data entity @s Inventory[{id:"minecraft:trident",tag:{GameItem:1b}}] run function mini:phantom/game/give_trident
+execute as @a[tag=mini_running] unless score @s countdown_fast matches 1.. unless data entity @s Inventory[{id:"minecraft:trident",Slot:8b,tag:{GameItem:1b}}] if data entity @s Inventory[{id:"minecraft:trident",tag:{GameItem:1b}}] run function mini:phantom/game/give_trident
 
 # 更改丢出的三叉戟的nbt
 execute as @e[type=trident,tag=!fixed_trident] run function mini:phantom/game/fix_trident