Bait

The problem: Minecraft is horrible at implementing large numbers of villagers and other NPC types, so if you try to create a populated enough city your server will take a huge performance hit.

Bait allows creating points of interest that will summon "roaming" NPCs with very simple AI when a player is close, and unload when the player is not close anymore. This creates an illusion of a more populated urban center.

Requirements

Contents

item loot table
bait Bait bait:bait

Usage

Holding the Bait on the main hand will show the positions of baits in a 3x1x3 box of chunks centered in the player as particle effects:

color meaning
Gold The bait is owned by the player and can be removed.
Teal The bait is owned by someone else and can't be removed.

Using the Bait on any block will destroy an existing bait in that space, or create it if there was none by the current player.

Roamer types

Baits will attract many NPC types:

Overhead

Every second it performs a number of checks:

Teleporting away from chunks holding roamers or otherwise moving from them at very high speeds will result in them being unloaded by the game before the datapack can do so; in those situations the datapack will temporarily forceload the chunk, remove the roamers, and deforceload it.

Known Issues

None.