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.

[Help] Changing Blockstates with Resource Pack

See original GitHub issue

I’m trying to make a texture for the on and off state of the Wireless Transmitter/Receiver. I’ve put the model and textures files in my pack but as you can see in the GIF only the Wireless Receiver works.

Image from Gyazo

Texture

\resourcepacks\my_resource_pack\assets\cyclicmagic\textures\blocks\wireless_transmitter_on.png Image from Gyazo

Model

\resourcepacks\my_resource_pack\assets\cyclicmagic\models\block\wireless_transmitter_on.json

{ "parent": "block/cube_all", "textures": { "all": "cyclicmagic:blocks/wireless_transmitter_on" } }

Blockstate

I am not including a blockstate file in my resource pack because the native file already has a powered variant included so in theory I should only need to include the model file it’s pointing to. But just to make sure I also tried including the blockstate in my resource pack to no avail.

\resourcepacks\my_resource_pack\assets\cyclicmagic\blockstates\wireless_transmitter.json** { "variants": { "powered=true": { "model": "cyclicmagic:wireless_transmitter_on" }, "powered=false": { "model": "cyclicmagic:wireless_transmitter_off" } } }

I’ve read through the Minecraft Wiki about models and resources packs. I’ve also googled a lot about blockstates and other resource pack tid bits and everything I’ve found leads me to believe I’ve done everything correctly. So I’m really confused as to why it’s not working. Any help you could provide would be much appreciated.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Lothrazarcommented, Mar 31, 2019

when 1.18.6 is released i made the fix newstate

1reaction
Lothrazarcommented, Mar 31, 2019

Hmm , looks like its because its not supported in code .

In one of the blocks it sets the blockstate in code https://github.com/Lothrazar/Cyclic/blob/c3d732c8cbf5fe3884ec64aeda3690c39591f5de/src/main/java/com/lothrazar/cyclicmagic/block/wireless/TileEntityWirelessTr.java#L62 but in the other it doesnt.

So ill add a default texture and a code change for the blockstate so this is supported in both blocks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing block states in my resource pack does nothing ...
I tried changing some blockstates in my resource pack and I can't get anything to work. Am I missing something? Did they remove...
Read more >
Custom random textures via blockstates? - Resource Pack Help
I want to be able to give my blocks some randomized textures, much in the way CTM does, but I have almost no...
Read more >
Blockstates + Minecraft Texture Pack
About This resource pack makes use of the many blockstates Minecraft ... Chorus Flowers change their texture by how far they have withered....
Read more >
Blockstates + - Resource Packs - Minecraft - CurseForge
If you go into the resource pack's folder, you can modify the .json files to set which texture and/or blockstate's age you want...
Read more >
Block states - Minecraft Wiki
Block states (also known as block properties) are extra pieces of data that further ... being looked at by a player; changes the...
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