Cure Zombified Piglins icon

Cure Zombified Piglins -----

Cure a zombified piglin with a splash potion of weakness and a golden apple.



Unless massive api changes are introduced, the plugin should work on every version 1.16+

You can cure a zombified piglin by using a splash potion of weakness and a golden apple. The process produces the same sound effects and particles as when attempting to cure a zombie villager.

The cure time can be adjusted in the configuration.

After being cured, the piglin will become friendly towards you and will no longer attack. You can configure the settings to make them friendly with all players.

Additionally, you have the option to specify whether cured piglins will turn into zombified piglins upon entering the overworld.

Another configurable option determines if piglins become aggressive after being hit, and calm down after some time with when there are no targets around. The default setting ensures that cured piglins won't fight back if attacked.

Version 2.0 introduces several new features, such as the ability for cured piglins to follow the curer, be fed, display stats, manage inventory, and more. Read the update notes or configuration notes for more details.

Version 3.0 introduces a few new config settings, and professions for cured piglins with new configurations, like changing the loot table, pickup material table, and more. Check the change log and the permission.yml file.
To use the skins feature for independent professions, you'll need to install Lib's Disguises: https://www.spigotmc.org/resources/libs-disguises-free.81/

Command:
/bcp - Reloads the config - Permission: curepiglins.reload

Upon reloading the config, changes will take effect immediately, excluding the time for zombies in the process of being cured. No restarts are necessary.

Cured piglins will be saved upon chunk unload, reload, or server restart. They will retain their names (if given), age, held item, armor, and extra inventory (if activated), and all extra data. They will never forget the player who cured them.

Config:
Code (Text):


reloadConfig: '&aYou have reloaded the config'
noPermission: '&4You do not have the permission to execute this command'

backupPiglinSaveFileOnServerStart: true

#DO NOT MODIFY CONFIG VERSION OR CONFIG MIGHT BREAK
configVersion: 0.0

#////////////////////////
#Behaviour
#////////////////////////

#Depending on this setting the cured piglin will not target the following entities
#false = Just the player that cured it
#true = All entities
neutralToAll: false

#When set to true the cured piglin will target the damager (not including the curer)
#But if they get out of range and wait until the target expires then the cured piglin won't attack anymore unless it gets hit again
#This option will ignore neutralToAll
turnAggresiveWhenHit: false

#Samge as turnAggresiveWhenHit but this is only applies to the curer
#This option will ignore neutralToAll
turnAggresiveWhenHitByCurer: false

#When the curer SHIFT+Right clicks a piglin that was cured by a player it will follow
followCurer: false
cannotFollow: '&cPiglins cannot follow you if you are in creative, they have crossbows or they are babies'
piglinFollowing: '&aSelected piglin is now following you. He cannot hurt you'
piglinStopFollow: '&aPiglin no longer following you'

#////////////////////////
#Misc
#////////////////////////


#In seconds
#
#This will change instantly change after reload command: /bcp - Except for piglins that are in the process of getting cured
cureTime: 120

#Piglins turn into zombiefied piglins when they enter the overworld in vanilla
#Settings this to true will stop the cured piglins from turning when they go into the overworld
#
#This will change instantly change after reload command: /bcp
#
#Meaning that if you have this one true and you also have cured piglins in the overworld then changing this to false will...
#...start the process of zombification to all cured pigling in the overworld
#Same with changing it to false, the process of zombification will instantly stop
#
#Zombies that are in the process of zombification will shake
notTurnInOverworld: true

#If set to true then the curing progress for the zombified piglin will be canceled when right clicked with a bucket of milk
cancelTransformationWithMilk: false

#If cancelTransformationWithMilk is false than this option is ignored
#If set to false than only the player that started the curing process can stop it
#If set to true than any player can cancel the transformation
cancelTransformationWithMilkByAnyone: false

#The curer can feed a piglin food that gives potion effects and potions
#Only works for curer
#
#Following items can be fed to the piglin: Enchanted golden apple, golden apple, Suspicious stew, Poisonous potato, Chorus fruit, Honey bottle, Pufferfish, Spider eye, Milk bucket, any drinkable potion
feedPiglin: false

#Anyone can feed any piglin
#If feedPiglin is false than this option is ignored
feedPiglinByAnyone: false

#If this is set to true and a golden carrot is fed to the piglin than it will change into an adult if it's a baby or change into a baby if it is an adult
feedGoldenCarrot: false

#When you SHIFT+Left click a piglin it will tell you it's current health, potion effects and how many items it stores
#Only works for curer and staff with permission: curedpiglins.piglininfo
getInfo: false

#Any player can get info on any piglin
#If getInfo is false than this option is ignored
getInfoByAnyone: false

#{potions} placeholder needs to be left as in the exmaple, on a single line and no extra characters
piglinInfoMessage:
- '&aName: {name}'
- '&aCurer: {curer}'
- '&aHealth: {health}'
- '&aItems in inventory: {itemsCount}'
- '&aActive potions: '
- '{potions}'

#Used for {potions} placeholder in piglinInfoMessage
piglinInfoMessagePotionsFormat: '&aPotion: {type}, duration: {duration} seconds, amplifier: {amplifier}'



#Will send a message to the curer telling when/where a piglin died and it's cause of death
informCurerAboutPiglinDeath: false

deathPiglinMessage:
- '&cPiglin named {name} died.'
- '&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}'

#Message used for {deathLocation} placeholder in deathPiglinMessage
deathLocationMessage: '&cWorld: {worldName}, x: {x}, y: {y}, z: {z}'

#Time zone used for dates in deathPiglinMessage
#Enter a valid one and do NOT use colors
serverTimeZone: 'GMT-6'

#Format used for dates in deathPiglinMessage
#Enter a valid one and do NOT use colors
dateFormat: 'yyyy-MM-dd HH:mm:ss'

#When using a name tag. Players with the permission curepiglins.bypassrename ignore this setting
canOtherPeopleRenamePiglin: true
cannotRename: '&cThis piglin doesn`t belong to you'

#////////////////////////
#Inventory
#////////////////////////

#If the piglin that was just cured keeps the items that it had while it was a zombiefied piglin
curedPiglinKeepsOldItems: true

#If the piglin that was just cured keeps the nbt tags that it had while it was a zombiefied piglin
curedPiglinKeepsNBTTags: true

#When right clicked the piglin will open a GUI Inventory were you can modify it's armour, item in main hand, item in off hand and has an extra slot for storing purposes
armourInventoryModify: true

armourInventoryName: '&aPiglin Inventory'

#Can be one of the following values: 0, 1, 2, 3, 4, 5
#Entering a different value than those above will automatically be set to 0
#0 - No bonus inventory rows
#These are bonus rows in armourInventory that players can be used to store items
armourInventoryBonusRows: 0

#If this value is set to true then the armourInventory can be openened by anyone
#Setting this to false will make it so it can only be opened by the curer and staff with permission: curedpiglins.openarmourinventory
armourInventoryCanBeOpenedByAnyone: false

#If set to true then the cured piglin will drop all items from it's inventory
#If set to false then all the items in the piglin inventory will be lost
dropItemsFromInventoryOnDeath: false

#If an invalid material is entered then a default BLACK_STAINED_GLASS_PANE is provided
fillerItemMaterial: BLACK_STAINED_GLASS_PANE
fillerItemName: ''

#If you want lore to be empty or have just one line then use the default format
#Format for multiple lines
# fillerItemLore:
# - 'line1'
# - '&aLine2'
fillerItemLore: ''
 

professions.yml
Code (Text):


# 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'

#This setting will allow the piglin to change their profession using the above items only if they are of the default profession.
allowProfessionChange: true

#This setting will only work if 'allowProfessionChange' is enabled.
allowProfessionChangeAfter: true

#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+tOGpMWITvS23i8ILkH6BznEDS3OS4RRwAY=
 

[​IMG]

This plugin uses bStats, if you wish to disable bStats go to /plugins/bStats/config.yml and set enabled to false

If you encounter any bugs or have suggestions you want implemented, contact me on Discord: balustrada
I only log into my Spigot account once every couple of months, so you'll receive a much faster response there.
Resource Information
Author:
----------
Total Downloads: 405
First Release: Jun 17, 2022
Last Update: Mar 22, 2024
Category: ---------------
All-Time Rating:
4 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings