Jump to content

Recommended Posts

Posted

I'm trying to add Rose Quartz to the game. When I do the pillar the block shows up in game but with no textures.

 

This is what I have in BlockInit

@SubscribeEvent
    public static void registerBlocks(final RegistryEvent.Register<Block> event)
    {
        event.getRegistry().register(new Block(Properties.from(Blocks.QUARTZ_PILLAR)).setRegistryName("rose_quartz_pillar_block"));
    }

 

My Blockstate

{
    "variants": {
        "axis=y": { "model": "block/rose_quartz_pillar_block" },
        "axis=z": { "model": "block/rose_quartz_pillar_block", "x": 90 },
        "axis=x": { "model": "block/rose_quartz_pillar_block", "x": 90, "y": 90 },
    }
}

And my model

{
    "parent": "block/cube_column",
    "textures": {
        "end": "block/rose_quartz_pillar_top",
        "side": "block/rose_quartz_pillar"
    }
}
 

Any idea what I'm doing wrong?

Posted (edited)

Please post your debug.log, it will tell us what is going wrong. :)

 

*edit: also, please use an external post site for the debug.log, as it will be quite large for sure. github gists are great for that.

Edited by Ugdhar
Posted
27 minutes ago, Umpaz said:

        "end": "block/rose_quartz_pillar_top",
        "side": "block/rose_quartz_pillar"

You need to include your mod ID or the game will search the minecraft textures.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted (edited)
4 minutes ago, Draco18s said:

You need to include your mod ID or the game will search the minecraft textures.

I changed it for the model and blockstate. Still shows up textureless.

Edited by Umpaz
Posted

Your debug.log will be in the run/logs folder in your mod project folder.

 

Also please keep support requests on the forums, I do not provide personal support via private msg

Posted
Quote

 

[06Jun2020 20:53:28.004] [Server-Worker-5/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'umpaztweaks:blockstates/rose_quartz_pillar_block.json' missing model for variant: 'umpaztweaks:rose_quartz_pillar_block#'

[06Jun2020 20:53:28.005] [Server-Worker-5/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'umpaztweaks:blockstates/rose_quartz_pillar_block.json' in resourcepack: 'Mod Resources': com.google.gson.stream.MalformedJsonException: Expected name at line 6 column 3 path $.variants.axis=x

[06Jun2020 20:53:29.248] [Server-Worker-8/ERROR] [net.minecraft.client.renderer.texture.AtlasTexture/]: Using missing texture, unable to load umpaztweaks:textures/block/rose_quartz_pillar_top.png : java.io.FileNotFoundException: umpaztweaks:textures/block/rose_quartz_pillar_top.png

[06Jun2020 20:53:29.344] [Server-Worker-3/ERROR] [net.minecraft.client.renderer.texture.AtlasTexture/]: Using missing texture, unable to load umpaztweaks:textures/block/rose_quartz_pillar.png : java.io.FileNotFoundException: umpaztweaks:textures/block/rose_quartz_pillar.png

 

 

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

I'm using the same blockstate as the vanilla quartz pillar. I copied and pasted on purpose to make sure nothing should have gone wrong.

Posted

He already did:

15 hours ago, Umpaz said:

My Blockstate

{
    "variants": {
        "axis=y": { "model": "block/rose_quartz_pillar_block" },
        "axis=z": { "model": "block/rose_quartz_pillar_block", "x": 90 },
        "axis=x": { "model": "block/rose_quartz_pillar_block", "x": 90, "y": 90 },
    }
}

And it does contain the error. I spotted it easily.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.