ModsJava
CustomItems API - Alpha
Java mod listed for Minecraft 1.8–1.16. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotCustomItems-API
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 correctly
Exemple of a custom Items interact Inventory
You can create different type of action
One click in an inventory
a specific click in an inventory
An interaction action in the player's inventory bar
Add a custom recipe to the custom item
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 ) ;
Learn to use Callback
https://docs.oracle.com/javase/10/docs/api/javafx/util/Callback.html
Easily create your minecraft items and assign custom crafting actions and recipes through the creation of custom items
Usage
Exemple of a custom Items
Code (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 ) ;
. 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
Code (Java):
InteractInventory interactInventory
=
new InteractInventory
(
4
*
9,
"Test"
)
;
interactInventory. setItem ( 1, myItemStack ) ;
Bukkit. getPlayer ( "TwiDev" ). openInventory (interactInventory. getInventory ( ) ) ;
interactInventory. setItem ( 1, myItemStack ) ;
Bukkit. getPlayer ( "TwiDev" ). openInventory (interactInventory. getInventory ( ) ) ;
One click in an inventory
Code (Java):
ItemsBuilder myItemStack
=
new ItemsBuilder
(Material.
APPLE,
20
).
setAction
(player
->
{
player. sendMessage ( "Hello" ) ;
} ) ;
player. sendMessage ( "Hello" ) ;
} ) ;
Code (Java):
ItemsBuilder myItemStack
=
new ItemsBuilder
(Material.
APPLE,
20
).
setActions
(
(player, clickType
)
->
{
if (clickType == ClickType. LEFT ) {
player. sendMessage ( "Hello" ) ;
}
} ) ;
if (clickType == ClickType. LEFT ) {
player. sendMessage ( "Hello" ) ;
}
} ) ;
Code (Java):
ItemsBuilder myItemStack
=
new ItemsBuilder
(Material.
APPLE,
20
).
setInteractActions
(
(player, action
)
->
{
if (action == Action. LEFT_CLICK_AIR ) {
player. sendMessage ( "Hello" ) ;
}
} ) ;
if (action == Action. LEFT_CLICK_AIR ) {
player. sendMessage ( "Hello" ) ;
}
} ) ;
Code (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
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.9, 1.10
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
CustomItems API - Alpha is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 297 times (via Spigot). Download it and open it directly in the game.