HomeJavaModsCustomItemFramework
CustomItemFramework
[​IMG]
Custom Item Framework:
A framework for easily creating custom items in minecraft. CIF dynamically builds the resourcepack and allows you to host your own resourcepack.

How it works:
  1. When the plugin starts, it creates a server daemon that hosts the resourcepack on the specified port (normally 8080. Configurable in the config)
  2. When the server starts, the plugin compiles all of the registered custom items and their model data and dynamically creates a resourcepack.
For Developers:
To add the project through maven, use:

Code (Text):
    <repository>
        <id>codemc-repo</id>
        <url>https://repo.codemc.org/repository/maven-public/</url>
    </repository>

    <dependency>
        <groupId>me.zombie_striker</groupId>
        <artifactId>CustomItemFramework</artifactId>
        <version>1.0.0</version>
    </dependency>
Then, all you need to do is store the resourcepack models somewhere in the jar file (For example, a file named "resourcepack" at the base of the plugin), and use the following line to load the resourcepack:

Code (Text):

     CustomItemFramework.registerResourcepack(MAIN_CLASS.class.getResource("/resourcepack/"));
Then, to create a new item, all you need to do is use the following line:

Code (Text):
CustomItemFramework.registerCustomItem(new CustomItem("internalname", MATERIAL,"Displayname",ModelPath,NUMBER,ItemEvents.DEFAULT));
       
Where:

Commands

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.

CustomItemFramework is a free Minecraft Java mod. Compatible with Minecraft 1.14, 1.15, 1.16. Downloaded 3,083 times (via Spigot). Download it and open it directly in the game.

Explore more