Jump to content

1.12.2 - forge:multi-layer Issue


tamanor

Recommended Posts

Hi I'm having a issue with my block that is using forge:multi-layer. The issue is that when I'm in game the block renders 100% correct in the inventory but if i place the block down it just shows the Black and Purple block

I have checked the the console and there is no errors. 

 

Blocks

Spoiler

package tamanor.collectorsmod.init;

import java.util.ArrayList;
import java.util.List;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;
import tamanor.collectorsmod.objects.blocks.BlockBase;
import tamanor.collectorsmod.util.Strings;

public class TF_Blocks 
{
	public static final List<Block> Blocks = new ArrayList<Block>();
	
	public static final Block FIG_BOX = new BlockBase("fig_box", Material.WOOD);


}

 

 

Block Base

Spoiler
Quote

package tamanor.collectorsmod.objects.blocks;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.util.BlockRenderLayer;
import tamanor.collectorsmod.init.TF_Blocks;
import tamanor.collectorsmod.objects.items.TF_Items;
import tamanor.collectorsmod.util.IHasModel;
import tamanor.tinyfigs.Main;

public class BlockBase extends Block implements IHasModel
{
    public BlockBase(String name, Material material)
    {
        super(material);
        setUnlocalizedName(name);
        setRegistryName(name);
        setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
        TF_Blocks.Blocks.add(this);
        TF_Items.Items.add(new ItemBlock(this).setRegistryName(this.getRegistryName()));
    }

    @Override
    public void registerModels() 
    {
        Main.proxy.registerItemRenderer(Item.getItemFromBlock(this), 0, "inventory");
    }
    
    @Override
    public boolean isOpaqueCube(IBlockState state) {
        
        return this.isFullCube(state);
    }
    @Override
    public boolean isFullCube(IBlockState state) {
        
        return (!this.blockMaterial.isSolid() ||
                !this.blockMaterial.blocksLight() ||
                !this.blockMaterial.isOpaque()) ? false : true;
    }
     
    @Override
    public boolean canRenderInLayer(IBlockState state,
            BlockRenderLayer layer) {
        
        return (layer == BlockRenderLayer.CUTOUT ||
                layer == BlockRenderLayer.TRANSLUCENT);
    }
    
}
 

 

 

fig_box.json - blockstates folder

Spoiler
Quote

{
    "forge_marker": 1,
    "defaults": {
        "model": "forge:multi-layer",
        "custom": {
            "base": "tf:fig_box#base",
            "Mipped Cutout": "tf:fig_box#base",
            "Translucent": "tf:fig_box#trans"
        },
        "transform": "forge:default-block"
    },
    "variants": {
        "normal": [{}],
        "inventory": [{}],
        "base": [{
            "model": "tf:tamanor/fig_box"
        }],
        "trans": [{
            "model": "tf:tamanor/fig_tama"
        }]
    }
}

 

 

fig_tama.json - models folder

Spoiler
Quote

{
    "__comment": "Designed by Tamanor with Cubik Studio - https://cubik.studio",
    "textures": {
        "Tiny_Fig": "tf:blocks/fig_tama",
        "particle": "tf:blocks/fig_tama"
    },
    "elements": [      
        {
            "__comment": "Leg_Right",
            "from": [ 8.012199, 0.1136, 7.7089 ],
            "to": [ 8.5722, 1.7936, 8.2689 ],
            "faces": {
                "down": { "uv": [ 6, 12, 7, 13 ], "texture": "#Tiny_Fig", "cullface": "down" },
                "up": { "uv": [ 5, 12, 6, 13 ], "texture": "#Tiny_Fig", "cullface": "up" },
                "north": { "uv": [ 5, 13, 6, 16 ], "texture": "#Tiny_Fig", "cullface": "north" },
                "south": { "uv": [ 7, 13, 8, 16 ], "texture": "#Tiny_Fig", "cullface": "south" },
                "west": { "uv": [ 6, 13, 7, 16 ], "texture": "#Tiny_Fig", "cullface": "west" },
                "east": { "uv": [ 4, 13, 5, 16 ], "texture": "#Tiny_Fig", "cullface": "east" }
            }
        },
        {
            "__comment": "Arm_Left",
            "from": [ 7.0322, 1.7936, 7.7089 ],
            "to": [ 7.4522, 3.4736, 8.2689 ],
            "faces": {
                "down": { "uv": [ 9.75, 12, 10.5, 13 ], "texture": "#Tiny_Fig", "cullface": "down" },
                "up": { "uv": [ 9, 12, 9.75, 13 ], "texture": "#Tiny_Fig", "cullface": "up" },
                "north": { "uv": [ 9, 13, 9.75, 16 ], "texture": "#Tiny_Fig", "cullface": "north" },
                "south": { "uv": [ 10.75, 13, 11.5, 16 ], "texture": "#Tiny_Fig", "cullface": "south" },
                "west": { "uv": [ 9.75, 13, 10.75, 16 ], "texture": "#Tiny_Fig", "cullface": "west" },
                "east": { "uv": [ 8, 13, 9, 16 ], "texture": "#Tiny_Fig", "cullface": "east" }
            }
        },
        {
            "__comment": "Arm_Right",
            "from": [ 8.5722, 1.7936, 7.7089 ],
            "to": [ 8.9922, 3.4736, 8.2689 ],
            "faces": {
                "down": { "uv": [ 11.75, 4, 12.5, 5 ], "texture": "#Tiny_Fig", "cullface": "down" },
                "up": { "uv": [ 11, 4, 11.75, 5 ], "texture": "#Tiny_Fig", "cullface": "up" },
                "north": { "uv": [ 11, 5, 11.75, 8 ], "texture": "#Tiny_Fig", "cullface": "north" },
                "south": { "uv": [ 12.75, 5, 13.5, 8 ], "texture": "#Tiny_Fig", "cullface": "south" },
                "west": { "uv": [ 11.75, 5, 12.75, 8 ], "texture": "#Tiny_Fig", "cullface": "west" },
                "east": { "uv": [ 10, 5, 11, 8 ], "texture": "#Tiny_Fig", "cullface": "east" }
            }
        },
        {
            "__comment": "Head",
            "from": [ 6.2622, 3.5156, 6.3789 ],
            "to": [ 9.6222, 6.8756, 9.738899 ],
            "faces": {
                "down": { "uv": [ 4, 0, 6, 2 ], "texture": "#Tiny_Fig", "cullface": "down" },
                "up": { "uv": [ 2, 0, 4, 2 ], "texture": "#Tiny_Fig", "cullface": "up" },
                "north": { "uv": [ 2, 2, 4, 4 ], "texture": "#Tiny_Fig", "cullface": "north" },
                "south": { "uv": [ 6, 2, 8, 4 ], "texture": "#Tiny_Fig", "cullface": "south" },
                "west": { "uv": [ 4, 2, 6, 4 ], "texture": "#Tiny_Fig", "cullface": "west" },
                "east": { "uv": [ 0, 2, 2, 4 ], "texture": "#Tiny_Fig", "cullface": "east" }
            }
        },
        {
            "__comment": "Body",
            "from": [ 7.4522, 1.7936, 7.7089 ],
            "to": [ 8.57224201, 3.4736, 8.2342689 ],
            "faces": {
                "down": { "uv": [ 7, 4, 9, 5 ], "texture": "#Tiny_Fig", "cullface": "down" },
                "up": { "uv": [ 5, 5, 7, 4 ], "texture": "#Tiny_Fig", "cullface": "up" },
                "north": { "uv": [ 5, 5, 7, 8 ], "texture": "#Tiny_Fig", "cullface": "north" },
                "south": { "uv": [ 8, 5, 10, 8 ], "texture": "#Tiny_Fig", "cullface": "south" },
                "west": { "uv": [ 7, 5, 8, 8 ], "texture": "#Tiny_Fig", "cullface": "west" },
                "east": { "uv": [ 4, 5, 5, 8 ], "texture": "#Tiny_Fig", "cullface": "east" }
            }
        },
        {
            "__comment": "Leg_Left",
            "from": [ 7.4522, 0.1136, 7.7089 ],
            "to": [ 8.012123499, 1.7923436, 8.2689 ],
            "faces": {
                "down": { "uv": [ 6, 12, 7, 13 ], "texture": "#Tiny_Fig", "cullface": "down" },
                "up": { "uv": [ 5, 12, 6, 13 ], "texture": "#Tiny_Fig", "cullface": "up" },
                "north": { "uv": [ 5, 13, 6, 16 ], "texture": "#Tiny_Fig", "cullface": "north" },
                "south": { "uv": [ 7, 13, 8, 16 ], "texture": "#Tiny_Fig", "cullface": "south" },
                "west": { "uv": [ 6, 13, 7, 16 ], "texture": "#Tiny_Fig", "cullface": "west" },
                "east": { "uv": [ 4, 13, 5, 16 ], "texture": "#Tiny_Fig", "cullface": "east" }
            }
        },
        {
            "__comment": "Hat_Right",
            "from": [ 9.835, 3.3326, 6.15 ],
            "to": [ 9.836, 7.1294, 9.9468 ],
            "faces": {
                "east": { "uv": [ 8, 2, 210, 4 ], "texture": "#Tiny_Fig", "cullface": "east" }
            }
        },
        {
            "__comment": "Hat_Left",
            "from": [ 6.036, 3.3326, 6.15 ],
            "to": [ 6.023437, 7.1294, 9.9468 ],
            "faces": {
                "west": { "uv": [ 12, 2, 14, 4 ], "texture": "#Tiny_Fig", "cullface": "west" }
            }
        },
        {
            "__comment": "Hat_Back",
            "from": [ 6.0363, 3.3326, 9.948999 ],
            "to": [ 9.833234099, 7.1294, 9.95 ],
            "faces": {
                "south": { "uv": [ 14, 2, 16, 4 ], "texture": "#Tiny_Fig", "cullface": "south" }
            }
        },
        {
            "__comment": "Hat_Top",
            "from": [ 6.0363, 7.13, 6.15 ],
            "to": [ 9.833023499, 7.131, 9.9468 ],
            "faces": {
                "up": { "uv": [ 10, 0, 12, 2 ], "texture": "#Tiny_Fig", "cullface": "up", "rotation": 180 }
            }
        },
        {
            "__comment": "Hat_Bottom",
            "from": [ 6.0363, 3.33, 6.15 ],
            "to": [ 9.833234099, 3.331, 9.9468 ],
            "faces": {
                "down": { "uv": [ 12, 0, 14, 2 ], "texture": "#Tiny_Fig", "cullface": "down" }
            }
        },
        {
            "__comment": "Hat_Front",
            "from": [ 6.0363, 3.3326, 6.15 ],
            "to": [ 9.833023499, 7.1294, 6.151 ],
            "faces": {
                "north": { "uv": [ 10, 2, 12, 4 ], "texture": "#Tiny_Fig", "cullface": "north" },
                "south": { "uv": [ 10, 2, 12, 4 ], "texture": "#Tiny_Fig", "cullface": "south" }
            }
        }
    ],
    "display": {
        "thirdperson_righthand": {
            "rotation":  [ 68, 0, 0 ],
            "translation":  [ 11.5, 1.5, 6.5 ]
        },
        "gui": {
            "translation":  [ 0, 6, 0 ],
            "scale":  [ 1.5, 1.5, 1.5 ]
        },
        "ground": {
            "translation":  [ 0, 7.5, 0 ],
            "scale":  [ 3.5, 3.5, 3.5 ]
        }
    }
}

 

 

fig_box.json  - models folder

Spoiler
Quote

{
    "__comment": "Designed by Tamanor with Cubik Studio - https://cubik.studio",
    "textures": {
        "particle": "tf:blocks/fig_box",
        "box": "tf:blocks/fig_box"
    },
    "elements": [      
        {
            "__comment": "Box_Bottom",
            "from": [ 2345, 0, 26 ],
            "to": [ 12341, 0.1, 10 ],
            "faces": {
                "down": { "uv": [ 5, 6, 8, 8 ], "texture": "#box", "cullface": "down" },
                "up": { "uv": [ 5, 6, 8, 8 ], "texture": "#box", "cullface": "up" },
                "north": { "uv": [ 5, 6.5, 8, 7 ], "texture": "#box", "cullface": "north" },
                "south": { "uv": [ 5, 6.5, 8, 7 ], "texture": "#box", "cullface": "south" },
                "west": { "uv": [ 5, 6.5, 8, 7 ], "texture": "#box", "cullface": "west" },
                "east": { "uv": [ 5, 6.5, 8, 7 ], "texture": "#box", "cullface": "east" }
            }
        },
        {
            "__comment": "Box_Back",
            "from": [ 235, 0.09999999, 10 ],
            "to": [ 112, 8, 10.001 ],
            "faces": {
                "north": { "uv": [ 0.5, 2, 3.5, 6 ], "texture": "#box", "cullface": "north" },
                "south": { "uv": [ 0.5, 2, 3.5, 6 ], "texture": "#box", "cullface": "south" }
            }
        },
        {
            "__comment": "Box_Top",
            "from": [ 235, 8, 6 ],
            "to": [ 211, 8.001, 10 ],
            "faces": {
                "down": { "uv": [ 5, 0, 8, 2 ], "texture": "#box" },
                "up": { "uv": [ 5, 2, 8, 0 ], "texture": "#box" },
                "north": { "uv": [ 0, 0, 6, 0 ], "texture": "#box" },
                "south": { "uv": [ 0, 0, 6, 0 ], "texture": "#box" },
                "west": { "uv": [ 0, 0, 4, 0 ], "texture": "#box" },
                "east": { "uv": [ 0, 0, 4, 0 ], "texture": "#box" }
            }
        },
        {
            "__comment": "Box_Side_Right",
            "from": [ 121, 0.209999999, 6 ],
            "to": [ 11.001, 8, 10 ],
            "faces": {
                "west": { "uv": [ 5, 2, 3, 6 ], "texture": "#box", "cullface": "west" },
                "east": { "uv": [ 3, 2, 5, 6 ], "texture": "#box", "cullface": "east" }
            }
        },
        {
            "__comment": "Box_Side_Left",
            "from": [ 5, 0.209999999, 6 ],
            "to": [ 5.001, 8, 10 ],
            "faces": {
                "west": { "uv": [ 8, 2, 10, 6 ], "texture": "#box", "cullface": "west" },
                "east": { "uv": [ 10, 2, 8, 6 ], "texture": "#box", "cullface": "east" }
            }
        },
        {
            "__comment": "Box_Front",
            "from": [ 5, 0.0999923999, 6 ],
            "to": [ 11, 8, 6.001 ],
            "faces": {
                "north": { "uv": [ 5, 2, 7.96875, 5.993567 ], "texture": "#box", "cullface": "north" },
                "south": { "uv": [ 5, 2, 8.03125, 5.9625 ], "texture": "#box", "cullface": "south" }
            }
        }
    ],
    "display": {
        "thirdperson_righthand": {
            "rotation":  [ 68, 0, 0 ],
            "translation":  [ 11.5, 1.5, 6.5 ]
        },
        "gui": {
            "translation":  [ 0, 6, 0 ],
            "scale":  [ 1.5, 1.5, 1.5 ]
        },
        "ground": {
            "translation":  [ 0, 7.5, 0 ],
            "scale":  [ 3.5, 3.5, 3.5 ]
        }
    }
}

 

texture names

fig_box

fig_tama

Edited by tamanor
fig_box.json edit
Link to comment
Share on other sites

There should be a warning about missing block state or texture in your console. Can you post that?

 

Generally, in your inventory it only looks at the inventory state and processes the model for that, but your actual block might have multiple other states and something is probably wrong in your block state file or your model file or your associated texture. Usually just a typo or mal-formed JSON.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

You should always run your JSON files through a JSON validator since the Java IDE doesn't really flag errors (although there are probably JSON editor plugins for that). So I always put it through a web-based validator. It is really easy to miss a comma or bracket in a JSON and have it messed up.

 

I put your fig_box.json JSON file through a validator (https://jsonlint.com/) and it has an error:

 

Error: Parse error on line 10:
..., 26],			"to": [1 2341, 0.1, 10],			"
----------------------^
Expecting 'EOF', '}', ',', ']', got 'NUMBER'

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

7 minutes ago, jabelar said:

You should always run your JSON files through a JSON validator since the Java IDE doesn't really flag errors (although there are probably JSON editor plugins for that). So I always put it through a web-based validator. It is really easy to miss a comma or bracket in a JSON and have it messed up.

 

I put your fig_box.json JSON file through a validator (https://jsonlint.com/) and it has an error:

 


Error: Parse error on line 10:
..., 26],			"to": [1 2341, 0.1, 10],			"
----------------------^
Expecting 'EOF', '}', ',', ']', got 'NUMBER'

Hi I will take that Json validator now, But as for the Console i could not see any errors but ill post it for you

 

Console

Spoiler
Quote

2018-10-06 20:49:23,335 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2018-10-06 20:49:23,342 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[20:49:23] [main/INFO] [GradleStart]: Extra: []
[20:49:23] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/tamaw/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[20:49:23] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[20:49:23] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[20:49:23] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[20:49:23] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[20:49:23] [main/INFO] [FML]: Forge Mod Loader version 14.23.1.2578 for Minecraft 1.12.2 loading
[20:49:23] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_181, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_181
[20:49:23] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[20:49:23] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[20:49:23] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[20:49:23] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[20:49:23] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[20:49:23] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[20:49:23] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:49:23] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[20:49:23] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[20:49:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:49:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:49:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
2018-10-06 20:49:24,496 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2018-10-06 20:49:25,083 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2018-10-06 20:49:25,085 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[20:49:27] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[20:49:27] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:49:27] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[20:49:27] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[20:49:27] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[20:49:27] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[20:49:27] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[20:49:29] [main/INFO]: Setting user: Player649
[20:49:36] [main/WARN]: Skipping bad option: lastServer:
[20:49:36] [main/INFO]: LWJGL Version: 2.9.4
[20:49:38] [main/INFO] [FML]: -- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_181, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 802048840 bytes (764 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: 
    Loaded coremods (and transformers): 
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 411.63' Renderer: 'GeForce GTX 1070/PCIe/SSE2'
[20:49:38] [main/INFO] [FML]: MinecraftForge v14.23.1.2578 Initialized
[20:49:38] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[20:49:38] [main/INFO] [FML]: Replaced 1036 ore ingredients
[20:49:38] [main/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[20:49:38] [main/INFO] [FML]: Searching G:\MineCraft Modding\1.12\1.12.2\Collectors\run\mods for mods
[20:49:39] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[20:49:39] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, tf] at CLIENT
[20:49:39] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, tf] at SERVER
[20:49:40] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Tiny Figs Mod
[20:49:40] [main/INFO] [FML]: Processing ObjectHolder annotations
[20:49:40] [main/INFO] [FML]: Found 1168 ObjectHolder annotations
[20:49:40] [main/INFO] [FML]: Identifying ItemStackHolder annotations
[20:49:40] [main/INFO] [FML]: Found 0 ItemStackHolder annotations
[20:49:40] [main/INFO] [FML]: Configured a dormant chunk cache size of 0
[20:49:40] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[20:49:40] [main/INFO] [FML]: Applying holder lookups
[20:49:40] [main/INFO] [FML]: Holder lookups applied
[20:49:40] [main/INFO] [FML]: Applying holder lookups
[20:49:40] [main/INFO] [FML]: Holder lookups applied
[20:49:40] [main/INFO] [FML]: Applying holder lookups
[20:49:40] [main/INFO] [FML]: Holder lookups applied
[20:49:40] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 132036792 nanos
[20:49:40] [main/INFO] [FML]: OBJLoader: Domain tf has been added.
[20:49:40] [main/INFO] [FML]: Applying holder lookups
[20:49:40] [main/INFO] [FML]: Holder lookups applied
[20:49:40] [main/INFO] [FML]: Injecting itemstacks
[20:49:40] [main/INFO] [FML]: Itemstack injection complete
[20:49:41] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: OUTDATED Target: 14.23.5.2768
[20:49:53] [Sound Library Loader/INFO]: Starting up SoundSystem...
[20:49:53] [Thread-5/INFO]: Initializing LWJGL OpenAL
[20:49:53] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[20:49:53] [Thread-5/INFO]: OpenAL initialized.
[20:49:53] [Sound Library Loader/INFO]: Sound engine started
[20:49:58] [main/INFO] [FML]: Max texture size: 16384
[20:49:58] [main/INFO]: Created: 1024x512 textures-atlas
[20:50:01] [main/INFO] [FML]: Applying holder lookups
[20:50:01] [main/INFO] [FML]: Holder lookups applied
[20:50:01] [main/INFO] [FML]: Injecting itemstacks
[20:50:01] [main/INFO] [FML]: Itemstack injection complete
[20:50:01] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[20:50:01] [main/WARN]: Skipping bad option: lastServer:
[20:50:01] [main/INFO]: Narrator library for x64 successfully loaded
[20:50:03] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[21:09:41] [Server thread/INFO]: Starting integrated minecraft server version 1.12.2
[21:09:41] [Server thread/INFO]: Generating keypair
[21:09:41] [Server thread/INFO] [FML]: Injecting existing registry data into this server instance
[21:09:41] [Server thread/INFO] [FML]: Registry Block: Found a missing id from the world tf:tinyfigs_box
[21:09:42] [Server thread/INFO] [FML]: Applying holder lookups
[21:09:42] [Server thread/INFO] [FML]: Holder lookups applied
[21:09:42] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@1b0ea92b)
[21:09:42] [Server thread/INFO]: Loaded 488 advancements
[21:09:43] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@1b0ea92b)
[21:09:43] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@1b0ea92b)
[21:09:43] [Server thread/INFO]: Preparing start region for level 0
[21:09:44] [Server thread/INFO]: Preparing spawn area: 24%
[21:09:45] [Server thread/INFO]: Preparing spawn area: 65%
[21:09:45] [Server thread/INFO]: Changing view distance to 12, from 10
[21:09:47] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[21:09:47] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[21:09:47] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : minecraft@1.12.2,tf@0.1,FML@8.0.99.99,forge@14.23.1.2578,mcp@9.42
[21:09:47] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[21:09:47] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[21:09:47] [Server thread/INFO]: Player649[local:E:470fdf34] logged in with entity id 318 at (139.52678528220977, 80.0, 254.14139583423164)
[21:09:47] [Server thread/INFO]: Player649 joined the game
[21:09:48] [Server thread/INFO]: Saving and pausing game...
[21:09:48] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[21:09:49] [Server thread/INFO]: Saving chunks for level 'New World'/the_nether
[21:09:49] [Server thread/INFO]: Saving chunks for level 'New World'/the_end
[21:09:50] [Server thread/INFO]: Saving and pausing game...
[21:09:50] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[21:09:50] [Server thread/INFO]: Saving chunks for level 'New World'/the_nether
[21:09:51] [Server thread/INFO]: Saving chunks for level 'New World'/the_end
[21:10:41] [main/INFO]: [CHAT] Saved screenshot as 2018-10-06_21.10.41.png
[21:10:50] [main/INFO]: [CHAT] Saved screenshot as 2018-10-06_21.10.50.png
[21:10:52] [main/INFO]: [CHAT] Saved screenshot as 2018-10-06_21.10.51.png
[21:10:54] [main/INFO]: [CHAT] Saved screenshot as 2018-10-06_21.10.54.png
[21:11:52] [main/INFO]: [CHAT] Unknown command. Try /help for a list of commands
[21:11:56] [Server thread/INFO]: [Player649: Changing to clear weather]
[21:11:56] [main/INFO]: [CHAT] Changing to clear weather
[21:12:01] [Server thread/INFO]: [Player649: Set the time to 1000]
[21:12:01] [main/INFO]: [CHAT] Set the time to 1000
[21:12:05] [main/INFO]: [CHAT] Saved screenshot as 2018-10-06_21.12.05.png
[21:12:10] [main/INFO]: [CHAT] Saved screenshot as 2018-10-06_21.12.09.png
[21:24:19] [Server thread/INFO]: Saving and pausing game...
[21:24:19] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[21:24:19] [Server thread/INFO]: Saving chunks for level 'New World'/the_nether
[21:24:19] [Server thread/INFO]: Saving chunks for level 'New World'/the_end
[21:24:20] [main/INFO]: Stopping!
[21:24:20] [Server thread/INFO]: Stopping server
[21:24:20] [Server thread/INFO]: Saving players
[21:24:20] [Server thread/INFO]: Saving worlds
[21:24:20] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[21:24:20] [Server thread/INFO]: Saving chunks for level 'New World'/the_nether
[21:24:20] [Server thread/INFO]: Saving chunks for level 'New World'/the_end
[21:24:20] [Server thread/INFO] [FML]: Unloading dimension 0
[21:24:20] [Server thread/INFO] [FML]: Unloading dimension -1
[21:24:20] [Server thread/INFO] [FML]: Unloading dimension 1
[21:24:20] [Server thread/INFO] [FML]: Applying holder lookups
[21:24:20] [Server thread/INFO] [FML]: Holder lookups applied
[21:24:20] [main/INFO]: SoundSystem shutting down...
[21:24:20] [main/WARN]: Author: Paul Lamb, www.paulscode.com
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
 

 

 

Link to comment
Share on other sites

2 minutes ago, jabelar said:

I already tried the validator and posted the result. You have an error (I think missing a comma) in your JSON. But it is good to get familiar with it yourself.

O_o which json did you do it to they all came back Valid JSON to me

Link to comment
Share on other sites

18 minutes ago, jabelar said:

I put your fig_box.json JSON file through a validator (https://jsonlint.com/) and it has an error:

Jsonlint. I recommend installing a JSON plugin for your IDE or using SublimeText to work with JSON. Both provide syntax highlighting & SublimeText has a number of other useful features

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

I see some errors when I do it. It may be a problem with the way you're editing your file, or maybe the way you're pasting it. For example, if I take the code from your post and cut and paste directly I get some errors like hidden characters and stuff. Sometimes there are invisible characters and formatting that can mess things up. Like it is telling me that one line has a hidden /udeff character whatever that means.

 

On the other hand, it may be that your code is good and the way I'm cutting and pasting doesn't represent.

Edited by jabelar

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

3 minutes ago, Cadiboo said:

Jsonlint. I recommend installing a JSON plugin for your IDE or using SublimeText to work with JSON. Both provide syntax highlighting & SublimeText has a number of other useful features

 

Yeah, I use a plugin just called "JSON Editor". But yeah best way is through a plugin in Eclipse. Doing it in external editor can cause trouble like UTF-8 incompatibilities and such.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

3 minutes ago, jabelar said:

It may be a problem with the way you're editing your file, or maybe the way you're pasting it. For example, if I take the code from your post and cut and paste directly I get some errors like hidden characters and stuff. Sometimes there are invisible characters and formatting that can mess things up.

 

On the other hand, it may be that your code is good and the way I'm cutting and pasting doesn't represent.

Yeah Sorry my fault i just recopied the Json and edited the post with the working one I just copied it to test and there no errors :/ was hoping it was gonna be an error but does not seems like it wondering if I'm missing something from my Json which is why it not working never messed with "forge:multi-layer" before and from the examples i have seen on the internet mine seems fine.

 

Ill check out this Json editor for eclipse and see

Edited by tamanor
Link to comment
Share on other sites

Your log should also contain any JSON errors

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

1 hour ago, jabelar said:

Did you register the block model? I see you have a method that is named to indicate that the item model is registered, but not clear if you registered the block model itself.

Yes it should be i mean if use this in the json file it loads the outer model when i place it. so it seems it something with the Json file but not 100% sure

 

 

Spoiler
Quote

{
    "variants": {
        "normal":{"model": "tf:tamanor/fig_box"}
    }
    
}

 

 

Edited by tamanor
Link to comment
Share on other sites

is it somthing to do with the         "normal": [{}],

		"normal": [{}],

part of the Json if i delete that line the console throws an error but It does not seems to be doing anything if i add "model": "tf:tamanor/figs_box" into the normal area then it loads the outside part of the model when place but not the inside like it does in the inventory other expamples i have seen they do not use the "normal": part for the multi-layer but i just get errors when its not there.

Link to comment
Share on other sites

Can you post your project as a GitHub repository?

Edited by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

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.