HomeJavaModsItemFactoryAPI
ItemFactoryAPI
Create ItemStacks on the fly with these options:

- Displayname
- Material (logically)
- Amount
- Lore
- Shiny

TODO
- adding ItemFactoryAdvanced to generate ItemStacks with even more options


Usage

Code (Java):

//returns ItemStack

//generates Shiny Dirt block with 3 lore lines and the displayname Title
ItemFactory. generateItemStack ( "Title", Material. DIRT, true, "Line 1", "Line 2", "Line 3" ) ;

//generates Dirt block
ItemFactory. generateItemStack (Material. DIRT ) ;

//generates 3 Dirt blocks
ItemFactory. generateItemStack (Material. DIRT, 3 ) ;

//generates 3 Potion blocks
ItemFactory. generatePotion ( 3, Color. LIME, new PotionEffect (PotionEffectType. HEALTH_BOOST, 10, 2 ) ) ;

//returns String

//get ItemStack Displayname without colors
ItemFactory. getUsableItemName (item ) ;
 

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

ItemFactoryAPI is a free Minecraft Java mod. Compatible with Minecraft 1.13. Downloaded 171 times (via Spigot). Download it and open it directly in the game.

Explore more