소스 검색

修复钻石和村民地图高度问题

aqupa 4 년 전
부모
커밋
7c03b108ce

+ 2 - 2
data/mini/functions/diamond/game/respawn.mcfunction

@@ -6,5 +6,5 @@ effect give @s weakness 5 10 true
 effect give @s resistance 5 10 true
 effect give @s resistance 5 10 true
 
 
 # 传送玩家
 # 传送玩家
-tp @s[team=playing] 1016 280 5016
-tp @s[team=watching] 1016 255 5016
+tp @s[team=playing] 1016 344 5016
+tp @s[team=watching] 1016 319 5016

+ 2 - 2
data/mini/functions/diamond/game_init.mcfunction

@@ -9,8 +9,8 @@ scoreboard players set $survival mem 1
 time set 8600t
 time set 8600t
 
 
 # 生成地图
 # 生成地图
-setblock 1000 255 5000 minecraft:structure_block[mode=load]{metadata:"",mirror:"NONE",ignoreEntities:1b,powered:0b,seed:0L,author:"LTCat",rotation:"NONE",posX:0,mode:"LOAD",posY:-24,sizeX:32,posZ:0,integrity:1.0f,showair:0b,name:"mini:diamond_base",sizeY:25,sizeZ:32,showboundingbox:1b}
-setblock 1000 255 5001 redstone_block
+setblock 1000 319 5000 minecraft:structure_block[mode=load]{metadata:"",mirror:"NONE",ignoreEntities:1b,powered:0b,seed:0L,author:"LTCat",rotation:"NONE",posX:0,mode:"LOAD",posY:-24,sizeX:32,posZ:0,integrity:1.0f,showair:0b,name:"mini:diamond_base",sizeY:25,sizeZ:32,showboundingbox:1b}
+setblock 1000 319 5001 redstone_block
 schedule function mini:diamond/game_init2 1t append
 schedule function mini:diamond/game_init2 1t append
 
 
 # 清理残余实体
 # 清理残余实体

+ 1 - 1
data/mini/functions/diamond/game_init2.mcfunction

@@ -1,4 +1,4 @@
 
 
 # 矿物生成
 # 矿物生成
-setblock 1028 252 5030 minecraft:redstone_block
+setblock 1028 316 5030 minecraft:redstone_block
 schedule function mini:diamond/game_init3 7t
 schedule function mini:diamond/game_init3 7t

+ 9 - 9
data/mini/functions/diamond/game_init3.mcfunction

@@ -3,22 +3,22 @@
 scoreboard players set $random_max mem 4
 scoreboard players set $random_max mem 4
 scoreboard players set $random_min mem 1
 scoreboard players set $random_min mem 1
 function lib:random
 function lib:random
-execute if score $random mem matches 1 run setblock 1028 254 5030 redstone_block
-execute if score $random mem matches 2 run setblock 1028 254 5029 redstone_block
-execute if score $random mem matches 3 run setblock 1028 254 5028 redstone_block
-execute if score $random mem matches 4 run setblock 1028 254 5027 redstone_block
+execute if score $random mem matches 1 run setblock 1028 318 5030 redstone_block
+execute if score $random mem matches 2 run setblock 1028 318 5029 redstone_block
+execute if score $random mem matches 3 run setblock 1028 318 5028 redstone_block
+execute if score $random mem matches 4 run setblock 1028 318 5027 redstone_block
 
 
 # 地牢 2 生成
 # 地牢 2 生成
 scoreboard players set $random_max mem 4
 scoreboard players set $random_max mem 4
 scoreboard players set $random_min mem 1
 scoreboard players set $random_min mem 1
 function lib:random
 function lib:random
-execute if score $random mem matches 1 run setblock 1027 254 5030 redstone_block
-execute if score $random mem matches 2 run setblock 1027 254 5029 redstone_block
-execute if score $random mem matches 3 run setblock 1027 254 5028 redstone_block
-execute if score $random mem matches 4 run setblock 1027 254 5027 redstone_block
+execute if score $random mem matches 1 run setblock 1027 318 5030 redstone_block
+execute if score $random mem matches 2 run setblock 1027 318 5029 redstone_block
+execute if score $random mem matches 3 run setblock 1027 318 5028 redstone_block
+execute if score $random mem matches 4 run setblock 1027 318 5027 redstone_block
 
 
 # 清理区域
 # 清理区域
-fill 1025 255 5031 1029 251 5025 air
+fill 1025 319 5031 1029 315 5025 air
 
 
 # 清理箱子重叠时产生的物品
 # 清理箱子重叠时产生的物品
 kill @e[type=item]
 kill @e[type=item]

+ 1 - 1
data/mini/functions/diamond/player_intro.mcfunction

@@ -1,5 +1,5 @@
 # 向单个玩家展示小游戏介绍
 # 向单个玩家展示小游戏介绍
-tp @s[team=!debugging] 1013.47 247.63 5045.62 -178.86 17.18
+tp @s[team=!debugging] 1013.47 311.63 5045.62 -178.86 17.18
 worldborder set 1000000
 worldborder set 1000000
 effect give @s[team=!debugging] night_vision 1000000 0 true
 effect give @s[team=!debugging] night_vision 1000000 0 true
 tellraw @s ["",{"text":"\n >> 钻石风暴 >>\n\n","color":"gold","bold":true}," 制作铁镐, 挖取钻石, 然后保住自己的小命!\n 不过, 或许也可以去地牢碰碰运气……\n"]
 tellraw @s ["",{"text":"\n >> 钻石风暴 >>\n\n","color":"gold","bold":true}," 制作铁镐, 挖取钻石, 然后保住自己的小命!\n 不过, 或许也可以去地牢碰碰运气……\n"]

+ 2 - 2
data/mini/functions/diamond/tick5.mcfunction

@@ -5,8 +5,8 @@ execute if score $countdown mem matches ..60 run effect give @a[team=playing] gl
 # effect give @a[scores={diamond=1..}] glowing 5 0 true
 # effect give @a[scores={diamond=1..}] glowing 5 0 true
 
 
 # 显示提示
 # 显示提示
-execute as @a[scores={diamond=1..},tag=!diamond_got,x=1000,y=0,z=5000,dx=32,dy=253,dz=32] run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"selector": "@s"},{"text":" 获得了闪闪发光的钻石","color":"aqua"}]
-execute as @a[scores={diamond=1..},tag=!diamond_got,x=1000,y=0,z=5000,dx=32,dy=253,dz=32] as @a run function lib:sounds/hit
+execute as @a[scores={diamond=1..},tag=!diamond_got,x=1000,y=0,z=5000,dx=32,dy=317,dz=32] run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"selector": "@s"},{"text":" 获得了闪闪发光的钻石","color":"aqua"}]
+execute as @a[scores={diamond=1..},tag=!diamond_got,x=1000,y=0,z=5000,dx=32,dy=317,dz=32] as @a run function lib:sounds/hit
 tag @a remove diamond_got
 tag @a remove diamond_got
 tag @a[scores={diamond=1..}] add diamond_got
 tag @a[scores={diamond=1..}] add diamond_got
 
 

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

@@ -1,3 +1,3 @@
 # 观察者限制飞行范围
 # 观察者限制飞行范围
-execute as @a[gamemode=spectator,x=1016,y=240,z=5016,distance=70..] run spectate
-tp @a[gamemode=spectator,x=1016,y=240,z=5016,distance=70..,team=!debugging] 1016 255 5016
+execute as @a[gamemode=spectator,x=1016,y=304,z=5016,distance=70..] run spectate
+tp @a[gamemode=spectator,x=1016,y=304,z=5016,distance=70..,team=!debugging] 1016 319 5016

+ 2 - 2
data/mini/functions/trade/game_init.mcfunction

@@ -10,8 +10,8 @@ scoreboard players set $survival mem 1
 time set day
 time set day
 
 
 # 生成地图
 # 生成地图
-setblock 1000 255 5000 minecraft:structure_block[mode=load]{metadata:"",mirror:"NONE",ignoreEntities:1b,powered:0b,seed:0L,author:"LTCat",rotation:"NONE",posX:0,mode:"LOAD",posY:-24,sizeX:32,posZ:0,integrity:1.0f,showair:0b,name:"mini:diamond_base",sizeY:25,sizeZ:32,showboundingbox:1b}
-setblock 1000 255 5001 redstone_block
+setblock 1000 319 5000 minecraft:structure_block[mode=load]{metadata:"",mirror:"NONE",ignoreEntities:1b,powered:0b,seed:0L,author:"LTCat",rotation:"NONE",posX:0,mode:"LOAD",posY:-24,sizeX:32,posZ:0,integrity:1.0f,showair:0b,name:"mini:diamond_base",sizeY:25,sizeZ:32,showboundingbox:1b}
+setblock 1000 319 5001 redstone_block
 schedule function mini:trade/game_init2 1t append
 schedule function mini:trade/game_init2 1t append
 
 
 # 清理残余实体
 # 清理残余实体

+ 1 - 1
data/mini/functions/trade/game_init2.mcfunction

@@ -1,4 +1,4 @@
 
 
 # 矿物生成
 # 矿物生成
-setblock 1028 252 5030 minecraft:redstone_block
+setblock 1028 316 5030 minecraft:redstone_block
 schedule function mini:trade/game_init3 7t
 schedule function mini:trade/game_init3 7t

+ 9 - 9
data/mini/functions/trade/game_init3.mcfunction

@@ -3,22 +3,22 @@
 scoreboard players set $random_max mem 4
 scoreboard players set $random_max mem 4
 scoreboard players set $random_min mem 1
 scoreboard players set $random_min mem 1
 function lib:random
 function lib:random
-execute if score $random mem matches 1 run setblock 1028 254 5030 redstone_block
-execute if score $random mem matches 2 run setblock 1028 254 5029 redstone_block
-execute if score $random mem matches 3 run setblock 1028 254 5028 redstone_block
-execute if score $random mem matches 4 run setblock 1028 254 5027 redstone_block
+execute if score $random mem matches 1 run setblock 1028 318 5030 redstone_block
+execute if score $random mem matches 2 run setblock 1028 318 5029 redstone_block
+execute if score $random mem matches 3 run setblock 1028 318 5028 redstone_block
+execute if score $random mem matches 4 run setblock 1028 318 5027 redstone_block
 
 
 # 地牢 2 生成
 # 地牢 2 生成
 scoreboard players set $random_max mem 4
 scoreboard players set $random_max mem 4
 scoreboard players set $random_min mem 1
 scoreboard players set $random_min mem 1
 function lib:random
 function lib:random
-execute if score $random mem matches 1 run setblock 1027 254 5030 redstone_block
-execute if score $random mem matches 2 run setblock 1027 254 5029 redstone_block
-execute if score $random mem matches 3 run setblock 1027 254 5028 redstone_block
-execute if score $random mem matches 4 run setblock 1027 254 5027 redstone_block
+execute if score $random mem matches 1 run setblock 1027 318 5030 redstone_block
+execute if score $random mem matches 2 run setblock 1027 318 5029 redstone_block
+execute if score $random mem matches 3 run setblock 1027 318 5028 redstone_block
+execute if score $random mem matches 4 run setblock 1027 318 5027 redstone_block
 
 
 # 清理区域
 # 清理区域
-fill 1025 255 5031 1029 251 5025 air
+fill 1025 319 5031 1029 315 5025 air
 
 
 # 清理箱子重叠时产生的物品
 # 清理箱子重叠时产生的物品
 kill @e[type=item]
 kill @e[type=item]

+ 1 - 1
data/mini/functions/trade/player_intro.mcfunction

@@ -1,5 +1,5 @@
 # 向单个玩家展示小游戏介绍
 # 向单个玩家展示小游戏介绍
-tp @s[team=!debugging] 1013.47 247.63 5045.62 -178.86 17.18
+tp @s[team=!debugging] 1013.47 311.63 5045.62 -178.86 17.18
 worldborder set 1000000
 worldborder set 1000000
 effect give @s[team=!debugging] night_vision 1000000 0 true
 effect give @s[team=!debugging] night_vision 1000000 0 true
 tellraw @s ["",{"text":"\n >> 贸易专家 >>\n\n","color":"gold","bold":true}," 手持交易契约唤出村民, 与村民交易, 尽快获取绿宝石!\n 每项交易都可以进行 2 次, 进行交易可以增加经验值, 解锁更多交易!\n"]
 tellraw @s ["",{"text":"\n >> 贸易专家 >>\n\n","color":"gold","bold":true}," 手持交易契约唤出村民, 与村民交易, 尽快获取绿宝石!\n 每项交易都可以进行 2 次, 进行交易可以增加经验值, 解锁更多交易!\n"]

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

@@ -1,3 +1,3 @@
 # 观察者限制飞行范围
 # 观察者限制飞行范围
-execute as @a[gamemode=spectator,x=1016,y=240,z=5016,distance=70..] run spectate
-tp @a[gamemode=spectator,x=1016,y=240,z=5016,distance=70..,team=!debugging] 1016 255 5016
+execute as @a[gamemode=spectator,x=1016,y=304,z=5016,distance=70..] run spectate
+tp @a[gamemode=spectator,x=1016,y=304,z=5016,distance=70..,team=!debugging] 1016 319 5016