Oneiric Forge
News / Datapacks / Sentinel Maker February 22, 2021

Today, it’s all about stealth!

Ever dreamed of building a map where you have to sneak past the guards without being spotted? Sentinel Maker is made for you. This map making tool lets you program soldier patrols and moving platform paths right in the game, with just a few commands.

This datapack was made solo by Silvathor, one of the founders of Oneiric Forge. We gathered it here with his other creations so that all of his datapacks can be found in one place.

  • Creator: Silvathor
  • Version: Minecraft 1.16 to 1.19
  • Type: datapack, map making tool

The idea

Each sentinel follows a path that you lay out with markers (called “balises” in the commands). When it walks over a marker, it turns by the angle you chose, which lets you draw any route you like. If a sentinel spots a player, it reacts: what it does in that case is up to you.

The same system can also carry moving platforms along a path.

Maker mode

To place your markers, first give yourself the sentinel.maker tag, which unlocks the /trigger commands:

  • /trigger balise.set set X: places a marker that turns the sentinel X degrees to the right (for example 90 to turn right, -90 to turn left).
  • /trigger balise.kill: removes the nearest marker.
  • /trigger balise.kill set 42: removes every marker within a 50-block radius.

Creating a sentinel

To work, a sentinel needs the NBT data NoAI:1b and Tags:["sentinel.entity"]. Here’s an example soldier:

/summon minecraft:skeleton ~ ~ ~ {Rotation:[0.0f,0.0f],NoAI:1b,Tags:["sentinel.entity"],HandItems:[{id:"minecraft:iron_sword",Count:1},{}],ArmorItems:[{},{},{},{id:"minecraft:chainmail_helmet",Count:1}]}

And an example moving platform:

/summon minecraft:armor_stand ~ ~-0.5 ~ {Rotation:[0.0f,0.0f],Tags:["sentinel.entity","sentinel.blindness","sentinel.NoGravity"],Invisible:true,Small:true,Marker:true,Passengers:[{id:"shulker",NoAI:1,Color:0b}]}

Settings

Everything is configured through the sentinel.config scoreboard, which you can display with:

/scoreboard objectives setdisplay sidebar sentinel.config
  • time.calm_down: how long it takes a sentinel to forget you (0 or more).
  • time.spotted: how long you have to stand in front of a sentinel before being spotted (0 or more).
  • sentinel.gravity: 0 to disable gravity, 1 to enable it.

A few tags also let you fine-tune each sentinel:

  • sentinel.NoGravity removes gravity from a specific sentinel.
  • sentinel.blindness disables its player detection.

Finally, you can edit the sentinel:spotted function to choose what a sentinel does when it sees you.

Moving platforms floating in the voidSentinels following a custom path in a caveRoutes marked in red in a forest, seen from above

Installation

  1. Download the datapack from Planet Minecraft.
  2. Open the saves folder of your .minecraft, then your world’s folder.
  3. Drop the datapack archive into the datapacks folder.
  4. Load the world and start placing your guards!

- By Oneiric Forge