BetterNPC

BetterNPC is a basic npc plugin for PocketMine-MP.

About

BetterNPC is a npc plugin for PocketMine-MP.

Features

  • Entities are being saved in the world directly
  • Editable via command or by right-clicking the entity (Required Permission: betternpc.edit)
  • Customize the entities to your will
  • Assign hit actions to your entities

Commands

NameDescriptionPermission
/betternpcMain Commandbetternpc.command
/betternpc createCreate an entity
/betternpc edit [entityId: int]Edit an entity
/betternpc remove [entityId: int]Remove an entity
/betternpc listList all entities

Current Hit Actions

ActionDescriptionNote
EmoteThe entity is doing an emoteThe emote only works for human entities
Run CommandThe player runs a command
Send MessageSend a message to the player

Action Tag-Replacements

Current player = The player who clicks on the NPC and runs the action

TagDescription
{player}Current player username

Config

# You can find all the emotes at https://github.com/JustTalDevelops/bedrock-emotes?tab=readme-ov-file#emotes
emotes:
  wave:
    id: 4c8ae710-df2e-47cd-814d-cc7bf21a3d67
    name: Wave
  yoga:
    id: 3f1bdf46-80b0-4a64-b631-4ac2f2491165
    name: Yoga

# The cooldown for each hit action for the entities in seconds (Default: 10)
hit-action-cooldown: 10

# The cooldown for the random emote setting for entities in seconds (Default: 60)
random-emote-cooldown: 60

# If a player hits the entity and the entity has a "run_command" hit action, the server performs the command and not the server. (Default: false)
server-command-handling: false

Details

Version: 1.0.0

Downloads: 19

Updated: 4/26/2025

Supported API versions: 5.0.0 to 5.27.1

Categories: General, Miscellaneous

License: APACHE-2.0

Producers

Collaborator