I'm having a problem I can't figure. My blocks always show with the missing texture texture, and the basic cube model when placed, ignoring the associated json file located at: "src/main/resources/assets/gsr_yatm/models/block/large_copper_heat_sink.json". But, if I copy the file exactly into: "src/main/resources/assets/gsr_yatm/models/item/", it'll render the model and textures correctly for the BlockItem form, oversized in hand and so, but still correctly.
For example the declaration and registration of a block I'm using.
public static final String MODID = "gsr_yatm";
public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MODID);
public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, MODID);
public static final RegistryObject<Block> LARGE_COPPER_HEAT_SINK = BLOCKS.register("large_copper_heat_sink", () -> new Block(BlockBehaviour.Properties.of(Material.STONE)));
public static final RegistryObject<Item> LARGE_COPPER_HEAT_SINK_ITEM = queueForGeneralCreativeTab(ITEMS.register("large_copper_heat_sink", () -> new BlockItem(LARGE_COPPER_HEAT_SINK.get(), new Item.Properties())));
And then in my main class's constructor this's everything.
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
BLOCKS.register(modEventBus);
ITEMS.register(modEventBus);
//MinecraftForge.EVENT_BUS.register(this);
modEventBus.addListener(this::addCreative);
modEventBus.addListener(this::buildContents);
And for reference the aforementioned large_copper_heat_sink.json file:
{
"parent": "gsr_yatm:block/large_heat_sink",
"textures": {
"1": "gsr_yatm:block/large_copper_heat_sink_one",
"2": "gsr_yatm:block/large_copper_heat_sink_two"
}
}
And then finally the parent it references:
{
"credit": "Made with Blockbench",
"textures": {
"particle": "#1"
},
"elements": [
{
"from": [0, 0, 0],
"to": [16, 4, 16],
"faces": {
"north": {"uv": [0, 0, 16, 4], "texture": "#2"},
"east": {"uv": [0, 0, 16, 4], "texture": "#2"},
"south": {"uv": [0, 0, 16, 4], "texture": "#2"},
"west": {"uv": [0, 0, 16, 4], "texture": "#2"},
"up": {"uv": [0, 0, 16, 16], "texture": "#1"},
"down": {"uv": [0, 0, 16, 16], "texture": "#1"}
}
},
{
"from": [4, 4, 4],
"to": [12, 5, 12],
"faces": {
"north": {"uv": [4, 9, 12, 10], "texture": "#1"},
"east": {"uv": [4, 9, 12, 10], "texture": "#1"},
"south": {"uv": [4, 9, 12, 10], "texture": "#1"},
"west": {"uv": [4, 9, 12, 10], "texture": "#1"},
"up": {"uv": [0, 0, 8, 8], "texture": "#1"},
"down": {"uv": [0, 0, 8, 8], "texture": "#1"}
}
},
{
"from": [0, 5, 0],
"to": [16, 6, 16],
"faces": {
"north": {"uv": [0, 6, 16, 7], "texture": "#1"},
"east": {"uv": [0, 6, 16, 7], "texture": "#1"},
"south": {"uv": [0, 6, 16, 7], "texture": "#1"},
"west": {"uv": [0, 6, 16, 7], "texture": "#1"},
"up": {"uv": [0, 0, 16, 16], "texture": "#1"},
"down": {"uv": [0, 0, 16, 16], "texture": "#1"}
}
},
{
"from": [4, 6, 4],
"to": [12, 7, 12],
"faces": {
"north": {"uv": [4, 8, 12, 9], "texture": "#1"},
"east": {"uv": [4, 8, 12, 9], "texture": "#1"},
"south": {"uv": [4, 8, 12, 9], "texture": "#1"},
"west": {"uv": [4, 8, 12, 9], "texture": "#1"},
"up": {"uv": [0, 0, 8, 8], "texture": "#1"},
"down": {"uv": [0, 0, 8, 8], "texture": "#1"}
}
},
{
"from": [0, 7, 0],
"to": [16, 8, 16],
"faces": {
"north": {"uv": [0, 4, 16, 5], "texture": "#1"},
"east": {"uv": [0, 4, 16, 5], "texture": "#1"},
"south": {"uv": [0, 4, 16, 5], "texture": "#1"},
"west": {"uv": [0, 4, 16, 5], "texture": "#1"},
"up": {"uv": [0, 0, 16, 16], "texture": "#1"},
"down": {"uv": [0, 0, 16, 16], "texture": "#1"}
}
},
{
"from": [4, 8, 4],
"to": [12, 9, 12],
"faces": {
"north": {"uv": [4, 7, 12, 8], "texture": "#1"},
"east": {"uv": [4, 7, 12, 8], "texture": "#1"},
"south": {"uv": [4, 7, 12, 8], "texture": "#1"},
"west": {"uv": [4, 7, 12, 8], "texture": "#1"},
"up": {"uv": [0, 0, 8, 8], "texture": "#1"},
"down": {"uv": [0, 0, 8, 8], "texture": "#1"}
}
},
{
"from": [0, 9, 0],
"to": [16, 10, 16],
"faces": {
"north": {"uv": [0, 3, 16, 4], "texture": "#1"},
"east": {"uv": [0, 3, 16, 4], "texture": "#1"},
"south": {"uv": [0, 3, 16, 4], "texture": "#1"},
"west": {"uv": [0, 3, 16, 4], "texture": "#1"},
"up": {"uv": [0, 0, 16, 16], "rotation": 180, "texture": "#1"},
"down": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#1"}
}
},
{
"from": [4, 10, 4],
"to": [12, 11, 12],
"faces": {
"north": {"uv": [4, 6, 12, 7], "texture": "#1"},
"east": {"uv": [4, 6, 12, 7], "texture": "#1"},
"south": {"uv": [4, 6, 12, 7], "texture": "#1"},
"west": {"uv": [4, 6, 12, 7], "texture": "#1"},
"up": {"uv": [0, 0, 8, 8], "texture": "#1"},
"down": {"uv": [0, 0, 8, 8], "texture": "#1"}
}
},
{
"from": [0, 11, 0],
"to": [16, 12, 16],
"faces": {
"north": {"uv": [0, 0, 16, 1], "texture": "#1"},
"east": {"uv": [0, 1, 16, 0], "texture": "#1"},
"south": {"uv": [0, 0, 16, 1], "texture": "#1"},
"west": {"uv": [0, 0, 16, 1], "texture": "#1"},
"up": {"uv": [0, 0, 16, 16], "texture": "#1"},
"down": {"uv": [0, 0, 16, 16], "texture": "#1"}
}
},
{
"from": [4, 12, 4],
"to": [12, 13, 12],
"faces": {
"north": {"uv": [4, 5, 12, 6], "texture": "#1"},
"east": {"uv": [4, 5, 12, 6], "texture": "#1"},
"south": {"uv": [4, 5, 12, 6], "texture": "#1"},
"west": {"uv": [4, 5, 12, 6], "texture": "#1"},
"up": {"uv": [0, 0, 8, 8], "texture": "#1"},
"down": {"uv": [0, 0, 8, 8], "texture": "#1"}
}
},
{
"from": [0, 13, 0],
"to": [16, 14, 16],
"faces": {
"north": {"uv": [0, 1, 16, 2], "texture": "#1"},
"east": {"uv": [0, 1, 16, 2], "texture": "#1"},
"south": {"uv": [0, 1, 16, 2], "texture": "#1"},
"west": {"uv": [0, 1, 16, 2], "texture": "#1"},
"up": {"uv": [0, 0, 16, 16], "rotation": 270, "texture": "#1"},
"down": {"uv": [0, 0, 16, 16], "rotation": 180, "texture": "#1"}
}
},
{
"from": [4, 14, 4],
"to": [12, 15, 12],
"faces": {
"north": {"uv": [4, 4, 12, 5], "texture": "#1"},
"east": {"uv": [4, 4, 12, 5], "texture": "#1"},
"south": {"uv": [4, 4, 12, 5], "texture": "#1"},
"west": {"uv": [4, 4, 12, 5], "texture": "#1"},
"up": {"uv": [0, 0, 8, 8], "texture": "#1"},
"down": {"uv": [0, 0, 8, 8], "texture": "#1"}
}
},
{
"from": [0, 15, 0],
"to": [16, 16, 16],
"faces": {
"north": {"uv": [0, 0, 16, 1], "texture": "#1"},
"east": {"uv": [0, 0, 16, 1], "texture": "#1"},
"south": {"uv": [0, 0, 16, 1], "texture": "#1"},
"west": {"uv": [0, 0, 16, 1], "texture": "#1"},
"up": {"uv": [0, 0, 16, 16], "texture": "#1"},
"down": {"uv": [0, 0, 16, 16], "texture": "#1"}
}
}
]
}
Any help'd be sincerely appreciated,
GSR