Bläddra i källkod

热土豆的外部文件

LTCatt 6 år sedan
förälder
incheckning
60cbd8d4a3

+ 5 - 0
data/mini/functions/hotpm/game_end.mcfunction

@@ -0,0 +1,5 @@
+# 结束热土豆
+forceload remove 1000 3000 1100 3100
+
+# 开启伤害
+gamerule fallDamage true

+ 1 - 0
data/mini/functions/hotpm/init.mcfunction

@@ -0,0 +1 @@
+# 如果要使用记分板,在这里添加

+ 15 - 0
data/mini/functions/hotpm/player_enter.mcfunction

@@ -0,0 +1,15 @@
+# 单个玩家开始小游戏时执行
+title @s clear
+gamemode adventure @s
+
+# 状态效果
+effect clear @s
+effect give @s saturation 1000000 0 true
+effect give @s instant_health 10 0 true
+effect give @s night_vision 1000000 0 true
+effect give @s resistance 1000000 4 true
+
+# 关闭伤害
+gamerule fallDamage false
+
+# UNDONE : 传送玩家

+ 2 - 0
data/mini/functions/hotpm/player_failed.mcfuntion

@@ -0,0 +1,2 @@
+# 玩家失败时由玩家自己触发
+function mini:main/player_failed

+ 3 - 0
data/mini/functions/hotpm/player_intro.mcfunction

@@ -0,0 +1,3 @@
+# 向单个玩家展示小游戏介绍
+# UNDONE : 传送玩家到适合查看地图的位置
+tellraw @s [{"text":"\n>> 热土豆 >>\n\n","color":"red","bold":true},{"text": "有一个人会被土豆附身, 攻击他人就能将土豆转移到其他人上!\n在土豆爆炸之前努力生存吧!\n","color":"white","bold": false}]

+ 3 - 0
data/mini/functions/hotpm/spectator_range.mcfunction

@@ -0,0 +1,3 @@
+# 观察者限制飞行范围
+# execute as @a[gamemode=spectator] unless entity @s[x=1000,y=10,z=2000,dx=22,dz=22,dy=22] run tp @s 1011.5 27.5 2011.5
+# UNDONE : 确定范围