Modernized TamableFoxes
一款 SpigotMC 插件,让你能够驯服狐狸!
警告:请勿重载此插件,否则可能会丢失狐狸!!
Modernized TamableFoxes 是 TamableFoxes-Revived 的现代分支版本,而后者又是原始 TamableFoxes 插件的分支。
本项目仍遵循原始仓库的 MIT 许可证。
该插件目前支持的游戏版本如下:
1.20.x、1.21.x、1.26.x
默认配置文件:
如果遇到任何错误,请提交 Issue!
你是否曾想过驯服狐狸?现在你可以了!使用鸡肉进行驯服,并使用甜浆果让它们繁殖!
功能特性:
- 33% 的驯服成功率
- 繁殖功能
- 野生狐狸会采摘浆果丛
- 跳跃攻击目标
- 当主人休息时,已驯服的狐狸也会睡觉
- 狐狸跟随主人
- 按住 Shift + 右键点击可以让狐狸手持物品
- 右键点击让狐狸坐下
- 空手 Shift + 右键点击让狐狸睡觉
- 如果狐狸手持不死图腾,它会消耗该图腾并重生。
- 狐狸会攻击主人的目标
- 狐狸会反击攻击主人的实体
- 狐狸会自动生成在世界中。(与原版狐狸相同的生成区域)
- 狐狸会攻击鸡和兔子。
- 包含红狐狸和白狐狸(雪狐)。
- 支持 language.yml 语言配置
- 已驯服狐狸死亡时的消息提示
/givefox 命令用于将狐狸给予其他玩家
- 禁用部分游戏内消息
- 你可以通过在
language.yml 中将特定字段设置为 "disabled" 来实现。可禁用的字段包括:
taming-tamed-message
taming-asking-for-name-message
taming-chosen-name-perfect
fox-doesnt-trust
命令:
- /spawntamablefox [red/snow]: 在玩家位置生成一只可驯服的狐狸。
- /tamablefoxes reload: 重载插件
- /givefox [player name]: 将狐狸给予其他玩家。
权限:
tamablefoxes.reload: 允许重载插件配置。默认值:op
tamablefoxes.spawn: 允许运行 /spawntamablefox 命令。默认值:op
tamablefoxes.tame: 允许玩家驯服狐狸。默认值:Everybody
tamablefoxes.tame.unlimited: 允许玩家绕过驯服数量限制。默认值:op
tamablefoxes.tame.anywhere: 允许玩家绕过 config.yml 中禁止驯服的生物群系(从而可以在任何世界驯服)。默认值:op
tamablefoxes.givefox.give.others: 允许玩家将其他玩家的狐狸通过 /givefox 命令转移给指定玩家。此权限将忽略接收者是否拥有 tamablefoxes.givefox.receive 权限。默认值:op
tamablefoxes.givefox.give: 允许玩家通过 /givefox 命令将狐狸给予其他玩家。默认值:Everybody
tamablefoxes.givefox.receive: 允许玩家通过 /givefox 命令接收其他玩家给予的狐狸。默认值:Everybody
构建
使用 JDK 21 并运行 mvn package 来构建项目。
构建完成后,你可以在 ./run/plugins/ 目录下找到该插件。
*尽管以下旧信息提到使用 compileSpigotVersions.sh 准备 Maven 缓存,但在实践中我发现,在网络状况良好的情况下,仅使用 JDK 21 并运行 mvn package 就足够了。 *
*旧信息:要构建项目,你必须确保从 1.20.1 开始的所有 Spigot 版本都已构建并存在于你的 Maven 缓存中。为此,请查看 compileSpigotVersions.sh,其中列出了所有 Java 命令及其对应的 Java 版本。 *
指标收集
Modernized TamableFoxes 通过 bStats(一个面向 Minecraft 软件的开源统计服务)收集匿名服务器统计数据。如果你希望退出数据收集,可以在 bstats/config.yml 文件中设置。
Modernized TamableFoxes
SpigotMC Plugin that gives you the ability to tame foxes!
WARNING: Do not reload the plugin, you may loose foxes!!
Modernized TamableFoxes is a modernized fork of TamableFoxes-Revived, which itself is a fork of the original TamableFoxes plugin.
This project still follows the MIT license of the original repository
The game versions currently supported by this plugin are as follows:
1.20.x, 1.21.x, 26.x
Default configuration files:
If you get any errors, create an issue!
Have you ever wanted to tame foxes? Well, now you can! Use chicken to tame and sweet berries to breed them!
Features:
- 33% Chance of taming
- Breeding
- Wild foxes pick berry bushes
- Leaping on targets
- Tamed foxes sleep when their owner does
- Foxes follow owner
- You can shift + right-click to let the fox hold items
- Right-click to make the fox sit
- Shift Right-click with an empty hand to make the fox sleep
- If the fox is holding a totem of undying, the fox will consume it and be reborn.
- Foxes attack the owner's target
- Foxes attack the thing that attacked the owner.
- Foxes are automatically spawned inside the world. (Same areas as vanilla foxes)
- Foxes attack chickens and rabbits.
- Snow and red foxes.
- Language.yml
- Message when a tamed fox dies
- /givefox command to give foxes to other players.
- Disabling certain gameplay messages
- You can do this by changing certain fields in
language.yml to "disabled". The fields that can be disabled are:
taming-tamed-message
taming-asking-for-name-message
taming-chosen-name-perfect
fox-doesnt-trust
Commands:
- /spawntamablefox [red/snow]: Spawns a tamable fox at the players' location.
- /tamablefoxes reload: Reloads
- /givefox [player name]: Give a fox to another player.
Permissions:
tamablefoxes.reload: Reloads the plugin config. Default: op
tamablefoxes.spawn: Gives permission to run the command /spawntamablefox. Default: op
tamablefoxes.tame: Gives the player the ability to tame a fox. Default: Everybody
tamablefoxes.tame.unlimited: Lets players bypass the tame limit. Default: op
tamablefoxes.tame.anywhere: Lets players bypass the banned worlds in config.yml (so they can tame in any world). Default: op
tamablefoxes.givefox.give.others: Allows the player to give another players fox to a player with /givefox. This will ignore if the other receiving has the tamablefoxes.givefox.receive permission. Default: op
tamablefoxes.givefox.give: Gives the player the ability to give foxes to other players with /givefox. Default: Everybody
tamablefoxes.givefox.receive: Gives the player the ability to receive foxes from other players from /givefox. Default: Everybody
Building
Use JDK 21 and run mvn package to build the project.
After building, you can find the plugin in ./run/plugins/
*Although the old information below mentions using compileSpigotVersions.sh to prepare the maven cache, I found in practice that with good network conditions, using JDK 21 and running mvn package is sufficient. *
*Old information: To build you must have every version of spigot starting from 1.20.1 built and inside your maven cache. To do that, look at compileSpigotVersions.sh that lists all the java commands and the java versions for them. *
Metrics collection
Modernized TamableFoxes collects anonymous server statistics through bStats, an open-source statistics service for Minecraft software. If you wish to opt-out, you can do so in the bstats/config.yml file.
评论 0
登录后参与评分
还没有评论,来抢沙发吧