2
0
LTCatt 6 жил өмнө
parent
commit
d7973a7166

+ 3 - 1
data/item/functions/bonus_item/add_score.mcfunction

@@ -21,7 +21,9 @@ execute if score #bonus_add_score mem matches 100 if score $random mem matches 0
 scoreboard players set #score_max mem -2147483648
 execute as @a run function ltw:main/get_max_score
 tag @a remove highest
-execute as @a if score @s total_score = #score_max mem run tag @s add highest
+tag @a remove may_highest
+execute as @a if score @s total_score = #score_max mem run tag @s add may_highest
+execute at @s run tag @a[tag=may_highest,limit=1,sort=furthest] add highest
 execute if score #bonus_add_score mem matches 200 if entity @s[tag=highest] run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"selector": "@s","color":"aqua"}," 试图偷取自己的分数……"]
 execute if score #bonus_add_score mem matches 200 if entity @s[tag=!highest] run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"selector": "@a[tag=highest,limit=1,sort=furthest]","color":"red"}," 被偷取了 ",{"text": "1 分","color":"red"},", 当前共有 ",{"score": {"name": "@a[tag=highest,limit=1,sort=furthest]","objective": "total_score"}}, " 分"]
 execute if score #bonus_add_score mem matches 200 if entity @s[tag=!highest] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"green"}," 偷取了 ",{"text": "1 分","color":"green"},", 当前共有 ",{"score": {"name": "@s","objective": "total_score"}}, " 分"]

+ 1 - 1
data/item/loot_tables/gameparty/last/green.json

@@ -18,7 +18,7 @@
 {
     "type": "minecraft:item",
     "weight": 1,
-    "name": "minecraft:gold_ingot",
+    "name": "minecraft:ender_eye",
     "functions": [
         {
             "function": "minecraft:set_nbt",

+ 1 - 1
data/mini/functions/slime/player_enter.mcfunction

@@ -21,4 +21,4 @@ gamemode adventure @s[tag=!watcher,tag=!rejoining,tag=!debug]
 execute if entity @s[tag=rejoining] run function mini:slime/player_failed
 
 # 给予物品
-replaceitem entity @s hotbar.8 stick{game_item:1b,Enchantments:[{id:"knockback",lvl:1}],display:{Name:'{"text":"补给用击退棒","italic":false,"color":"white"}'}} 1
+replaceitem entity @s hotbar.8 stick{game_item:1b,Enchantments:[{id:"knockback",lvl:2}],display:{Name:'{"text":"补给用击退棒","italic":false,"color":"white"}'}} 1

+ 2 - 2
data/mini/functions/zombie/watcher_limit.mcfunction

@@ -1,3 +1,3 @@
 # 观察者限制飞行范围
-execute as @a[gamemode=spectator] unless entity @s[x=1001,y=11,z=5001,dx=18,dy=11,dz=23] run spectate
-execute as @a[gamemode=spectator] unless entity @s[x=1001,y=11,z=5001,dx=18,dy=11,dz=23] run tp @s[tag=!debug] 1010.5 20 5006.0 0 25
+execute as @a[gamemode=spectator] unless entity @s[x=1001,y=11,z=5001,dx=18,dy=10,dz=23] run spectate
+execute as @a[gamemode=spectator] unless entity @s[x=1001,y=11,z=5001,dx=18,dy=10,dz=23] run tp @s[tag=!debug] 1010.5 20 5006.0 0 25