QtCraft API C++ classes QML types Handbook

QcVillageGolemSettings Struct

The golems villagers summon (worldgen/villages.json "golem" or a style's "golem", decisions E-421, E-470), like in the reference game: a villager wants a golem while it slept in its bed within sleptSeconds. More...

Header: #include <common/content/villages/QcVillagerDefinitions.h>

Detailed Description

A panicking one (it panicked at a hostile creature within panicSeconds) with at least minVillagers such villagers within gatherDistance (itself included) always summons one; otherwise gossipVillagers such villagers together summon one with gossipChance per check. No golem of the creature kind mob may stand within golemDistance; the golem appears within spawnRadius (horizontally; spawnHeight up and down) of the summoner. A village summons at most once per cooldownSeconds. A player who hurts its villagers or golems is its enemy for grudgeSeconds (decision E-471). Without that creature kind in the content the rule rests. The JSON keys are the field names.