[Help] Changing Blockstates with Resource Pack
See original GitHub issueI’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.
Texture
\resourcepacks\my_resource_pack\assets\cyclicmagic\textures\blocks\wireless_transmitter_on.png

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:
- Created 5 years ago
- Comments:5 (3 by maintainers)


Top Related StackOverflow Question
when 1.18.6 is released i made the fix
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