Kaynağa Gözat

准备物品改成羊毛了

LTCatt 5 yıl önce
ebeveyn
işleme
8792bcfb84

+ 4 - 4
data/ltw/functions/state/0/sp/join_play.mcfunction

@@ -1,13 +1,13 @@
 
 # 清理现有选择物品
-clear @s lime_dye{lobby_item:1b}
-clear @s gray_dye{lobby_item:1b}
-kill @e[type=item,nbt={Item:{id:"minecraft:gray_dye",tag:{lobby_item:1b}}}]
+clear @s lime_wool{lobby_item:1b}
+clear @s light_gray_wool{lobby_item:1b}
+kill @e[type=item,nbt={Item:{id:"minecraft:light_gray_wool",tag:{lobby_item:1b}}}]
 # 弹出玩家放在第一格上的物品
 execute if data entity @s Inventory[{Slot:0b}] run scoreboard players set @s temp 0
 execute if data entity @s Inventory[{Slot:0b}] at @s run function lib:pop_slot/return_item
 # 设置新的选择物品
-replaceitem entity @s hotbar.0 lime_dye{lobby_item:1b,display:{Name:'[{"text":"","color":"green","italic":false},"准备模式 (按 ",{"keybind":"key.drop"}," 以旁观)"]',Lore:['[{"text":"","color":"gray","italic":false},"你将在下一局参与游戏"]']}}
+replaceitem entity @s hotbar.0 lime_wool{lobby_item:1b,display:{Name:'[{"text":"","color":"green","italic":false},"准备模式 (按 ",{"keybind":"key.drop"}," 以旁观)"]',Lore:['[{"text":"","color":"gray","italic":false},"你将在下一局参与游戏"]']}}
 
 # 设置队伍
 team join hub_play @s

+ 4 - 4
data/ltw/functions/state/0/sp/join_watch.mcfunction

@@ -1,13 +1,13 @@
 
 # 清理现有选择物品
-clear @s lime_dye{lobby_item:1b}
-clear @s gray_dye{lobby_item:1b}
-kill @e[type=item,nbt={Item:{id:"minecraft:lime_dye",tag:{lobby_item:1b}}}]
+clear @s lime_wool{lobby_item:1b}
+clear @s light_gray_wool{lobby_item:1b}
+kill @e[type=item,nbt={Item:{id:"minecraft:lime_wool",tag:{lobby_item:1b}}}]
 # 弹出玩家放在第一格上的物品
 execute if data entity @s Inventory[{Slot:0b}] run scoreboard players set @s temp 0
 execute if data entity @s Inventory[{Slot:0b}] at @s run function lib:pop_slot/return_item
 # 设置新的选择物品
-replaceitem entity @s hotbar.0 gray_dye{lobby_item:1b,display:{Name:'[{"text":"","color":"white","italic":false},"旁观模式 (按 ",{"keybind":"key.drop"}," 以准备)"]',Lore:['[{"text":"","color":"gray","italic":false},"你将在下一局旁观游戏"]']}}
+replaceitem entity @s hotbar.0 light_gray_wool{lobby_item:1b,display:{Name:'[{"text":"","color":"white","italic":false},"旁观模式 (按 ",{"keybind":"key.drop"}," 以准备)"]',Lore:['[{"text":"","color":"gray","italic":false},"你将在下一局旁观游戏"]']}}
 
 # 设置队伍
 team join hub_watch @s

+ 2 - 2
data/ltw/functions/state/0/tick2.mcfunction

@@ -1,4 +1,4 @@
 
 # 检查玩家是否移出了准备物品
-execute as @a[team=hub_watch] unless data entity @s Inventory[{Slot:0b,id:"minecraft:gray_dye",tag:{"lobby_item":1b}}] run function ltw:state/0/sp/join_play
-execute as @a[team=hub_play] unless data entity @s Inventory[{Slot:0b,id:"minecraft:lime_dye",tag:{"lobby_item":1b}}] run function ltw:state/0/sp/join_watch
+execute as @a[team=hub_watch] unless data entity @s Inventory[{Slot:0b,id:"minecraft:light_gray_wool",tag:{"lobby_item":1b}}] run function ltw:state/0/sp/join_play
+execute as @a[team=hub_play] unless data entity @s Inventory[{Slot:0b,id:"minecraft:lime_wool",tag:{"lobby_item":1b}}] run function ltw:state/0/sp/join_watch