Ver Fonte

调整掉落物表

LTCatt há 5 anos atrás
pai
commit
1b4f0542eb

+ 5 - 5
data/item/functions/bonus_item/gameparty/normal/random.mcfunction

@@ -7,11 +7,11 @@ function lib:random
 scoreboard players operation #quality mem = $random mem
 
 # 根据品质生成不同的物品
-# 白色:50%
-execute if score #quality mem matches ..50 run function item:bonus_item/gameparty/normal/white
+# 白色:55%
+execute if score #quality mem matches ..55 run function item:bonus_item/gameparty/normal/white
 # 绿色:30%
-execute if score #quality mem matches 51..80 run function item:bonus_item/gameparty/normal/green
-# 蓝色:20%
-execute if score #quality mem matches 81.. run function item:bonus_item/gameparty/normal/blue
+execute if score #quality mem matches 56..85 run function item:bonus_item/gameparty/normal/green
+# 蓝色:15%
+execute if score #quality mem matches 86.. run function item:bonus_item/gameparty/normal/blue
 # 紫色:0%
 # execute if score #quality mem matches 95.. run function item:bonus_item/gameparty/normal/purple

+ 7 - 7
data/item/loot_tables/gameparty/normal/green.json

@@ -2,13 +2,13 @@
 
     {
         "type": "minecraft:loot_table",
-        "weight": 1,
+        "weight": 3,
         "name": "item:gameparty/score/green"
     },
 
     {
         "type": "minecraft:item",
-        "weight": 1,
+        "weight": 2,
         "name": "minecraft:fishing_rod",
         "functions": [
             {
@@ -19,7 +19,7 @@
     },
 {
     "type": "minecraft:item",
-    "weight": 1,
+    "weight": 3,
     "name": "minecraft:iron_axe",
     "functions": [
         {
@@ -30,7 +30,7 @@
 },
 {
     "type": "minecraft:item",
-    "weight": 1,
+    "weight": 2,
     "name": "minecraft:totem_of_undying",
     "functions": [
         {
@@ -41,7 +41,7 @@
 },
 {
     "type": "minecraft:item",
-    "weight": 1,
+    "weight": 2,
     "name": "minecraft:golden_apple",
     "functions": [
         {
@@ -52,7 +52,7 @@
 },
 {
     "type": "minecraft:item",
-    "weight": 1,
+    "weight": 3,
     "name": "minecraft:splash_potion",
     "functions": [
         {
@@ -63,7 +63,7 @@
 },
 {
     "type": "minecraft:item",
-    "weight": 1,
+    "weight": 3,
     "name": "minecraft:crossbow",
     "functions": [
         {

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

@@ -7,6 +7,7 @@
         "minecraft:emerald",
         "minecraft:ender_pearl",
         "minecraft:enchanted_golden_apple",
+        "minecraft:totem_of_undying",
         "minecraft:golden_apple",
         "minecraft:iron_sword",
         "minecraft:nether_star",