VPacketEvents

# VPacketEvents

[![Discord](https://img.shields.io/discord/899740810956910683?color=7289da&label=Discord)](https://discord.gg/5NMMzK5mAn)
![](https://img.shields.io/maven-central/v/io.github.4drian3d/vpacketevents-api?style=flat-square)
![GitHub Downloads](https://img.shields.io/github/downloads/4drian3d/VPacketEvents/total?logo=GitHub&style=flat-square)

Manage and register packets through Velocity’s native events

[![](https://www.bisecthosting.com/partners/custom-banners/6fa909d5-ad2b-42c2-a7ec-1c51f8b6384f.webp)](https://www.bisecthosting.com/4drian3d?r=ModVPacketEvents)

“`java
class PacketListener {
@Subscribe
public void onPacketReceive(PacketReceiveEvent event) {
final MinecraftPacket packet = event.getPacket();
if (packet instanceof KeyedPlayerCommand commandPacket) {
event.setResult(GenericResult.denied());
}
}

@Subscribe
public void onPacketSend(PacketSendEvent event) {
// some stuff
}

public void registerPacket() {
// UpdateTeamsPacket registration
PacketRegistration.of(UpdateTeamsPacket.class)
.direction(Direction.CLIENTBOUND)
.packetSupplier(UpdateTeamsPacket::new)
.stateRegistry(StateRegistry.PLAY)
.mapping(0x47, MINECRAFT_1_13, false)
.mapping(0x4B, MINECRAFT_1_14, false)
.mapping(0x4C, MINECRAFT_1_15, false)
.mapping(0x55, MINECRAFT_1_17, false)
.mapping(0x58, MINECRAFT_1_19_1, false)
.mapping(0x56, MINECRAFT_1_19_3, false)
.mapping(0x5A, MINECRAFT_1_19_4, false)
.register();
}
}
“`

## Installation
– Download VPacketEvents from Modrinth
– Drag and drop on your plugins folder
– Start the server

## Dev Setup

### Gradle

“`kotlin
repositories {
mavenCentral()
}
dependencies {
compileOnly(“io.github.4drian3d:vpacketevents-api:1.1.0”)
}
“`

## Javadocs
https://javadoc.io/doc/io.github.4drian3d/vpacketevents-api

VoxLib

Gone are the days when you must create a new voxel shape for every direction your block faces! With the help of this library, it can all be done with a simple function.

This mod adds some tools that help modders to more easily manipulate, create, and rotate voxel shapes in their code!

## Required Dependencies
Fabric
Fabric Language Kotlin
– Adds compatibility for the programming language this mod is written in

## Additional Links
Curse Forge

VoxelUI

# VoxelUI

VoxelUI is a modern UI framework for **Minecraft NeoForge 1.21.1**.

It is built for mod developers who want to create rich, maintainable, native Minecraft interfaces without relying on large PNG-based UI sheets.

## Beta release notice

**VoxelUI is currently in public beta.**

This release is meant to:

– validate the framework in real modding use cases
– collect bug reports
– identify weak spots in the API and component system
– stabilize the engine before a future stable release

You should expect:

– bugs
– incomplete or rough behavior in some components
– API changes between beta versions
– layout or rendering regressions in edge cases

If you test VoxelUI and report issues, that is extremely useful for getting the project to a stable release.

## What VoxelUI provides

– XML-based screen layouts
– MCSS styling system with cascade support
– reusable UI components
– centralized theming
– modern layout containers
– Minecraft-specific UI components
– developer tooling for inspection and iteration

## Core features

### Layout and composition

– `Panel`
– `Grid`
– `Stack`
– `Tabs`
– `ScrollPanel`
– `ListView`

### Interactive components

– `Button`
– `TextInput`
– `Checkbox`
– `Slider`
– `Dropdown`

### Minecraft-oriented components

– `ItemStackView`
– `InventoryGrid`
– `ItemSlot`

### Styling and tooling

– XML UI loader
– inline and external MCSS stylesheets
– style cascade with computed styles
– UI inspector
– hot reload in development environment
– safe XML error fallback panels
– animated UI transitions such as hover and smooth scrolling

## Use cases

VoxelUI is designed for building interfaces such as:

– configuration screens
– quest logs
– custom inventories
– shops
– admin panels
– HUD overlays
– data-driven UI screens

## Philosophy

VoxelUI does **not** try to embed a browser inside Minecraft.

Instead, it brings a more modern UI workflow to native Minecraft rendering:

– declarative
– modular
– themeable
– reusable
– renderer-native

## Current status

VoxelUI is a **framework/library mod**, not a standalone content mod.

Release builds disable internal showcase and debug tooling by default. Development builds keep them available for iteration and inspection.

This project is not presented as fully stable yet. The goal of this beta phase is to harden the framework through real-world feedback before locking down a more stable API surface.

## Compatibility

– **Minecraft:** 1.21.1
– **Loader:** NeoForge
– **Java:** 21

## For developers

VoxelUI is intended to be used as a base for other mods that need structured UI systems.

It includes:

– a `measure -> layout -> render` pipeline
– XML-driven screen construction
– reusable runtime bindings
– MCSS styling
– native Minecraft rendering integration

## Feedback wanted

If you use this beta, the most useful feedback is:

– reproducible bugs
– broken layouts
– rendering issues
– unclear or frustrating API design
– missing features that block real usage
– unexpected behavior between XML, MCSS, and runtime bindings

## License
Apache License 2.0

VoskLib

# 🎙️ VoskLib

**VoskLib** is a high-performance, offline voice recognition library for **Minecraft Forge 1.20.1**

## ✨ Features

* **100% Offline:** No API keys or internet connection required for recognition.
* **Dual Modes:** Switch between **Literal Mode** (wide vocabulary) and **Grammar Mode** (constrained lists).
* **In-Game Model Manager:** Download and manage Vosk models directly from the mod config menu with a built-in progress bar.
* **Thread Safe:** Background audio processing automatically synchronized with the Minecraft main thread.
* **Developer Friendly:** Easy-to-use events for partial and final speech results.

***

## 🛠️ Installation for Users

1. Install **Minecraft Forge 1.20.1**.
2. Drop the jar file into your `mods` folder.
3. **Download a Model:**

* Open the game and go to **Mods** -> **VoskLib** -> **Config**.
* Select a model (Small, Medium, or Large) and click **Download**.
* VoskLib will handle the download and extraction automatically.

***

## ⌨️ Keybinds

* **V (Default):** Toggles voice recognition on/off.
* _Configurable in the standard Controls menu under the “Vosk Voice Library” category._

***

## 💻 Developer API

To use VoskLib in your project, add it to your `build.gradle` and start listening for events.

### 1. Handling Speech Results

VoskLib fires events on the **Forge Event Bus**. These events are already executed on the **Main Thread**, so you can safely interact with the player or world.

“`
@SubscribeEvent
public void onVoiceResult(VoskVoiceEvent.Result event) {
String text = event.getResult().toLowerCase();

if (text.contains(“fireball”)) {
// Your logic: Summon a fireball in front of the player
}
}

@SubscribeEvent
public void onPartialSpeech(VoskVoiceEvent.Partial event) {
// Useful for real-time UI subtitles
String partial = event.getResult();
}
“`

### 2. Controlling the State

You can request VoskLib to start or stop listening by using:

“`
String[] spells = {“ignite”, “freeze”, “thunder”, “heal”};
VoskManager.createRecognition(spells); // Create Recognition for Grammar Mode (High Accuracy for specific words)
VoskManager.createRecognition(); // Create Recognition for Literal Mode (General Dictation)

VoskManager.startListening(); // Start Listening
VoskManager.stopListening(); // Stop Listening
“`

## 📜 Credits

* **Vosk API:** Developed by [Alpha Cephei](https://alphacephei.com/vosk/).
* **Mod Author:** Infinity Two.

Voile

Voile is an addon for [Apoli](https://github.com/apace100/apoli) that provides new power, action and condition types.

## Documentation

If you’d like to use Voile in your Apoli or Origins powers, you can find the documentation [here](https://docs.reimaden.net/voile/introduction/).
Prior experience with either mod is recommended. You can find the Origins documentation [here](https://origins.readthedocs.io/en/latest/).

## Including Voile in Your Project

### For Data Pack Developers

Using Voile for your data pack is easy. Simply download the latest jar for your version of Minecraft and include it in your instance’s `mods` folder. You can then use the new types in your data pack.

Voile depends on Apoli, so make sure to grab that as well. Apoli is included with Origins.

### For Addon Developers

Check the [GitHub page](https://github.com/Maxmani/voile) for more information on using Voile in your project.

## Licensing

Source code is distributed under the LGPLv3 license. See the [GitHub page](https://github.com/Maxmani/voile) for details.

Voidless Framework

This is just a framework for my mods as I got tired of remaking assets when I make similar things. Feel free to use this if you like any of my resources like the “Alloy” or the “Cans”

Make sure to check out my [Discord](https://discord.gg/gUefw6KbX4) for help or suggestions on mods to add:

Void Crafting

This mod adds a recipe type for throwing items into the void.

## Example

“`json
{
“type”: “voidcrafting:void_crafting”,
“input”: {
“item”: “minecraft:gold_ingot”
},
“radius”: 10.2,
“result”: {
“item”: “minecraft:gold_block”,
“count”: 3
}
}
“`
When a gold ingot falls into the void, a stack of 3 gold blocks will spawn in a 10.2-block radius around the End dimension’s `0, 0`.

See the [wiki](https://github.com/acikek/void-crafting/wiki) for complete documentation.

## License

MIT © 2022 spadeteam

VoiceLib

# VoiceLib

Minecraft text to speech library

# Usage

VoiceLibApi is the class for the API.
The following are the methods you will be using
“`
VoiceLibApi.registerServerPlayerSpeechListener(Consumer consumer)
This method registers a ServerPLayerTalkEvent Consumer. Whenever a player speaks,
This event will be fired. The ServerPlayerTalkEvent provides the player, and a string of what they said.

VoiceLibApi.registerClientSpeechListener(Consumer consumer)
This method registers a ClientTalkEvent Consumer. This method is only fired on the client.
Whenever the user speaks, this will be fired.

VoiceLibApi.setPrintToChat(boolean printToChat)
This is only on the client. This sets whether or not to
print client speak events to chat. (Default False)

VoiceLibApi.setPrintToConsole(boolean printToConsole)
Same as printToChat but for the console instead. (Default False)
“`
All methods have java docs for information on their usages.

# Example
This method makes it so if any player on the server says “ouch” they light on fire
“`
VoiceLibApi.registerServerPlayerSpeechListener((serverPlayerTalkEvent -> {
if (serverPlayerTalkEvent.getText().contains(“ouch”))
serverPlayerTalkEvent.getPlayer().igniteForSeconds(2);
}));
“`
You can also see this in VoiceLibExample

# Security

There are a few things to note with this mod,
– The mod automatically downloads a vosk model from the internet on the first launch, it is about 40MB
– This mod by default, constantly records and sends all text data to the server. This means a bad actor could listen in on your conversations (But only in text as audio is not sent to the server)
– The push to talk key is inverted by default, this means pressing it turns OFF your microphone
– Other mods can forcefully enable always on recording, they can also disable it (See VoiceLibClient)

VoiceChat Interaction

# VoiceChat Interaction

> **Disclaimer:** This plugin is not affiliated with Mojang, Microsoft, or the Simple Voice Chat project. Use at your own risk.

> Inspired by the [Fabric mod](https://modrinth.com/mod/voice-chat-interaction), but made for PaperMC instead.

> **This plugin requires the [Simple Voice Chat](https://modrinth.com/plugin/simple-voice-chat/) plugin to work properly.**

## Overview

**VoiceChat Interaction** lets Sculk sensors and the Warden react to real player voice chat in Minecraft. The plugin is highly configurable, supports i18n, and can be hot-reloaded without server restarts.

– **PaperMC 1.21.8+** compatible
– **Simple Voice Chat** required
– **Configurable**: Enable/disable group, whisper, and sneak voice triggers
– **i18n**: English messages by default, easy to localize
– **Hot-reload**: Reload config and messages in-game

## Features

– Sculk sensors and the Warden react to real player voice chat
– Supports group, whisper, and sneak voice modes
– Decibel threshold and cooldown configurable
– In-game `/voicechat_interaction` command for toggling and reloading
– Auto-creates `messages.yml` for easy translation

## Installation

1. Download the latest release
2. Place the JAR in your server’s `plugins/` folder
3. Ensure [Simple Voice Chat](https://modrepo.de/minecraft/voicechat) is installed and running
4. Start/restart your server

## Configuration

A `config.yml` is auto-generated with these options:

“`yaml
enable_group_voice: false # Allow Sculk/Warden to react to group voice
enable_whisper_voice: false # Allow Sculk/Warden to react to whisper voice
enable_sneak_voice: false # Allow Sculk/Warden to react to sneak voice
activation_db_threshold: -50 # Minimum decibel level to trigger (range: -127 to 0)
toggle_default_state: true # Default: interaction enabled for new players
activation_cooldown_ticks: 20 # Cooldown in ticks between triggers
“`

## Commands

– `/voicechat_interaction toggle` — Toggle interaction for yourself (permission required)
– `/voicechat_interaction toggle ` — Toggle for another player (permission required)
– `/voicechat_interaction reload` — Reload config and messages (permission required)

## Permissions

– `voicechat_interaction.command` — Use toggle for self
– `voicechat_interaction.command.others` — Toggle for others
– `voicechat_interaction.command.reload` — Reload config/messages

## Internationalization (i18n)

– All messages are in `messages.yml` (auto-created)
– Edit or translate as needed

Voice Chat Recording

**A mod that allows recording player voices using [Simple Voice Chat](https://modrinth.com/mod/simple-voice-chat), and exposes an API to get and play them.
Used by and made for the [Revervox Mod](https://modrinth.com/mod/revervox)**

# Features:
– Start, Stop, Play commands
– Saving audios in memory/drive in .pcm format
– Audio manipulation effects like reverb, robotize and pitch

This mod aims to provide ground work for other modders to make, for example, horror mods, funny mods, or any mod that makes use of your voice to do stuff.

# Credits:
– Programming by: omiao, Nalien
– Simple Voice Chat API by Max Henkel