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.
Campos
| Campo | Tipo | Predeterminado | Descripción | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mobType | String | — | The internal name of the BTCMob to spawn | ||||||||||||||||||||
world | String | — | World name in which this MythicMobs spawner is active | ||||||||||||||||||||
regions | List<BTCSpawnerRegion> | — | Spawn regions - each defines a zone where mobs can spawn
|
| Campo | Tipo | Predeterminado | Descripción |
|---|---|---|---|
corner1 | Coordinate | ORIGIN | First corner of the spawn zone (absolute world coordinates) |
corner2 | Coordinate | ORIGIN | Second corner of the spawn zone (absolute world coordinates) |
activationRangeFact | Ref<ReadableFactEntry> | — | Optional fact for global activation range from region center. |
defaultActivationRange | Double | 24.0 | Default global activation range (3D radius) for player detection |
conditionLinesList<String>emptymaxMobsFactRef<ReadableFactEntry>defaultMaxMobsInt1mobsPerSpawnFactRef<ReadableFactEntry>defaultMobsPerSpawnInt1cooldownFactRef<ReadableFactEntry>defaultCooldownLong100warmupFactRef<ReadableFactEntry>defaultWarmupLong0onlyVisibleForNearbyBooleanfalsevisibilityGroupRef<GroupEntry>groupRef<GroupEntry>Campos comunes de TypeWriter (criteria)
| Campo | Tipo | Predeterminado | Descripción |
|---|---|---|---|
criteria | List<Criteria> | empty | Optional 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.