LTCatt 6 роки тому
батько
коміт
8900485030

+ 1 - 0
data/item/functions/lobby_state/join_game.mcfunction

@@ -3,6 +3,7 @@ clear @s gray_dye{lobby_item:1b,lobby_watch:1b}
 kill @e[type=item,nbt={Item:{id:"minecraft:gray_dye",tag:{lobby_item:1b,lobby_watch:1b}}}]
 execute if data entity @s Inventory[{Slot:8b}] unless data entity @s Inventory[{Slot:8b,tag:{lobby_item:1b,lobby_watch:1b}}] at @s run function item:disable_slot/disable_slot_8
 replaceitem entity @s hotbar.8 lime_dye{lobby_item:1b,lobby_ready:1b,display:{Name:'{"text":"已准备 (按 Q 切换)","color":"green","italic":false}',Lore:['{"text":"你将在下一局参与游戏","color":"green","bold":true,"italic":false}']}}
+execute at @s run function lib:sounds/hit
 
 # 处理数据
 tag @s remove lobby_watch

+ 1 - 0
data/item/functions/lobby_state/join_watch.mcfunction

@@ -3,6 +3,7 @@ clear @s lime_dye{lobby_item:1b,lobby_ready:1b}
 kill @e[type=item,nbt={Item:{id:"minecraft:lime_dye",tag:{lobby_item:1b,lobby_ready:1b}}}]
 execute if data entity @s Inventory[{Slot:8b}] unless data entity @s Inventory[{Slot:8b,tag:{lobby_item:1b,lobby_ready:1b}}] at @s run function item:disable_slot/disable_slot_8
 replaceitem entity @s hotbar.8 gray_dye{lobby_item:1b,lobby_watch:1b,display:{Name:'{"text":"旁观 (按 Q 切换)","color":"white","bold":true,"italic":false}',Lore:['{"text":"你将在下一局旁观游戏","color":"gray","italic":false}']}}
+execute at @s run function lib:sounds/hit2
 
 # 处理数据
 tag @s remove lobby_ready