一个允许玩家控制生物生成的Spigot插件。
除非引入了大规模的 API 更改,否则该插件应适用于 1.16+ 的所有版本。
该插件具有高度可配置性,请查看以下配置文件。
此插件的并非所有版本都已上传到这里,原始插件已上传到 spigot。如果您想下载旧版本,请点击这里:[https://www.spigotmc.org/resources/cure-zombified-piglins.102680/](https://www.spigotmc.org/resources/cure-zombified-piglins.102680/history)
或者点击这里阅读所有变更日志:[https://www.spigotmc.org/resources/cure-zombified-piglins.102680/updates](https://www.spigotmc.org/resources/cure-zombified-piglins.102680/updates)
您可以使用虚弱药水溅射瓶和金苹果来治愈僵尸猪林。该过程会产生与试图治愈僵尸村民时相同的声音效果和粒子效果。
可以在配置中调整治愈时间。
治愈后,猪林将变得友善,不再攻击。您可以配置设置,使它们对所有玩家都友善。
此外,您还可以指定治愈后的猪林是否会在进入主世界时变成僵尸猪林。
另一个可配置的选项决定了猪林在被击中后是否会变得具有攻击性,并在没有目标时经过一段时间后冷静下来。默认设置可确保治愈后的猪林在受到攻击时不会反击。
您有选项,例如可以让治愈后的猪林跟随治愈者、喂食、显示统计数据、管理物品栏等。请阅读下方配置。
您可以创建/更改治愈后猪林的职业,并使用新的配置,例如更改掉落物品表、拾取物品表等。请检查 permission.yml 文件。或查看上方的 spigot 链接以获取变更日志。
若要使用独立职业的皮肤功能,您需要安装 Lib's Disguises:[https://www.spigotmc.org/resources/libs-disguises-free.81/](https://www.spigotmc.org/resources/libs-disguises-free.81/)
### 命令:
/bcp - 重新加载配置 - 权限: curepiglins.reload
重新加载配置后,更改将立即生效,排除正在治愈过程中的僵尸所花费的时间。无需重启。
治愈后的猪林将在区块卸载、重新加载或服务器重启时保存。它们将保留它们的名称(如果已命名)、年龄、手中的物品、盔甲和额外的物品栏(如果已激活)以及所有额外的数据。它们永远不会忘记治愈它们的人。
config
```
reloadConfig: '&a您已重新加载配置'
noPermission: '&4您没有执行此命令的权限'
backupPiglinSaveFileOnServerStart: true
#DO NOT MODIFY CONFIG VERSION OR CONFIG MIGHT BREAK
configVersion: 0.0
#////////////////////////
#Behaviour
#////////////////////////
#根据此设置,治愈后的猪林将不会攻击以下实体
#false = 仅治愈它的玩家
#true = 所有实体
neutralToAll: false
#如果设置为 true,治愈后的猪林将攻击造成伤害的实体(不包括治愈者)
#但如果它们超出范围并且等待目标过期,那么治愈后的猪林将不再攻击,除非它们再次被击中
#此选项将忽略 neutralToAll
turnAggresiveWhenHit: false
#与 turnAggresiveWhenHit 相同,但此选项仅适用于治愈者
#此选项将忽略 neutralToAll
turnAggresiveWhenHitByCurer: false
#当治愈者 SHIFT+右键点击一个由玩家治愈的猪林时,它将跟随
followCurer: false
cannotFollow: '&cPaddle 不可以在创造模式下跟随您,因为拥有十字弩或还是幼崽'
piglinFollowing: '&a已选择的猪林现在正在跟随您。它无法伤害您'
piglinStopFollow: '&a猪林不再跟随您'
#////////////////////////
#Misc
#////////////////////////
#以秒为单位
#
#此设置将在重新加载命令后立即更改:/bcp - 除了正在治愈过程中的猪林
cureTime: 120
#猪林在原版游戏中进入主世界时会变成僵尸猪林
#将此设置为 true 将阻止治愈后的猪林进入主世界时变成僵尸
#
#此设置将在重新加载命令后立即更改:/bcp
#
#这意味着如果您将此设置设置为 true 并且您还有治愈后的猪林在主世界中,将此设置为 false 将……
#...开始向主世界中的所有治愈后的猪林进行僵尸化过程
#同样,将此设置为 false 将立即停止僵尸化过程
#
#正在僵尸化过程中的僵尸会摇晃
notTurnInOverworld: true
#如果设置为 true,则当用牛奶桶右键点击时,僵尸猪林的转化过程将被取消
cancelTransformationWithMilk: false
#如果 cancelTransformationWithMilk 为 false,则此选项将被忽略
#如果设置为 false,则只有启动治愈过程的玩家才能停止它
#如果设置为 true,则任何玩家都可以取消转化
cancelTransformationWithMilkByAnyone: false
#治愈者可以喂食猪林带有药效食物和药水
#仅适用于治愈者
#
#以下物品可以喂给猪林:附魔过的金苹果、金苹果、可疑炖菜、有毒土豆、合唱果、蜂蜜瓶、河豚鱼、蜘蛛眼、牛奶桶、任何可以喝的药水
feedPiglin: false
#任何人都可以喂食任何猪林
#如果 feedPiglin 为 false,则此选项将被忽略
feedPiglinByAnyone: false
#如果设置为 true,并且喂给猪林金胡萝卜,则如果它是幼崽,它将变成成年猪林,或者如果是成年猪林,它将变成幼崽
feedGoldenCarrot: false
#当您 SHIFT+左键点击猪林时,它会告诉您它目前的生命值、药水效果和存储的物品数量
#仅适用于治愈者和拥有 curedpiglins.piglininfo 权限的管理人员
getInfo: false
#任何玩家都可以获取任何猪林的详细信息
#如果 getInfo 为 false,则此选项将被忽略
getInfoByAnyone: false
#{potions}占位符应保留在示例中,单独一行,并且没有额外的字符
piglinInfoMessage:
- '&aName: {name}'
- '&aCurer: {curer}'
- '&aHealth: {health}'
- '&aItems in inventory: {itemsCount}'
- '&aActive potions: '
- '{potions}'
#用于 piglinInfoMessage 中 {potions} 占位符的格式
piglinInfoMessagePotionsFormat: '&aPotion: {type}, duration: {duration} seconds, amplifier: {amplifier}'
#如果猪林死亡,则会向治愈者发送消息,告知死亡时间和死因
informCurerAboutPiglinDeath: false
deathPiglinMessage:
- '&cPiglin 命名 {name} 死亡。'
- '&cType: {type}'
- '&cDeath Location: {deathLocation}'
- '&cDeath Date: {deathDate}. TimeZone: {timeZone}'
- '&cLast damage cause: {damageCause}'
- '&cLast damage cause date: {lastDamageDate}. TimeZone: {timeZone}'
- '&cLast damage by player date: {lastDamagePlayerDate}. TimeZone: {timeZone}'
- '&cLast damage by player name: {lastDamagePlayerName}'
#用于 deathPiglinMessage 中 {deathLocation} 占位符的消息
deathLocationMessage: '&cWorld: {worldName}, x: {x}, y: {y}, z: {z}'
#用于日期 deathPiglinMessage 的时区
#输入一个有效的时区,并且不要使用颜色
serverTimeZone: 'GMT-6'
#用于日期 deathPiglinMessage 的日期格式
#输入一个有效的格式,并且不要使用颜色
dateFormat: 'yyyy-MM-dd HH:mm:ss'
#当使用标签名时,拥有 curepiglins.bypassrename 权限的玩家会忽略此设置
canOtherPeopleRenamePiglin: true
cannotRename: '&c此猪林不属于您'
#////////////////////////
#Inventory
#////////////////////////
#如果治愈后的猪林保留它在变为僵尸猪林时所拥有的物品
curedPiglinKeepsOldItems: true
#如果治愈后的猪林保留它在变为僵尸猪林时所拥有的 NBT 标签
curedPiglinKeepsNBTTags: true
#右键点击时,猪林将打开一个 GUI 物品栏,您可以在其中修改它的盔甲、主手物品、副手物品以及用于存储的额外插槽
armourInventoryModify: true
armourInventoryName: '&aPiglin Inventory'
#可以设置为以下值之一:0、1、2、3、4、5
#输入一个不同的值将自动设置为 0
#0 - 无额外的物品栏行
#这些是 armourInventory 中为玩家提供的额外行
armourInventoryBonusRows: 0
#如果此设置为 true,则任何玩家都可以打开 armourInventory
#将此设置为 false,将使只有治愈者和拥有 curedpiglins.openarmourinventory 权限的管理人员才能打开它
armourInventoryCanBeOpenedByAnyone: false
#如果设置为 true,则治愈后的猪林会掉落它物品栏中的所有物品
#如果设置为 false,则猪林物品栏中的所有物品都会丢失
dropItemsFromInventoryOnDeath: false
#如果输入了无效的材质,则会提供默认的 BLACK_STAINED_GLASS_PANE
fillerItemMaterial: BLACK_STAINED_GLASS_PANE
fillerItemName: ''
#如果想要 lore 为空或者只有一行,则使用默认格式
#格式为多行
# fillerItemLore:
# - 'line1'
# - '&aLine2'
fillerItemLore: ''
```
professions.yml
```
# For enchantments
# You may add [nameOfEnchant]:[minLevel]-[maxLevel] per line
# Example:
# enchants:
# - 'DURABILITY:1-0' - Amount range is invalid, so it'll default to 1
# - 'DURABILITY:1-3' - Enchant level between 1 and 3
# - 'DURABILITY:1' - Only possible level for this enchant is 1
#
# The chance of the trade itself is not in percentage (%)
# The number can be as large as you want; the larger the number, the higher the chance of it being selected
#
# Leaving the name and lore empty will use the default item's values
# Please use this list to get item types (materials) names: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
# Please use this list to get the enchantment names: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html
#
# For potion effects, use the format '[{potionEffect}:{minLevel-maxLevel}:{mindurationInSeconds-maxdurationInSeconds}]' or '[{potionEffect}:{level}:{durationInSeconds}]'
# Use the following potion effect names: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html
#
# The default profession must exist. If it does not exist, a default profession will be created internally without trades.
areProfessionsEnaled: true
professions:
default:
trade1:
name:
lore:
type: ENCHANTED_BOOK
amount: 1
chance: 5
enchants:
- 'SOUL_SPEED:1-3'
trade2:
name:
lore:
type: IRON_BOOTS
amount: 1
chance: 8
enchants:
- 'SOUL_SPEED:1-3'
trade3:
name:
lore:
type: SPLASH_POTION
potionEffects:
- 'FIRE_RESISTANCE:1-2:180-300'
amount: 1
chance: 8
trade4:
name:
lore:
type: POTION
potionEffects:
- 'FIRE_RESISTANCE:1:180'
amount: 1
chance: 8
trade5:
name: '&cWater bottle'
lore:
type: POTION
amount: 1
chance: 10
trade6:
name:
lore:
type: IRON_NUGGET
amount: 10-36
chance: 10
trade7:
name:
lore:
type: ENDER_PEARL
amount: 2-4
chance: 10
trade8:
name:
lore:
type: STRING
amount: 3-9
chance: 20
trade9:
name:
lore:
type: QUARTZ
amount: 5-12
chance: 20
trade10:
name:
lore:
type: OBSIDIAN
amount: 1
chance: 40
trade11:
name:
lore:
type: CRYING_OBSIDIAN
amount: 1-3
chance: 40
trade12:
name:
lore:
type: FIRE_CHARGE
amount: 1
chance: 40
trade13:
name:
lore:
type: LEATHER
amount: 2-4
chance: 40
trade14:
name:
lore:
type: SOUL_SAND
amount: 2-8
chance: 40
trade15:
name:
lore:
type: NETHER_BRICK
amount: 2-8
chance: 40
trade16:
name:
lore:
type: SPECTRAL_ARROW
amount: 6-12
chance: 40
trade17:
name:
lore:
type: GRAVEL
amount: 8-16
chance: 40
trade18:
name:
lore:
type: BLACKSTONE
amount: 8-16
chance: 4
prof2:
trade1:
name: '&aPrank'
lore:
type: DIRT
chance: 250
amount: 64-2000
trade2:
name: '&aGood luck'
lore:
type: DIAMOND
chance: 10
amount: 1-5
#This section will only work if you have server verision 1.16.5 and above
acceptedTradeMaterial:
default:
- 'GOLD_INGOT'
prof2:
- 'GOLD_INGOT'
- 'GOLD_NUGGET'
- 'DIAMOND'
#Select the chance when a piglin is cured. Only the ones cured
#Piglins that spawn naturally will not have a profession.
#This is not a percentage value.
#A larger number indicates a higher chance of being selected.
selectionChance:
- 'default:100000'
- 'prof2:1'
#Instead of having professions pick one item at a time, you can select them to pick multiple items.
#The maximum value is 64, and the minimum value is 1.
howManyItemsCanAprofessionPickAtOnce:
default:
minValue: 1
prof2:
minValue: 1
maxValue: 64
#Chance out of 100000.
#[profession]-[itemType]:[chance]
#You cannot use the same material for multiple professions.
#If multiple entries of the same material are used, then the plugin will select the last line with the same type, and the rest will be ignored.
changeProfessionUsingItemChance:
- 'default-GOLDEN_CARROT:50000'
- 'prof2-DIAMOND_BLOCK:1'
#If the respective settings are enabled,
#For this to work, the 'feedPiglinByAnyone' setting from config.yml needs to be enabled.
professionCanBeChangedByNonOwner: false
#If this setting is false, then piglins won't pick up items that are renamed, enchanted, etc.
#Similarly, for the change profession item, they won't accept it.
canPreciousItemsBeUsed: false
#If libs disguise is installed
#Go to https://mineskin.org/
#Select your skin or upload one, and paste the respective textureValue and textureSignature like in the example below
skins:
default: ''
prof2:
textureValue: ewogICJ0aW1lc3RhbXAiIDogMTcwNjQzNDMwODkyMiwKICAicHJvZmlsZUlkIiA6ICI1OWZmOTU1YzMxYjk0MWI0YWQwNDg4NDk0ODkzNzUzOCIsCiAgInByb2ZpbGVOYW1lIiA6ICJNZWdhMzQ5IiwKICAic2lnbmF0dXJlUmVxdWlyZWQiIDogdHJ1ZSwKICAidGV4dHVyZXMiIDogewogICAgIlNLSU4iIDogewogICAgICAidXJsIiA6ICJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlL2ZjZmJiOThhMzYxNGQ4ZTY4NWI1OThmYjRiMmM1YmI0MGQ4NzZiODQ0NDA5ZWVhMzMxZWJmMjQ4ZjViMDhlM2MiCiAgICB9CiAgfQp9
textureSignature: IbrvaAPl9Mrwlf7DHsQBcimIzW0V0m8F6/tx3K+rnd/fcsV9Ttx0s2my1KDWy20I7j9kmYiAFyL1GeM+x3XfAuNaNXDOi07XQI6aaQAK1xJriw0Yhe1C77Ecn3a9LpnEGXzmZ1k651knr3pXBoAg+adYz72jRUZH2Mfw2YJF5+Lr0jyl8Db/hXLgkgiz2HCuSH03IOEOm3ZQ32FeDJfdterbRKyn1xxSFCSiufGLMht0t1eYY51+cdNkjU7qPBQay29blmMe/4hRa4iwX0RbIvzFZijtfrw0560gyL3EYlPC4WJjPnqBkETP+b2Ci7KpMGbEYscR7rk5kh/mZhBW4Ip4icfWVVHhHLBbgRgQ4F5jXF4l/5aLTQR3mqmENn1bT9/sEdp09zVkHVTpUaJ+Tv+7pMGtZA6y09oUz3KLEjlpjf6KQYmXPtrgcAQ9KMGjpawrhqMaphnyjB4zxZAiWo+A4W29DlkEI01SYO5aMr1pcdidFlWG9f3oKJ7OJCqZrM53Um5ghtmF0BtgblxUBb5kEgEh3SpF3Wi3zolZac8qwCBzPa1MoM2MsnPioG5ofnFyageTFOFhWmU3CKjR4Lz7f1drnUVdLJ8EuIPUg7AosyGirt3x3cJazUQAuUtLMQAR6d6B+tOGpMWITvS23i8ILkH6znEDS3OS4RRwAY=
```
如果您遇到任何错误或有任何建议想要实施,请通过 Discord 联系我:balustrada