ScriptableNPC
Adapts an NPCEntity for the shared Magmacore Lua scripting runtime.
Provides only the NPC-specific (tier-3) context table (context.npc); the generic scripting surface — context.world (incl. strike_lightning), zones, scheduler, cooldowns, log, event — is injected automatically by ScriptInstance, the same way FreeMinecraftModels props receive it. This replaces the old self-contained NPC script runtime that could not reach any of those primitives.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Exposes
context.player as the actor of the current event (interact / proximity), built from Magmacore's living-entity table so NPC scripts get the full player API.