Automatic Resource Pack Generation - jojodmo/CustomItems GitHub Wiki

You can use the /cui resourcepack generate command (or /cui rp gen) to generate a resource pack with all of your custom item and block textures! This is fully functional for MC 1.14 and above, and still in beta for Minecraft 1.13 and below. There's a few things you have to do first:

  1. Create your an item texture image for each of your items, and put them in the CustomItems/textures folder. The images should almost always be PNG files.

Call the image the same thing as your item's CustomItem ID. For example, if you're making the texture for your custom item with the ID diamondStick, you would create the texture image and put it at CustomItems/textures/diamondStick.png.

  1. Modify your item yml file so that CustomItems will know how to generate the item, and what type of item it is. In general the format will look like this.
texture:
  type: [item / block]
  item:
    id: [a unique number for this item]
  block:
    id: [a unique number for this block, between 1 and 160]

If your item is a block, you should set type to block, and make sure to set item.id and block.id to unique numbers (they need to be unique across all of your items. Each item ID can only occur once, and each block ID can only occur once). Make sure that the block ID is between 1 and 160

If your item isn't a block, you should set type to item, and only set item.id — you don't need to include the block part.

IMPORTANT: For Minecraft 1.14 and above, you can set item.material to whatever you want. However, If you're using Minecraft 1.13 or below item.material MUST be some sort of damageable tool, like a diamond hoe. It's recommended that you just don't set item.material on Minecraft 1.13 or below, to avoid issues.

For your diamondStick, you'd put something like this in your diamondStick.yml file:

item:
  material: STICK
  displayName: "&bDiamond Stick"

texture:
  type: item
  item:
    id: 42 # or some other number

And, for a block, you'd write something like this

item:
  material: DIAMOND_BLOCK
  displayName: "&bMy Custom Block"

texture:
  type: block
  item:
    id: 1 # or some other number
  block:
    id: 1 # or some other number
    # this ID can be the same as the item id (or it could be different),
    # but can't be used for any other CustomItem

IMPORTANT Make sure that the you only use each item ID once, and that you only use each block ID once. After you've set the ID for an item/block, don't change it! Doing this could seriously mess up the the textures on your server

  1. That's it! After you've set up your item yml files, make sure to restart your server, and then type /cui resourcepack generate to generate the resource pack.

You can find the generated resource pack in the CustomItems/resourcePack folder. Give this zipped file to players, and they'll be able to see your custom textures!

After you have generated your pack, use the video to get it on your server > https://www.youtube.com/watch?v=rjBJD1caRlA