LTCatt 6 роки тому
батько
коміт
9525365b6d

+ 1 - 1
data/item/loot_tables/gameparty/normal/white.json

@@ -62,7 +62,7 @@
     "functions": [
         {
             "function": "minecraft:set_damage",
-            "damage":{"min": 0.05, "max": 0.08}
+            "damage":{"min": 0.07, "max": 0.11}
         },
         {
             "function": "minecraft:set_nbt",

+ 21 - 0
data/mini/functions/slime/game_init.mcfunction

@@ -0,0 +1,21 @@
+# 初始化幻翼地图
+forceload add 1000 6000 1064 6064
+
+scoreboard players set $finish_mode mem 0
+
+# 生成地图
+setblock 1000 4 7000 minecraft:structure_block[mode=load]{metadata:"",mirror:"NONE",ignoreEntities:1b,powered:0b,seed:0L,author:"LTCat",rotation:"NONE",posX:0,mode:"LOAD",posY:1,sizeX:32,posZ:0,integrity:1.0f,showair:0b,name:"mini:slime",sizeY:7,sizeZ:32,showboundingbox:0b}
+setblock 1000 5 7000 redstone_block
+setblock 1000 4 7000 air
+
+# 清理残余实体
+kill @e[type=arrow]
+kill @e[type=item]
+tp @e[type=slime] 1000 -100 6000
+kill @e[type=trident]
+
+# 伤害管理
+scoreboard players set $remove_resistance mem 1
+team modify player friendlyFire false
+team modify player collisionRule always
+gamerule fallDamage false

+ 8 - 0
data/mini/functions/slime/player_intro.mcfunction

@@ -0,0 +1,8 @@
+# 向单个玩家展示小游戏介绍
+tp @s[tag=!debug] 1062.34 27.11 7040.84 461.44 28.30
+tellraw @s ["",{"text":"\n >> 夺命足球 >>\n\n","color":"gold","bold":true}," 将史莱姆踢到其他人的脸上, 干掉他们!\n"]
+tellraw @s ["",{"text": " <死亡淘汰制> ","color":"red","bold": true}, {"text":"生命无法自然恢复, 被史莱姆杀死时即被淘汰。","color":"gray"}]
+tellraw @s ["",{"text": " <间接 PVP> ","color":"light_purple","bold": true}, {"text":"无法直接攻击他人, 但可以击退史莱姆撞击他人。","color":"gray"}]
+tellraw @s ["",{"text": " <原型> ","color":"gold","bold": true}, {"text":"此游戏目前仅用于玩法测试, 尚未进行修缮。","color":"gray"}]
+tellraw @s ["",{"text": " <早期测试> ","color":"dark_red","bold": true}, {"text":"这是刚做出来的新游戏, 碰到什么见鬼问题都很正常!","color":"dark_red"}]
+tellraw @s ""

+ 10 - 0
data/test/functions/mini/slime.mcfunction

@@ -0,0 +1,10 @@
+# 测试用:快速开始史莱姆
+tag @a add hub_ready
+tag @a remove hub_watch
+tag @a remove watcher
+function ltw:state/0/start_gameparty
+scoreboard players set $round mem 6
+scoreboard players set $mini_type mem 7
+function mini:main/game_init
+function ltw:state/4/state_enter
+say 已开始单个测试游戏!