Parcourir la source

热土豆有初始奖励物品了

LTCatt il y a 6 ans
Parent
commit
a8990a4ec2

+ 0 - 2
data/item/functions/special/clear_effect.mcfunction

@@ -10,5 +10,3 @@ execute if score $t_remove_resistance mem matches 1 run effect clear @a[tag=cons
 # 重置tag和分数
 tag @a[tag=consume_apple] remove consume_apple
 scoreboard players reset $t_remove_resistance mem
-
-# TODO : 为小游戏留出重置效果接口

+ 1 - 1
data/item/loot_tables/gameparty/green.json

@@ -37,7 +37,7 @@
     "functions": [
         {
             "function": "minecraft:set_nbt",
-            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"喷溅型浮空药水 (0:10)\\\",\\\"color\\\":\\\"green\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"CustomPotionEffects\":[{\"Id\":25,\"Amplifier\":0,\"Duration\":200}],\"CustomPotionColor\":11458519,\"display\":{\"Name\":\"{\\\"text\\\":\\\"喷溅型浮空药水\\\",\\\"italic\\\":0}\"}}"
+            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"喷溅型浮空药水 (0:15)\\\",\\\"color\\\":\\\"green\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"CustomPotionEffects\":[{\"Id\":25,\"Amplifier\":0,\"Duration\":300}],\"CustomPotionColor\":11458519,\"display\":{\"Name\":\"{\\\"text\\\":\\\"喷溅型浮空药水\\\",\\\"italic\\\":0}\"}}"
         }
     ]
 },

+ 2 - 2
data/item/loot_tables/gameparty/purple.json

@@ -18,11 +18,11 @@
 {
     "type": "minecraft:item",
     "weight": 1,
-    "name": "minecraft:bow",
+    "name": "minecraft:crossbow",
     "functions": [
         {
             "function": "minecraft:set_nbt",
-            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"冲击弓, 箭 x20\\\",\\\"color\\\":\\\"light_purple\\\"}\",\"Enchantments\":[{\"id\":\"punch\",\"lvl\":1}],\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"bonus_give_items\":[{\"id\":\"minecraft:arrow\",\"Count\":20,\"tag\":{\"is_bonus\":1b,\"bonus_clear_nbt\":1b}}]}"
+            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"快速装填弩, 箭 x20\\\",\\\"color\\\":\\\"light_purple\\\"}\",\"Enchantments\":[{\"id\":\"quick_charge\",\"lvl\":3}],\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"bonus_give_items\":[{\"id\":\"minecraft:arrow\",\"Count\":20,\"tag\":{\"is_bonus\":1b,\"bonus_clear_nbt\":1b}}]}"
         }
     ]
 }

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

@@ -111,7 +111,7 @@
     "functions": [
         {
             "function": "minecraft:set_damage",
-            "damage":{"min": 0.04, "max": 0.1}
+            "damage":{"min": 0.04, "max": 0.07}
         },
         {
             "function": "minecraft:set_nbt",

+ 2 - 1
data/ltw/functions/main/player_leave.mcfunction

@@ -10,4 +10,5 @@ execute if score $state mem matches 1.. if score $game_type mem matches 1 if sco
 execute if score $state mem matches 5 if score $mini_type mem matches 3 run function mini:hotpm/player_leave
 
 # TODO : 如果在熔炉中放入魔晶石(暂时用下界之星代替),则显示提示并且炸毁熔炉
-# TODO : [重要] 判断玩家背包中的魔晶石数量(暂时用下界之星代替),每一个魔晶石提供 -10% 速度和 +0.5 击退抗性
+# TODO : 判断玩家背包中的魔晶石数量(暂时用下界之星代替),每一个魔晶石提供 -10% 速度和 +0.5 击退抗性
+# FIXME : 奖励选择房里还有结构方块的线

+ 1 - 1
data/ltw/functions/state/3/tick20.mcfunction

@@ -4,4 +4,4 @@ title @a subtitle {"score":{"name":"$countdown","objective":"mem"}}
 title @a title ["第 ",{"score": {"objective": "mem","name": "$round"}},"/5 轮"]
 
 # 退出状态
-execute if score $countdown mem matches 7 run function ltw:state/4/state_enter
+execute if score $countdown mem matches 8 run function ltw:state/4/state_enter

+ 1 - 1
data/ltw/functions/state/4/state_enter.mcfunction

@@ -8,4 +8,4 @@ scoreboard objectives setdisplay sidebar total_score
 scoreboard objectives setdisplay list total_score_disp
 
 # 初始化倒计时
-scoreboard players set $countdown mem 7
+scoreboard players set $countdown mem 8

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

@@ -45,3 +45,8 @@ setblock 1000 5 3022 minecraft:redstone_block
 #   000
 setblock 1000 4 2999 minecraft:structure_block[mode=load]{metadata:"",mirror:"NONE",ignoreEntities:1b,powered:0b,seed:0L,author:"?",rotation:"NONE",posX:0,mode:"LOAD",posY:1,sizeX:23,posZ:0,integrity:1.0f,showair:0b,name:"mini:hotpm000",sizeY:24,sizeZ:23,showboundingbox:0b}
 setblock 1000 5 2999 minecraft:redstone_block
+
+# 生成物品
+execute positioned 1022.0 17.0 3009.0 run function item:bonus_item/rank/white
+execute positioned 1022.5 32.0 3038.0 run function item:bonus_item/rank/white
+execute positioned 1022.5 43.5 3012.5 run function item:bonus_item/rank/white

+ 2 - 2
data/mini/functions/hotpm/game_start.mcfunction

@@ -1,2 +1,2 @@
-# 3秒后给予土豆
-schedule function mini:hotpm/game/pm_init_first 3s replace
+# 2秒后给予土豆
+schedule function mini:hotpm/game/pm_init_first 2s replace

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

@@ -2,4 +2,4 @@
 tp @s 1011.5 18.0 2019.0 180 15
 tellraw @s [{"text":"\n>> TNT Run >>\n\n","color":"red","bold":true},{"text": "你脚下的方块会不断塌陷, 所以, 不要停下来啊!\n场地一共有三层, 掉到最下面则为失败!\n","color":"white","bold": false}]
 
-# FIXME : ColorMatch 封顶
+# FIXME : ColorMatch 用屏障封顶防珍珠

+ 3 - 1
data/mini/functions/zombie/game/give_equip.mcfunction

@@ -10,4 +10,6 @@ function lib:random
 # 给予装备
 execute if score $random mem matches 1..2 run replaceitem entity @s weapon.mainhand minecraft:crossbow
 execute if score $random mem matches 3..4 run replaceitem entity @s weapon.mainhand minecraft:golden_sword
-execute if score $random mem matches 2..3 run replaceitem entity @s armor.legs minecraft:golden_leggings
+execute if score $random mem matches 2..3 run replaceitem entity @s armor.legs minecraft:golden_leggings
+
+# TODO : 被猪灵打了之后给予 2 秒无敌和速度