Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.8] Block-Break particle


Bektor
 Share

Recommended Posts

Hello,

 

I created a block that is using the model from the chest, but now I have one question: How to set the texture for the particles that appears if you break a block to "planks_oak"?

I hope here someone can help me, because on minecraft.de they tried to help me, but nothing seems to work...

 

So this are my .json files:

blockstates:

{
    "variants": {
        "normal": { "model": "minecraft:chest" }
    }
}

 

models/block:

{
    "parent": "block/cube-all",
    "textures":
    {
    	"all": "minecraft:blocks/chest"
    }
}

 

models/item:

{
    "parent": "builtin/entity",
    "textures":
    {
    	"layer0": "minecraft:planks_oak"
    },
    "display":
    {
    	"thirdperson":
    	{
    		"rotation": [ 10, -45, 170 ],
    		"translation": [ 0, 1.5, -2.75 ],
    		"scale": [ 0.375, 0.375, 0.375 ]
    	}
    }
}

 

I never expected that I would ever have 3 problems at the same time at two different projects...  ;D (MC-Mod, my 2d game with a modding api)

 

 

Bektor

Developer of Primeval Forest.

Link to comment
Share on other sites

TGG has a working example here: https://github.com/TheGreyGhost/MinecraftByExample

 

The particular file you want to look at is this one: https://github.com/TheGreyGhost/MinecraftByExample/blob/master/src/main/resources/assets/minecraftbyexample/models/block/mbe01_block_simple_model.json

 

"particle": "blocks/lapis_block"

Link to comment
Share on other sites

It's because the block/cube_all model that you are using already has the particle texture defined.

block/cube_all:
{
    "parent": "block/cube",
    "textures": {
        "particle": "#all",
        "down": "#all",
        "up": "#all",
        "north": "#all",
        "east": "#all",
        "south": "#all",
        "west": "#all"
    }
}

 

Used block/cube instead and list all of the sides plus the particle texture, eg

{
    "parent": "block/cube",
    "textures": {
        "down": "minecraftbyexample:blocks/mbe01_block_simple_face0",
        "up": "minecraftbyexample:blocks/mbe01_block_simple_face1",
        "north": "minecraftbyexample:blocks/mbe01_block_simple_face2",
        "east": "minecraftbyexample:blocks/mbe01_block_simple_face5",
        "south": "minecraftbyexample:blocks/mbe01_block_simple_face3",
        "west": "minecraftbyexample:blocks/mbe01_block_simple_face4",
        "particle": "blocks/lapis_block"
    }
}

 

This link explains the background in a lot more detail:

http://greyminecraftcoder.blogspot.com.au/2014/12/block-models-18.html

and also

http://minecraft.gamepedia.com/Block_models

 

-TGG

Link to comment
Share on other sites

This will not work, too. :(

 

models/item:

{
    "parent": "builtin/entity",
    "textures":
    {
    	"layer0": "minecraft:planks_oak"
    },
    "display":
    {
    	"thirdperson":
    	{
    		"rotation": [ 10, -45, 170 ],
    		"translation": [ 0, 1.5, -2.75 ],
    		"scale": [ 0.375, 0.375, 0.375 ]
    	}
    }
}

 

models/block:

{
    "parent": "block/cube",
    "textures":
    {
        "down": "minecraft:blocks/chest",
        "up": "minecraft:blocks/chest",
        "north": "minecraft:blocks/chest",
        "east": "minecraft:blocks/chest",
        "south": "minecraft:blocks/chest",
        "west": "minecraft:blocks/chest",
        "particle": "blocks/planks_oak"
    }
}

 

blockstates:

{
    "variants": {
        "normal": { "model": "minecraft:chest" }
    }
}

Developer of Primeval Forest.

Link to comment
Share on other sites

Hi

 

Well that's odd, I don't see an obvious problem.  Are you sure it's not working?  i.e. if you change particle to lapis blue, is your break block particles blue?

 

If not, I suggest a couple of things to try

First try a breakpoint in EntityDiggingFX to find out what texture your block is actually using

    protected EntityDiggingFX(World worldIn, double p_i46280_2_, double p_i46280_4_, double p_i46280_6_, double p_i46280_8_, double p_i46280_10_, double p_i46280_12_, IBlockState p_i46280_14_)
    {
        super(worldIn, p_i46280_2_, p_i46280_4_, p_i46280_6_, p_i46280_8_, p_i46280_10_, p_i46280_12_);
        this.field_174847_a = p_i46280_14_;
        this.func_180435_a(Minecraft.getMinecraft().getBlockRendererDispatcher().getBlockModelShapes().getTexture(p_i46280_14_));   //<----  breakpoint here
        this.particleGravity = p_i46280_14_.getBlock().blockParticleGravity;
        this.particleRed = this.particleGreen = this.particleBlue = 0.6F;
        this.particleScale /= 2.0F;
    }

If the block model is right but the texture is wrong, you will need to dig deeper into the loading of your model.

ModelBakery.bakeModel is where it looks for your texture in the parsed list of textures at this line

   private IBakedModel bakeModel(ModelBlock modelBlockIn, ModelRotation modelRotationIn, boolean uvLocked)
    {
        TextureAtlasSprite textureatlassprite = (TextureAtlasSprite)this.sprites.get(new ResourceLocation(modelBlockIn.resolveTextureName("particle")));   // here
        SimpleBakedModel.Builder builder = (new SimpleBakedModel.Builder(modelBlockIn)).setTexture(textureatlassprite);

 

You will need to add a conditional breakpoint (eg modelBlockIn.name.contains("bektor") == true) because this method is used by the vanilla blocks too and there are hundreds.

 

-TGG

 

Link to comment
Share on other sites

blockstates:

{
    "variants": {
        "normal": { "model": "minecraft:chest" }
    }
}

 

Try changing your model name in your blockstate file. You are now referencing to minecraft's chest model, so "normal": { "model": "yourmodel_id_lowercased:block_model_file_name" }

 

Link to comment
Share on other sites

blockstates:

{
    "variants": {
        "normal": { "model": "minecraft:chest" }
    }
}

 

Try changing your model name in your blockstate file. You are now referencing to minecraft's chest model, so "normal": { "model": "yourmodel_id_lowercased:block_model_file_name" }

 

Well, but I want to use the chest model from minecraft, because I'm not interested in creating a new chest model.

 

Hi

 

Well that's odd, I don't see an obvious problem.  Are you sure it's not working?  i.e. if you change particle to lapis blue, is your break block particles blue?

 

If not, I suggest a couple of things to try

First try a breakpoint in EntityDiggingFX to find out what texture your block is actually using

    protected EntityDiggingFX(World worldIn, double p_i46280_2_, double p_i46280_4_, double p_i46280_6_, double p_i46280_8_, double p_i46280_10_, double p_i46280_12_, IBlockState p_i46280_14_)
    {
        super(worldIn, p_i46280_2_, p_i46280_4_, p_i46280_6_, p_i46280_8_, p_i46280_10_, p_i46280_12_);
        this.field_174847_a = p_i46280_14_;
        this.func_180435_a(Minecraft.getMinecraft().getBlockRendererDispatcher().getBlockModelShapes().getTexture(p_i46280_14_));   //<----  breakpoint here
        this.particleGravity = p_i46280_14_.getBlock().blockParticleGravity;
        this.particleRed = this.particleGreen = this.particleBlue = 0.6F;
        this.particleScale /= 2.0F;
    }

If the block model is right but the texture is wrong, you will need to dig deeper into the loading of your model.

ModelBakery.bakeModel is where it looks for your texture in the parsed list of textures at this line

   private IBakedModel bakeModel(ModelBlock modelBlockIn, ModelRotation modelRotationIn, boolean uvLocked)
    {
        TextureAtlasSprite textureatlassprite = (TextureAtlasSprite)this.sprites.get(new ResourceLocation(modelBlockIn.resolveTextureName("particle")));   // here
        SimpleBakedModel.Builder builder = (new SimpleBakedModel.Builder(modelBlockIn)).setTexture(textureatlassprite);

 

You will need to add a conditional breakpoint (eg modelBlockIn.name.contains("bektor") == true) because this method is used by the vanilla blocks too and there are hundreds.

 

-TGG

 

No, my break block particles are not blue, they are still using the "missing texture" texture from minecraft.

 

Ok, how can I set a breakpoint in eclipse? And the model is correct, but the particles are wrong.

 

Thats the output from eclipse without loading a world:

 

[19:30:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[19:30:15] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[19:30:15] [main/WARN] [LaunchWrapper]: Tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker has already been visited -- skipping

[19:30:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[19:30:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[19:30:15] [main/INFO] [FML]: Forge Mod Loader version 8.0.14.1281 for Minecraft 1.8 loading

[19:30:15] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.7.0_71, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7

[19:30:15] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[19:30:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[19:30:15] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[19:30:15] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[19:30:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[19:30:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[19:30:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[19:30:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[19:30:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[19:30:15] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[19:30:17] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[19:30:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[19:30:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[19:30:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[19:30:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[19:30:18] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[19:30:19] [Client thread/INFO]: Setting user: Player701

[19:30:21] [Client thread/INFO]: LWJGL Version: 2.9.1

[19:30:23] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[19:30:23] [Client thread/INFO] [FML]: MinecraftForge v11.14.0.1281 Initialized

[19:30:23] [Client thread/INFO] [FML]: Replaced 204 ore recipies

[19:30:23] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[19:30:23] [Client thread/INFO] [FML]: Searching F:\Patrick\ForgeVersions\PrimevalForest - 1.8\mods for mods

[19:30:26] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[19:30:27] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, primevalforest] at CLIENT

[19:30:27] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, primevalforest] at SERVER

[19:30:27] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Primeval Forest

[19:30:27] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[19:30:27] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[19:30:27] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[19:30:27] [Client thread/INFO] [FML]: Applying holder lookups

[19:30:27] [Client thread/INFO] [FML]: Holder lookups applied

[19:30:28] [sound Library Loader/INFO]: Starting up SoundSystem...

[19:30:28] [Thread-7/INFO]: Initializing LWJGL OpenAL

[19:30:28] [Thread-7/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[19:30:29] [Thread-7/INFO]: OpenAL initialized.

[19:30:29] [sound Library Loader/INFO]: Sound engine started

[19:30:36] [Client thread/WARN]: Unable to load variant: facing=east from primevalforest:lockedChest#facing=east

[19:30:36] [Client thread/WARN]: Unable to load variant: facing=south from primevalforest:lockedChest#facing=south

[19:30:36] [Client thread/WARN]: Unable to load variant: facing=north from primevalforest:lockedChest#facing=north

[19:30:36] [Client thread/WARN]: Unable to load variant: facing=west from primevalforest:lockedChest#facing=west

[19:30:37] [Client thread/INFO]: Created: 512x512 textures-atlas

[19:30:38] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods

[19:30:38] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Primeval Forest

[19:30:38] [Client thread/INFO]: SoundSystem shutting down...

[19:30:39] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[19:30:39] [sound Library Loader/INFO]: Starting up SoundSystem...

[19:30:39] [Thread-9/INFO]: Initializing LWJGL OpenAL

[19:30:39] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[19:30:39] [Thread-9/INFO]: OpenAL initialized.

[19:30:39] [sound Library Loader/INFO]: Sound engine started

[19:30:40] [Client thread/WARN]: Unable to load variant: facing=east from primevalforest:lockedChest#facing=east

[19:30:40] [Client thread/WARN]: Unable to load variant: facing=south from primevalforest:lockedChest#facing=south

[19:30:40] [Client thread/WARN]: Unable to load variant: facing=north from primevalforest:lockedChest#facing=north

[19:30:40] [Client thread/WARN]: Unable to load variant: facing=west from primevalforest:lockedChest#facing=west

[19:30:41] [Client thread/INFO]: Created: 512x512 textures-atlas

[19:30:53] [Client thread/INFO]: Stopping!

[19:30:53] [Client thread/INFO]: SoundSystem shutting down...

[19:30:53] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

 

 

So any idea?

Developer of Primeval Forest.

Link to comment
Share on other sites

Hi

 

Is this the name of your chest?  If so, the problem appears to be that you haven't registered the models properly.

[19:30:40] [Client thread/WARN]: Unable to load variant: facing=east from primevalforest:lockedChest#facing=east

 

Show your block code and registration code?

 

You could try looking this example project for clues on how to properly register a block with variants

https://github.com/TheGreyGhost/MinecraftByExample

- see example 3 in particular

 

This link is very helpful on learning how to use the debugger, you'll wonder how you ever managed with out it...

http://www.vogella.com/tutorials/EclipseDebugging/article.html

 

-TGG

 

 

 

Link to comment
Share on other sites

Ok.

 

Here is the code of the Client proxy:

 

@Override
public void registerTileEntityRendering() 
{
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLockedChest.class, new RenderTileEntityLockedChest());

	RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();

	// blocks
	renderItem.getItemModelMesher().register(Item.getItemFromBlock(ModBlocks.locked_chest), 0, new ModelResourceLocation("minecraft:chest", "inventory"));
}

 

 

and the block code:

 

package minecraftplaye.primevalforest.common.blocks;

import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyDirection;
import net.minecraft.block.state.BlockState;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.MathHelper;
import net.minecraft.world.ILockableContainer;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import minecraftplaye.primevalforest.PrimevalForest;
import minecraftplaye.primevalforest.common.configuration.PFConfigurationIDs;
import minecraftplaye.primevalforest.common.creativetab.ModCreativeTabs;
import minecraftplaye.primevalforest.common.lib.BlockDropHelper;
import minecraftplaye.primevalforest.common.lib.IBlock;
import minecraftplaye.primevalforest.common.tileentity.TileEntityLockedChest;
import minecraftplaye.primevalforest.common.utils.LanguageHandler;
import minecraftplaye.primevalforest.core.ModBlocks;

public class BlockLockedChest extends BlockContainer implements IBlock
{

public static final PropertyDirection FACING = PropertyDirection.create("facing", EnumFacing.Plane.HORIZONTAL);

public BlockLockedChest() 
{
	super(Material.wood);
	this.setHardness(2.5F);
	this.setStepSound(Block.soundTypeWood);
	this.setCreativeTab(ModCreativeTabs.PRIMEVAL);
	this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 0.9375F, 0.875F, 0.9375F);
	this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));

	this.setUnlocalizedName(getName());
	GameRegistry.registerBlock(this, getName());
}

@Override
public String getName()
{
	return "lockedChest";
}

@Override
public TileEntity createNewTileEntity(World worldIn, int meta) 
{
	return new TileEntityLockedChest();
}

    /**
     * Is this block (a) opaque and (b) a full 1m cube?  This determines whether or not to render the shared face of two
     * adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.
     */
@Override
    public boolean isOpaqueCube()
    {
        return false;
    }

@Override
    public boolean isFullCube()
    {
        return false;
    }

    /**
     * The type of render function that is called for this block
     */
@Override
@SideOnly(Side.CLIENT)
    public int getRenderType()
    {
        return 2;
    }

@Override
    public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
    {
        return this.getDefaultState().withProperty(FACING, placer.getHorizontalFacing());
    }

    /**
     * Called when the block is placed in the world.
     */
@Override
    public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack itemStack)
    {
	if(worldIn.isRemote)
		return;

        EnumFacing enumfacing = EnumFacing.getHorizontal(MathHelper.floor_double((double)(placer.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3).getOpposite();
        state = state.withProperty(FACING, enumfacing);
        
        worldIn.setBlockState(pos, state, 3); //(x, y, z, metadata, 3);

	if(placer instanceof EntityPlayer)
	{
        	TileEntityLockedChest tileEntityLChest = (TileEntityLockedChest)worldIn.getTileEntity(pos);
        	
        	if(tileEntityLChest != null)
        		tileEntityLChest.setUUID((EntityPlayer)placer);
	}

    	if(itemStack.hasDisplayName())
    		((TileEntityLockedChest)worldIn.getTileEntity(pos)).setCustomName(itemStack.getDisplayName());
    }

    /**
     * Checks to see if its valid to put this block at the specified coordinates. Args: worldIn, pos
     */
@Override
    public boolean canPlaceBlockAt(World worldIn, BlockPos pos)
    {
	if(worldIn.getBlockState(pos.down()).getBlock() == Blocks.air)
		return false;
	if(worldIn.getBlockState(pos.up()).getBlock() != Blocks.air)
		return false;
	if(worldIn.getBlockState(pos.down()).getBlock() == ModBlocks.locked_chest)
		return false;
	if(worldIn.getBlockState(pos.up()).getBlock() == ModBlocks.locked_chest)
		return false;
	if(worldIn.getBlockState(pos.down()).getBlock().getMaterial().isLiquid())
		return false;
	if(!worldIn.getBlockState(pos.down()).getBlock().getMaterial().isSolid())
		return false;

	return true;
    }

    /**
     * Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are
     * their own) Args: worldIn, pos, state, neighbor Block
     */
@Override
    public void onNeighborBlockChange(World worldIn, BlockPos pos, IBlockState state, Block neighborBlock)
    {
	super.onNeighborBlockChange(worldIn, pos, state, neighborBlock);

	if(worldIn.isRemote)
		return;

	boolean flag = false;

	if(!World.doesBlockHaveSolidTopSurface(worldIn, pos.down()))
		flag = true;
	if(World.doesBlockHaveSolidTopSurface(worldIn, pos.up()))
		flag = true;

	if(flag)
		this.breakBlock(worldIn, pos, state);
    }

@Override
    public void breakBlock(World worldIn, BlockPos pos, IBlockState state)
    {
        TileEntityLockedChest tileentitychest = (TileEntityLockedChest)worldIn.getTileEntity(pos);
        
        if (tileentitychest != null && tileentitychest instanceof IInventory)
        {
            BlockDropHelper.dropItemsAsStack(worldIn, pos, (IInventory) tileentitychest);
        	
            worldIn.updateComparatorOutputLevel(pos, this);
        }
        
        super.breakBlock(worldIn, pos, state);
    }

    /**
     * Called upon block activation (right click on the block.)
     */
@Override
    public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumFacing side, float hitX, float hitY, float hitZ)
    {
	if(worldIn.isRemote)
		return true;
	else
	{
		ILockableContainer inventory = this.getInventory(worldIn, pos);
		TileEntityLockedChest tileEntityLChest = (TileEntityLockedChest)worldIn.getTileEntity(pos);

		if(inventory != null && !playerIn.isSneaking() && !playerIn.isSpectator() && tileEntityLChest != null)
		{
			if(tileEntityLChest.getUUID() == null || tileEntityLChest.getUUID().toString() == null 
					|| tileEntityLChest.getUUID().toString() == "")
			{
				tileEntityLChest.setUUID(playerIn);
				playerIn.openGui(PrimevalForest.instance, PFConfigurationIDs.gui_lChest_ID, worldIn, pos.getX(), pos.getY(), pos.getZ());
			}
			else if(tileEntityLChest.getUUID().toString().equals(playerIn.getGameProfile().getId().toString()))
			{
				if(tileEntityLChest.getName() == null || tileEntityLChest.getName() == "" 
						|| tileEntityLChest.getName() != playerIn.getGameProfile().getName())
					tileEntityLChest.setUUID(playerIn);

				playerIn.openGui(PrimevalForest.instance, PFConfigurationIDs.gui_lChest_ID, worldIn, pos.getX(), pos.getY(), pos.getZ());
			}
			else
				LanguageHandler.sendPlayerLocalizedMessage(playerIn, "primevalforest.blocks.locked", EnumChatFormatting.AQUA, tileEntityLChest.getName());
		}
	}

	return true;
    }

    /**
     * Gets the inventory of the chest at the specified coords, accounting for blocks or ocelots on top of the chest,
     * and double chests.
     */
    public ILockableContainer getInventory(World worldIn, BlockPos pos)
    {
    	TileEntity tileentity = worldIn.getTileEntity(pos);
    	
    	if(tileentity != null && tileentity instanceof TileEntityLockedChest)
    	{
        	Object object = (TileEntityLockedChest)tileentity;
        	
        	if(worldIn.isSideSolid(pos, EnumFacing.DOWN))
        		return null;
            else if (worldIn.getBlockState(pos.west()).getBlock() == this && worldIn.isSideSolid(new BlockPos(pos.getX() - 1, pos.getY() + 1, pos.getZ()), EnumFacing.DOWN))
                return null;
            else if (worldIn.getBlockState(pos.east()).getBlock() == this && worldIn.isSideSolid(new BlockPos(pos.getX() + 1, pos.getY() + 1, pos.getZ()), EnumFacing.DOWN))
                return null;
            else if (worldIn.getBlockState(pos.north()).getBlock() == this && worldIn.isSideSolid(new BlockPos(pos.getX(), pos.getY() + 1, pos.getZ() - 1), EnumFacing.DOWN))
                return null;
            else if (worldIn.getBlockState(pos.south()).getBlock() == this && worldIn.isSideSolid(new BlockPos(pos.getX(), pos.getY() + 1, pos.getZ() + 1), EnumFacing.DOWN))
                return null;
            else
                return (ILockableContainer)object;
    	}
    	else
    		return null;
    }

@Override
@SideOnly(Side.CLIENT)
public Item getItem(World worldIn, BlockPos pos)
{
	return Item.getItemFromBlock(ModBlocks.locked_chest);
}

@Override
    public IBlockState getStateFromMeta(int meta)
    {
        EnumFacing enumfacing = EnumFacing.getFront(meta);

        if (enumfacing.getAxis() == EnumFacing.Axis.Y)
        {
            enumfacing = EnumFacing.NORTH;
        }

        return this.getDefaultState().withProperty(FACING, enumfacing);
    }

@Override
    public int getMetaFromState(IBlockState state)
    {
        return ((EnumFacing)state.getValue(FACING)).getIndex();
    }

@Override
    protected BlockState createBlockState()
    {
        return new BlockState(this, new IProperty[] {FACING});
    }
}

 

 

(Don't forget, I have no model and texture created, all textures and models that this block is using are from the normal minecraft chest)

Developer of Primeval Forest.

Link to comment
Share on other sites

Ah.  The problem appears to be that your blockstates is wrong.  It doesn't have the facing variants that it expects to see - you have given your block four facings but the blockstates file doesn't have any of them.

 

Did you look in the links I sent earlier?

 

You need a blockstates file something like

{
    "variants": {
           "facing=north": { "model": "minecraftbyexample:mbe03_block_variants_model_red"},
            "facing=east": { "model": "minecraftbyexample:mbe03_block_variants_model_red", "y": 90 },
           "facing=south": { "model": "minecraftbyexample:mbe03_block_variants_model_red", "y": 180 },
            "facing=west": { "model": "minecraftbyexample:mbe03_block_variants_model_red", "y": 270 },
    }
}

-TGG

Link to comment
Share on other sites

Well, this doesn't help, too. The blockbreak particles are still not working and now I'm getting errors.

 

blockstates: (lockedChest.json)

{
    "variants": {
        "normal": { "model": "minecraft:chest" },
        "facing=north": { "model": "minecraft:chest"},
        "facing=east": { "model": "minecraft:chest", "y": 90 },
        "facing=south": { "model": "minecraft:chest", "y": 180 },
        "facing=west": { "model": "minecraft:chest", "y": 270 }
    }
}

 

and here the log from eclipse (because there is no error/crash log):

 

[17:37:33] [main/INFO] [GradleStart]: userProperties: {}

[17:37:33] [main/INFO] [GradleStart]: username: Player701

[17:37:33] [main/INFO] [GradleStart]: accessToken: FML

[17:37:33] [main/INFO] [GradleStart]: version: 1.6

[17:37:33] [main/INFO] [GradleStart]: Extra: [--tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker]

[17:37:33] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --username, Player701, --accessToken, {REDACTED}, --assetIndex, 1.8, --assetsDir, C:/Users/Patrick/.gradle/caches/minecraft/assets, --version, 1.6, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]

[17:37:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[17:37:33] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[17:37:33] [main/WARN] [LaunchWrapper]: Tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker has already been visited -- skipping

[17:37:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[17:37:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[17:37:33] [main/INFO] [FML]: Forge Mod Loader version 8.0.14.1281 for Minecraft 1.8 loading

[17:37:33] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.7.0_71, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7

[17:37:33] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[17:37:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[17:37:33] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[17:37:33] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[17:37:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[17:37:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[17:37:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[17:37:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[17:37:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[17:37:33] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[17:37:35] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[17:37:35] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[17:37:35] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[17:37:36] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[17:37:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[17:37:36] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[17:37:36] [Client thread/INFO]: Setting user: Player701

[17:37:38] [Client thread/INFO]: LWJGL Version: 2.9.1

[17:37:39] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[17:37:39] [Client thread/INFO] [FML]: MinecraftForge v11.14.0.1281 Initialized

[17:37:39] [Client thread/INFO] [FML]: Replaced 204 ore recipies

[17:37:39] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[17:37:39] [Client thread/INFO] [FML]: Searching F:\Patrick\ForgeVersions\PrimevalForest - 1.8\mods for mods

[17:37:41] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[17:37:41] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, primevalforest] at CLIENT

[17:37:41] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, primevalforest] at SERVER

[17:37:41] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Primeval Forest

[17:37:41] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[17:37:41] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[17:37:41] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[17:37:41] [Client thread/INFO] [FML]: Applying holder lookups

[17:37:41] [Client thread/INFO] [FML]: Holder lookups applied

[17:37:41] [sound Library Loader/INFO]: Starting up SoundSystem...

[17:37:42] [Thread-7/INFO]: Initializing LWJGL OpenAL

[17:37:42] [Thread-7/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[17:37:42] [Thread-7/INFO]: OpenAL initialized.

[17:37:42] [sound Library Loader/INFO]: Sound engine started

[17:37:44] [Client thread/WARN]: Unable to load block model: 'minecraft:block/chest' for variant: 'primevalforest:lockedChest#facing=south'

java.io.FileNotFoundException: minecraft:models/block/chest.json

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantModels(ModelBakery.java:210) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:104) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:88) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[17:37:44] [Client thread/WARN]: Unable to load block model: 'minecraft:block/chest' for variant: 'primevalforest:lockedChest#facing=east'

java.io.FileNotFoundException: minecraft:models/block/chest.json

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantModels(ModelBakery.java:210) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:104) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:88) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[17:37:44] [Client thread/WARN]: Unable to load block model: 'minecraft:block/chest' for variant: 'primevalforest:lockedChest#facing=west'

java.io.FileNotFoundException: minecraft:models/block/chest.json

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantModels(ModelBakery.java:210) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:104) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:88) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[17:37:44] [Client thread/WARN]: Unable to load block model: 'minecraft:block/chest' for variant: 'primevalforest:lockedChest#facing=north'

java.io.FileNotFoundException: minecraft:models/block/chest.json

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantModels(ModelBakery.java:210) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:104) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:88) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[17:37:44] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=east

[17:37:44] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=north

[17:37:44] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=south

[17:37:44] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=west

[17:37:45] [Client thread/INFO]: Created: 512x512 textures-atlas

[17:37:45] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=south

[17:37:45] [Client thread/WARN]: No weighted models for: primevalforest:lockedChest#facing=south

[17:37:45] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=east

[17:37:45] [Client thread/WARN]: No weighted models for: primevalforest:lockedChest#facing=east

[17:37:45] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=west

[17:37:45] [Client thread/WARN]: No weighted models for: primevalforest:lockedChest#facing=west

[17:37:45] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=north

[17:37:45] [Client thread/WARN]: No weighted models for: primevalforest:lockedChest#facing=north

[17:37:46] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods

[17:37:46] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Primeval Forest

[17:37:46] [Client thread/INFO]: SoundSystem shutting down...

[17:37:46] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[17:37:46] [sound Library Loader/INFO]: Starting up SoundSystem...

[17:37:46] [Thread-9/INFO]: Initializing LWJGL OpenAL

[17:37:46] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[17:37:46] [Thread-9/INFO]: OpenAL initialized.

[17:37:47] [sound Library Loader/INFO]: Sound engine started

[17:37:48] [Client thread/WARN]: Unable to load block model: 'minecraft:block/chest' for variant: 'primevalforest:lockedChest#facing=south'

java.io.FileNotFoundException: minecraft:models/block/chest.json

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantModels(ModelBakery.java:210) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:104) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:88) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:727) [Minecraft.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[17:37:48] [Client thread/WARN]: Unable to load block model: 'minecraft:block/chest' for variant: 'primevalforest:lockedChest#facing=east'

java.io.FileNotFoundException: minecraft:models/block/chest.json

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantModels(ModelBakery.java:210) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:104) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:88) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:727) [Minecraft.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[17:37:48] [Client thread/WARN]: Unable to load block model: 'minecraft:block/chest' for variant: 'primevalforest:lockedChest#facing=west'

java.io.FileNotFoundException: minecraft:models/block/chest.json

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantModels(ModelBakery.java:210) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:104) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:88) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:727) [Minecraft.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[17:37:48] [Client thread/WARN]: Unable to load block model: 'minecraft:block/chest' for variant: 'primevalforest:lockedChest#facing=north'

java.io.FileNotFoundException: minecraft:models/block/chest.json

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantModels(ModelBakery.java:210) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:104) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:88) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:727) [Minecraft.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[17:37:48] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=east

[17:37:48] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=north

[17:37:48] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=south

[17:37:48] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=west

[17:37:48] [Client thread/INFO]: Created: 512x512 textures-atlas

[17:37:48] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=south

[17:37:48] [Client thread/WARN]: No weighted models for: primevalforest:lockedChest#facing=south

[17:37:48] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=east

[17:37:48] [Client thread/WARN]: No weighted models for: primevalforest:lockedChest#facing=east

[17:37:48] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=west

[17:37:48] [Client thread/WARN]: No weighted models for: primevalforest:lockedChest#facing=west

[17:37:48] [Client thread/WARN]: Missing model for: primevalforest:lockedChest#facing=north

[17:37:48] [Client thread/WARN]: No weighted models for: primevalforest:lockedChest#facing=north

[17:38:20] [server thread/INFO]: Starting integrated minecraft server version 1.8

[17:38:20] [server thread/INFO]: Generating keypair

[17:38:20] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[17:38:21] [server thread/INFO] [FML]: Applying holder lookups

[17:38:21] [server thread/INFO] [FML]: Holder lookups applied

[17:38:21] [server thread/INFO] [FML]: Loading dimension 0 (Test-World) (net.minecraft.server.integrated.IntegratedServer@691b699)

[17:38:21] [server thread/INFO] [FML]: Loading dimension 1 (Test-World) (net.minecraft.server.integrated.IntegratedServer@691b699)

[17:38:21] [server thread/INFO] [FML]: Loading dimension -1 (Test-World) (net.minecraft.server.integrated.IntegratedServer@691b699)

[17:38:21] [server thread/INFO]: Preparing start region for level 0

[17:38:22] [server thread/INFO]: Changing view distance to 12, from 10

[17:38:22] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 1

[17:38:22] [Netty Server IO #1/INFO] [FML]: Client protocol version 1

[17:38:22] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : mcp@9.05,FML@8.0.14.1281,primevalforest@@VERSION@,Forge@11.14.0.1281

[17:38:22] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established

[17:38:22] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[17:38:22] [server thread/INFO]: Player701[local:E:628b3e0b] logged in with entity id 143 at (-6.71423571777834, 65.0, 145.28236526067553)

[17:38:22] [server thread/INFO]: Player701 joined the game

[17:38:26] [Client thread/INFO]: Stopping!

[17:38:26] [Client thread/INFO]: SoundSystem shutting down...

[17:38:27] [server thread/INFO]: Stopping server

[17:38:27] [server thread/INFO]: Saving players

[17:38:27] [server thread/INFO]: Saving worlds

[17:38:27] [server thread/INFO]: Saving chunks for level 'Test-World'/Overworld

[17:38:27] [server thread/INFO]: Saving chunks for level 'Test-World'/Nether

[17:38:27] [server thread/INFO]: Saving chunks for level 'Test-World'/The End

[17:38:27] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[17:38:27] [Client Shutdown Thread/INFO]: Stopping server

[17:38:27] [Client Shutdown Thread/INFO]: Saving players

[17:38:27] [Client Shutdown Thread/INFO]: Saving worlds

[17:38:27] [Client Shutdown Thread/INFO]: Saving chunks for level 'Test-World'/Overworld

 

Developer of Primeval Forest.

Link to comment
Share on other sites

Ah.

 

I just went to look for the vanilla chest model - there isn't one.  It's drawn using a different rendertype so it has no blockmodel like most other blocks do.  The TileEntitySpecialRenderer renders it instead, so the lid animation can be done properly.

 

--> if you want a block texture for the chest you'll need to make them yourself.  You can find the texture sheet in

("textures/entity/chest/normal.png");

 

-TGG

 

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...

Sorry, that it took so long to reply here, but I had not much time.

 

So, my own block is rendered by the TileEntitySpecialRenderer, too:

 

 

package minecraftplaye.primevalforest.client.render;

import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;

import minecraftplaye.primevalforest.common.blocks.BlockLockedChest;
import minecraftplaye.primevalforest.common.tileentity.TileEntityLockedChest;
import net.minecraft.block.Block;
import net.minecraft.client.model.ModelChest;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class RenderTileEntityLockedChest extends TileEntitySpecialRenderer
{

private static final ResourceLocation texture = new ResourceLocation("textures/entity/chest/normal.png");
    private ModelChest model = new ModelChest();
    
public RenderTileEntityLockedChest() 
{ }

@Override
public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float scale, int unknown)
{
	if(tileentity instanceof TileEntityLockedChest)
	{
		TileEntityLockedChest tileEntityLockedChest = (TileEntityLockedChest) tileentity;

        int meta;

		if(!tileEntityLockedChest.hasWorldObj())
			meta = 0;
		else
		{
			Block block = tileEntityLockedChest.getBlockType();
			meta = tileEntityLockedChest.getBlockMetadata();

			if(block instanceof BlockLockedChest && meta == 0)
                meta = tileEntityLockedChest.getBlockMetadata();
		}

		ModelChest modelChest = this.model;

		this.bindTexture(texture);

		// The PushMatrix tells the renderer to "start" doing something.
		GL11.glPushMatrix();
		GL11.glEnable(GL12.GL_RESCALE_NORMAL);
            GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    		// This is setting the initial location.
    		GL11.glTranslatef((float) x, (float) y + 1.0F, (float) z + 1.0F);
            GL11.glScalef(1.0F, -1.0F, -1.0F);
            GL11.glTranslatef(0.5F, 0.5F, 0.5F);
            
            short rotation = 0;
            
            if (meta == 2)
            	rotation = 180;
            if (meta == 3)
            	rotation = 0;
            if (meta == 4)
            	rotation = 90;
            if (meta == 5)
            	rotation = -90;
            
            GL11.glRotatef((float)rotation, 0.0F, 1.0F, 0.0F);
            GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
            float f1 = tileEntityLockedChest.prevLidAngle + (tileEntityLockedChest.lidAngle - tileEntityLockedChest.prevLidAngle) * scale;
            
            f1 = 1.0F - f1;
            f1 = 1.0F - f1 * f1 * f1;
            modelChest.chestLid.rotateAngleX = -(f1 * (float)Math.PI / 2.0F);
            modelChest.renderAll();
            GL11.glDisable(GL12.GL_RESCALE_NORMAL);
            // Tell it to stop rendering for both the PushMatrix's
            GL11.glPopMatrix();
            GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
	}
}
}

 

 

And there I put the texture path to the path of Minecraft. (I tried it with: "textures/entity/chest/normal.png" and with "minecraft:textures/entity/chest/normal.png".)

 

  • Block Texture: works
  • Container Texture: works
  • 3D-Inventory-Rendering: works
  • Block break particle: does not work

 

So any idea what to do to fix it, because I'm no longer really interested in updating my mod to 1.8.... (I have better stuff to do then that, stuff that makes more fun, like working on the Beta for 1.7.10 and on my own small Game)

Developer of Primeval Forest.

Link to comment
Share on other sites

public class MyBlock extends BlockContainer {
  public MyBlock() {
    this.setTextureName("put something here");
  }
}

 

Block break particles are based off the BLOCK's texture.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Oops, your right. I'm still pretty sure you need a block texture json to indicate the particle texture.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Sorry, that it took so long to reply here, but I had not much time.

So any idea what to do to fix it, because I'm no longer really interested in updating my mod to 1.8.... (I have better stuff to do then that, stuff that makes more fun, like working on the Beta for 1.7.10 and on my own small Game)

Vanilla's chest gets the break texture through a filthy kludge

BlockModelShapes.getTexture(IBlockState state)
            if (block == Blocks.wall_sign || block == Blocks.standing_sign || block == Blocks.chest || block == Blocks.trapped_chest || block == Blocks.standing_banner || block == Blocks.wall_banner)
            {
                return this.modelManager.getTextureMap().getAtlasSprite("minecraft:blocks/planks_oak");
            }
//.. etc...

 

You can't do that, so I think you need to make a block model for block/cube, give it a "particle": texture.  leave the other sides blank (create an empty texture for them). 

 

-TGG

 

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

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I want to remove or off all what connected with a health bar, that means I want to off showing of getting damage (all damage) on health bar. That will give invincibility. Then I want to off showing of health bar. And (that moment you shouldn't comment, but must to consider) finally I want to create 2 new bars, which will be connected with getting damage and some others. How to do it? Version 1.19.2
    • Hello I have no Idea What to do but Uhh I want a minecraft server. Yeah. please respond to this with some instructions because i am very confused and dont know what to do
    • That's because the item renderer is handled different than the block renderer. The block renderer, for TNT, uses the rendertype_entity_cutout shader, which applies the overlay texture. The item renderer, on the other hand, for a standard item would use rendertype_item_entity_translucent_cull, which while having the field for the overlay texture (denoted as texCoord1), is never used in the fragment shader. You would need to implement part of the rendering code yourself to use a render type or shader with the overlay texture applied. However, if you are only doing this for one model, this could be simply achieved using item properties by having an all white texture.
    • I'm making my own MOD using Geckolib, but when I start it as a test, it works fine, but when I put it in the Minecraft app, it doesn't start and crashes. crash report ---- Minecraft Crash Report ---- // Who set us up the TNT? Time: 22/09/27 13:38 Description: Mod loading error has occurred java.lang.Exception: Mod Loading has failed     at net.minecraftforge.fml.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:71) [?:?] {re:classloading}     at net.minecraftforge.fml.client.ClientModLoader.completeModLoading(ClientModLoader.java:174) [?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.lambda$null$1(Minecraft.java:508) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft$$Lambda$4172/899120039.run(Unknown Source) [?:?] {}     at net.minecraft.util.Util.func_215077_a(Util.java:320) [?:?] {re:classloading}     at net.minecraft.client.Minecraft.lambda$new$2(Minecraft.java:504) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft$$Lambda$3963/1223907812.accept(Unknown Source) [?:?] {}     at net.minecraft.client.gui.ResourceLoadProgressGui.func_230430_a_(ResourceLoadProgressGui.java:113) [?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:481) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:977) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:184) [?:?] {re:classloading,pl:runtimedistcleaner:A}     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}     at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}     at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:37) [forge-1.16.5-36.2.39.jar:36.2] {}     at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$457/2095970915.call(Unknown Source) [forge-1.16.5-36.2.39.jar:36.2] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.1.3.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.1.3.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.1.3.jar:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.1.3.jar:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.1.3.jar:?] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace:     at com.Kujira.minepiece.Items.SeaStoneIngot.<init>(SeaStoneIngot.java:8) ~[?:?] {re:classloading} -- MOD minepiece -- Details:     Mod File: MinePiece.jar     Failure message: MinePiece Mod (minepiece) encountered an error during the load_registries event phase         java.lang.NoSuchMethodError: net.minecraft.item.Item$Properties.tab(Lnet/minecraft/item/ItemGroup;)Lnet/minecraft/item/Item$Properties;     Mod Version: 1.0.0     Mod Issue URL: NOT PROVIDED     Exception message: java.lang.NoSuchMethodError: net.minecraft.item.Item$Properties.tab(Lnet/minecraft/item/ItemGroup;)Lnet/minecraft/item/Item$Properties; Stacktrace:     at com.Kujira.minepiece.Items.SeaStoneIngot.<init>(SeaStoneIngot.java:8) ~[?:?] {re:classloading}     at com.Kujira.minepiece.regi.MinePieceItems$Register.registerItems(MinePieceItems.java:25) ~[?:?] {re:classloading}     at net.minecraftforge.eventbus.ASMEventHandler_17_Register_registerItems_Register.invoke(.dynamic) ~[?:?] {}     at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.eventbus.EventBus$$Lambda$3476/1916974029.invoke(Unknown Source) ~[?:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:106) ~[?:36.2] {re:classloading}     at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:107) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModContainer$$Lambda$3105/752772379.run(Unknown Source) ~[?:?] {}     at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1618) ~[?:1.8.0_51] {}     at net.minecraftforge.fml.ModWorkManager$SyncExecutor.driveOne(ModWorkManager.java:42) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModWorkManager$DrivenExecutor.drive(ModWorkManager.java:26) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModLoader.waitForTransition(ModLoader.java:235) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModLoader.dispatchAndHandleError(ModLoader.java:222) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModLoader.gatherAndInitializeMods(ModLoader.java:188) ~[?:?] {re:classloading}     at net.minecraftforge.fml.client.ClientModLoader.lambda$begin$1(ClientModLoader.java:89) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraftforge.fml.client.ClientModLoader$$Lambda$2920/168398198.run(Unknown Source) ~[?:?] {}     at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$4(ClientModLoader.java:109) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraftforge.fml.client.ClientModLoader$$Lambda$2921/1088649990.run(Unknown Source) ~[?:?] {}     at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:89) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.<init>(Minecraft.java:437) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:149) [?:?] {re:classloading,pl:runtimedistcleaner:A}     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}     at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}     at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:37) [forge-1.16.5-36.2.39.jar:36.2] {}     at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$457/2095970915.call(Unknown Source) [forge-1.16.5-36.2.39.jar:36.2] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.1.3.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.1.3.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.1.3.jar:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.1.3.jar:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.1.3.jar:?] {} -- MOD minepiece -- Details:     Mod File: MinePiece.jar     Failure message: MinePiece Mod (minepiece) encountered an error during the error event phase         java.lang.NoSuchMethodError: net.minecraft.entity.EntityType$Builder.of(Lnet/minecraft/entity/EntityType$IFactory;Lnet/minecraft/entity/EntityClassification;)Lnet/minecraft/entity/EntityType$Builder;     Mod Version: 1.0.0     Mod Issue URL: NOT PROVIDED     Exception message: java.lang.NoSuchMethodError: net.minecraft.entity.EntityType$Builder.of(Lnet/minecraft/entity/EntityType$IFactory;Lnet/minecraft/entity/EntityClassification;)Lnet/minecraft/entity/EntityType$Builder; Stacktrace:     at com.Kujira.minepiece.entity.ModEntityTypes.lambda$static$0(ModEntityTypes.java:19) ~[?:?] {re:classloading}     at com.Kujira.minepiece.entity.ModEntityTypes$$Lambda$3118/1730752382.get(Unknown Source) ~[?:?] {}     at net.minecraftforge.registries.DeferredRegister.lambda$register$0(DeferredRegister.java:110) ~[?:?] {re:classloading}     at net.minecraftforge.registries.DeferredRegister$$Lambda$3090/1983063045.get(Unknown Source) ~[?:?] {}     at net.minecraftforge.registries.DeferredRegister.addEntries(DeferredRegister.java:186) ~[?:?] {re:classloading}     at net.minecraftforge.registries.DeferredRegister.access$000(DeferredRegister.java:47) ~[?:?] {re:classloading}     at net.minecraftforge.registries.DeferredRegister$EventDispatcher.handleEvent(DeferredRegister.java:158) ~[?:?] {re:classloading}     at net.minecraftforge.eventbus.ASMEventHandler_0_EventDispatcher_handleEvent_Register.invoke(.dynamic) ~[?:?] {}     at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.eventbus.EventBus$$Lambda$3476/1916974029.invoke(Unknown Source) ~[?:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:106) ~[?:36.2] {re:classloading}     at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:107) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModContainer$$Lambda$3105/752772379.run(Unknown Source) ~[?:?] {}     at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1618) ~[?:1.8.0_51] {}     at net.minecraftforge.fml.ModWorkManager$SyncExecutor.driveOne(ModWorkManager.java:42) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModWorkManager$DrivenExecutor.drive(ModWorkManager.java:26) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModLoader.waitForTransition(ModLoader.java:235) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModLoader.dispatchAndHandleError(ModLoader.java:222) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModLoader.gatherAndInitializeMods(ModLoader.java:188) ~[?:?] {re:classloading}     at net.minecraftforge.fml.client.ClientModLoader.lambda$begin$1(ClientModLoader.java:89) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraftforge.fml.client.ClientModLoader$$Lambda$2920/168398198.run(Unknown Source) ~[?:?] {}     at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$4(ClientModLoader.java:109) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraftforge.fml.client.ClientModLoader$$Lambda$2921/1088649990.run(Unknown Source) ~[?:?] {}     at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:89) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.<init>(Minecraft.java:437) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:149) [?:?] {re:classloading,pl:runtimedistcleaner:A}     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}     at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}     at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:37) [forge-1.16.5-36.2.39.jar:36.2] {}     at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$457/2095970915.call(Unknown Source) [forge-1.16.5-36.2.39.jar:36.2] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.1.3.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.1.3.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.1.3.jar:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.1.3.jar:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.1.3.jar:?] {} -- System Details -- Details:     Minecraft Version: 1.16.5     Minecraft Version ID: 1.16.5     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_51, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 886955560 bytes (845 MB) / 2147483648 bytes (2048 MB) up to 2147483648 bytes (2048 MB)     CPUs: 8     JVM Flags: 10 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -XX:+IgnoreUnrecognizedVMOptions -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     ModLauncher: 8.1.3+8.1.3+main-8.1.x.c94d18ec     ModLauncher launch target: fmlclient     ModLauncher naming: srg     ModLauncher services:          /mixin-0.8.4.jar mixin PLUGINSERVICE          /eventbus-4.0.0.jar eventbus PLUGINSERVICE          /forge-1.16.5-36.2.39.jar object_holder_definalize PLUGINSERVICE          /forge-1.16.5-36.2.39.jar runtime_enum_extender PLUGINSERVICE          /accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE          /forge-1.16.5-36.2.39.jar capability_inject_definalize PLUGINSERVICE          /forge-1.16.5-36.2.39.jar runtimedistcleaner PLUGINSERVICE          /mixin-0.8.4.jar mixin TRANSFORMATIONSERVICE          /forge-1.16.5-36.2.39.jar fml TRANSFORMATIONSERVICE      FML: 36.2     Forge: net.minecraftforge:36.2.39     FML Language Providers:          javafml@36.2         minecraft@1
    • Ok so the game has run but when I create world, after loading terrain and joining the world,  the screen went gray and after a few minutes it kicked me out and say "Invalid player data". Could you help me?
  • Topics

×
×
  • Create New...

Important Information

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