CraftVentory is a Java / Spigot library that facilitates the development of Minecraft inventories. It enables developers to define fully configurable inventories in configuration files and provide them with Java code in their plugins.
This library was developed to facilitate the development of in-game inventories. Indeed, making them fully configurable is an important feature for server administrators but this process is very tedious without an appropriate tool. CraftVentory solves this problem by providing a lot of built-in features to help developers implement fully customizable inventories very easily.
Fully customizable actions when clicking on items like sending messages / sounds, executing commands, inventory navigation, etc.
Paginations to paginate a large list of results in an inventory.
Placeholders to display custom values in texts (inventory title, item name / lore, etc.).
Inventory history to enable players to easily navigate between inventories (home, backward, forward).
I18n support.
Enhancements to dynamically modify inventory properties with Java code.
Hooks to execute custom Java code for an inventory when specific events happen.
Setup
To use CraftVentory, you can directly include the JAR file as a dependency of your plugin. This JAR file can be downloaded on the Releases page of the GitHub repository of the project.
The library can also be included in your project by using a dependency manager like Maven or Gradle.
id:"warp-inventory"type:"CHEST_9x6"title:"&6Warps"pattern: - "OOOOOOOOO" - "OYYWWWYYO" - "OY1W2W3YO" - "OYW4W5WYO" - "OYYWWWYYO" - "OOOOOOOOC"content:orange-stained-glass:item:type:ORANGE_STAINED_GLASS_PANEname:" "symbol:"O"yellow-stained-glass:item:type:YELLOW_STAINED_GLASS_PANEname:" "symbol:"Y"white-stained-glass:item:type:WHITE_STAINED_GLASS_PANEname:" "symbol:"W"warp-world:item:type:GRASS_BLOCKname:"&aOverworld"lore: - "" - "&fClick to be teleported to the overworld."symbol:"1"actions:close:type:"CLOSE"player-command:type:"PLAYER_COMMAND"command:"warp overworld"warp-nether:item:type:NETHERRACKname:"&cNether"lore: - "" - "&fClick to be teleported to the nether."symbol:"2"actions:close:type:"CLOSE"player-command:type:"PLAYER_COMMAND"command:"warp nether"warp-end:item:type:END_STONEname:"&5End"lore: - "" - "&fClick to be teleported to the End."symbol:"3"actions:close:type:"CLOSE"player-command:type:"PLAYER_COMMAND"command:"warp end"warp-mining:item:type:"IRON_ORE"name:"&7Mining"lore: - "" - "&fClick to be teleported to the mining world."symbol:"4"actions:close:type:"CLOSE"player-command:type:"PLAYER_COMMAND"command:"warp mining"warp-enchant:item:type:ENCHANTING_TABLEname:"&5Enchantment"lore: - "" - "&fClick to be teleported to the enchantment room."symbol:"5"actions:close:type:"CLOSE"player-command:type:"PLAYER_COMMAND"command:"warp enchant"close:item:type:BARRIERname:"&cClose"symbol:"C"actions:close:type:"CLOSE"