Przeglądaj źródła

修复物品1/2

00ll00 6 lat temu
rodzic
commit
daef91fc9e

+ 1 - 0
data/item/functions/return_slot/return_slot_7.mcfunction

@@ -3,4 +3,5 @@ data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @
 data modify entity @e[type=item,tag=LockTempItem,limit=1] PickupDelay set value 0
 data modify entity @e[type=item,tag=LockTempItem,limit=1] Thrower set from entity @s UUID
 execute as @e[type=item,tag=LockTempItem,limit=1] run function item:disable_throw
+tag @e[type=item,tag=LockTempItem] remove LockTempItem
 replaceitem entity @s hotbar.7 air

+ 1 - 0
data/item/functions/return_slot/return_slot_8.mcfunction

@@ -3,4 +3,5 @@ data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @
 data modify entity @e[type=item,tag=LockTempItem,limit=1] PickupDelay set value 0
 data modify entity @e[type=item,tag=LockTempItem,limit=1] Thrower set from entity @s UUID
 execute as @e[type=item,tag=LockTempItem,limit=1] run function item:disable_throw
+tag @e[type=item,tag=LockTempItem] remove LockTempItem
 replaceitem entity @s hotbar.8 air

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

@@ -0,0 +1 @@
+execute as @e[type=item] run data modify entity @s PickupDelay set value 0

+ 4 - 1
data/ltw/functions/clock/tick1.mcfunction

@@ -1,4 +1,7 @@
 # 每 1 Tick 执行一次
 
 # 调用其他模块
-execute if score $state mem matches 5 run function ltw:state/5/tick1
+execute if score $state mem matches 5 run function ltw:state/5/tick1
+
+# 调用物品模块
+function item:tick1

+ 2 - 3
data/ltw/functions/main/player_enter.mcfunction

@@ -21,6 +21,5 @@ execute if entity @s[tag=!watcher] if score @s game_id = $ game_id run function
 
 # FIXME: [HIM] 旁观者可能会有一个灰色染料一直 tp 他
 # FIXME: 游戏结束时 kill 老板会有猪叫
-# FIXME: “新配方已解锁”
-# FIXME: Trigger 能触发换歌,小草弄出来的
-# FIXME: [HIM] 你可以打开背包把物品丢出去
+# FIXME: [HIM] 你可以打开背包把物品丢出去
+# TODO: 新的统计信息显示