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

Started by LicaSkelelecario on

Topic category: User side tutorials

Last seen on 10:53, 14. Jul 2023
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[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
Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

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

How does this change the block model?

I see no predicates.

Last seen on 10:53, 14. Jul 2023
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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

Last seen on 07:51, 15. Jul 2021
Joined May 2021
Points:

User statistics:

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

Nice!

Last seen on 20:12, 18. Apr 2024
Joined May 2022
Points:

User statistics:

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

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