Jump to content

Recommended Posts

Posted

So I have this block model, and it's giving me trouble:

 

{

    "__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)",

    "textures": {

        "particle": "blocks/wool_colored_light_blue",

        "0": "blocks/wool_colored_light_blue",

        "1": "tm:blocks/coord_transporter/blue",

        "2": "tm:blocks/coord_transporter/red",

        "3": "tm:blocks/coord_transporter/green",

        "4": "blocks/glass"

    },

    "elements": [

        {

            "name": "Bottom Long",

            "from": [ 14.0, 0.0, 0.0 ],

            "to": [ 16.0, 2.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] }

            }

        },

        {

            "name": "Bottom Long",

            "from": [ 0.0, 0.0, 0.0 ],

            "to": [ 2.0, 2.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] }

            }

        },

        {

            "name": "Bottom Short",

            "from": [ 2.0, 0.0, 0.0 ],

            "to": [ 14.0, 2.0, 2.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }

            }

        },

        {

            "name": "Bottom Short",

            "from": [ 2.0, 0.0, 14.0 ],

            "to": [ 14.0, 2.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }

            }

        },

        {

            "name": "Side",

            "from": [ 14.0, 2.0, 14.0 ],

            "to": [ 16.0, 14.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }

            }

        },

        {

            "name": "Side",

            "from": [ 0.0, 2.0, 14.0 ],

            "to": [ 2.0, 14.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }

            }

        },

        {

            "name": "Side",

            "from": [ 14.0, 2.0, 1.4901161193847656E-8 ],

            "to": [ 16.0, 14.0, 2.000000014901161 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }

            }

        },

        {

            "name": "Side",

            "from": [ 0.0, 2.0, 0.0 ],

            "to": [ 2.0, 14.0, 2.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }

            }

        },

        {

            "name": "Top Long",

            "from": [ 0.0, 14.0, 0.0 ],

            "to": [ 2.0, 16.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] }

            }

        },

        {

            "name": "Top Long",

            "from": [ 14.0, 14.0, 0.0 ],

            "to": [ 16.0, 16.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] }

            }

        },

        {

            "name": "Top Short",

            "from": [ 2.0, 14.0, 14.0 ],

            "to": [ 14.0, 16.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }

            }

        },

        {

            "name": "Top Short",

            "from": [ 2.0, 14.0, 0.0 ],

            "to": [ 14.0, 16.0, 2.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }

            }

        },

        {

            "name": "X Axis",

            "from": [ 7.499999992549419, 7.500000007450581, 4.0 ],

            "to": [ 8.49999999254942, 8.50000000745058, 12.0 ],

            "faces": {

                "north": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] },

                "south": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "west": { "texture": "#1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] },

                "up": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 8.0 ] },

                "down": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 8.0 ] }

            }

        },

        {

            "name": "Y Axis",

            "from": [ 4.0, 7.499999992549419, 7.499999992549419 ],

            "to": [ 12.0, 8.49999999254942, 8.49999999254942 ],

            "faces": {

                "north": { "texture": "#2", "uv": [ 0.0, 0.0, 8.0, 1.0 ] },

                "east": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "south": { "texture": "#2", "uv": [ 0.0, 0.0, 8.0, 1.0 ] },

                "west": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "up": { "texture": "#2", "uv": [ 0.0, 0.0, 8.0, 1.0 ] },

                "down": { "texture": "#2", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }

            }

        },

        {

            "name": "Z Axis",

            "from": [ 7.500000007450581, 4.0, 7.500000007450581 ],

            "to": [ 8.50000000745058, 12.0, 8.50000000745058 ],

            "faces": {

                "north": { "texture": "#3", "uv": [ 0.0, 0.0, 1.0, 8.0 ] },

                "east": { "texture": "#3", "uv": [ 0.0, 0.0, 1.0, 8.0 ] },

                "south": { "texture": "#3", "uv": [ 0.0, 0.0, 1.0, 8.0 ] },

                "west": { "texture": "#3", "uv": [ 0.0, 0.0, 1.0, 8.0 ] },

                "up": { "texture": "#3", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "down": { "texture": "#3", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }

            }

        },

        {

            "name": "Back",

            "from": [ 2.0, 2.0, 0.6999999955296516 ],

            "to": [ 14.0, 14.0, 1.299999974668026 ],

            "faces": {

                "north": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "east": { "texture": "#4", "uv": [ 0.0, 0.0, 0.3999999910593033, 14.0 ] },

                "south": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "west": { "texture": "#4", "uv": [ 0.0, 0.0, 0.3999999910593033, 14.0 ] },

                "up": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.3999999910593033 ] },

                "down": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.3999999910593033 ] }

            }

        },

        {

            "name": "Front",

            "from": [ 2.0, 2.0, 14.700000010430813 ],

            "to": [ 14.0, 14.0, 15.30000001937151 ],

            "faces": {

                "north": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "east": { "texture": "#4", "uv": [ 0.0, 0.0, 0.3999999910593033, 14.0 ] },

                "south": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "west": { "texture": "#4", "uv": [ 0.0, 0.0, 0.3999999910593033, 14.0 ] },

                "up": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.3999999910593033 ] },

                "down": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.3999999910593033 ] }

            }

        },

        {

            "name": "Down",

            "from": [ 2.0, 0.7000000104308128, 2.0 ],

            "to": [ 14.0, 1.3000000193715096, 14.0 ],

            "faces": {

                "north": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "east": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "south": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "west": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "up": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "down": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] }

            }

        },

        {

            "name": "Up",

            "from": [ 2.0, 14.699999950826168, 2.0 ],

            "to": [ 14.0, 15.299999959766865, 14.0 ],

            "faces": {

                "north": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "east": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "south": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "west": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "up": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "down": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] }

            }

        },

        {

            "name": "Left",

            "from": [ 0.7000000402331352, 2.0, 2.0 ],

            "to": [ 1.300000049173832, 14.0, 14.0 ],

            "faces": {

                "north": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] },

                "east": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "south": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] },

                "west": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "up": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] },

                "down": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] }

            }

        },

        {

            "name": "Right",

            "from": [ 14.700000010430813, 2.0, 2.0 ],

            "to": [ 15.300000004470348, 14.0, 14.0 ],

            "faces": {

                "north": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] },

                "east": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "south": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] },

                "west": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "up": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] },

                "down": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] }

            }

        }

    ]

}

 

 

I am using 1.8 and my issue is that the block is showing the black and purple checkered pattern when it's in the world. The Block renders correctly in my inventory, though.

I get the error:

java.lang.IllegalStateException: Not a JSON Object: "blocks/wool_colored_light_blue"

Posted

Block registration code:

 

package avi.teleport.mod.init;

 

import avi.teleport.mod.Reference;

import avi.teleport.mod.blocks.Coord_Transporter;

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.client.Minecraft;

import net.minecraft.client.resources.model.ModelResourceLocation;

import net.minecraft.item.Item;

import net.minecraftforge.fml.common.registry.GameRegistry;

 

public class TeleportBlocks {

 

public static Block coord_transporter;

 

public static void init(){

coord_transporter = new Coord_Transporter(Material.rock, "coord_transporter");

}

 

public static void register() {

GameRegistry.registerBlock(coord_transporter, coord_transporter.getUnlocalizedName().substring(5));

}

 

public static void registerRenders() {

registerRender(coord_transporter);

}

 

public static void registerRender(Block block) {

Item item = Item.getItemFromBlock(block);

Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory"));

}

}

 

 

 

Then the block constructor is here:

 

package avi.teleport.mod.blocks;

 

import avi.teleport.mod.TeleportMod;

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.util.EnumWorldBlockLayer;

 

public class Coord_Transporter extends Block {

 

public Coord_Transporter(Material materialIn, String name) {

super(materialIn);

this.setUnlocalizedName(name);

this.setCreativeTab(TeleportMod.tabTeleport);

}

 

@Override

    public boolean isOpaqueCube()

    {

        return false;

    }

 

@Override

public boolean isFullCube() {

return false;

}

 

@Override

public EnumWorldBlockLayer getBlockLayer() {

return EnumWorldBlockLayer.CUTOUT;

}

}

 

 

 

My item json is here:

 

{

    "parent": "tm:block/coord_transporter",

    "display": {

        "thirdperson": {

            "rotation": [ 10, -45, 170 ],

            "translation": [ 0, 1.5, -2.75 ],

            "scale": [ 0.375, 0.375, 0.375 ]

        }

    }

}

 

 

 

My block model is this:

 

{

    "__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)",

    "textures": {

        "particle": "blocks/wool_colored_light_blue",

        "0": "blocks/wool_colored_light_blue",

        "1": "tm:blocks/coord_transporter/blue",

        "2": "tm:blocks/coord_transporter/red",

        "3": "tm:blocks/coord_transporter/green",

        "4": "blocks/glass"

    },

    "elements": [

        {

            "name": "Bottom Long",

            "from": [ 14.0, 0.0, 0.0 ],

            "to": [ 16.0, 2.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] }

            }

        },

        {

            "name": "Bottom Long",

            "from": [ 0.0, 0.0, 0.0 ],

            "to": [ 2.0, 2.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] }

            }

        },

        {

            "name": "Bottom Short",

            "from": [ 2.0, 0.0, 0.0 ],

            "to": [ 14.0, 2.0, 2.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }

            }

        },

        {

            "name": "Bottom Short",

            "from": [ 2.0, 0.0, 14.0 ],

            "to": [ 14.0, 2.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }

            }

        },

        {

            "name": "Side",

            "from": [ 14.0, 2.0, 14.0 ],

            "to": [ 16.0, 14.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }

            }

        },

        {

            "name": "Side",

            "from": [ 0.0, 2.0, 14.0 ],

            "to": [ 2.0, 14.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }

            }

        },

        {

            "name": "Side",

            "from": [ 14.0, 2.0, 1.4901161193847656E-8 ],

            "to": [ 16.0, 14.0, 2.000000014901161 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }

            }

        },

        {

            "name": "Side",

            "from": [ 0.0, 2.0, 0.0 ],

            "to": [ 2.0, 14.0, 2.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 14.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }

            }

        },

        {

            "name": "Top Long",

            "from": [ 0.0, 14.0, 0.0 ],

            "to": [ 2.0, 16.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] }

            }

        },

        {

            "name": "Top Long",

            "from": [ 14.0, 14.0, 0.0 ],

            "to": [ 16.0, 16.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 16.0 ] }

            }

        },

        {

            "name": "Top Short",

            "from": [ 2.0, 14.0, 14.0 ],

            "to": [ 14.0, 16.0, 16.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }

            }

        },

        {

            "name": "Top Short",

            "from": [ 2.0, 14.0, 0.0 ],

            "to": [ 14.0, 16.0, 2.0 ],

            "faces": {

                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },

                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }

            }

        },

        {

            "name": "X Axis",

            "from": [ 7.499999992549419, 7.500000007450581, 4.0 ],

            "to": [ 8.49999999254942, 8.50000000745058, 12.0 ],

            "faces": {

                "north": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] },

                "south": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "west": { "texture": "#1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] },

                "up": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 8.0 ] },

                "down": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 8.0 ] }

            }

        },

        {

            "name": "Y Axis",

            "from": [ 4.0, 7.499999992549419, 7.499999992549419 ],

            "to": [ 12.0, 8.49999999254942, 8.49999999254942 ],

            "faces": {

                "north": { "texture": "#2", "uv": [ 0.0, 0.0, 8.0, 1.0 ] },

                "east": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "south": { "texture": "#2", "uv": [ 0.0, 0.0, 8.0, 1.0 ] },

                "west": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "up": { "texture": "#2", "uv": [ 0.0, 0.0, 8.0, 1.0 ] },

                "down": { "texture": "#2", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }

            }

        },

        {

            "name": "Z Axis",

            "from": [ 7.500000007450581, 4.0, 7.500000007450581 ],

            "to": [ 8.50000000745058, 12.0, 8.50000000745058 ],

            "faces": {

                "north": { "texture": "#3", "uv": [ 0.0, 0.0, 1.0, 8.0 ] },

                "east": { "texture": "#3", "uv": [ 0.0, 0.0, 1.0, 8.0 ] },

                "south": { "texture": "#3", "uv": [ 0.0, 0.0, 1.0, 8.0 ] },

                "west": { "texture": "#3", "uv": [ 0.0, 0.0, 1.0, 8.0 ] },

                "up": { "texture": "#3", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },

                "down": { "texture": "#3", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }

            }

        },

        {

            "name": "Back",

            "from": [ 2.0, 2.0, 0.6999999955296516 ],

            "to": [ 14.0, 14.0, 1.299999974668026 ],

            "faces": {

                "north": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "east": { "texture": "#4", "uv": [ 0.0, 0.0, 0.3999999910593033, 14.0 ] },

                "south": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "west": { "texture": "#4", "uv": [ 0.0, 0.0, 0.3999999910593033, 14.0 ] },

                "up": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.3999999910593033 ] },

                "down": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.3999999910593033 ] }

            }

        },

        {

            "name": "Front",

            "from": [ 2.0, 2.0, 14.700000010430813 ],

            "to": [ 14.0, 14.0, 15.30000001937151 ],

            "faces": {

                "north": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "east": { "texture": "#4", "uv": [ 0.0, 0.0, 0.3999999910593033, 14.0 ] },

                "south": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "west": { "texture": "#4", "uv": [ 0.0, 0.0, 0.3999999910593033, 14.0 ] },

                "up": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.3999999910593033 ] },

                "down": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.3999999910593033 ] }

            }

        },

        {

            "name": "Down",

            "from": [ 2.0, 0.7000000104308128, 2.0 ],

            "to": [ 14.0, 1.3000000193715096, 14.0 ],

            "faces": {

                "north": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "east": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "south": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "west": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "up": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "down": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] }

            }

        },

        {

            "name": "Up",

            "from": [ 2.0, 14.699999950826168, 2.0 ],

            "to": [ 14.0, 15.299999959766865, 14.0 ],

            "faces": {

                "north": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "east": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "south": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "west": { "texture": "#4", "uv": [ 0.0, 0.0, 14.0, 0.4000000059604645 ] },

                "up": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "down": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] }

            }

        },

        {

            "name": "Left",

            "from": [ 0.7000000402331352, 2.0, 2.0 ],

            "to": [ 1.300000049173832, 14.0, 14.0 ],

            "faces": {

                "north": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] },

                "east": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "south": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] },

                "west": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "up": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] },

                "down": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] }

            }

        },

        {

            "name": "Right",

            "from": [ 14.700000010430813, 2.0, 2.0 ],

            "to": [ 15.300000004470348, 14.0, 14.0 ],

            "faces": {

                "north": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] },

                "east": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "south": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] },

                "west": { "texture": "#4", "uv": [ 1.0, 1.0, 15.0, 15.0 ] },

                "up": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] },

                "down": { "texture": "#4", "uv": [ 0.0, 0.0, 0.4000000059604645, 14.0 ] }

            }

        }

    ]

}

 

 

 

And the block state is this:

 

 

{

    "variants": {

        "normal": {"model": "tm:coord_transporter"},

    "particle": "blocks/wool_colored_light_blue"

 

    }

}

 

 

 

Also I looked through your link, and got no helpful information. This because My block renders correctly in the my hotbar, but not in the world.

Posted

In your blockstates file you have "particle": "blocks/wool_colored_light_blue", this is wrong because Minecraft expects each value in the "variants" object to be an array or an object but you've used a string.

 

Particles are only defined in models anyway, so you should delete the line entirely.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.