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
//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 ) ;
- 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 ) ;
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.13
- 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.
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.