Prechádzať zdrojové kódy

赌博老板的名片隐藏

HerobrineXia 6 rokov pred
rodič
commit
b8ac7b3b2e

+ 5 - 1
data/ltw/functions/state/0/tick5.mcfunction

@@ -7,4 +7,8 @@ execute as @a[tag=!lobby_ready,tag=!lobby_watch] run function item:lobby_state/j
 
 
 # 给予进度
 # 给予进度
 execute as @a at @s if entity @s[x=-1,y=22,z=-29,dx=5,dy=3,dz=3] run advancement grant @s only ltw:parkour/explore_1
 execute as @a at @s if entity @s[x=-1,y=22,z=-29,dx=5,dy=3,dz=3] run advancement grant @s only ltw:parkour/explore_1
-execute as @a at @s if entity @s[x=6,y=48,z=-32,dx=4,dy=3,dz=9] run advancement grant @s only ltw:parkour/explore_2
+execute as @a at @s if entity @s[x=6,y=48,z=-32,dx=4,dy=3,dz=9] run advancement grant @s only ltw:parkour/explore_2
+
+# 隐藏名片
+execute as @e[type=piglin,tag=shop_piglin_11,tag=lobby_entity] at @s if entity @a[distance=..5] run data modify entity @s CustomNameVisible set value true
+execute as @e[type=piglin,tag=shop_piglin_11,tag=lobby_entity] at @s unless entity @a[distance=..5] run data modify entity @s CustomNameVisible set value false