Ssomar Plugins
🛒 Purchase📢 Discord❤️ Donate
  • Tools for all Plugins [Score]
    • 📚Custom Commands
      • Player & Target Commands
      • Mixed Commands (Player & Entity)
      • Entity Commands
      • Block Commands
      • Item Commands
      • Utility Commands
    • 📚Custom Conditions
      • Player & Target Conditions
      • Entity Conditions
      • Block Conditions
      • World Conditions
      • Item Conditions
      • Placeholder Conditions
      • Custom EI Conditions
    • 🏹Custom Projectiles
    • 📚Placeholders
    • ✨ Score particles
    • 🧮 Score Variables
    • ✔️Compatible Plugins
    • 🤖General Questions | Guides
      • Technical-Level Info
      • SCore
      • Math Formulas
      • Utilities
        • Code Bin/Stock
    • 📰 Score
      • General config
      • Commands
    • 🔘 Custom triggers
  • ExecutableItems
    • 📌Information EI
    • 📃Configurations
      • General Configuration
      • Item Configuration
        • Item Features
        • Item Restrictions/Resistances
      • Activator Configuration
        • List of the Activators
        • Activators features
    • ⌨️Commands & Permissions
    • 🤖Questions | Guides
      • Frequently Asked Questions
        • Free vs Premium
        • Install/update/errors
          • How to install correctly
          • How to update correctly
          • Installation errors [logs]
          • Plugin doesn't work 😡😡
          • command /ei doesn't work
          • Just installed the plugin and have errors on my logs
        • Players can't use the items
        • Basic tutorials
        • Item disappears | Limit
        • EI COMMANDS doesn't work
        • How to use vanilla commands
        • Server chat spamming
        • Custom crafting
        • Folders on /ei show
        • Item as player head
        • Armor trims
        • Attributes not working
        • How to duplicate an EI Item
        • How to change particle vanilla command color
        • Edit plugin messages
        • Item Textures
        • I want to give an item on join
        • Issue with written book
        • How to add custom NBTTag
        • HEX COLORS doesn't work
        • HUGE delay | cooldown | command time
        • Trident duplication
        • Custom name feature is not working
        • Score database large
        • PROJECTILE_HIT_... activators not working
        • Not so frequentlly asked questions
      • Items explanations
        • Item ideas - How to create...?
        • Hight-Powered Grappling Hook
        • Morph Tools
        • Delayed Teleport Towards Saved Location
        • Box of ender pearls
        • Swap position
        • Magnet
        • Item frame visibility toggler
        • Hermes boots
        • EI |WorldEdit -> SET COMMAND
        • Bag of items
        • Infinite rockets
        • Trident that works when not raining
        • [Complex] Moving Particle Projectile
      • Methods | Template
        • Multiple projectiles on one item
        • Custom drops
        • Deal % of entity HP
        • Variable conditions
        • Armor Set Bonus
        • Custom durability
          • Custom durability bar
        • Action Counter
        • On / Off Switch
        • Custom food
        • Raycast
        • Random activators selector
        • Break blocks not depending on item
        • Infinite | finite blocks
        • Damage | Hit features
        • Backstab
        • Item date on lore
        • Entity health condition
        • Dashes | Commands & usage
        • Guns
        • RNG Chance activator
        • Only usable on mainhand
        • Transform Vanilla Items into ExecutableItems
        • Insta pickup
        • Epic particles
        • Custom totems
        • One Time Loop
        • OneTime action
        • MINEINCUBE command whitelist or blacklist blocks
        • Cancel a delayed command
        • Worldedit schematic
        • Condition 1 between 5 different armor pieces
        • Creating Items with multiple activators with varying conditions while having only one error message
        • [Free version] Mana Requirement
        • Setting Up a System that runs the auto update feature once per update
        • [Outdated] Global Cooldown
      • Custom projectiles implementation
        • Projectile ideas - How to create...?
        • Creating a basic projectile
        • Launch Arrows in cone
        • Launch Diamond Axe
        • Custom Actions / Damages per projectiles
      • Custom textures
        • Custom textures [1.21 --]
          • General items
          • Per states texture
          • Custom armor (using armor trims)
          • Animated textures
          • 3D Models
          • Uploading texture pack
          • Fixing Invalid PNG Files
        • Custom texture [1.21+]
      • Custom sounds
      • Informal Guides
      • Plugin performances optimization
    • 🔦MC Versions Compatibility
    • ⚙️Developer API
  • ExecutableBlocks
    • 📌Information EB
    • 📃Configurations
      • General Configuration
      • Block Configuration
        • Block Features
        • Blocks Examples
      • Activator Configuration
        • List of the Activators
        • Activators features
        • Activator Examples
    • ⌨️Commands & Permissions
    • 🤖Question | Guides
      • Frequently Asked Questions
        • Free vs Premium
        • Install/update/errors
          • How to install correctly
          • How to update correctly
          • Installation errors [logs]
          • Plugin doesn't work 😡😡
        • Players can't use the blocks
        • Block disappears | Limit
        • How to use vanilla commands
        • Server chat spamming
        • Custom crafting
        • Block as player head
        • Tutorial
        • Block states
        • Block Textures
        • My condition is checking the owner
        • SETEXECUTABLEBLOCK does not work
        • Holograms won't vanish
      • Tutorials
        • Boss summoner
        • Item generator
        • Custom crops
        • Custom TNT
        • Block that generate a structure
      • Methods
        • Timed actions
        • Worldedit schematic
    • ⚙️Developer API
  • ExecutableEvents
    • 📌Information EE
    • 📃Configurations
      • General Configuration
      • Activator Configuration
        • List of the Activators
        • Activators features
    • 🤖Question | Guides
      • Informal Guides
      • Frequently Asked Questions
        • Install/update/errors
          • How to install correctly
          • How to update correctly
          • Installation errors [logs]
          • Plugin doesn't work 😡😡
        • How to use vanilla commands
        • Server chat spamming
      • Tutorials
        • Toggle System/Command with Godmode
        • Custom enchants by lore
        • Give new/old players an item once
        • Run commands after killing x amount of mobs
        • Detect player entry/leave from a worldguard region
    • ⌨️Commands & Permissions
  • MyFurniture
    • 📌Information MF
    • 📃Configurations
      • General Configuration
      • Furniture Configuration
        • Furniture Features
        • Furntiture Examples
      • Activator Configuration
        • List of the Activators
        • Activators features
    • 🤖Question | Guides
      • Frequently Asked Questions
        • Install/update/errors
          • How to install correctly
          • How to update correctly
          • Installation errors [logs]
          • Plugin doesn't work 😡😡
        • Import your own Furniture
        • How to use vanilla commands
        • Server chat spamming
        • Free vs Premium
    • ⌨️Commands & Permissions
  • ExecutableCrafting
    • 📌Information EC
    • 📃Configurations
      • General Configuration
      • Recipe Configuration
        • Recipe Features
        • Crafting Recipe Examples
      • Recipe groups
      • Recipe Book
    • 🤖Questions | Guides
      • Free vs Premium
      • Install/update/errors
        • How to install correctly
        • How to update correctly
    • ⌨️Commands & Permissions
  • AI Chat Moderation
    • 📌Information ACM
    • 📃Configurations
    • ⌨️Commands & Permissions
  • CustomPiglinsTrades
    • 📌Information CPT
    • ⌨️Commands & Permissions
    • ✔️Compatible Plugins
  • ScreenShop
    • 📌Information ScreenShop
  • TEAM AND DONATIONS
    • 🎆Contact / Support us ?
Powered by GitBook
On this page
  • Setting up the item
  • Let's create the textures
  • Now the Texture Pack
  • Linking the EI with textures
Edit on GitHub
  1. ExecutableItems
  2. Questions | Guides
  3. Custom textures
  4. Custom textures [1.21 --]

General items

PreviousCustom textures [1.21 --]NextPer states texture

Last updated 1 year ago

This tutorial DOESNT WORK for ARMOR RETEXTURING. In case you want it, use optifine retexturing (that isn't explained here, search on google/youtube)

FILES IN YOUR TEXTURE PACK MUST BE AT ALL LOWERCASE OR THERE WILL BE ISSUES SUCH AS TEXTURES NOT LOADING

Since some people have asked, we suggest you to use Notepad++ to edit the files, NONE OF THE FILES ARE .txt, EVERY FILE HAS THEIR OWN TYPE OF FILE, so use a program that allows you to save your texts as specific file type.

If you don't know how to save specific file types, you can see how its done in the video tutorial.

This page will guide you how to add new textures to the game (without modifying the actual ones) from the start making the item, the texture pack, linking everything, until your EI Item has the texture inside the game, so let's begin ! 😎

First of all tell you that all this tutorial is based on the next video:

Here you can learn more deeply about the texture pack, how it works, and if you didn't get at all this tutorial, check the video, its made to understand everything. 🥳😈

Setting up the item

  • Well, first of all let's create the item we want to have the custom texture, use:

    • /ei create <id>

  • I'll set up just some visual things, such as the name and the lore.

Let's create the textures

  • Ok, so the item is ready (you could add activators, mechanics, whatever you want to that item, in this case it will be simple, the main part is the textures.)

  • Now the textures.. they don't appear from nothing, you have to do them.. how? You'll need a photo editor, such as: Photoshop, Paint 3D, Paint.net, Paint, etc. The download part is from your side, so use the one you want, in this case, this will be made using Paint.net

    • The image needs to be:

      • 16x16 pixels (or any power of 2, like 16x16 - 32x32 - 64x64 - etc)

      • PNG

Once you have it, we are ready to create the texture pack

Now the Texture Pack

  • Well, let's part from the beggining, create a folder, let's call it "ExecutableItemsTexturePack"

📁ExecutableItemsTexturePack
  • Then add another folder inside it called "assets"

📁ExecutableItemsTexturePack
    - 📁assets
  • Besides that folder we also need to add a custom text here, it will be called "pack.mcmeta" (it need to be MCMETA type) and will have the next code:

{
  "pack": {
    "pack_format": 8,
    "description": "§eExecutableItems texture pack"
  }
}

So checking what we have, should be this:

📁ExecutableItemsTexturePack
    - 📃pack.mcmeta ✅
    - 📁assets 
  • To don't tell EVERY folder that you have to create I'll leave the format right here, create all the folders.

📁ExecutableItemsTexturePack
    - 📃pack.mcmeta
    - 📁assets 
        - 📁minecraft
            - 📁textures
                - 📁item
                    - 📁custom_textures
            - 📁models
                - 📁item
  • So, in the folder of 📁custom_textures we will save all the custom textures that we have, in this case, the pickaxe photo we made before. (the file will be -> "pickaxeimage.png")

📁ExecutableItemsTexturePack
    - 📃pack.mcmeta
    - 📁assets 
        - 📁minecraft
            - 📁textures
                - 📁item
                    - 📁custom_textures
                        - 📷pickaxeimage.png
            - 📁models
                - 📁item
  • Now, inside the models/item we have to create one folder and one file.yml for each item, in this case, I will edit the diamond_pickaxe, so I will create them

📁ExecutableItemsTexturePack
    - 📃pack.mcmeta
    - 📁assets 
        - 📁minecraft
            - 📁textures
                - 📁item
                    - 📁custom_textures
                        - 📷pickaxeimage.png
            - 📁models
                - 📁item
                    - 📁diamond_pickaxe
                    - 📃diamond_pickaxe.json
  • The name of "diamond_pickaxe" is because of that is the nbttag inside the minecraft

The name of the json is the ID ON MINECRAFT

It is NOT the name of the item It is NOT the name of the texture It is NOT the name of your minecraft player

It is the ID OF THE ITEM INSIDE MINECRAFT.

You can see the ID enabling Advanced Item Tooltips (press f3+h)

  • Inside diamond_pickaxe.json we will add this code:

{
	"parent": "minecraft:item/generated",
	"textures": {
		"layer0": "minecraft:item/diamond_pickaxe"
	},
  
	"overrides": [
		{"predicate": {"custom_model_data":1}, "model": "item/diamond_pickaxe/1"}
    ]
}

JUST IN CASE the item doesn't look good in your hand when holding (holding it in a weird way), change instead of "generated" -> "handheld"

  • If you want to do it with another item, just change the file name, then the layer0, and the predicate.

  • And if you want to add more than one custom model data, just add a "," and add another line, for example:

{"predicate": {"custom_model_data":1}, "model": "item/diamond_pickaxe/1"},
{"predicate": {"custom_model_data":2}, "model": "item/diamond_pickaxe/2"}

Where it says "model" : "item/diamond_pickaxe/2" its calling the folder created before "📁diamond_pickaxe", inside it we will add as many <number>.json as custom model data we set in the file above. In this case I am just setting one custom model data so it will have 1 file called "1.json", if they were two custom model data they will be two files called "1.json" and "2.json"

📁ExecutableItemsTexturePack
    - 📃pack.mcmeta
    - 📁assets 
        - 📁minecraft
            - 📁textures
                - 📁item
                    - 📁custom_textures
                        - 📷pickaxeimage.png
            - 📁models
                - 📁item
                    - 📁diamond_pickaxe
                        - 📃1.json
                    - 📃diamond_pickaxe.json ✅
  • Inside this 1.json we will add this:

{
	"parent": "item/handheld",
	"textures": {
	  "layer0": "item/custom_textures/pickaxeimage"
	}
}

Where the "layer0" part is the folder where is the customTexture, in this case, assets/minecraft/textures/item/custom_textures/<nameoftexture> (In this case pickaxeimage, remember)

PLEASE DOUBLE CHECK THE PATH OF YOUR TEXTURE, MOST OF THE ERRORS ARE BECAUSE PEOPLE SET THE layer0 IN A PATH THAT DOESN'T EXIST, CHECK LITERALLY THE TEXT ABOVE TO KNOW HOW THE PATH WORKS, THIS GOES IN THE TEXTURE FOLDER INSIDE ASSETS.

📁ExecutableItemsTexturePack
    - 📃pack.mcmeta
    - 📁assets 
        - 📁minecraft
            - 📁textures
                - 📁item
                    - 📁custom_textures
                        - 📷pickaxeimage.png
            - 📁models
                - 📁item
                    - 📁diamond_pickaxe
                        - 📃1.json ✅
                    - 📃diamond_pickaxe.json ✅

And that would be all, now grab the pack.mcmeta and the assets folder and create a .zip using Winrar

If you can't use winrar (as mac users) just create a new folder and drag everything there, that folder will be your ".zip file", then add it to .minecraft/resourcepacks/<here> and you will be able to use it for local testing. (for server purposes like uploading it, you'd need to check the tutorial about uploading texture pack)

  • And now let's put it into minecraft (go to resourcepacks and leave it there)

Linking the EI with textures

  • Now it is supposed that it is working, so, we are going to edit our item

  • And in the customModelData config we are going to set it to "1" (In the files we set it to 1)

  • And kaboom !! 💥💥, now the item will have the texture we set before

And that would be all !! If have any question or feel this tutorial needs to explain something better, just tell us in the Discord of EI !! ^^

I hope you understood everything, nice day ! 😀😀

==========================================

Since a lot of people don't follow the steps correctly, here is the file for you to check if you everything right

The pack_format means the version of the Minecraft it will have, 8 means 1.18, 7 means 1.17, 6 -> 1.16, and so on. More info ->

🤖
https://minecraft.fandom.com/wiki/Pack_format
2KB
ExecutableItemsTexturePackExample.zip
archive
Texture of the pickaxe (I couldn't zoom more 😫)
minecraft:diamond_pickaxe
Remember to change it to .ZIP