CustomItems-API
- Native Minecraft Version:
- Legacy (< 1.13)
- Tested Minecraft Versions:
- 1.8
- 1.9
- 1.10
- 1.11
- 1.12
- 1.13
- 1.14
- 1.15
- 1.16
- Source Code:
- https://github.com/TwiDev/CustomItems-API
- Contributors:
- TwiDev
- Languages Supported:
- English, French
Easily create your minecraft items and assign custom crafting actions and recipes through the creation of custom items
Usage
Exemple of a custom Items
⚠ If a customized item contains an action and you want to put it in an inventory you must create an InteractInventory for the item's action to work correctlyCode (Java):ItemsBuilder myItemStack = new ItemsBuilder(Material.APPLE, 20)
.setName("§cA very good Apple")
.setLore("§7The best\napple of the world")
.addCustomEnchantment(Enchantment.DAMAGE_ALL, 1)
.setInteractActions((player, action) -> {
if(action == Action.LEFT_CLICK_AIR) {
player.sendMessage("Hello");
}
})
.setAction(player -> player.sendMessage("Hi"));
Bukkit.getPlayer("TwiDev").getInventory().setItem(1, myItemStack);
Exemple of a custom Items interact Inventory
You can create different type of actionCode (Java):InteractInventory interactInventory = new InteractInventory(4*9, "Test");
interactInventory.setItem(1, myItemStack);
Bukkit.getPlayer("TwiDev").openInventory(interactInventory.getInventory());
One click in an inventory
a specific click in an inventoryCode (Java):ItemsBuilder myItemStack = new ItemsBuilder(Material.APPLE, 20).setAction(player -> {
player.sendMessage("Hello");
});
An interaction action in the player's inventory barCode (Java):ItemsBuilder myItemStack = new ItemsBuilder(Material.APPLE, 20).setActions((player, clickType) -> {
if(clickType == ClickType.LEFT) {
player.sendMessage("Hello");
}
});
Add a custom recipe to the custom itemCode (Java):ItemsBuilder myItemStack = new ItemsBuilder(Material.APPLE, 20).setInteractActions((player, action) -> {
if(action == Action.LEFT_CLICK_AIR) {
player.sendMessage("Hello");
}
});
Learn to use CallbackCode (Java):
ItemsBuilder itemsBuilder = new ItemsBuilder(Material.APPLE).setName("§cVery good apple").setInteractActions((player, action) -> {
player.sendMessage("test");
});
itemsBuilder.setAction(player -> player.sendMessage("Hello"));
CustomRecipe customRecipe = new CustomRecipe(itemsBuilder)
.setItem(4, new ItemStack(Material.SPONGE))
.setItem(5, new ItemsBuilder(Material.DIRT).setName("§8Hello"));
customRecipe.loadRecipe();
itemsBuilder.setCustomRecipe(customRecipe);
https://docs.oracle.com/javase/10/docs/api/javafx/util/Callback.html

CustomItems API - Alpha CustomItems-API-1.0.5
Create your personalized items with customized actions and crafting recipe quickly and easily
Recent Updates
- Update of the custom recipe system Mar 28, 2021
- Update of the custom recipe system Mar 27, 2021
- Fix bugs and problems Mar 27, 2021