Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=Untitled.thumb.png.4fa34f76a3c5560294a46d6a6d501bef.png

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...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.