HomeJavaDatapacksVillager rollback
Villager rollback
Villager rollback — screenshot 1

Villager Rollback

A simple datapack to roll back villagers that died in any way.

Features

Commands & Setup

Option 1 (complicated command):

Option 2 (simple command):

1: Add the https://modrinth.com/plugin/custom-commands and https://www.spigotmc.org/resources/mycommand.22272/ plugins to your server by 7AGAM and MRI 2: Add this to the config.yml in the CustomCommands folder:

   villager_rollback: # Command trigger (/delwarp {args})
    command: 'villager_rollback_dev' # The command to be executed
    message: ''  # A message
   villagerrollback: # Command trigger (/delwarp {args})
    command: 'villager_rollback_dev' # The command to be executed
    message: ''  # A message
   villager: # Command trigger (/delwarp {args})
    command: 'villager_rollback_dev' # The command to be executed
    message: ''  # A message

3: Create a villager_rollback.yml file in the MyCommand\commands folder and add this text:

villager_rollback_command:
    command: /villager_rollback_dev
    type: RUN_CONSOLE
    runcmd:
     - "execute as $player run function villager_rollback:villager_rollback"
    permission-required: true
    permission-node: mycommand.custom.villager.rollback

4: Run the '/villager_rollback', '/villagerrollback' or '/villager' command.

Demonstration

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more