question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing model ingame when using multiple blockstate variants

See original GitHub issue

When i use multiple blockstate variants, i can see the model with texture in inventory, but when i place the block, there is only a purple and black checkerboard.

My blockstate file:

 {
   "variants": {
       "facing=east": { "model": "testmod:road_block" },
       "facing=south": { "model": "testmod:road_block", "y": 90 },
       "facing=west": { "model": "testmod:road_block", "y": 180 },
       "facing=north": { "model": "testmod:road_block", "y": 270 }
   }
 }

Also, how to make a crafting recipe? I tried putting a minecraft recipe file to src/main/resources/assets/modid/recipes/ but it did not work.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
grondagcommented, Jul 12, 2019

It’s unlikely this is a Fabric API issue. Have you tried the support channels in the Fabric Discord.

If you believe it is a Fabric issue, please provide steps/code to reproduce: block state JSON, model JSON, folder structure, block registration code, logs, etc. We can’t do anything but guess with what is given.

0reactions
Patzlykcommented, Jul 12, 2019

Just tried that and it still doesn’t work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "loading model for blockstate variant '#normal ...
What I am getting: The game starts and in-game the block can be placed, but is completely untextured (missing textures texutre) in both...
Read more >
Forge 1.18.2 Blockstates "Missing model for variant: " error
Hello! I've been using MCreator for a tad bit, but left it recently due to the restrictive nature of blocks, I'm currently trying...
Read more >
Tried adding blockstates but i get no texture - MCreator
This is in my blockstate file for the block im using. { "variants": { ... missing model for variant: 'better_mc:copperwire#'
Read more >
Coding expert anyone? on adding block variants : r/Minecraft
Hello im currently adding variants of blocks to my resource pack and I thought I has sussed it. But I altered the model...
Read more >
Block Variation & Random Textures in Minecraft - YouTube
Block Variation & Random Textures in Minecraft - Blockstate Tutorial #1 - How to code .json files. Watch later. Share. Copy link.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found