Sapience

Mods
4,811,409 Downloads Last Updated: Jun 10, 2022 Game Version: 1.19   +3

This mod adds more behaviors to Piglins to better represent them as the unique sentient beings they are.

 

Interested in hosting a server?

Need a server to play with friends? Don't know how to set one up? Just rent an already configured server!

Click on the picture above, select a plan (at least 4GB), use my code INFAMOUS to get 25% off your first month and enjoy playing with your friends!


Reputation Related Features

- Piglins now have a reputation system that works similarly to Villagers. Doing things like fighting alongside them against Wither mobs, giving them gifts and bartering with them increases your reputation. Doing things like hurting or killing Piglin mobs and engaging in unauthorized mining/chest opening around them decreases your reputation.

- At +50 reputation with a Piglin, you will no longer be required to wear gold armor around them. At +100 reputation, you will be authorized to open chests and mine gold around them.

- At -50 reputation with a Piglin, you will no longer receive items from bartering. At -100 reputation, you will be attacked on sight regardless of whether or not you are wearing gold armor.

For 1.18+:
- With an empty main hand, you can shift-right click a Piglin (or a Villager!) to receive a chat message detailing how much reputation you have with them.

- For more information, join the Discord and/or take a look at this link to see how the Villager reputation system works, which this is based on.

 

Food & Breeding Related Features:

- Piglins seek out and pick up food items (by default, porkchops and cooked porkchops) and consume them, complete with an eating animation. Players can also right-click them with their food items if the Piglin has not already recently eaten and they will accept it. Eating food will also restore a Piglin's health in an amount identical to the food item's hunger value.

 

- Once Piglins have enough food value (by default, 12) - determined by the sum of all the hunger values of the food they have recently eaten - they can start to breed if they are an adult or force-age themselves if they are a baby, depleting their stored food value.

 

- Baby Piglins now grow up to an adult after 20 minutes. Force-aging themselves reduces this time, like baby animals.

 

- Piglins will decline food if they are hostile or in the middle of attacking something.

 

Gold & Bartering Related Features:

- Piglins store gold ingots and gold nuggets in a separate inventory, including gold ingots they received from bartering. Any non-bartered gold ingots and gold nuggets will drop when they die or are zombified.

 

- Piglins can craft gold armor and weapons and equip themselves with them if they have enough gold in their inventory. If they are fully equipped, they will attempt to craft equipment for a nearby Piglin and give it to them. A Piglin who has either crafted equipment or has received it as a gift from another Piglin will admire it before equipping it.

 

- Piglins can now barter with gold nuggets and gold blocks. Gold nuggets make you far more likely to receive common barter items, with all item stack sizes halved. Gold blocks make you far more likely to receive rare barter items, with all item stack sizes doubled.

 

- Piglins will now accept gold non-bartering items directly from you, like gold equipment and stuff like gold horse armor, and anything else tagged under the vanilla tag "piglin_loved".

- Piglins will no longer drop bartering loot if the bartering item they received did not come from a living being. This change can be disabled in the config.

 

Miscellanous Features:

- Piglins now shake their heads like Villagers when declining an offered item.

 

- Piglins now emit particles/make sounds when accepting an item from you or declining it.

 

- Piglins will drop crimson fungus near Hoglins occasionally. This is done in an attempt to make the Hoglin population increase, so Piglins can continue to hunt them, establishing an ecological balance and making them responsible hunters.

 

- Hoglins will seek out and pick up breeding items (by default, crimson fungus) if they have not already recently eaten and try to breed if they are an adult or force-age themselves if they are a baby.


Notes:

For 1.16 only: The tag "piglin_food_items" contains any items that Piglins can eat. Override/add to it with the following path in your datapack: "data/sapience/tags/items/piglin_food_items.json".

For 1.18+:
- In 1.17, Mojang introduced a new tag for items that piglins can eat called "piglin_food". Override/add to it with the following path in your datapack: "data/minecraft/tags/items/piglin_food.json".

 

- The tag "piglins_barter" contains any items that Piglins will accept in exchange for normal bartering loot. Override/add to it with the following path in your datapack: "data/sapience/tags/items/piglins_barter.json".

 

- The tag "piglins_barter_cheap" contains any items that Piglins will accept in exchange for cheap bartering loot. Override/add to it with the following path in your datapack: "data/sapience/tags/items/piglins_barter_cheap.json".

 

- The tag "piglins_barter_expensive" contains any items that Piglins will accept in exchange for expensive bartering loot. Override/add to it with the following path in your datapack: "data/sapience/tags/items/piglins_barter_expensive.json".


- The tag "piglins_avoid" contains any entity types that Piglins will avoid, like Zombified Piglins. Override/add to it with the following path in your datapack: "data/sapience/tags/entity_types/piglins_avoid.json".


- The tag "piglins_hunt" contains any entity types that Piglins will celebrate after hunting, like Hoglins. Override/add to it with the following path in your datapack: "data/sapience/tags/entity_types/piglins_hunt.json".

 

- The tag "piglins_hate" contains any entity types that Piglins will attack on sight, like Wither Skeletons. When any of these types are killed, they will give you minor positive reputation with nearby piglins. Override/add to it with the following path in your datapack: "data/sapience/tags/entity_types/piglins_hate.json".


- The tag "bosses" contains any entity types that Piglins will regard as an enemy boss, like Withers. When any of these types are killed and if they are also under "piglins_hate", they will give you major positive reputation with nearby piglins. Override/add to it with the following path in your datapack: "data/sapience/tags/entity_types/piglins_hunt.json".

- The tag "zoglins_ignore" contains any entity types that Zoglins will ignore in their vicious rampage, like Creepers. Override/add to it with the following path in your datapack: "data/sapience/tags/entity_types/zoglins_ignore.json".

 

For all:
- The tag "hoglin_food_items" contains any items that Hoglins can eat. Override/add to it with the following path in your datapack: "data/sapience/tags/items/hoglin_food_items.json".

- The nugget bartering and block bartering loot tables are independent from the main bartering loot table and therefore can be modified by datapack. By default, each loot table is a modified copy of the vanilla bartering loot table. Their names are "piglin_bartering_cheap" and "piglin_bartering_expensive" for nugget barters and block barters, respectively. Override them with the following paths in your datapack: "data/sapience/loot_tables/gameplay/piglin_bartering_cheap.json" and "data/sapience/loot_tables/gameplay/piglin_bartering_expensive.json".

- If a Piglin is already fully equipped but any of their equipment is not golden, during their crafting task they will make a golden version of the equipment instead and replace it, dropping the previously equipped item. This feature can be disabled in the config.

- The minimum food value required for Piglins to breed can be adjusted in the config.

- All of the reputation values can be adjusted on the config.

- The Piglin eating animation code originates from tallestred's Player Eating Animation mod.

 

Mod Showcases:

 

Want a config GUI? Check out Configured


Discord
:
Infamous Misadventures

Comments

Posts Quoted: