Skip to main content

Crate pumpkinplus

Crate pumpkinplus 

Source
Expand description

PumpkinPlus is a Pumpkin Minecraft plugin written in Rust that enhances the vanilla gameplay without replacing it.

Every feature is modular and toggled via a JSON config file.

§Features

CategoryWhat it adds
PlayerCustom join, leave, and kick messages
ChatChat formatting and word filtering
TablistDynamic tab list header/footer with placeholders
LocatorPersonalize locator bar color (/locator)

§Installation

  1. Download the latest pumpkinplus.wasm from GitHub Releases.
  2. Drop it into your Pumpkin server’s plugins/ folder.
  3. Start (or restart) the server.

On first start, a config.json file is created in the plugin’s data folder with all defaults. Edit it and restart to apply changes.

§Building

cargo build --release --target wasm32-wasip2

The output is at target/wasm32-wasip2/release/pumpkinplus.wasm.

§Viewing Documentation

cargo doc --open

§Configuration

All settings live in config.json in the plugin’s data folder. Each top-level key corresponds to one module.

§Placeholders

String fields that are displayed as in-game messages support placeholders:

PlaceholderReplaced with
{player}The player’s in-game name
{online}Number of online players
{tps}Server TPS
{mspt}Milliseconds per tick
{message}The original chat message

Modules§

mechanics
recipes

Structs§

BatConfig
Configuration for the bat mechanics module.
ChatConfig
Configuration for the chat module.
ConfigManager
Manages plugin configuration using a registry pattern. Modules register their configs by name, and ConfigManager handles loading from disk with merge semantics for missing fields.
EnderchestConfig
Configuration for the enderchest mechanics module.
GriefingConfig
Configuration for the griefing mechanics module.
HeadConfig
Configuration for the player head drop module.
HuskConfig
Configuration for the husk mechanics module.
MessagesConfig
Configuration for the messages module.
NicknameConfig
Configuration for the nickname mechanics module.
OpenableConfig
Configuration for the openable mechanics module.
PumpkinPlus
SpawnEggConfig
Configuration for the spawn egg mechanics module.
TablistConfig
Configuration for the tablist mechanics module.
TameableConfig
Configuration for the tameable ownership transfer module.

Enums§

EntityType
Mirror of the API entity type enum.
GameMode
Mirror of the API gamemode enum.
InteractAction
Mirror of the API player interaction action enum.

Constants§

PLUGIN_ID

Functions§

__init_plugin