Minekarta Docs
ModelEngineNPC

Commands & Configuration

Reference ModelEngineNPC commands, permissions, placeholders, configuration, and storage.

reviewThis page is not verified against ModelEngineNPC v2.0.1.

Commands

All commands use /menpc or /megnpc.

Core Management

CommandPurpose
`/menpc create <id> <type> <modelurl>`
/menpc remove &lt;id&gt;Delete an NPC
/menpc copy &lt;source-id&gt; &lt;new-id&gt;Clone an NPC to your location
/menpc setnpctype &lt;id&gt; normalConvert NPC to normal player entity
/menpc setnpctype &lt;id&gt; model &lt;model-id&gt;Convert NPC to model entity
`/menpc setskin <id> <player-nameurl>`
/menpc listList all NPCs
/menpc teleport &lt;id&gt;Teleport to an NPC
/menpc setmodel &lt;id&gt; &lt;model&gt;Change NPC model
/menpc setname &lt;id&gt; &lt;name&gt;Set display name
`/menpc name <id> <truefalse>`
/menpc rotate &lt;id&gt; &lt;yaw&gt; [pitch]Rotate NPC orientation
/menpc lookclose &lt;id&gt; [radius]Toggle look at player
/menpc animation &lt;id&gt; &lt;state&gt; &lt;anim&gt;Set animations
/menpc play &lt;id&gt; &lt;anim&gt; [loop] [speed]Play animation manually
/menpc editorOpen GUI editor
/menpc reloadReload configuration

Command Arguments

&lt;value&gt; is required. [value] is optional. NPC IDs identify saved NPC definitions. model requires a ModelEngine model ID; normal accepts player-style skin input.

Hologram Commands

Requires optional FancyHolograms.

  • /menpc hologram &lt;id&gt; enable|disable
  • /menpc hologram &lt;id&gt; text &lt;text&gt;
  • /menpc hologram &lt;id&gt; addline &lt;text&gt;
  • /menpc hologram &lt;id&gt; removeline &lt;index&gt;

Interaction Commands

  • /menpc interaction &lt;id&gt; &lt;left|right|both&gt; add &lt;prefix&gt; &lt;command&gt;
  • /menpc interaction &lt;id&gt; &lt;left|right|both&gt; set &lt;prefix&gt; &lt;command&gt;
  • /menpc interaction &lt;id&gt; &lt;left|right|both&gt; clear

Permissions

By default, all permissions require op.

Permission NodeDescription
modelenginenpc.*Grants all permissions
modelenginenpc.adminAccess to admin and reload commands
modelenginenpc.commandBase NPC command access, excluding console interactions
modelenginenpc.command.create/menpc create
modelenginenpc.command.remove/menpc remove
modelenginenpc.command.copy/menpc copy
modelenginenpc.command.interactionSafe interaction actions
modelenginenpc.command.interaction.consoleAssign [console] actions

Placeholders

PlaceholderReplaced withSecurity note
{player}Interacting player nameIdentity-safe
{player_uuid}Interacting player UUIDPreferred for console target
{npc_id}Internal NPC identifierStatic

Prefer {player} or {player_uuid} in console actions. Avoid dynamic user text inside command paths without validation.

Configuration

Edit plugins/ModelEngineNPC/config.yml only while the server is stopped.

settings:
  debug: false
  default-interaction-cooldown: 1000
  save-interval: 300
  despawn-on-chunk-unload: true

defaults:
  animation:
    idle: "idle"
    interact: "interact"
    loop-idle: true
    speed: 1.0
  interaction:
    left-click-enabled: true
    right-click-enabled: true
    cancel-damage: true

Defaults and Validation

  • debug defaults to false.
  • default-interaction-cooldown defaults to 1000 milliseconds.
  • save-interval defaults to 300 seconds; 0 disables auto-save.
  • despawn-on-chunk-unload defaults to true.
  • Idle animation defaults to idle; interaction animation defaults to interact.
  • speed defaults to 1.0; click handling is enabled by default.

Use valid numeric values and animation names available in the referenced ModelEngine model. Verify behavior in console after changes.

Restart and Reload Behavior

Stop the server before editing configuration or storage. Start it cleanly after changes. Do not use /reload, Plugman, or partial plugin reloads; packet listeners and entities can remain in a broken state.

Storage Reference

ModelEngineNPC stores active NPCs in plugins/ModelEngineNPC/npcs.yml.

npcs:
  guard:
    type: model
    model-id: my_guard_model
    location:
      world: world
      x: 100.5
      y: 64.0
      z: -200.5
      yaw: 90.0
      pitch: 0.0

Do not edit npcs.yml while server is running. Stop server, apply changes, and restart. If file is corrupted, restore recent backup before starting server.

Developer API Notice

The public API source is retained in the migration archive and is not a standalone public documentation route. Integrators must verify ModelEngineNPCAPI signatures against the final v2.0.1 artifact. Check plugin presence before referencing classes:

softdepend: [ModelEngineNPC]