2
0
Эх сурвалжийг харах

修复幻翼/第五关强结不修改gamerule的bug

HerobrineXia 5 жил өмнө
parent
commit
90e5322877

+ 5 - 4
data/item/functions/shop/charity.mcfunction

@@ -1,9 +1,10 @@
 # 慈善家(在区域外999)
 # 触发器ID 999
-tellraw @s[scores={gold=..8}] ["",{"text":">> ","color":"green","bold":true},{"text":"一堆金粒凭空出现在了老板面前,老板看了看四周,在发现没人后便默默收下了金粒!","color":"green"}]
-tellraw @s[scores={gold=9..}] ["",{"text":">> ","color":"green","bold":true},{"text":"一块金锭凭空出现在了老板面前,老板看了看四周,在发现没人后便默默收下了金锭!","color":"green"}]
-scoreboard players set @s[scores={gold=..8}] gold 0
+tellraw @s[scores={gold=..0}] ["",{"text":">> ","color":"red","bold":true},{"text":"看起来你已经身无分文,不要再远程购物啦!","color":"red"}]
+tellraw @s[scores={gold=1..}] ["",{"text":">> ","color":"green","bold":true},{"text":"一堆金粒凭空出现在了老板面前,老板一边喊着好东西好东西一边收下了金粒!","color":"green"}]
+execute as @s[scores={gold=1..}] at @s run function lib:sounds/levelup
+execute as @s[scores={gold=..0}] at @s run function lib:sounds/error
+scoreboard players set @s[scores={gold=1..8}] gold 0
 scoreboard players remove @s[scores={gold=9..}] gold 9
-execute as @s at @s run function lib:sounds/levelup
 execute as @s run function item:shop/refresh_gold
 scoreboard players set @s buy_trigger 0

+ 0 - 1
data/ltw/functions/main/player_enter.mcfunction

@@ -37,7 +37,6 @@ function lib:bossbar/show
 # FIXME: {钻石} 玩家会列入钻石的记分板(由于在 belowName 里显示)
 
 # HIM
-# FIXME: 让老板不能通过修改触发器进行交易
 # FIXME: 锁格子依旧会吞物品
 
 

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

@@ -21,6 +21,8 @@ scoreboard players set $remove_resistance mem 0
 team modify playing friendlyFire false
 team modify playing collisionRule never
 gamerule fallDamage false
+gamerule doMobLoot false
+gamerule doTileDrops false
 
 # 修改队伍颜色
 team modify playing color green