Compact Ores

Compact Ores

751k Downloads

Error when creating custom ore for Create zinc

brisingraerowing opened this issue ยท 1 comments

commented

Error:

[14:22:23] [Worker-Main-7/ERROR] [do.mo.co.CompactOresResourcePack/]: Failed to generate compact ore texture for compactore__create__zinc_ore, using missing texture instead.
[14:22:23] [Worker-Main-7/ERROR] [do.mo.co.CompactOresResourcePack/]:    Caused by java.lang.RuntimeException: Unable to generate compact ore texture (baseBlock=null, oreBlock=create:zinc_ore, baseTexture=null, oreTexture=create:textures/block/zinc_ore.png)
[14:22:23] [Worker-Main-7/ERROR] [do.mo.co.CompactOresResourcePack/]:    Caused by java.lang.NullPointerException: Cannot invoke "net.minecraft.resources.ResourceLocation.m_135827_()" because "texture" is null
[14:22:34] [Worker-Main-2/ERROR] [do.mo.co.CompactOresResourcePack/]: Failed to generate compact ore texture for compactore__create__zinc_ore, using missing texture instead.
[14:22:34] [Worker-Main-2/ERROR] [do.mo.co.CompactOresResourcePack/]:    Caused by java.lang.RuntimeException: Unable to generate compact ore texture (baseBlock=null, oreBlock=create:zinc_ore, baseTexture=null, oreTexture=create:textures/block/zinc_ore.png)
[14:22:34] [Worker-Main-2/ERROR] [do.mo.co.CompactOresResourcePack/]:    Caused by java.lang.NullPointerException: Cannot invoke "net.minecraft.resources.ResourceLocation.m_135827_()" because "texture" is null

Config file: (named create.toml)

[":zinc_ore"]
oreTexture = ":block/zinc_ore"

[":deepslate_zinc_ore"]
oreTexture = ":block/deepslate_zinc_ore"
rockTexture = "block/deepslate"

An identical error occurs for the Deepslate variant, other than the item ID being different

commented

Hi!
I believe the problem with your regular zinc ore block is that you didn't specify a rockTexture. You can either specify that in a ["!local"] section like it is done in minecraft.toml or directly in the ore block's section like you did with your deepslate zinc ore.

As for your deepslate zinc ore, I can't reproduce the error using the config you provided - it works fine for me. Please make sure your actual config matches the one you posted here and provide the log lines that are actually printed for the deepslate zinc ore. Those lines will be different from the ones you provided if your config actualy matches the one you posted here.