Home›Java›Mods›EntityPacketBridge
EntityPacketBridge
Reusable packet bridge for Bukkit, Paper and Folia plugins​

EntityPacketBridge is a lightweight companion plugin for Minecraft server plugins that need to listen to client entity interaction packets without depending on PacketEvents.

It is especially useful for fake-player NPC systems, custom combat systems, packet-aware mechanics and Folia-compatible plugins that need a small local API for packet callbacks.

Features

Version
Code (Text):

1.2.0
 
Requirements

Installation
  1. Download EntityPacketBridge.jar.
  2. Put it in your server plugins folder.
  3. Install any plugin that supports EntityPacketBridge, such as an NPC plugin.
  4. Start or restart the server.

Commands
EntityPacketBridge has no player or admin commands.

It is a developer/companion plugin used by other plugins through its API.

Why use it?
Some plugins need to detect packets before normal server handling. For example, fake-player NPCs do not always behave like normal Bukkit entities, so normal Bukkit interaction events are not enough.

EntityPacketBridge solves that by injecting a small listener into player connections and dispatching packet information to registered plugins.

Threading Notice
Packet callbacks run on the player's Netty connection thread.

Consumer plugins should not directly access mutable Bukkit or Folia world/entity state inside the callback. Schedule Bukkit/Folia work onto the correct player/entity scheduler.

API Example
Code (Text):

EntityPacketBridgeApi.Registration registration =
    EntityPacketBridgeApi.register((player, entityId, action) -> {
        if (action == InteractAction.ATTACK) {
            // Handle left click / attack
        } else {
            // Handle right click / interact
        }

        return true; // true = packet handled/suppressed
    });

// Later, on plugin disable:
registration.close();
 
Supported Listener Types
Code (Text):

EntityInteractListener
ClientPacketListener
ServerPacketListener
PacketSnapshotListener
MovementPacketListener
BlockActionListener
InventoryActionListener
 
Compatibility

Notes
EntityPacketBridge is not an NPC plugin by itself. It is a bridge used by other plugins that need packet-level interaction support.

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

EntityPacketBridge is a free Minecraft Java mod. Compatible with Minecraft 1.20, 1.20.6, 1.21, 26.1 and newer. Downloaded 42 times (via Spigot). Download it and open it directly in the game.

Explore more