CobblemonPrefixes!

资源包

· 作者 Zimware

这是一个简单的资源包服务器端,用于实现简单的前缀。初始设置使其能够与 DexRewards 模组配合使用。

0 本站下载 0 关注 更新于 1 年前

最新 1.1 · 1.21.1 · Minecraft

一键开服(送7天)

描述

此资源包最初设计用于配合 DexRewards 模组使用;它匹配该模组初始奖励配置中使用的物品类型,以此展示你处于图鉴(Pokedex%)的哪个分组。当然,它也可以用于其他目的,并作为自定义前缀的模板。

随着时间的推移,我会继续添加更多变体和图标,使其更具通用性。

使用方法

此资源包需作为服务器资源包使用,可以“安装”到服务器的 server.properties 文件中。之后,通过你所使用的任何模组或插件为每个组类型设置前缀,并为每个图标指定位图/字符(你可以在 assets/minecraft/font/ 中找到)。

依赖项

LuckPerms 或任何你想用来管理分组的模组 目前我所知的唯一支持在 LuckPerms 旁提供前缀/后缀功能的模组是 Fabric Custom Names。

DexRewards 默认特殊配置

此设置用于确保当玩家完成特定比例的 dex(图鉴)并领取奖励时,他们默认获得作为前缀的图标。

{
  "reward_groups": {
    "Trainer": {
      "icon": "cobblemon:poke_ball",
      "icon_data": {},
      "required_caught_percent": 5.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add trainer"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:poke_ball",
          "item_data": {},
          "count": 16
        }
      }
    },
    "Rookie": {
      "icon": "cobblemon:fast_ball",
      "icon_data": {},
      "required_caught_percent": 10.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add rookie",
            "lp user %player% parent remove trainer"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:great_ball",
          "item_data": {},
          "count": 16
        }
      }
    },
    "Beginner": {
      "icon": "cobblemon:great_ball",
      "icon_data": {},
      "required_caught_percent": 15.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add beginner",
            "lp user %player% parent remove rookie"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:thunder_stone",
          "item_data": {},
          "count": 2
        }
      }
    },
    "Novice": {
      "icon": "cobblemon:level_ball",
      "icon_data": {},
      "required_caught_percent": 20.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add novice",
            "lp user %player% parent remove beginner"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:exp_candy_s",
          "item_data": {},
          "count": 48
        }
      }
    },
    "Ranger": {
      "icon": "cobblemon:ultra_ball",
      "icon_data": {},
      "required_caught_percent": 25.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add ranger",
            "lp user %player% parent remove novice"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:ultra_ball",
          "item_data": {},
          "count": 32
        }
      }
    },
    "Collector": {
      "icon": "cobblemon:lure_ball",
      "icon_data": {},
      "required_caught_percent": 30.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add collector",
            "lp user %player% parent remove ranger"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:fire_stone",
          "item_data": {},
          "count": 2
        }
      }
    },
    "Apprentice": {
      "icon": "cobblemon:safari_ball",
      "icon_data": {},
      "required_caught_percent": 35.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add apprentice",
            "lp user %player% parent remove collector"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:exp_candy_m",
          "item_data": {},
          "count": 48
        }
      }
    },
    "Expert": {
      "icon": "cobblemon:heavy_ball",
      "icon_data": {},
      "required_caught_percent": 40.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add expert",
            "lp user %player% parent remove apprentice"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:nest_ball",
          "item_data": {},
          "count": 32
        }
      }
    },
    "Veteran": {
      "icon": "cobblemon:love_ball",
      "icon_data": {},
      "required_caught_percent": 45.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add veteran",
            "lp user %player% parent remove expert"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:lure_ball",
          "item_data": {},
          "count": 32
        }
      }
    },
    "Sage": {
      "icon": "cobblemon:moon_ball",
      "icon_data": {},
      "required_caught_percent": 50.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add sage",
            "lp user %player% parent remove veteran"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:quick_ball",
          "item_data": {},
          "count": 16
        }
      }
    },
    "Professor": {
      "icon": "cobblemon:repeat_ball",
      "icon_data": {},
      "required_caught_percent": 55.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add professor",
            "lp user %player% parent remove sage"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:rare_candy",
          "item_data": {},
          "count": 16
        }
      }
    },
    "Commander": {
      "icon": "cobblemon:timer_ball",
      "icon_data": {},
      "required_caught_percent": 60.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [

"lp user %player% parent add commander",
            "lp user %player% parent remove professor"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:rare_candy",
          "item_data": {},
          "count": 32
        }
      }
    },
    "Elite": {
      "icon": "cobblemon:luxury_ball",
      "icon_data": {},
      "required_caught_percent": 65.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add elite",
            "lp user %player% parent remove commander"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:luxury_ball",
          "item_data": {},
          "count": 16
        }
      }
    },
    "Executive": {
      "icon": "cobblemon:premier_ball",
      "icon_data": {},
      "required_caught_percent": 70.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add executive",
            "lp user %player% parent remove elite"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:cherish_ball",
          "item_data": {},
          "count": 1
        }
      }
    },
    "Master": {
      "icon": "cobblemon:dusk_ball",
      "icon_data": {},
      "required_caught_percent": 75.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add master",
            "lp user %player% parent remove executive"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:exp_candy_l",
          "item_data": {},
          "count": 16
        }
      }
    },
    "Baron": {
      "icon": "cobblemon:quick_ball",
      "icon_data": {},
      "required_caught_percent": 80.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add baron",
            "lp user %player% parent remove master"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:beast_ball",
          "item_data": {},
          "count": 1
        }
      }
    },
    "Duke": {
      "icon": "cobblemon:beast_ball",
      "icon_data": {},
      "required_caught_percent": 85.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add duke",
            "lp user %player% parent remove baron"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:master_ball",
          "item_data": {},
          "count": 1
        }
      }
    },
    "Champion": {
      "icon": "cobblemon:master_ball",
      "icon_data": {},
      "required_caught_percent": 90.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add champion",
            "lp user %player% parent remove duke"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:ancient_origin_ball",
          "item_data": {},
          "count": 1
        }
      }
    },
    "World Champion": {
      "icon": "cobblemon:cherish_ball",
      "icon_data": {},
      "required_caught_percent": 95.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add world_champion",
            "lp user %player% parent remove champion"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:exp_candy_xl",
          "item_data": {},
          "count": 16
        }
      }
    },
    "Arceus": {
      "icon": "minecraft:nether_star",
      "icon_data": {},
      "required_caught_percent": 100.0,
      "rewards": {
        "permission_group": {
          "type": "command",
          "commands": [
            "lp user %player% parent add arceus",
            "lp user %player% parent remove world_champion"
          ]
        },
        "command_group": {
          "type": "command",
          "commands": [
            "tellraw @a [\"\",{\"text\":\"[\",\"color\":\"dark_gray\"},{\"text\":\"DexRewards\",\"color\":\"blue\"},{\"text\":\"]\",\"color\":\"dark_gray\"},{\"text\":\" %player% has completed their pokedex!\",\"color\":\"gold\"}]"
          ]
        },
        "item_group": {
          "type": "item",
          "item": "cobblemon:master_ball",
          "item_data": {},
          "count": 6
        },
        "item_group_2": {
          "type": "item",
          "item": "cobblemon:exp_candy_xl",
          "item_data": {},
          "count": 32
        }
      }
    }
  }
}

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源