跳转至

Dweller

文档版本:1.21.0.24

Allows a mob to join and migrate between villages and other dwellings.

架构

dweller:
{
  string "dwelling_type" : opt
  string "dweller_role" : opt
  number "update_interval_base" : opt
  number "update_interval_variant" : opt
  boolean "can_find_poi" : opt
  integer "first_founding_reward" : opt
  boolean "can_migrate" : opt
  number "dwelling_bounds_tolerance" : opt
  string "preferred_profession" : opt
}
dwelling_typestring
The type of dwelling the mob wishes to join. Current Types: village
dweller_rolestring
The role of which the mob plays in the dwelling. Current Roles: inhabitant, defender, hostile, passive.
update_interval_basenumber
How often the mob checks on their dwelling status in ticks. Positive values only.
update_interval_variantnumber
The variant value in ticks that will be added to the update_interval_base.
can_find_poiboolean
Whether or not the mob can find and add POI's to the dwelling.
first_founding_rewardinteger
How much reputation should the players be rewarded on first founding?.
can_migrateboolean
Can this mob migrate between dwellings? Or does it only have its initial dwelling?.
dwelling_bounds_tolerancenumber
A padding distance for checking if the mob is within the dwelling.
preferred_professionstring
Allows the user to define a starting profession for this particular Dweller, instead of letting them choose organically. (They still need to gain experience from trading before this takes effect.)