LTCatt 5 سال پیش
والد
کامیت
2fc56eae99
24فایلهای تغییر یافته به همراه49 افزوده شده و 303 حذف شده
  1. 26 0
      data/lib/functions/music/refresh.mcfunction
  2. 4 0
      data/lib/functions/music/tick20.mcfunction
  3. 4 4
      data/ltw/functions/clock/tick100.mcfunction
  4. 1 2
      data/ltw/functions/clock/tick20.mcfunction
  5. 4 2
      data/ltw/functions/init/all.mcfunction
  6. 5 3
      data/ltw/functions/state/0/player_enter.mcfunction
  7. 5 16
      data/ltw/functions/state/0/tick5.mcfunction
  8. 0 1
      data/old/item/functions/container/check/call.mcfunction
  9. 0 4
      data/old/item/functions/container/explode.mcfunction
  10. 0 6
      data/old/item/functions/container/placed/call.mcfunction
  11. 0 10
      data/old/item/functions/container/placed/recu.mcfunction
  12. 0 85
      data/old/item/functions/pop_slot/pop_all.mcfunction
  13. 0 9
      data/old/item/functions/pop_slot/pop_item.mcfunction
  14. 0 10
      data/old/item/functions/pop_slot/return_item.mcfunction
  15. 0 85
      data/old/item/functions/pop_slot/select_item.mcfunction
  16. 0 3
      data/old/item/functions/tick20.mcfunction
  17. 0 7
      data/old/lib/functions/sounds/music/lobby.mcfunction
  18. 0 6
      data/old/lib/functions/sounds/music/mini_fast.mcfunction
  19. 0 6
      data/old/lib/functions/sounds/music/mini_middle.mcfunction
  20. 0 6
      data/old/lib/functions/sounds/music/mini_secret.mcfunction
  21. 0 6
      data/old/lib/functions/sounds/music/mini_slow.mcfunction
  22. 0 6
      data/old/lib/functions/sounds/music/rest.mcfunction
  23. 0 4
      data/old/lib/functions/sounds/music/stop.mcfunction
  24. 0 22
      data/old/lib/functions/sounds/music/tick20.mcfunction

+ 26 - 0
data/lib/functions/music/refresh.mcfunction

@@ -0,0 +1,26 @@
+# 立即切换为 @s 所指的 BGM
+stopsound @s music
+
+# lobby_1
+playsound minecraft:music_disc.wait music @s[scores={music_now=1}] 0 1000000 0 1000000
+scoreboard players set @s[scores={music_now=1}] music_time 231
+# lobby_2
+playsound minecraft:music_disc.stal music @s[scores={music_now=2}] 0 1000000 0 1000000
+scoreboard players set @s[scores={music_now=2}] music_time 150
+
+# mini_fast
+playsound minecraft:music_disc.pigstep music @s[scores={music_now=11}] 0 1000000 0 1000000
+scoreboard players set @s[scores={music_now=11}] music_time 148
+# mini_middle
+playsound minecraft:music_disc.cat music @s[scores={music_now=12}] 0 1000000 0 1000000
+scoreboard players set @s[scores={music_now=12}] music_time 185
+# mini_slow
+playsound minecraft:music_disc.mellohi music @s[scores={music_now=13}] 0 1000000 0 1000000
+scoreboard players set @s[scores={music_now=13}] music_time 96
+# mini_secret
+playsound minecraft:music_disc.ward music @s[scores={music_now=14}] 0 1000000 0 1000000
+scoreboard players set @s[scores={music_now=14}] music_time 251
+
+# rest(切换场景的间隙)
+playsound minecraft:music_disc.mall music @s[scores={music_now=21}] 0 1000000 0 1000000
+scoreboard players set @s[scores={music_now=21}] music_time 197

+ 4 - 0
data/lib/functions/music/tick20.mcfunction

@@ -0,0 +1,4 @@
+# 计算倒计时并触发 BGM 刷新
+
+execute as @a[scores={music_time=0}] at @s run function lib:music/refresh
+scoreboard players remove @a music_time 1

+ 4 - 4
data/ltw/functions/clock/tick100.mcfunction

@@ -1,9 +1,9 @@
 # 每 5 秒执行一次
 schedule function ltw:clock/tick100 100t replace
 
-# 掐死原版 BGM
-stopsound @a music music.game
-stopsound @a music music.creative
-
 # 恢复饥饿
 effect give @a saturation 1 10 true
+
+# 掐死原版 BGM
+stopsound @a music music.game
+stopsound @a[gamemode=creative] music music.creative

+ 1 - 2
data/ltw/functions/clock/tick20.mcfunction

@@ -6,17 +6,16 @@ execute if score $state mem matches 0 run effect give @a instant_health 1 10 tru
 
 # 调用其他模块
 function ltw:main/tick20
+function lib:music/tick20
 
 # TODO: 未完成的重构
 
-# function item:tick20
 # function lib:bossbar/tick20
 # execute if score $state mem matches 3 run function ltw:state/3/tick20
 # execute if score $state mem matches 4 run function ltw:state/4/tick20
 # execute if score $state mem matches 5 run function ltw:state/5/tick20
 # execute if score $state mem matches 6 run function ltw:state/6/tick20
 # execute if score $state mem matches 7 run function ltw:state/7/tick20
-# function lib:sounds/music/tick20
 
 # # 特殊方块给予效果
 # function lib:effect/regen

+ 4 - 2
data/ltw/functions/init/all.mcfunction

@@ -27,6 +27,10 @@ scoreboard objectives remove UUID
 scoreboard objectives add UUID dummy "UUID"
 scoreboard objectives remove leave_game
 scoreboard objectives add leave_game minecraft.custom:leave_game "离开游戏计数"
+scoreboard objectives remove music_time
+scoreboard objectives add music_time dummy "音乐倒计时"
+scoreboard objectives remove music_now
+scoreboard objectives add music_now dummy "音乐曲目"
 
 # ---------------------------------------------
 #  数字常量
@@ -151,8 +155,6 @@ function ltw:state/0/state_enter
 # scoreboard objectives add game_id dummy "游戏编号"
 # scoreboard objectives remove player_id
 # scoreboard objectives add player_id dummy "玩家编号"
-# scoreboard objectives remove music_time
-# scoreboard objectives add music_time dummy "BGM 时间"
 # scoreboard players set $ game_id 0
 
 # # 商店系统记分板

+ 5 - 3
data/ltw/functions/state/0/player_enter.mcfunction

@@ -1,6 +1,11 @@
 # 对单个玩家的处理(如果玩家中途加入就会执行此函数)
 function ltw:init/player
 
+# BGM
+scoreboard players set @s music_now 1
+function lib:music/refresh
+scoreboard players set @s music_now 2
+
 # 状态效果
 
 # 位置与模式
@@ -29,6 +34,3 @@ function ltw:state/0/sp/join_watch
 
 #execute as @s run function item:shop/refresh_gold
 #execute as @s run function item:shop/refresh_green
-
-## BGM
-#function lib:sounds/music/lobby

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

@@ -6,20 +6,6 @@ execute as @e[type=piglin,tag=shop_piglin_11,tag=lobby_entity] at @s unless enti
 # 调用节奏方块
 function lib:tempo_block/tick5
 
-# TODO: 未完成的重构
-
-## 20s:提示未准备
-#execute if score $start_countdown mem matches 80 run tellraw @a[team=watching] [{"text":"","color":"red"},{"text":">> ","bold": true},"你还没有准备, 如果要参加游戏, 请丢出快捷栏最后一格的物品!"]
-
-## 让无状态玩家变为旁观状态
-#execute as @a[team=!debug,team=!hub_play,team=!hub_watch] run function ltw:state/0/sp/join_watch
-
-## 给予主大厅进度
-#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/explore1
-#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/explore2
-#execute as @a at @s if entity @s[x=0,y=28,z=-46,distance=..4] run advancement grant @s only ltw:parkour/explore3
-
-
 # ————————————————————————————————————————————————————————————————————————————
 #  游戏开始倒计时
 # ————————————————————————————————————————————————————————————————————————————
@@ -38,8 +24,11 @@ execute if score #ready_count mem matches ..2 if score $start_countdown mem matc
 execute if score #ready_count mem matches ..2 if score $start_countdown mem matches ..999 as @a at @s run function lib:sounds/error
 execute if score #ready_count mem matches ..2 if score $start_countdown mem matches ..999 run scoreboard players set $start_countdown mem 9999999
 
-# 20s:提示玩家数量过多
-execute if score $start_countdown mem matches 80 if score #ready_count mem matches 9.. run tellraw @a [{"text":" ❇ ","color":"gold"}," 准备人数已超出 8 人的人数上限, 将随机抽取 8 人进行游戏!"]
+# 20s:提示未准备
+execute if score $start_countdown mem matches 80 run tellraw @a[team=hub_watch] [{"text":" ❇ ","color":"gold"}," 你还没有准备开始! 如果要参加游戏, 请丢出第一格的灰色染料!"]
+
+# 10s:提示玩家数量过多
+execute if score $start_countdown mem matches 40 if score #ready_count mem matches 9.. run tellraw @a [{"text":" ❇ ","color":"gold"}," 准备人数已超出 8 人的人数上限, 将随机抽取 8 人进行游戏!"]
 
 # 10s:播放倒计时音效
 scoreboard players remove $start_countdown mem 1

+ 0 - 1
data/old/item/functions/container/check/call.mcfunction

@@ -1 +0,0 @@
-execute as @e[tag=container] at @s if block ~ ~ ~ minecraft:furnace if data block ~ ~ ~ Items[{id:"minecraft:nether_star"}] run function item:container/explode

+ 0 - 4
data/old/item/functions/container/explode.mcfunction

@@ -1,4 +0,0 @@
-#as container as @s
-setblock ~ ~ ~ air
-summon tnt ~ ~ ~ {Fuse:0}
-kill @s

+ 0 - 6
data/old/item/functions/container/placed/call.mcfunction

@@ -1,6 +0,0 @@
-#as player
-#trigger by advancement
-advancement revoke @s only item:container/place
-scoreboard players set #container.got mem 0
-scoreboard players set #container.dist mem 0
-execute at @s anchored eyes positioned ^ ^ ^1 run function item:container/placed/recu

+ 0 - 10
data/old/item/functions/container/placed/recu.mcfunction

@@ -1,10 +0,0 @@
-#as player
-execute if score #container.got mem matches 0 positioned ~ ~ ~ align xyz store success score #container.got mem unless entity @e[tag=container,dx=0,dy=0,dz=0] if block ~ ~ ~ #item:container run summon minecraft:area_effect_cloud ~.5 ~ ~.5 {Age: -2147483648, Duration: -1, WaitTime: -2147483648, Tags: ["container"]}
-execute if score #container.got mem matches 0 positioned ~1 ~ ~ align xyz store success score #container.got mem unless entity @e[tag=container,dx=0,dy=0,dz=0] if block ~ ~ ~ #item:container run summon minecraft:area_effect_cloud ~.5 ~ ~.5 {Age: -2147483648, Duration: -1, WaitTime: -2147483648, Tags: ["container"]}
-execute if score #container.got mem matches 0 positioned ~-1 ~ ~ align xyz store success score #container.got mem unless entity @e[tag=container,dx=0,dy=0,dz=0] if block ~ ~ ~ #item:container run summon minecraft:area_effect_cloud ~.5 ~ ~.5 {Age: -2147483648, Duration: -1, WaitTime: -2147483648, Tags: ["container"]}
-execute if score #container.got mem matches 0 positioned ~ ~1 ~ align xyz store success score #container.got mem unless entity @e[tag=container,dx=0,dy=0,dz=0] if block ~ ~ ~ #item:container run summon minecraft:area_effect_cloud ~.5 ~ ~.5 {Age: -2147483648, Duration: -1, WaitTime: -2147483648, Tags: ["container"]}
-execute if score #container.got mem matches 0 positioned ~ ~-1 ~ align xyz store success score #container.got mem unless entity @e[tag=container,dx=0,dy=0,dz=0] if block ~ ~ ~ #item:container run summon minecraft:area_effect_cloud ~.5 ~ ~.5 {Age: -2147483648, Duration: -1, WaitTime: -2147483648, Tags: ["container"]}
-execute if score #container.got mem matches 0 positioned ~ ~ ~1 align xyz store success score #container.got mem unless entity @e[tag=container,dx=0,dy=0,dz=0] if block ~ ~ ~ #item:container run summon minecraft:area_effect_cloud ~.5 ~ ~.5 {Age: -2147483648, Duration: -1, WaitTime: -2147483648, Tags: ["container"]}
-execute if score #container.got mem matches 0 positioned ~ ~ ~-1 align xyz store success score #container.got mem unless entity @e[tag=container,dx=0,dy=0,dz=0] if block ~ ~ ~ #item:container run summon minecraft:area_effect_cloud ~.5 ~ ~.5 {Age: -2147483648, Duration: -1, WaitTime: -2147483648, Tags: ["container"]}
-scoreboard players add #container.dist mem 1
-execute if score #container.got mem matches 0 if score #container.dist mem matches ..4 positioned ^ ^ ^1 run function item:container/placed/recu

+ 0 - 85
data/old/item/functions/pop_slot/pop_all.mcfunction

@@ -1,85 +0,0 @@
-scoreboard players set @s item_slot 0
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 1
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 2
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 3
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 4
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 5
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 6
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 7
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 8
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 9
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 10
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 11
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 12
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 13
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 14
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 15
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 16
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 17
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 18
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 19
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 20
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 21
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 22
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 23
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 24
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 25
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 26
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 27
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 28
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 29
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 30
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 31
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 32
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 33
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 34
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 35
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 100
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 101
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 102
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot 103
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-scoreboard players set @s item_slot -106
-execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
-give @s dead_bush 2304
-replaceitem entity @s weapon.offhand dead_bush 64
-replaceitem entity @s armor.head dead_bush 64

+ 0 - 9
data/old/item/functions/pop_slot/pop_item.mcfunction

@@ -1,9 +0,0 @@
-summon item ~ ~ ~ {Item:{id:"minecraft:red_dye",Count:1b,tag:{LockTempItem:1b,display:{Name:'{"text":"非法物品","color":"red"}'}}},Tags:["LockTempItem","PopItem"]}
-function item:pop_slot/select_item
-kill @e[type=item,nbt={Item:{id:"minecraft:red_dye"}},tag=LockTempItem]
-# 不返还奇怪的东西
-kill @e[type=item,nbt={Item:{tag:{game_item:1b}}}]
-kill @e[type=item,nbt={Item:{tag:{lobby_item:1b}}}]
-kill @e[type=item,nbt={Item:{tag:{LockItem:1b}}}]
-data modify entity @e[type=item,tag=LockTempItem,limit=1] Thrower set from entity @s UUID
-tag @e[type=item,tag=LockTempItem] remove LockTempItem

+ 0 - 10
data/old/item/functions/pop_slot/return_item.mcfunction

@@ -1,10 +0,0 @@
-summon item ~ ~ ~ {Item:{id:"minecraft:red_dye",Count:1b,tag:{LockTempItem:1b,display:{Name:'{"text":"非法物品","color":"red"}'}}},Tags:["LockTempItem","ReturnItem"]}
-function item:pop_slot/select_item
-kill @e[type=item,nbt={Item:{id:"minecraft:red_dye"}},tag=LockTempItem]
-# 不返还奇怪的东西
-kill @e[type=item,nbt={Item:{tag:{game_item:1b}}}]
-kill @e[type=item,nbt={Item:{tag:{lobby_item:1b}}}]
-kill @e[type=item,nbt={Item:{tag:{LockItem:1b}}}]
-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:force_pickup_item
-tag @e[type=item,tag=LockTempItem] remove LockTempItem

+ 0 - 85
data/old/item/functions/pop_slot/select_item.mcfunction

@@ -1,85 +0,0 @@
-execute if score @s item_slot matches 0 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:0b}]
-execute if score @s item_slot matches 1 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:1b}]
-execute if score @s item_slot matches 2 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:2b}]
-execute if score @s item_slot matches 3 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:3b}]
-execute if score @s item_slot matches 4 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:4b}]
-execute if score @s item_slot matches 5 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:5b}]
-execute if score @s item_slot matches 6 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:6b}]
-execute if score @s item_slot matches 7 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:7b}]
-execute if score @s item_slot matches 8 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:8b}]
-execute if score @s item_slot matches 9 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:9b}]
-execute if score @s item_slot matches 10 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:10b}]
-execute if score @s item_slot matches 11 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:11b}]
-execute if score @s item_slot matches 12 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:12b}]
-execute if score @s item_slot matches 13 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:13b}]
-execute if score @s item_slot matches 14 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:14b}]
-execute if score @s item_slot matches 15 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:15b}]
-execute if score @s item_slot matches 16 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:16b}]
-execute if score @s item_slot matches 17 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:17b}]
-execute if score @s item_slot matches 18 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:18b}]
-execute if score @s item_slot matches 19 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:19b}]
-execute if score @s item_slot matches 20 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:20b}]
-execute if score @s item_slot matches 21 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:21b}]
-execute if score @s item_slot matches 22 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:22b}]
-execute if score @s item_slot matches 23 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:23b}]
-execute if score @s item_slot matches 24 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:24b}]
-execute if score @s item_slot matches 25 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:25b}]
-execute if score @s item_slot matches 26 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:26b}]
-execute if score @s item_slot matches 27 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:27b}]
-execute if score @s item_slot matches 28 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:28b}]
-execute if score @s item_slot matches 29 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:29b}]
-execute if score @s item_slot matches 30 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:30b}]
-execute if score @s item_slot matches 31 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:31b}]
-execute if score @s item_slot matches 32 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:32b}]
-execute if score @s item_slot matches 33 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:33b}]
-execute if score @s item_slot matches 34 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:34b}]
-execute if score @s item_slot matches 35 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:35b}]
-execute if score @s item_slot matches 100 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:100b}]
-execute if score @s item_slot matches 101 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:101b}]
-execute if score @s item_slot matches 102 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:102b}]
-execute if score @s item_slot matches 103 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:103b}]
-execute if score @s item_slot matches -106 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:-106b}]
-
-execute if score @s item_slot matches 0 run replaceitem entity @s hotbar.0 air
-execute if score @s item_slot matches 1 run replaceitem entity @s hotbar.1 air
-execute if score @s item_slot matches 2 run replaceitem entity @s hotbar.2 air
-execute if score @s item_slot matches 3 run replaceitem entity @s hotbar.3 air
-execute if score @s item_slot matches 4 run replaceitem entity @s hotbar.4 air
-execute if score @s item_slot matches 5 run replaceitem entity @s hotbar.5 air
-execute if score @s item_slot matches 6 run replaceitem entity @s hotbar.6 air
-execute if score @s item_slot matches 7 run replaceitem entity @s hotbar.7 air
-execute if score @s item_slot matches 8 run replaceitem entity @s hotbar.8 air
-execute if score @s item_slot matches 9 run replaceitem entity @s inventory.0 air
-execute if score @s item_slot matches 10 run replaceitem entity @s inventory.1 air
-execute if score @s item_slot matches 11 run replaceitem entity @s inventory.2 air
-execute if score @s item_slot matches 12 run replaceitem entity @s inventory.3 air
-execute if score @s item_slot matches 13 run replaceitem entity @s inventory.4 air
-execute if score @s item_slot matches 14 run replaceitem entity @s inventory.5 air
-execute if score @s item_slot matches 15 run replaceitem entity @s inventory.6 air
-execute if score @s item_slot matches 16 run replaceitem entity @s inventory.7 air
-execute if score @s item_slot matches 17 run replaceitem entity @s inventory.8 air
-execute if score @s item_slot matches 18 run replaceitem entity @s inventory.9 air
-execute if score @s item_slot matches 19 run replaceitem entity @s inventory.10 air
-execute if score @s item_slot matches 20 run replaceitem entity @s inventory.11 air
-execute if score @s item_slot matches 21 run replaceitem entity @s inventory.12 air
-execute if score @s item_slot matches 22 run replaceitem entity @s inventory.13 air
-execute if score @s item_slot matches 23 run replaceitem entity @s inventory.14 air
-execute if score @s item_slot matches 24 run replaceitem entity @s inventory.15 air
-execute if score @s item_slot matches 25 run replaceitem entity @s inventory.16 air
-execute if score @s item_slot matches 26 run replaceitem entity @s inventory.17 air
-execute if score @s item_slot matches 27 run replaceitem entity @s inventory.18 air
-execute if score @s item_slot matches 28 run replaceitem entity @s inventory.19 air
-execute if score @s item_slot matches 29 run replaceitem entity @s inventory.20 air
-execute if score @s item_slot matches 30 run replaceitem entity @s inventory.21 air
-execute if score @s item_slot matches 31 run replaceitem entity @s inventory.22 air
-execute if score @s item_slot matches 32 run replaceitem entity @s inventory.23 air
-execute if score @s item_slot matches 33 run replaceitem entity @s inventory.24 air
-execute if score @s item_slot matches 34 run replaceitem entity @s inventory.25 air
-execute if score @s item_slot matches 35 run replaceitem entity @s inventory.26 air
-execute if score @s item_slot matches 100 run replaceitem entity @s armor.feet air
-execute if score @s item_slot matches 101 run replaceitem entity @s armor.legs air
-execute if score @s item_slot matches 102 run replaceitem entity @s armor.chest air
-execute if score @s item_slot matches 103 run replaceitem entity @s armor.head air
-execute if score @s item_slot matches -106 run replaceitem entity @s weapon.offhand air
-
-scoreboard players reset @s item_slot

+ 0 - 3
data/old/item/functions/tick20.mcfunction

@@ -1,3 +0,0 @@
-
-# 检测容器
-function item:container/check/call

+ 0 - 7
data/old/lib/functions/sounds/music/lobby.mcfunction

@@ -1,7 +0,0 @@
-# 播放主大厅 BGM
-# 首次 3'51,循环 2'30
-
-function lib:sounds/music/stop
-scoreboard players set $music_id mem 1
-scoreboard players set @s music_time 231
-playsound minecraft:music_disc.wait music @s 0 1000000 0 1000000

+ 0 - 6
data/old/lib/functions/sounds/music/mini_fast.mcfunction

@@ -1,6 +0,0 @@
-# 播放小游戏 BGM(快节奏)
-# 2'28
-
-function lib:sounds/music/stop
-scoreboard players set $music_id mem 2
-scoreboard players set @s music_time 0

+ 0 - 6
data/old/lib/functions/sounds/music/mini_middle.mcfunction

@@ -1,6 +0,0 @@
-# 播放小游戏 BGM(中节奏)
-# 3'05
-
-function lib:sounds/music/stop
-scoreboard players set $music_id mem 3
-scoreboard players set @s music_time 0

+ 0 - 6
data/old/lib/functions/sounds/music/mini_secret.mcfunction

@@ -1,6 +0,0 @@
-# 播放小游戏 BGM(神秘)
-# 4'11
-
-function lib:sounds/music/stop
-scoreboard players set $music_id mem 6
-scoreboard players set @s music_time 0

+ 0 - 6
data/old/lib/functions/sounds/music/mini_slow.mcfunction

@@ -1,6 +0,0 @@
-# 播放小游戏 BGM(慢节奏)
-# 1'36
-
-function lib:sounds/music/stop
-scoreboard players set $music_id mem 4
-scoreboard players set @s music_time 0

+ 0 - 6
data/old/lib/functions/sounds/music/rest.mcfunction

@@ -1,6 +0,0 @@
-# 播放等待 BGM
-# 3'17
-
-function lib:sounds/music/stop
-scoreboard players set $music_id mem 5
-scoreboard players set @s music_time 0

+ 0 - 4
data/old/lib/functions/sounds/music/stop.mcfunction

@@ -1,4 +0,0 @@
-# 停止 BGM
-
-stopsound @s music
-scoreboard players set $music_id mem 0

+ 0 - 22
data/old/lib/functions/sounds/music/tick20.mcfunction

@@ -1,22 +0,0 @@
-
-scoreboard players remove @a music_time 1
-stopsound @a[scores={music_time=..0}] music
-
-# lobby (循环)
-execute if score $music_id mem matches 1 run playsound minecraft:music_disc.stal music @a[scores={music_time=..0}] 0 1000000 0 1000000
-execute if score $music_id mem matches 1 run scoreboard players set @a[scores={music_time=..0}] music_time 150
-# mini_fast
-execute if score $music_id mem matches 2 run playsound minecraft:music_disc.pigstep music @a[scores={music_time=..0}] 0 1000000 0 1000000
-execute if score $music_id mem matches 2 run scoreboard players set @a[scores={music_time=..0}] music_time 148
-# mini_middle
-execute if score $music_id mem matches 3 run playsound minecraft:music_disc.cat music @a[scores={music_time=..0}] 0 1000000 0 1000000
-execute if score $music_id mem matches 3 run scoreboard players set @a[scores={music_time=..0}] music_time 185
-# mini_slow
-execute if score $music_id mem matches 4 run playsound minecraft:music_disc.mellohi music @a[scores={music_time=..0}] 0 1000000 0 1000000
-execute if score $music_id mem matches 4 run scoreboard players set @a[scores={music_time=..0}] music_time 96
-# mini_secret
-execute if score $music_id mem matches 6 run playsound minecraft:music_disc.ward music @a[scores={music_time=..0}] 0 1000000 0 1000000
-execute if score $music_id mem matches 6 run scoreboard players set @a[scores={music_time=..0}] music_time 251
-# rest
-execute if score $music_id mem matches 5 run playsound minecraft:music_disc.mall music @a[scores={music_time=..0}] 0 1000000 0 1000000
-execute if score $music_id mem matches 5 run scoreboard players set @a[scores={music_time=..0}] music_time 197