فهرست منبع

物品强制捡起

HerobrineXia 6 سال پیش
والد
کامیت
7682ffa8c3

+ 2 - 0
data/item/functions/force_pickup.mcfunction

@@ -0,0 +1,2 @@
+data merge entity @s {PickupDelay:0s}
+data modify entity @s Owner set from entity @s Thrower

+ 1 - 0
data/item/functions/tick2.mcfunction

@@ -0,0 +1 @@
+execute as @e[type=item] if data entity @s Thrower run function item:force_pickup

+ 1 - 0
data/ltw/functions/clock/tick2.mcfunction

@@ -2,6 +2,7 @@
 schedule function ltw:clock/tick2 2t replace
 
 # 调用其他模块
+function item:tick2
 execute if score $state mem matches 3 run function ltw:state/3/tick2
 execute if score $state mem matches 4 run function ltw:state/4/tick2
 execute if score $state mem matches 5 run function ltw:state/5/tick2

+ 1 - 3
data/mini/functions/colormatch/player_enter.mcfunction

@@ -23,6 +23,4 @@ scoreboard players reset @s[tag=!watcher,tag=rejoining] mini_heart
 function mini:main/player_max_health
 
 # 重新加入处理
-execute if entity @s[tag=rejoining] run function mini:main/player_failed
-
-# FIXME : [010/HIM] 玩家掉线后,如果场上没有土豆,就再生成一次,以免游戏无法继续(玩家和土豆一起掉线.jpg)
+execute if entity @s[tag=rejoining] run function mini:main/player_failed

+ 1 - 1
data/mini/functions/hotpm/game/check_potato.mcfunction

@@ -1,2 +1,2 @@
-execute unless entity @a[tag=pm_holding] run tellraw @a [{"text":">> ","color":"gold","bold": true},{"text":" 有人带着土豆跑路了,正在选取新的土豆拥有者!","color":"white","bold":false}]
+execute unless entity @a[tag=pm_holding] run tellraw @a [{"text":">> ","color":"gold","bold": true},{"text":"有人带着土豆跑路了,正在选取新的土豆拥有者!","color":"white","bold":false}]
 execute unless entity @a[tag=pm_holding] run function mini:hotpm/game/pm_init_first