Villager AI and trading

Discussion in 'Spigot Help' started by deinemudda11, Jul 5, 2021.

  1. Hello,

    I wanted to know if there is a command to disable a villagers AI like this:

    /data merge entity @e[type=minecraft:villager,limit=1,distance=..5] {NoAI:1}

    BUT also keep restocking trades, as I beleive AI i necessary for that? Maybe in set intervals?

    Kind of like what this plugin does,
    but manually with commands.

  2. If I recall correctly, some 1.13+ spigot forks (including Paper) have this setting in their spigot/paper.yml files
  3. I think only in newer versions, other than that only using some plugin to remove the AI from the mobs.

    Eng. Caio Vinicius.
  4. The only one i found is this one:

    However, it does not work on villagers that have more than 1 space or are locked in by fences. I need a tool to disable the ai of select villagers in the market we built, while having those in other farms working normally with AI.

    You you know which? I am running paper 1.17.1 but I did not find it. I need only specific villagers to not have AI though.
  5. I really don't know of any ready-made plugins that do this.

    About the commands, I don't do much with new versions, however I heard people say that there is how, but I myself have never tested them.

    Sorry I can't help.