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

Btcsky NPC Reference Block

NPC Reference Block

NPC Reference Block Entry — allows server creators to define a block location that spawns a 3D entity model (NPC, meteorite, boss, etc.) when triggered by an event or player interaction. This is the clean replacement for hardcoded entity spawning in events. The entity is spawned via TypeWriter's EntityInstance system, supporting BetterModel, BTCMob, MythicMobs, and vanilla entities. Usage: - Place in a page JSON with the desired entity definition and position - Reference from events via Ref<NpcReferenceBlockEntry> - Call spawn() from event code to spawn the entity at the defined location

Поля

ПолеТипПо умолчаниюОписание
entityRef<out EntityDefinitionEntry>—The entity definition to spawn (Entity, BetterModel, BTCMobNPC, MythicMobsNPC)
spawnOffsetPositionORIGINThe position where the entity should spawn (offset from island spawn)
dimensionIdStringoverworldThe dimension ID where this NPC should appear (e.g., 'overworld', 'nether')
despawnAfterSecondsInt0Duration in seconds before the entity despawns (0 = permanent)
visibleToAllBooleantrueWhether the entity is visible to all players on the island
customNameString—Custom name displayed above the entity (supports MiniMessage)
interactionRadiusDouble3.0Radius in blocks for player interaction detection
modelScaleDouble1.0Scale multiplier for the entity model (1.0 = normal)