Compatibility
Minecraft: Java Edition
26.2
Platforms
Links
Tags
Creators
Details
Licensed MIT
Published last week
Updated last week
GUI API — Example Datapack
This datapack is a reference/showcase collection for the GUI API Fabric mod. It is not standalone content — it requires the guiAPI mod to be installed on the server.
Target version: Minecraft 26.2 (pack_format: 107)
Contents
welcome— Simple accept/decline menu demonstratingrun_commandandcloseactions.admin_panel— Multi-button main menu:togglestate (PvP on/off), permission gating viacondition(has_tag), left/right-click separation (click_type), and navigation to a sub-menu (open_gui).sub_menu— Second-level menu linked fromadmin_panel, withopen_guiused to navigate back.counter— Variable system demo:set_var,add_var,sub_var,reset_var, conditional visibility (var_gt,var_set), and live updates viarefresh.macro_and_input_demo— In-GUImacrosblock, macro invocation viarun_function, and player text input viaanvil_input.showcase— Multi-page menu (page,next_page,prev_page),on_open/on_closeevents, and scoreboard-backed variables (score:).new_features_demo— Advanced features combined: auto-refresh viatick_rate, action delays, taking items from inventory (take_item), score manipulation (add_score/sub_score), effect management (add_effect/clear_effects), XP-level gating (level_gt/level_lt), and multi-valuecustom_model_data/item_modelusage.
Usage
Load the datapack into your world, then open any GUI under the example namespace through guiAPI's command system (e.g. example:welcome, example:admin_panel).
Note
This pack is intended for learning/reference purposes. Review commands like kick and gamemode creative before adapting them to a live server.

