Skip to main content
iconPowerNukkitX
Custom Components

Overview

Overview of custom registry components on PowerNukkitX.

PowerNukkitX introduces a custom registry architecture that allows developers to register custom blocks, items, entities, enchantments, and crafting recipes. These registries allow custom content to be served dynamically to Minecraft Bedrock Edition clients using server-side configurations and resource packs.

Critical Registration Timing

[!IMPORTANT] You must register custom blocks, items, entities, and enchantments inside your plugin's onLoad() method rather than onEnable().

The server loads the world files and parses entity, block, and item NBT tags after loading the plugins but before enabling them. If you register components in onEnable(), the server will fail to recognize them during world load, leading to data corruption or loading errors.

Select a guide below to learn how to create and register custom components:

On this page