AdvancedXRay / XRay-Mod

Neoforge based XRay mod designed to aid players who don't like the ore searching process.
https://www.curseforge.com/minecraft/mc-mods/advanced-xray
GNU General Public License v3.0
160 stars 79 forks source link

Industrial Craft 2‘s ore block can't be seen and their appearance is forge: default-block #234

Closed Geooo030 closed 1 year ago

Geooo030 commented 1 year ago

Describe the bug

Industrial Craft 2‘s ore block can't be seen and their appearance is forge: default-block..

To Reproduce

This phenomenon occurs in all the Industrial Craft 2‘s ore blocks.

UO4H%~E)H$I33RJIT8@` GM

Minecraft Environment

Minecraft Version: 1.12.2 XRay Mod Version: [Xray+Ultimate+1.12+v2.2.0.zip]

Additional context

I found that maybe the ic2's path caused this bug.

File path:

Xray+Ultimate+1.12+v2.2.0\assets\ic2\blockstates\resource.json

source code

{
    "forge_marker": 1,
    "defaults": {
        "transform": "forge:default-block"
    },
    "variants": {
        "type": {
            "basalt": { "model": "block/ic2/xray/basalt" },
            "copper_ore": { "model": "block/ic2/copper_ore" },
            "lead_ore": { "model": "block/ic2/lead_ore" },
            "tin_ore": { "model": "block/ic2/tin_ore" },
            "uranium_ore": { "model": "block/ic2/xray/uranium_ore" },
            "bronze_block": { "model": "ic2:resource/bronze_block" },
            "copper_block": { "model": "ic2:resource/copper_block" },
            "lead_block": { "model": "ic2:resource/lead_block" },
            "steel_block": { "model": "ic2:resource/steel_block" },
            "tin_block": { "model": "ic2:resource/tin_block" },
            "uranium_block": { "model": "ic2:resource/uranium_block" },
            "reinforced_stone": { "model": "ic2:resource/reinforced_stone" },
            "machine": { "model": "ic2:resource/machine" },
            "advanced_machine": { "model": "ic2:resource/advanced_machine" },
            "reactor_vessel": { "model": "ic2:generator/reactor/reactor_vessel" }
        },
        "inventory": [{}]
    }
}

When I changed the code look like this, it worked normally

{
    "forge_marker": 1,
    "defaults": {
        "transform": "forge:default-block"
    },
    "variants": {
        "type": {
            "basalt": { "model": "ic2/xray/basalt" },
            "copper_ore": { "model": "ic2/copper_ore" },
            "lead_ore": { "model": "ic2/lead_ore" },
            "tin_ore": { "model": "ic2/tin_ore" },
            "uranium_ore": { "model": "ic2/uranium_ore" },
            "bronze_block": { "model": "ic2:resource/bronze_block" },
            "copper_block": { "model": "ic2:resource/copper_block" },
            "lead_block": { "model": "ic2:resource/lead_block" },
            "steel_block": { "model": "ic2:resource/steel_block" },
            "tin_block": { "model": "ic2:resource/tin_block" },
            "uranium_block": { "model": "ic2:resource/uranium_block" },
            "reinforced_stone": { "model": "ic2:resource/reinforced_stone" },
            "machine": { "model": "ic2:resource/machine" },
            "advanced_machine": { "model": "ic2:resource/advanced_machine" },
            "reactor_vessel": { "model": "ic2:generator/reactor/reactor_vessel" }
        },
        "inventory": [{}]
    }
}

After fixing code's screenshot: _BL5B30FA6CCR`3@6Y@FWJV

MichaelHillcox commented 1 year ago

Not my mod