[Tutorial] how to make a block that changes model (or texture) depending on its variant

Started by LicaSkelelecario on

Topic category: User side tutorials

Active 1 year ago
Joined Dec 2019
Points:
671

User statistics:

  • Modifications: 2
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
[Tutorial] how to make a block that changes model (or texture) depending on its variant
Mon, 11/16/2020 - 15:01 (edited)

already to start when you have a block that varies they will change model depending on the cordinate

https://cdn.discordapp.com/attachments/750371419216674830/777484197488623616/2020-11-15_11.44.08.png

but beware it will not change model even if you replace it !

to start you must have two blocks (except for rotations) example block 1 and block 2

click on block 1 then on the bar (edit code selected of mod element) then you click on the JSON blockstate code

you copy this code

{
    "variants": {
        "": [
            { "model": "YourMod:block/block_1" },
            { "model": "YourMod:block/block_2" }
        ]
    }
}

If you want to add more block you add to block 2 a comma and then you add block 3 without comma
{"model": "yourmod:block/block_3"}

and done !

I will improve my tutorial in the coming days

Edited by LicaSkelelecario on Mon, 11/16/2020 - 15:01
Active 2 years ago
Joined Nov 2018
Points:
972

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 572
How does this change the…
Tue, 11/17/2020 - 20:55

How does this change the block model?

I see no predicates.

Active 1 year ago
Joined Dec 2019
Points:
671

User statistics:

  • Modifications: 2
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
I know that this is not…
Fri, 11/20/2020 - 10:22

I know that this is not interesting but it allows to have different blocks with just a single block in itself

Active 3 years ago
Joined May 2021
Points:
553

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
Nice!
Fri, 06/25/2021 - 17:30

Nice!

Active 1 year ago
Joined May 2022
Points:
415

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 24
Is there any way doing it…
Sun, 05/28/2023 - 14:24

Is there any way doing it with a blockbench block model?