models/block/radiation.json_____________________________________________________________________________________________________________________
{
"textures": {
"0": "likedarkness13guns:blocks/radiation"
},
"elements": [{
"name": "Cube",
"from": [0.0, 0.0, 0.0],
"to": [16.0, 16.0, 16.0],
"faces": {
"north": {
"texture": "#0",
"uv": [0.0, 0.0, 16.0, 16.0]
},
"east": {
"texture": "#0",
"uv": [0.0, 0.0, 16.0, 16.0]
},
"south": {
"texture": "#0",
"uv": [0.0, 0.0, 16.0, 16.0]
},
"west": {
"texture": "#0",
"uv": [0.0, 0.0, 16.0, 16.0]
},
"up": {
"texture": "#0",
"uv": [0.0, 0.0, 16.0, 16.0]
},
"down": {
"texture": "#0",
"uv": [0.0, 0.0, 16.0, 16.0]
}
}
}]
}
models/item/blockradiation.json_____________________________________________________________________________________________________________________
{
"parent": "block/cube_all",
"textures": {
"all": "likedarkness13guns:blocks/radiation"
}
}
blockstates/blockradiation.json_____________________________________________________________________________________________________________________
{
"variants": {
"normal": {
"model": "likedarkness13guns:radiation"
}
}
}
init/ModBlocks.java_____________________________________________________________________________________________________________________
package likedarkness13.guns.init;
import likedarkness13.guns.blocks.BlockRadiation;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraftforge.fml.common.registry.GameRegistry;
public class ModBlocks {
public static Block radiation;
public static void init() {
radiation = new BlockRadiation();
}
public static void register() {
registerBlock(radiation);
}
private static void registerBlock(Block block) {
GameRegistry.register(block);
ItemBlock item = new ItemBlock(block);
item.setRegistryName(block.getRegistryName());
GameRegistry.register(item);
}
public static void registerRenders() {
registerRender(radiation);
}
private static void registerRender(Block block) {
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory"));
}
}
blocks/BlockRadiation.java_____________________________________________________________________________________________________________________
package likedarkness13.guns.blocks;
import likedarkness13.guns.Reference;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.util.BlockRenderLayer;
public class BlockRadiation extends Block {
public BlockRadiation() {
super(Material.GLASS);
setUnlocalizedName(Reference.GunsBlocks.RADIATION.getUnlocalizedName());
setRegistryName(Reference.GunsBlocks.RADIATION.getRegistryName());
}
@Override
public boolean isOpaqueCube(IBlockState state) {
return false;
}
@Override
public BlockRenderLayer getBlockLayer() {
return BlockRenderLayer.TRANSLUCENT;
}
}
CRASH_________________________________________________________
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: DOMAIN minecraft
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: --------------------------------------------------
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: domain minecraft is missing 2 textures
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: domain minecraft has 3 locations:
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: unknown resourcepack type net.minecraft.client.resources.LegacyV2Adapter : FMLFileResourcePack:Forge Mod Loader
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: unknown resourcepack type net.minecraft.client.resources.LegacyV2Adapter : FMLFileResourcePack:Minecraft Forge
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: The missing resources for domain minecraft are:
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: textures/blocks/radiation.png
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: textures/block/radiation.png
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: No other errors exist for domain minecraft
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[11:09:28] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=