Worker Crew

1file
1figure
2min read
Sheet 13 of 33 · Construction

Filesconfig.yml

Fileconfig.ymlDuring a construction, an upgrade or a pick-up, a crew of worker NPCs works the site. Each worker claims the nearest unplaced block in its part of the site, walks next to it, swings its tool and places it. Every block of the build is placed by a worker, not by an invisible timer. No Citizens, no model plugin and no resource pack are needed.

The default crew: zombies in a yellow hard hat, an orange vest and work trousers, holding an iron pickaxe.
Workers in yellow hard hats and orange vests replacing the walls of a cottage

Workers have no AI and no gravity, cannot be pushed, hurt or heard, are not saved with the world, and are removed when the job ends or is cancelled.

Crew size

config.yml
construction:
  workers:
    enabled: true
    count: 2          # the smallest crew, used for small builds
    max-count: 12     # the largest crew the controller may hire

The crew starts at the size the build needs to finish on time at a natural pace, never below count. When it falls behind, more workers are hired up to max-count. Raise max-count for big, fast builds; lower it to keep the entity count down. Both are capped at 64.

With enabled: false or count: 0 there are no workers and blocks appear on a plain timer, still bottom-up and still on time.

Looks

KeyDefaultMeaning
workers.entity-typeZOMBIEThe mob used. ZOMBIE, HUSK, ZOMBIE_VILLAGER and PIGLIN hold tools and swing properly
workers.burn-immunetrueStop zombie-type workers burning in daylight
workers.hand-itemIRON_PICKAXEHeld tool
workers.hand-item-custom-model-data0Model id for the tool
workers.helmetLEATHER_HELMET, #FFE600Hard hat
workers.chestplateLEATHER_CHESTPLATE, #FF8C00Hi-vis vest
workers.leggingsLEATHER_LEGGINGS, #3D5A80Work trousers
workers.bootsLEATHER_BOOTS, #3F2F1FWork boots

Config keyworkers.helmetConfig keyworkers.chestplateConfig keyworkers.leggingsConfig keyworkers.bootsEach armour slot (workers.helmet, workers.chestplate, workers.leggings, workers.boots) takes material, color and custom-model-data, for example workers.helmet.material and workers.helmet.color. The colour is a hex string like "#FFD700" or "r,g,b", and only leather takes it. Set material: AIR to leave a slot empty.

config.yml
construction:
  workers:
    entity-type: HUSK            # suits desert builds
    hand-item: GOLDEN_SHOVEL
    helmet:
      material: LEATHER_HELMET
      color: "255,255,255"
      custom-model-data: 4101    # a hard hat model from your resource pack

Movement and swings

KeyDefaultMeaning
workers.walk-speed0.18Blocks per tick, 0.02 to 1. 0.18 is about 3.6 blocks a second
workers.swing-min-ticks8Shortest time between swings
workers.swing-max-ticks22Longest time between swings. Each worker gets its own random rhythm in this range
workers.swing-particleCRITParticle where a worker strikes
workers.swing-particle-count40 turns it off
workers.retarget-after-ticks60A worker that has not reached its block in this time picks another. Raise it if workers seem to freeze

Workers spread around the site instead of bunching on one corner, and stand one layer below the block they place, the way a builder reaches up to lay the next course.

Loading the index

Enter openUp Down moveEsc close