Sfoglia il codice sorgente

物品调整!地牢箱子!

LTCatt 5 anni fa
parent
commit
21bb3de034

+ 4 - 4
data/item/functions/bonus_item/add_score.mcfunction

@@ -21,10 +21,10 @@ execute if score #bonus_add_score mem matches 101 if score $random mem matches 0
 # 200:偷分
 execute if score #bonus_add_score mem matches 200 run function item:bonus_item/stole_score
 
-# 300:金粒 +5
-execute if score #bonus_add_score mem matches 300 run scoreboard players add @s gold 5
-execute if score #bonus_add_score mem matches 300 run scoreboard players add @s gold_total 5
-execute if score #bonus_add_score mem matches 300 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"selector": "@s","color":"aqua"}," 获得了 5 金粒"]
+# 300:金粒 +7
+execute if score #bonus_add_score mem matches 300 run scoreboard players add @s gold 7
+execute if score #bonus_add_score mem matches 300 run scoreboard players add @s gold_total 7
+execute if score #bonus_add_score mem matches 300 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"selector": "@s","color":"aqua"}," 获得了 7 金粒"]
 
 # 给予进度
 execute if entity @s[scores={total_score=10..}] run advancement grant @s only ltw:story/score1

+ 24 - 2
data/item/loot_tables/gameparty/item/blue.json

@@ -2,7 +2,18 @@
 
     {
         "type": "minecraft:item",
-        "weight": 6,
+        "weight": 3,
+        "name": "minecraft:chest",
+        "functions": [
+            {
+                "function": "minecraft:set_nbt",
+                "tag": "{\"item_name\":\"{\\\"text\\\":\\\"地牢箱子\\\",\\\"color\\\":\\\"aqua\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"BlockEntityTag\":{\"LootTable\":\"mini:diamond\",\"id\":\"minecraft:chest\"}}"
+            }
+        ]
+    },
+    {
+        "type": "minecraft:item",
+        "weight": 3,
         "name": "minecraft:iron_ingot",
         "functions": [
             {
@@ -15,6 +26,17 @@
             }
         ]
     },
+    {
+        "type": "minecraft:item",
+        "weight": 3,
+        "name": "minecraft:lava_bucket",
+        "functions": [
+            {
+                "function": "minecraft:set_nbt",
+                "tag": "{\"item_name\":\"{\\\"text\\\":\\\"岩浆桶\\\",\\\"color\\\":\\\"aqua\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"bonus_clear_nbt\":1b}"
+            }
+        ]
+    },
 {
         "type": "minecraft:item",
         "weight": 6,
@@ -77,7 +99,7 @@
     "functions": [
         {
             "function": "minecraft:set_nbt",
-            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"鞘翅, 烟花火箭 x5\\\",\\\"color\\\":\\\"aqua\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"display\":{\"Name\":\"{\\\"text\\\":\\\"鞘翅\\\",\\\"italic\\\":false,\\\"color\\\":\\\"aqua\\\"}\"},\"bonus_give_items\":[{\"id\":\"minecraft:firework_rocket\",\"Count\":5,\"tag\":{\"is_bonus\":1b,\"bonus_return\":1b,\"bonus_clear_nbt\":1b}}]}"
+            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"鞘翅, 烟花火箭 x8\\\",\\\"color\\\":\\\"aqua\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"display\":{\"Name\":\"{\\\"text\\\":\\\"鞘翅\\\",\\\"italic\\\":false,\\\"color\\\":\\\"aqua\\\"}\"},\"bonus_give_items\":[{\"id\":\"minecraft:firework_rocket\",\"Count\":8,\"tag\":{\"is_bonus\":1b,\"bonus_return\":1b,\"bonus_clear_nbt\":1b}}]}"
         }
     ]
 },

+ 13 - 2
data/item/loot_tables/gameparty/item/green.json

@@ -55,6 +55,17 @@
         }
     ]
 },
+{
+    "type": "minecraft:item",
+    "weight": 3,
+    "name": "minecraft:blast_furnace",
+    "functions": [
+        {
+            "function": "minecraft:set_nbt",
+            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"高炉, 煤炭 x5\\\",\\\"color\\\":\\\"green\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"bonus_clear_nbt\":1b,\"bonus_give_items\":[{\"id\":\"minecraft:coal\",\"Count\":5,\"tag\":{\"is_bonus\":1b,\"bonus_clear_nbt\":1b}}]}"
+        }
+    ]
+},
 {
     "type": "minecraft:item",
     "weight": 3,
@@ -77,11 +88,11 @@
     "functions": [
         {
             "function": "minecraft:set_count",
-            "count": 4
+            "count": 5
         },
         {
             "function": "minecraft:set_nbt",
-            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"铁矿石 x4\\\",\\\"color\\\":\\\"green\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"bonus_clear_nbt\":1b}"
+            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"铁矿石 x5\\\",\\\"color\\\":\\\"green\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"bonus_clear_nbt\":1b}"
         }
     ]
 },

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

@@ -7,7 +7,7 @@
         "functions": [
             {
                 "function": "minecraft:set_nbt",
-                "tag": "{\"item_name\":\"{\\\"text\\\":\\\"万能药 (饮用, 2:00)\\\",\\\"color\\\":\\\"light_purple\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"CustomPotionEffects\":[{\"Id\":12,\"Amplifier\":0,\"Duration\":2400},{\"Id\":11,\"Amplifier\":1,\"Duration\":2400},{\"Id\":1,\"Amplifier\":1,\"Duration\":2400},{\"Id\":5,\"Amplifier\":1,\"Duration\":2400},{\"Id\":3,\"Amplifier\":4,\"Duration\":2400}],\"CustomPotionColor\":16777215,\"display\":{\"Name\":\"{\\\"text\\\":\\\"万能药\\\",\\\"italic\\\":0,\\\"color\\\":\\\"light_purple\\\"}\"}}"
+                "tag": "{\"item_name\":\"{\\\"text\\\":\\\"万能药 (饮用, 3:00)\\\",\\\"color\\\":\\\"light_purple\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"CustomPotionEffects\":[{\"Id\":10,\"Amplifier\":0,\"Duration\":3600},{\"Id\":12,\"Amplifier\":0,\"Duration\":3600},{\"Id\":11,\"Amplifier\":1,\"Duration\":3600},{\"Id\":1,\"Amplifier\":1,\"Duration\":3600},{\"Id\":5,\"Amplifier\":1,\"Duration\":3600},{\"Id\":3,\"Amplifier\":4,\"Duration\":3600}],\"CustomPotionColor\":16777215,\"display\":{\"Name\":\"{\\\"text\\\":\\\"万能药\\\",\\\"italic\\\":0,\\\"color\\\":\\\"light_purple\\\"}\"}}"
             }
         ]
     },

+ 17 - 2
data/item/loot_tables/gameparty/score/blue.json

@@ -2,7 +2,22 @@
 
 {
     "type": "minecraft:item",
-    "weight": 6,
+    "weight": 4,
+    "name": "minecraft:nether_star",
+    "functions": [
+        {
+            "function": "minecraft:set_count",
+            "count": 7
+        },
+        {
+            "function": "minecraft:set_nbt",
+            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"得分 +7\\\",\\\"color\\\":\\\"aqua\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_add_score\":7}"
+        }
+    ]
+},
+{
+    "type": "minecraft:item",
+    "weight": 4,
     "name": "minecraft:nether_star",
     "functions": [
         {
@@ -17,7 +32,7 @@
 },
 {
     "type": "minecraft:item",
-    "weight": 6,
+    "weight": 4,
     "name": "minecraft:nether_star",
     "functions": [
         {

+ 6 - 6
data/item/loot_tables/gameparty/score/purple.json

@@ -7,11 +7,11 @@
         "functions": [
             {
                 "function": "minecraft:set_count",
-                "count": 9
+                "count": 10
             },
             {
                 "function": "minecraft:set_nbt",
-                "tag": "{\"item_name\":\"{\\\"text\\\":\\\"得分 +9\\\",\\\"color\\\":\\\"light_purple\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_add_score\":8}"
+                "tag": "{\"item_name\":\"{\\\"text\\\":\\\"得分 +10\\\",\\\"color\\\":\\\"light_purple\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_add_score\":10}"
             }
         ]
     },
@@ -22,11 +22,11 @@
     "functions": [
         {
             "function": "minecraft:set_count",
-            "count": 8
+            "count": 9
         },
         {
             "function": "minecraft:set_nbt",
-            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"得分 +8\\\",\\\"color\\\":\\\"light_purple\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_add_score\":8}"
+            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"得分 +9\\\",\\\"color\\\":\\\"light_purple\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_add_score\":9}"
         }
     ]
 },
@@ -37,11 +37,11 @@
     "functions": [
         {
             "function": "minecraft:set_count",
-            "count": 7
+            "count": 8
         },
         {
             "function": "minecraft:set_nbt",
-            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"得分 +7\\\",\\\"color\\\":\\\"light_purple\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_add_score\":7}"
+            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"得分 +8\\\",\\\"color\\\":\\\"light_purple\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_add_score\":8}"
         }
     ]
 }

+ 2 - 2
data/item/loot_tables/gameparty/score/white.json

@@ -55,11 +55,11 @@
     "functions": [
         {
             "function": "minecraft:set_count",
-            "count": 5
+            "count": 7
         },
         {
             "function": "minecraft:set_nbt",
-            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"金粒 +5\\\",\\\"color\\\":\\\"white\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_add_score\":300}"
+            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"金粒 +7\\\",\\\"color\\\":\\\"white\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_add_score\":300}"
         }
     ]
 },

+ 3 - 0
data/item/tags/items/bonus.json

@@ -13,6 +13,9 @@
         "minecraft:nether_star",
         "minecraft:trident",
         "minecraft:stick",
+        "minecraft:coal",
+        "minecraft:lava_bucket",
+        "minecraft:blast_furnace",
         "minecraft:diamond",
         "minecraft:diamond_sword",
         "minecraft:shulker_shell",