Перейти к основному содержимому

BTC Spawner

BTCMobs Spawner with Corner System

Point d'apparition déclaratif : des régions à deux coins, un template, un plafond. BTCSpawnerService parcourt les joueurs en ligne toutes les 20 ticks. Une région s'active quand un joueur est à defaultActivationRange de son centre — pas de sa boîte. defaultMaxMobs compte les mobs dont ce spawner est propriétaire, où qu'ils soient dans le rayon de comptage, et non les mobs du template présents dans la région : un mob qui s'éloigne reste décompté, un mob du même template venu d'ailleurs ne consomme pas le quota (AD-037, countBySpawner). Chaque champ …Fact prime sur son default… quand il est renseigné, et il est lu par joueur. Deux joueurs peuvent donc voir le même spawner appliquer deux cadences. criteria et conditionLines sont évalués pour chaque joueur, avant toute activation de région : tous doivent passer (ET). Ils bornent le déclenchement d'un cycle de spawn ; un mob déjà apparu n'est pas retiré quand un critère cesse d'être vrai. Ce que cette entrée ne fait pas : - mobType attend l'id d'un btc_mob_template, jamais son name affiché dans l'éditeur. Un nom d'affichage produit un SEVERE ... references unknown mob template et un spawner muet ; - elle n'a aucune activation par compétence : la mécanique MythicMobs activatespawner n'agit pas sur elle et décline à chaque appel ; - une région réduite à un point plafonne maxMobs à 1, quoi qu'on configure ; - elle ne remplace pas le spawn naturel vanilla, porté par btc_natural_spawn.

Поля

ПолеТипПо умолчаниюОписание
mobTypeString—The internal name of the BTCMob to spawn
worldString—World name in which this MythicMobs spawner is active
regionsList<BTCSpawnerRegion>—Spawn regions - each defines a zone where mobs can spawn
BTCSpawnerRegion (4)
ПолеТипПо умолчаниюОписание
corner1CoordinateORIGINFirst corner of the spawn zone (absolute world coordinates)
corner2CoordinateORIGINSecond corner of the spawn zone (absolute world coordinates)
activationRangeFactRef<ReadableFactEntry>—Optional fact for global activation range from region center.
defaultActivationRangeDouble24.0Default global activation range (3D radius) for player detection
conditionLinesList<String>emptyMythicMobs condition lines preserved from the imported spawner
maxMobsFactRef<ReadableFactEntry>—Max mobs allowed in the area.
defaultMaxMobsInt1Max mobs owned by this spawner when no fact is set. A point-shaped region caps it at 1.
mobsPerSpawnFactRef<ReadableFactEntry>—Number of mobs to spawn per spawn cycle.
defaultMobsPerSpawnInt1Mobs spawned per cycle when no fact is set. Never exceeds the max mobs.
cooldownFactRef<ReadableFactEntry>—Cooldown between spawns in ticks.
defaultCooldownLong100Cooldown between spawn cycles in ticks (20 ticks = 1 second) when no fact is set.
warmupFactRef<ReadableFactEntry>—Warmup time before first spawn in ticks.
defaultWarmupLong0Warmup in ticks before the first spawn once a player is in range, when no fact is set.
onlyVisibleForNearbyBooleanfalseWhen true, spawned mobs are only visible to nearby players.
visibilityGroupRef<GroupEntry>—Optional group that determines which players can see spawned mobs.
groupRef<GroupEntry>—The group used to filter players and read facts from.
Общие поля TypeWriter (criteria)
ПолеТипПо умолчаниюОписание
criteriaList<Criteria>emptyOptional criteria that must be met by the player for the spawner to activate.

How to use it​

Set mobType to the id of a mob template and world to the world name. Each region is a box defined by corner1 and corner2; the spawner wakes when a player is within defaultActivationRange blocks of the region centre.

defaultMaxMobs is the cap of mobs owned by this spawner, defaultMobsPerSpawn the number per cycle, defaultCooldown the time between cycles in ticks and defaultWarmup the delay before the first spawn in ticks. Each ...Fact field overrides its default and is read per player. The world, conditionLines and criteria are checked for each player near the region, and all must pass for that player. Use /tw btcmobs spawners force <id> to test.