
AMAM VillagersRestricted
Balancing for villagers in the most non-destructive way

AMAM VillagersRestricted
Tired of villager farming ruining your servers? But still don't want to completely disable them? Want an easy fix?
Well, you have just found the solution!
AMAM is a simple datapack aiming to bring balance and peace for every smp server. Makes all villagers useless... Unless...

This item doesn't generate in itself when you only install this datapack! Scroll down for details!!!
Core mechanics
- Deletes every regular villager's offers, who don't have a specific tag
- You have to consume a specific item in order to summon a villager WITH said specific tag
- These villagers will not have their trades removed thus making them useful
- There is no native way for obtaining the said item, because it would be hardcoded, this datapack only provides the core mechanics
. . . but stay tuned, I will soon write a separate datapack for it to be obtainable in survivalHere's the datapack which makes the custom item generate in vanilla structures (1.21.5 and above)
Benefits
- The specific item needed for summoning is just a vanilla item with a custom data tag - that means you can add this to a custom loot table totally independently
- This datapack doesn't remove villagers from your world so it won't ruin the athmosphere by making the villages empty
- If you make the custom item a rare loot, it will be the most balanced: something which requires a lot of exploring or a big challange and provide a big reward. And with this, villagers still won't be extinct from your world, still allowing mega projects in the late game.
For server admins
- The item needed for summoning is
minecraft:breadorminecraft:enchanted_bookwith the componentminecraft:custom_data={amam_summon:true}. There is a command which gives you a fancy item with other components too but not anything else is checked besides the these two criteria listed. As long as your item meets these two conditions, it's good to go. - There are only 2 functions included and they are pretty self explanatory.

The give/villager_tome will give an item which is usable for villager summoning. Again, this will have a bunch of extra stuff set which are not required to be present to fulfil the summoning's conditions. For versions below 1.21.5, you got the commands within the give_old folder.
The summon/from_villager_tome is the command that runs when the correct item is consumed. It summons a villager with the necessary tag. Yes, technically you can run this command without having the item but the command is not triggerable in survival without having and using the item.
