RocketMC 0.9.0 beta: Java and Bedrock, one binary. See what's new

RocketMC is in beta (0.9.0). These docs follow the source code; if something differs on your build, the code wins. Please report it on GitHub.

Plugin API

Menus and Displays

Item builders, chest menus, sidebars, boss bars, holograms, particles and tab lists.

Updated Dec 5, 2026

All of these are guest-side helpers in rocketmc-plugin-api, in the prelude unless noted.

ModuleSimilar toWhat it gives you
item_builder::ItemBuilderItemStack + ItemMetaFluent builder: amount, name, lore, enchant, custom_enchant, attribute
menuInventory GUI listenersChest menus with per-slot click handlers. Clicks and drags are cancelled for you
paged_menuPaginated GUIPagedMenu::new(title, items).open(&player, page) with previous and next buttons, 45 items per page
sidebarScoreboard sidebarA per-player sidebar with up to 15 lines (Java players)
bossbarBukkit.createBossBarcreate, and show_timed for a draining countdown bar
hologramHologramsHologram::spawn(world, pos, lines), set_lines, remove, built on text display entities
shapesParticle effectscircle, sphere, line and helix generators plus draw and draw_for
tablistTab list and below-nameset_tab_header_footer, set_tab_name, set_tab_listed, set_tab_header_footer_all, BelowName
promptConversationsprompt::ask(&player, question, timeout_s, |server, player, answer| ..)
formsBedrock formsNative forms for Bedrock players

A chest menu

Call menu::install once, then build a fresh Menu every time you open one. open consumes the menu, and only one menu is active per player.

use rocketmc_plugin_api::{prelude::*, Item};

fn on_load(&self, ctx: Context) -> Result<()> {
    menu::install(&ctx)?;
    prompt::install(&ctx)?; // only if you use prompt
    Ok(())
}

fn open_shop(player: &Player) {
    let mut shop = Menu::new(3, "&8Shop");
    shop.set_button(
        13,
        ItemBuilder::new(Item::Diamond).name("&bBuy a diamond").lore(["&7Cost: 10 coins"]).build(),
        |_server, click| click.player.send_message("&aPurchased!"),
    );
    shop.fill_empty(|| ItemBuilder::new(Item::GrayStainedGlassPane).name(" ").build());
    shop.on_close(|_server, _player| { /* save state */ });
    shop.open(player);
}

Holograms and prompts

Holograms and prompts are not saved. Respawn holograms in on_load and remove them in on_unload. Hologram::spawn takes the World handle by value.

prompt::ask(&player, "&eHow many?", 20, |_server, player, answer| {
    player.send_message(&format!("&aYou typed {answer}"));
});

Timed boss bar and particles

use rocketmc_plugin_api::{shapes::{self, Plane}, geometry::Vec3, particles::Particle};

// a bar that drains over 30 seconds, then removes itself
let handle = bossbar::show_timed(vec![player], "&cEvent starts soon", BossBarColor::Red, 30);

// a ring of flames
let ring = shapes::circle(Vec3::new(0.5, 65.0, 0.5), 2.0, 40, Plane::Xz);
shapes::draw(&world, Particle::Flame, &ring);

show_timed takes its players by value and returns a TaskHandle. Run cargo doc -p rocketmc-plugin-api --open for the exact signatures of every module.