Просмотр исходного кода

Merge branch 'master' of https://github.com/LTCatt/LTW3

LTCatt 5 лет назад
Родитель
Сommit
b4ccc9a6ae

+ 4 - 3
data/item/functions/disable_throw.mcfunction

@@ -5,6 +5,7 @@ data modify entity @s Owner set from entity @s Thrower
 
 # 将物品传送给与丢弃者 UUID 相同的玩家
 execute store result score @s UUID run data get entity @s Thrower[0]
-tag @s add item_force_tp
-execute as @a if score @s UUID = @e[type=item,tag=item_force_tp,limit=1] UUID run tp @e[type=item,tag=item_force_tp] @s
-tag @s remove item_force_tp
+execute as @a if score @s UUID = @e[type=item,tag=item_force_tp,limit=1] UUID run tag @s add force_tp
+execute if entity @a[tag=force_tp,gamemode=spectator] run kill @s
+tp @s @a[tag=force_tp,limit=1]
+tag @a remove force_tp

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

@@ -6,7 +6,7 @@ execute if score $survival mem matches 1.. unless score $state mem matches 5 as
 execute as @a if data entity @s Inventory[{"tag":{"bonus_new":1b}}] run function item:bonus_item/call
 
 # 检测玩家格子锁定
-execute if score $state mem matches 1.. unless score $survival mem matches 1.. as @a[team=!debugging] run function item:disable_slot/check_slot
+execute if score $state mem matches 1.. unless score $state mem matches 6 unless score $survival mem matches 1.. as @a[team=!debugging] run function item:disable_slot/check_slot
 execute if score $state mem matches 0 as @a run function ltw:state/0/state/check_slot
 execute if score $state mem matches 0.. run kill @e[type=item,tag=LockTempItem]
 

+ 0 - 15
data/item/tags/items/game_item.json

@@ -1,15 +0,0 @@
-{
-    "values": [
-        "minecraft:trident",
-        "minecraft:acacia_planks",
-        "minecraft:birch_planks",
-        "minecraft:bedrock",
-        "minecraft:crimson_planks",
-        "minecraft:warped_planks",
-        "minecraft:gold_block",
-        "minecraft:bricks",
-        "minecraft:mossy_cobblestone",
-        "minecraft:purpur_block",
-        "minecraft:prismarine"
-    ]
-}

+ 1 - 0
data/ltw/functions/state/6/player_enter.mcfunction

@@ -27,4 +27,5 @@ spectate
 
 # 清理物品
 clear @s #mini:game_item{game_item:1b}
+clear @s barrier{LockItem:1b}
 recipe take @s *

+ 1 - 1
data/mini/functions/colormatch/game/show_floor_block.mcfunction

@@ -1,5 +1,5 @@
 # 清理物品
-clear @s #item:game_item{game_item:1b}
+clear @s #mini:game_item{game_item:1b}
 
 # 返还格子上的物品
 execute if data entity @s Inventory[{Slot:8b}] run scoreboard players set @s item_slot 8

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

@@ -8,6 +8,7 @@ scoreboard players set @s[team=watching] mini_score -1000000
 function mini:main/update_player_count
 
 clear @s #mini:game_item{game_item:1b}
+clear @s barrier{LockItem:1b}
 recipe take @s *
 
 execute if score $mini_type mem matches 1 run function mini:parkour/player_enter

+ 0 - 4
data/mini/functions/phantom/player_enter.mcfunction

@@ -23,10 +23,6 @@ scoreboard players reset @s countdown
 # 传送玩家
 tp @s[team=playing] 1030.5 24.5 6031.5
 
-# 清理道具
-clear @s #item:game_item{game_item:1b}
-clear @s barrier{LockItem:1b}
-
 # 调整模式
 gamemode spectator @s[team=!debugging]
 gamemode adventure @s[team=playing,tag=!rejoining]

+ 11 - 1
data/mini/tags/items/game_item.json

@@ -1,6 +1,16 @@
 {
     "values": [
         "minecraft:trident",
-        "minecraft:stick"
+        "minecraft:stick",
+        "minecraft:acacia_planks",
+        "minecraft:birch_planks",
+        "minecraft:bedrock",
+        "minecraft:crimson_planks",
+        "minecraft:warped_planks",
+        "minecraft:gold_block",
+        "minecraft:bricks",
+        "minecraft:mossy_cobblestone",
+        "minecraft:purpur_block",
+        "minecraft:prismarine"
     ]
 }