跳到主要内容

Animal Definition

Defines a tycoon animal with research tree, catalyst mechanics, fusion, and economy stats

字段

字段类型默认值描述
entityDefinitionRef<EntityDefinitionEntry>—The entity definition providing the visual model (NPC, ModelEngine, vanilla mob)
categoryString—Research category this animal belongs to
rarityAnimalRarityCOMMONRarity tier driving revenue, capture weight, and fatigue可选值:COMMONUNCOMMONRAREEPICLEGENDARY
catalystPowerRequiredDouble15.0Total catalyst power required before fuel can be applied
acceptedCatalystItemsList<CatalystItemDef>emptyItems accepted by the catalyst and their power contribution
CatalystItemDef(3)
字段类型默认值描述
itemIdString——
powerValueDouble1.0—
displayNameString——
fuelItemString—Fuel item consumed to trigger the research attempt
successChanceDouble0.3Base chance of successful research before rarity and profession modifiers
alternativeRewardsList<AlternativeReward>emptyRewards granted if the player already owns this animal
AlternativeReward(4)
字段类型默认值描述
itemIdString——
amountInt1—
weightDouble1.0—
commandsList<String>empty—
spaceCostInt5Zoo spaces one individual of this species occupies. Revenue is expected to scale with it: a raccoon at 5 spaces earns far less than an elephant at 20.
baseRevenueRateDouble0.5Base revenue per second at level 1
revenueScalingDouble0.1Revenue multiplier per level above 1
biomeAffinitiesAnimalBiomeAffinity—Biome affinity map for zoo revenue bonuses. Only read when biome affinity is enabled in the economy config.变体:multinonesimple
multi(1)
字段类型默认值描述
affinitiesMap<String, Double>empty—
none(1)
字段类型默认值描述
_dummyBooleanfalse—
simple(2)
字段类型默认值描述
biomeStringPLAINS—
multiplierDouble1.5—
isMountableBooleanfalseWhether this animal can be ridden as a mount
fatigueCapacityInt180Base fatigue capacity in seconds when used as a mount
mountSpeedDouble1.0Movement speed multiplier when mounted
fusionMinLevelInt1Minimum level required to attempt fusion with another animal of this species
fusionParentRequiredBooleantrueWhether two parents are required for fusion (true) or just one (false = breeding)
requiredProfessionLevelInt1Minimum RPG profession level required
descriptionString—Flavor description for the bestiary
iconString—Icon item for GUI representation
modelVariantsList<ModelVariantDef>emptyAlternative model/skin variants — each references an existing EntityDefinition with a retrievable ID
ModelVariantDef(2)
字段类型默认值描述
entityDefinitionString——
displayNameString——
TypeWriter 通用字段(displayName)
字段类型默认值描述
displayNameString—Display name shown in GUI and messages

How to use it​

  • Research — category is the id of a Research Category, which must also list the animal in animals. acceptedCatalystItems pairs an itemId (a Material name such as SWEET_BERRIES) with a powerValue; the catalyst is full at catalystPowerRequired. fuelItem is a Material name. The real chance of success is successChance times the rarity capture weight (1.0 for COMMON down to 0.02 for LEGENDARY).
  • Economy — spaceCost is the zoo space used; baseRevenueRate is revenue per second at level 1, revenueScaling the bonus per level above 1. Balance them together: a big animal should earn more per space spent.
  • Mount — isMountable, mountSpeed and fatigueCapacity (seconds) apply on the adventure map.
  • Models — entityDefinition is the visual; modelVariants are alternative skins that reference other entity definitions.
  • Alternative rewards — granted, by weight, when a player researches an animal they already own. Each reward runs its commands with {player} replaced by the player name.