EliteFantasy ResourcePack Guide
  • ResourcePack Guide
    • Introduction
    • Beginning
      • lang
      • sounds
      • texts
      • particles
      • atlases
      • fonts
      • blockstates
      • textures
        • Equipment
        • Entity Textures
      • models
        • Blockbench Models
        • ItemsModels & CustomModelData
          • custommodeldata (old)
          • custommodeldata extras (old)
        • Understanding the system the new item system
      • shaders
  • Components Guide
    • Introduction
      • Components
  • Discord
    • Discord
Powered by GitBook
On this page
  1. ResourcePack Guide
  2. Beginning

blockstates

Blockstates are the way minecraft handles block states with its models, this allows you to modify or add variants to the same block or modify any of its existing ones.

Example

📦resource_pack.zip
  └── 📁assets
       └── 📁minecraft
           ├── 📁blockstates
           │    └── 📑lily_pad.json
           ├── 📁models
           │    └── 📁block
           │         ├── 📑lily_pad0.json        
           │         ├── 📑lily_pad1.json  
           │         └── 📑lily_pad2.json    
           └── 📁textures
                └── 📁block
                     ├── 🎨lily_pad_stem.png
                     ├── 🎨lily_pad_flower2.png
                     ├── 🎨lily_pad_flower1.png
                     ├── 🎨lily_pad_flower0.png
                     └── 🎨lily_pad.png

lily_pad.json

{
  "variants": {
    "": [
      {
        "model": "minecraft:block/lily_pad0",
        "weight" : 1
      },
      {
        "model": "minecraft:block/lily_pad0",
        "y": 90,
        "weight" : 1
      },
      {
        "model": "minecraft:block/lily_pad0",
        "y": 180,
        "weight" : 1
      },
      {
        "model": "minecraft:block/lily_pad0",
        "y": 270,
        "weight" : 1
      },
      {
        "model": "minecraft:block/lily_pad1",
        "weight" : 2
      },
      {
        "model": "minecraft:block/lily_pad1",
        "y": 90,
        "weight" : 2
      },
      {
        "model": "minecraft:block/lily_pad1",
        "y": 180,
        "weight" : 2
      },
      {
        "model": "minecraft:block/lily_pad1",
        "y": 270,
        "weight" : 2
      },
      {
        "model": "minecraft:block/lily_pad2",
        "weight" : 1
      },
      {
        "model": "minecraft:block/lily_pad2",
        "y": 90,
        "weight" : 1
      },
      {
        "model": "minecraft:block/lily_pad2",
        "y": 180,
        "weight" : 1
      },
      {
        "model": "minecraft:block/lily_pad2",
        "y": 270,
        "weight" : 1
      }
    ]
  }
}
PreviousfontsNexttextures

Last updated 3 months ago

More Examples Packs Here!

Flowering Lily Pads
Subtle Variants