Mineuniverse
Data Packs
Simple NPC

Simple NPC

DATA PACK
This data pack makes configuring NPCs in vanilla Minecraft much easier. Simply write the required data into the storage and execute the summon function to create your own NPC.
by WindWavesSea
Download Claim this project
168 downloads
0 likes
Updated Oct 14, 2026
0 hypes
Utility
Advertisement Remove ads with Premium →

English 简体中文

Introduction

This data pack makes configuring NPCs in vanilla Minecraft much easier. Simply write the required data into the storage and execute the summon function to create your own NPC.

Features

The following features are supported:

  • Custom floating text displayed above the NPC.
  • Custom NPC skin.
  • Execute a command or function when the NPC is right-clicked.

Storage Structure

Default Structure (Custom Settings Disabled)

Custom Structure (Custom Settings Enabled)

Example Storage

Default Configuration

data modify storage windwaves_sea:npc root.npc_setting merge value {\
    test:{\
        name:"test",\
        zone:"test",\
        config:{\
            custom_settings:false,\
            look_player:true\
        },\
        text:{\
            pos:{x:1,y:1,z:1},\
            text:[{text:"1"}]\
        },\
        npc:{\
            pos:{x:1,y:1,z:1},\
            model:"wide",\
            texture:"lobby:npc/start_game",\
            rotation:[180,0]\
        },\
        right_click:{\
            command:"",\(function:""\)
        }\
    }\
}

Custom Configuration

data modify storage windwaves_sea:npc root.npc_setting merge value {\
    test_custom:{\
        name:"test_custom",\
        zone:"test",\
        config:{\
            custom_settings:true,\
            look_player:true,\
            default_orientation:"north" \
        },\
        text:{\
            pos:{x:1,y:1,z:1},\
            data:{}\
        },\
        npc:{\
            pos:{x:1,y:1,z:1},\
            data:{}\
        },\
        right_click:{\
            function:""\(command:""\)
        }\
    }\
}

Command Reference

Summon an NPC

function npc:summon {name:"name"}

Summons an NPC. The configuration must be written to storage before running this function. Duplicate NPCs cannot be spawned. name refers to the NPC name defined in the configuration above (the same applies below).

Remove an NPC

function npc:remove/npc {name:"name"}

Remove the Configuration (Also Removes the NPC)

function npc:remove/setting {name:"name"}

Download

QQ Group: 117464315

GitHub: https://github.com/WindWavesSea/Simple-NPC/

Acknowledgements

Special thanks to NOX OBSCURA for providing the interaction entity size solution, allowing interaction entities to properly match NPC hitboxes.

Special thanks to 轩宇1725 for providing the storage detection approach, enabling string-based detection.

[DP]Simple NPC Data Pack V1.1.0.zip
MC 1.21.9, 1.21.10, 1.21.11-snapshot, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2
Release 2026-08-26 Get
[DP]Simple NPC Data Pack v1.0.0.zip
MC 1.21.9, 1.21.10, 1.21.11-snapshot, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2
Release 2026-07-14 Get

Requirements & install

How to use this data pack in Minecraft
Mods needed
None, works in vanilla
Minecraft
1.21.9 – 26.2
Install folder
saves/<world>/datapacks

How to install data packs

  1. Download the data pack .zip file (do not extract it).
  2. New world: click Data Packs on the world creation screen and drop the .zip in. Existing world: open .minecraft/saves/<world>/datapacks.
  3. Put the .zip into the datapacks folder of the world (servers: world/datapacks).
  4. Run /reload in game (or rejoin the world) and check it with /datapack list.
Browse more: Data Packs for 26.2 All data packs

More from WindWavesSea

Advertisement Remove ads with Premium →

You Might Also Like