Jump to content

[1.8] Unable to load variant: facing=<cardinal direction>...etc.


Recommended Posts

Posted

Hi, again, All.

 

I've managed to get my model to show up as an item, but its block is invisible (and still doesn't drop anything, though that's for another post).

 

The console log reports that it cannot load the variants for facing = south, east, north and west.

What do I need to change or add to get this to work?  Is there another structure or way of going about this that is better practice?  I plan to have multiple colors of the shelf block in the future, but for now it's just a single-colored block that is made up of three elements and can face in four different directions.

 

Console log:

 

 

[14:39:24] [main/INFO] [GradleStart]: Extra: []

[14:39:24] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Becky/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]

[14:39:24] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[14:39:24] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[14:39:24] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[14:39:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[14:39:24] [main/INFO] [FML]: Forge Mod Loader version 8.0.20.1023 for Minecraft 1.8 loading

[14:39:24] [main/INFO] [FML]: Java is Java HotSpot Client VM, version 1.8.0_31, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre1.8.0_31

[14:39:24] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[14:39:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[14:39:24] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[14:39:24] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[14:39:24] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[14:39:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[14:39:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[14:39:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

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

[14:39:27] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[14:39:27] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[14:39:27] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[14:39:27] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[14:39:27] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[14:39:28] [Client thread/INFO]: Setting user: Player586

[14:39:28] [Client thread/INFO]: (Session ID is token:FML:Player586)

[14:39:31] [Client thread/INFO]: LWJGL Version: 2.9.1

[14:39:32] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[14:39:32] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[14:39:33] [Client thread/INFO] [FML]: Searching C:\Users\Becky\Desktop\Forge ModLoader-1.8-8.0.20.1023-1.8-src\eclipse\mods for mods

[14:39:36] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load

[14:39:36] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at CLIENT

[14:39:36] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at SERVER

[14:39:36] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Test Mod 01, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[14:39:37] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[14:39:37] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[14:39:37] [Client thread/INFO] [FML]: Applying holder lookups

[14:39:37] [Client thread/INFO] [FML]: Holder lookups applied

[14:39:37] [sound Library Loader/INFO]: Starting up SoundSystem...

[14:39:37] [Thread-7/INFO]: Initializing LWJGL OpenAL

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

[14:39:37] [Thread-7/INFO]: OpenAL initialized.

[14:39:37] [sound Library Loader/INFO]: Sound engine started

[14:39:39] [Client thread/WARN]: Unable to load variant: facing=south from shelvesmod:shelfBlock#facing=south

[14:39:39] [Client thread/WARN]: Unable to load variant: facing=east from shelvesmod:shelfBlock#facing=east

[14:39:39] [Client thread/WARN]: Unable to load variant: facing=north from shelvesmod:shelfBlock#facing=north

[14:39:40] [Client thread/WARN]: Unable to load variant: facing=west from shelvesmod:shelfBlock#facing=west

[14:39:40] [Client thread/INFO]: Created: 512x512 textures-atlas

[14:39:42] [Client thread/INFO] [sTDOUT]: [com.becky.testmod01.Testmod01:postInit:145]: Called method: postInit

[14:39:42] [Client thread/INFO] [sTDOUT]: [com.rosecotton.oredetect.OreDetectMod:postInit:120]: Called method: postInit

[14:39:42] [Client thread/INFO] [sTDOUT]: [com.rosecotton.shelvesmod.ShelvesMod:postInit:126]: Called method: postInit

[14:39:42] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods

[14:39:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Test Mod 01, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[14:39:42] [Client thread/INFO]: SoundSystem shutting down...

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

[14:39:42] [sound Library Loader/INFO]: Starting up SoundSystem...

[14:39:42] [Thread-9/INFO]: Initializing LWJGL OpenAL

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

[14:39:42] [Thread-9/INFO]: OpenAL initialized.

[14:39:43] [sound Library Loader/INFO]: Sound engine started

[14:39:45] [Client thread/WARN]: Unable to load variant: facing=south from shelvesmod:shelfBlock#facing=south

[14:39:45] [Client thread/WARN]: Unable to load variant: facing=east from shelvesmod:shelfBlock#facing=east

[14:39:45] [Client thread/WARN]: Unable to load variant: facing=north from shelvesmod:shelfBlock#facing=north

[14:39:45] [Client thread/WARN]: Unable to load variant: facing=west from shelvesmod:shelfBlock#facing=west

[14:39:46] [Client thread/INFO]: Created: 512x512 textures-atlas

[14:39:54] [server thread/INFO]: Starting integrated minecraft server version 1.8

[14:39:54] [server thread/INFO]: Generating keypair

[14:39:54] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[14:39:54] [server thread/INFO] [FML]: Applying holder lookups

[14:39:54] [server thread/INFO] [FML]: Holder lookups applied

[14:39:55] [server thread/INFO]: Preparing start region for level 0

[14:39:56] [server thread/INFO]: Preparing spawn area: 38%

[14:39:57] [server thread/INFO]: Changing view distance to 8, from 10

[14:39:57] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 1

[14:39:57] [Netty Server IO #1/INFO] [FML]: Client protocol version 1

[14:39:57] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected]

[14:39:57] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established

[14:39:57] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[14:39:57] [server thread/INFO]: Player586[local:E:d31ac719] logged in with entity id 320 at (90.8025175196235, 63.0, 117.21162407136738)

[14:39:57] [server thread/INFO]: Player586 joined the game

[14:40:08] [server thread/INFO]: Saving and pausing game...

[14:40:08] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[14:40:09] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[14:40:09] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[14:40:10] [server thread/INFO]: Stopping server

[14:40:10] [server thread/INFO]: Saving players

[14:40:10] [server thread/INFO]: Saving worlds

[14:40:10] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[14:40:10] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[14:40:10] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[14:40:11] [server thread/INFO] [FML]: Applying holder lookups

[14:40:11] [server thread/INFO] [FML]: Holder lookups applied

[14:40:12] [Client thread/INFO]: Stopping!

[14:40:12] [Client thread/INFO]: SoundSystem shutting down...

[14:40:12] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

Java HotSpot Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

 

ShelvesMod.java

package com.rosecotton.shelvesmod;

import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.RenderEntityItem;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.common.registry.LanguageRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraft.util.EnumFacing;

import com.rosecotton.shelvesmod.BlockShelf;



@Mod(modid = ShelvesMod.MODID, name = ShelvesMod.MODNAME, version = ShelvesMod.VERSION) 

public class ShelvesMod 
{


  public static Block shelfBlock;
  //public static Item brickIngot;
  public static final String MODID = "shelvesmod";
  public static final String MODNAME = "RoseCotton's Shelves Mod for 1.8";
  public static final String VERSION = "1.0";
  public static int type;
  
  
  
  
  @Instance(value = "shelvesmod")
  public static ShelvesMod instance = new ShelvesMod();
  

  
  
  public static class MySidedProxyHolder {
	  @SidedProxy(modId="shelvesmod",clientSide="com.rosecotton.shelvesmod.ClientProxy", serverSide="com.rosecotton.shelvesmod.CommonProxy")
	  public static CommonProxy proxy;
	  }
	  
	  public class CommonProxy {
		  // Common or server stuff here that needs to be overridden on the client
	  }
	  public class ClientProxy extends CommonProxy {
		  // Override common stuff with client specific stuff here
	  }
  

  @EventHandler
  public void preInit(FMLPreInitializationEvent event) 
  {
  	//System.out.println("Called method: preInit");
  	

  
  	//blocks
  	shelfBlock = new BlockShelf(type);
  	LanguageRegistry.addName(shelfBlock, "Shelf Block");
  	
  
  	//items
  	//brickIngot = new ItemBrickIngot();
	  //MOVE GAMEREGISTRY TO ITEM CLASS?
  	//GameRegistry.registerItem(brickIngot, ((ItemBrickIngot) brickIngot).getName());
  	//LanguageRegistry.addName(brickIngot, "Brick Ingot");
  }

  @EventHandler
  public void init(FMLInitializationEvent event) 
  {
  	//System.out.println("Called method: init");
  
  	if(event.getSide() == Side.CLIENT)
  	{
  		
  		RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
  		//renderItem.getItemModelMesher().register(brickIngot, 0, new ModelResourceLocation(Testmod01.MODID + ":" + ((ItemBrickIngot)brickIngot).getName(), "brickIngot"));
  		//Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(brickIngot,0, new ModelResourceLocation(Testmod01.MODID + ":" + ((ItemBrickIngot)brickIngot).getName(), "inventory"));

  		renderItem.getItemModelMesher().register(Item.getItemFromBlock(shelfBlock), 0, new ModelResourceLocation(ShelvesMod.MODID + ":" + "shelfBlock", "shelfBlock"));
  		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(shelfBlock),0, new ModelResourceLocation(ShelvesMod.MODID+":"+ "shelfBlock", "inventory"));
  		
  		
  	}
  	
  	//recipes
  	//GameRegistry.addRecipe(new ItemStack(brickBlock), new Object[]{
  	//"AA ",
  	//"AA ",
  	//"   ",
  	//'A', brickIngot
  	//});

  	//GameRegistry.addShapelessRecipe(new ItemStack(brickIngot, 4), new Object[]
  	//{
  	//    	brickBlock//new ItemStack(brickBlock, 1, 1)
  	//});
  	
  	//I left off the third parameter in ItemStack because it means damage
  	//GameRegistry.addSmelting(new ItemStack(brickBlock, 1), new ItemStack(brickIngot, 1), 0.1F);
  	
  	
  }

  @EventHandler
  public void postInit(FMLPostInitializationEvent event) 
  {
  	System.out.println("Called method: postInit");
  }
}

 

BlockShelf.java

(you can see I've been adopting examples...the credits for this mod will have to be in the form of an online party...)

package com.rosecotton.shelvesmod;

//import BlockStairs;

import java.util.Iterator;
import java.util.Random;

//import com.becky.testmod01.Testmod01;

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.properties.PropertyEnum;
import net.minecraft.block.state.BlockState;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.passive.EntityOcelot;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.InventoryHelper;
import net.minecraft.inventory.InventoryLargeChest;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityChest;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.IStringSerializable;
import net.minecraft.util.MathHelper;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.ILockableContainer;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.registry.GameRegistry;


public class BlockShelf extends Block {

    public static final PropertyDirection FACING = PropertyDirection.create("facing", EnumFacing.Plane.HORIZONTAL);
    public static final PropertyEnum SECTION = PropertyEnum.create("section", BlockShelf.EnumShape.class);
    
    private final Random rand = new Random();
    private static final String __OBFID = "CL_00000214";
private final String name = "shelfBlock";
ModelResourceLocation modelresourcelocation = new ModelResourceLocation("shelvesmod"+":"+name, "inventory");
    
    protected BlockShelf(int type)
    {
        super(Material.wood);
        //TEH FOLLOWIONG LINE MIGHT HAVE BEEN USEFUL BUT MAYBE CAUSED AN ERROR AT RUNTIME, TRY AGAIN
        this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
        //this.chestType = type;
        this.setCreativeTab(CreativeTabs.tabMisc);
        this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 0.9375F, 0.875F, 0.9375F);
        this.useNeighborBrightness = true;
	this.setDefaultState(this.blockState.getBaseState());
        GameRegistry.registerBlock(this, name);
    	this.setUnlocalizedName(ShelvesMod.MODID + "_" + name);
    }

    public int getRenderType()
    {
        return 2;
    }


    // used by the renderer to control lighting and visibility of other blocks.
    // set to false because this block doesn't fill the entire 1x1x1 space
    @Override
    public boolean isOpaqueCube() {
      return false;
    }

    // used by the renderer to control lighting and visibility of other blocks, also by
    // (eg) wall or fence to control whether the fence joins itself to this block
    // set to false because this block doesn't fill the entire 1x1x1 space
    @Override
    public boolean isFullCube() {
      return false;
    }
    
    // this function returns the correct item type corresponding to the colour of our block;
    // i.e. when a sign is broken, it will drop the correct item.
    @Override
    public int damageDropped(IBlockState state)
    {
      //EnumColour enumColour = (EnumColour)state.getValue(PROPERTYCOLOUR);
      //return this.getMetadata();//enumColour.getMetadata();
    	return 0;
    }
    
    public void setBlockBoundsBasedOnState(IBlockAccess worldIn, BlockPos pos)
    {
        if (worldIn.getBlockState(pos.north()).getBlock() == this)
        {
            this.setBlockBounds(0.0625F, 0.0F, 0.0F, 0.9375F, 0.875F, 0.9375F);
        }
        else if (worldIn.getBlockState(pos.south()).getBlock() == this)
        {
            this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 0.9375F, 0.875F, 1.0F);
        }
        else if (worldIn.getBlockState(pos.west()).getBlock() == this)
        {
            this.setBlockBounds(0.0F, 0.0F, 0.0625F, 0.9375F, 0.875F, 0.9375F);
        }
        else if (worldIn.getBlockState(pos.east()).getBlock() == this)
        {
            this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 1.0F, 0.875F, 0.9375F);
        }
        else
        {
            this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 0.9375F, 0.875F, 0.9375F);
        }
    }

    public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state)
    {
        //this.checkForSurroundingChests(worldIn, pos, state);
        Iterator iterator = EnumFacing.Plane.HORIZONTAL.iterator();

        while (iterator.hasNext())
        {
            EnumFacing enumfacing = (EnumFacing)iterator.next();
            BlockPos blockpos1 = pos.offset(enumfacing);
            IBlockState iblockstate1 = worldIn.getBlockState(blockpos1);

        }
    }

    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());
    }

    public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack)
    {
        EnumFacing enumfacing = EnumFacing.getHorizontal(MathHelper.floor_double((double)(placer.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3).getOpposite();
        state = state.withProperty(FACING, enumfacing);
        BlockPos blockpos1 = pos.north();
        BlockPos blockpos2 = pos.south();
        BlockPos blockpos3 = pos.west();
        BlockPos blockpos4 = pos.east();
        boolean flag = this == worldIn.getBlockState(blockpos1).getBlock();
        boolean flag1 = this == worldIn.getBlockState(blockpos2).getBlock();
        boolean flag2 = this == worldIn.getBlockState(blockpos3).getBlock();
        boolean flag3 = this == worldIn.getBlockState(blockpos4).getBlock();

        if (!flag && !flag1 && !flag2 && !flag3)
        {
            worldIn.setBlockState(pos, state, 3);
        }
        else if (enumfacing.getAxis() == EnumFacing.Axis.X && (flag || flag1))
        {
            if (flag)
            {
                worldIn.setBlockState(blockpos1, state, 3);
            }
            else
            {
                worldIn.setBlockState(blockpos2, state, 3);
            }

            worldIn.setBlockState(pos, state, 3);
        }
        else if (enumfacing.getAxis() == EnumFacing.Axis.Z && (flag2 || flag3))
        {
            if (flag2)
            {
                worldIn.setBlockState(blockpos3, state, 3);
            }
            else
            {
                worldIn.setBlockState(blockpos4, state, 3);
            }

            worldIn.setBlockState(pos, state, 3);
        }

        if (stack.hasDisplayName())
        {
            TileEntity tileentity = worldIn.getTileEntity(pos);

            if (tileentity instanceof TileEntityChest)
            {
                ((TileEntityChest)tileentity).setCustomName(stack.getDisplayName());
            }
        }
    }


    public IBlockState correctFacing(World worldIn, BlockPos pos, IBlockState state)
    {
        EnumFacing enumfacing = null;
        Iterator iterator = EnumFacing.Plane.HORIZONTAL.iterator();

        while (iterator.hasNext())
        {
            EnumFacing enumfacing1 = (EnumFacing)iterator.next();
            IBlockState iblockstate1 = worldIn.getBlockState(pos.offset(enumfacing1));

            if (iblockstate1.getBlock() == this)
            {
                return state;
            }

            if (iblockstate1.getBlock().isFullBlock())
            {
                if (enumfacing != null)
                {
                    enumfacing = null;
                    break;
                }

                enumfacing = enumfacing1;
            }
        }

        if (enumfacing != null)
        {
            return state.withProperty(FACING, enumfacing.getOpposite());
        }
        else
        {
            EnumFacing enumfacing2 = (EnumFacing)state.getValue(FACING);

            if (worldIn.getBlockState(pos.offset(enumfacing2)).getBlock().isFullBlock())
            {
                enumfacing2 = enumfacing2.getOpposite();
            }

            if (worldIn.getBlockState(pos.offset(enumfacing2)).getBlock().isFullBlock())
            {
                enumfacing2 = enumfacing2.rotateY();
            }

            if (worldIn.getBlockState(pos.offset(enumfacing2)).getBlock().isFullBlock())
            {
                enumfacing2 = enumfacing2.getOpposite();
            }

            return state.withProperty(FACING, enumfacing2);
        }
    }





    public void breakBlock(World worldIn, BlockPos pos, IBlockState state)
    {
        TileEntity tileentity = worldIn.getTileEntity(pos);

        if (tileentity instanceof IInventory)
        {
            InventoryHelper.dropInventoryItems(worldIn, pos, (IInventory)tileentity);
            worldIn.updateComparatorOutputLevel(pos, this);
        }

        super.breakBlock(worldIn, pos, state);
    }



    public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumFacing side, float hitX, float hitY, float hitZ)
    {
       // if (worldIn.isRemote)
       // {
            return true;
       // }
     
    }



   


   public TileEntity createNewTileEntity(World worldIn, int meta)
    {
        return new TileEntityChest();
    }



    private boolean isBlocked(World worldIn, BlockPos pos)
    {
        return this.isBelowSolidBlock(worldIn, pos) || this.isOcelotSittingOnChest(worldIn, pos);
    }

    private boolean isBelowSolidBlock(World worldIn, BlockPos pos)
    {
        return worldIn.getBlockState(pos.up()).getBlock().isNormalCube();
    }




    private boolean isOcelotSittingOnChest(World worldIn, BlockPos pos)
    {
        Iterator iterator = worldIn.getEntitiesWithinAABB(EntityOcelot.class, new AxisAlignedBB((double)pos.getX(), (double)(pos.getY() + 1), (double)pos.getZ(), (double)(pos.getX() + 1), (double)(pos.getY() + 2), (double)(pos.getZ() + 1))).iterator();
        EntityOcelot entityocelot;

        do
        {
            if (!iterator.hasNext())
            {
                return false;
            }

            Entity entity = (Entity)iterator.next();
            entityocelot = (EntityOcelot)entity;
        }
        while (!entityocelot.isSitting());

        return true;
    }

    public boolean hasComparatorInputOverride()
    {
        return true;
    }




    
    @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)
    {
      EnumFacing facing = (EnumFacing)state.getValue(FACING);
      //EnumColour colour = (EnumColour)state.getValue(PROPERTYCOLOUR);

      int facingbits = facing.getHorizontalIndex();
     //int colourbits = colour.getMetadata() << 2;
      return facingbits;// | colourbits;
    }

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


    public static enum EnumShape implements IStringSerializable
    {
        TOP("top"),
        MIDDLE("middle"),
        BOTTOM("bottom");

        private final String name;

        private static final String __OBFID = "CL_00003061";

        private EnumShape(String name)
        {
            this.name = name;
        }

        public String toString()
        {
            return this.name;
        }

        public String getName()
        {
            return this.name;
        }

    }

}

 

# THIS IS THE BLOCKSTATE FILE. IT GOES IN THE assets/shelvesmod/blockstates/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.


{
    "variants": {
        "facing=east , section=bottom": { "model": "shelvesmod:shelfBlock" },
        "facing=west , section=bottom": { "model": "shelvesmod:shelfBlock", "y": 180, "uvlock": true },
        "facing=south, section=bottom": { "model": "shelvesmod:shelfBlock", "y": 90,  "uvlock": true },
        "facing=north, section=bottom": { "model": "shelvesmod:shelfBlock", "y": 270, "uvlock": true },     
        "facing=east , section=middle": { "model": "shelvesmod:shelfBlock", "uvlock": true },
        "facing=west , section=middle": { "model": "shelvesmod:shelfBlock", "y": 180, "uvlock": true },
        "facing=south, section=middle": { "model": "shelvesmod:shelfBlock", "y": 90, "uvlock": true },
        "facing=north, section=middle": { "model": "shelvesmod:shelfBlock", "y": 270, "uvlock": true },
        "facing=east , section=top"   : { "model": "shelvesmod:shelfBlock", "uvlock": true },
        "facing=west , section=top"   : { "model": "shelvesmod:shelfBlock", "y": 180, "uvlock": true },
        "facing=south, section=top"   : { "model": "shelvesmod:shelfBlock", "y": 90, "uvlock": true },
        "facing=north, section=top"   : { "model": "shelvesmod:shelfBlock", "y": 270, "uvlock": true }

    }
}

 

# THIS IS THE BLOCK MDOEL FILE. IT GOES IN THE assets/shelvesmod/models/block/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.

{

    "textures": {
        "all": "shelvesmod:blocks/shelfBlock"

    },


    "elements": [
   
        {   
            "from": [ 0, 0, 0 ],
            "to": [ 16, 2, 16 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 16 ], "texture":"all", "cullface": "down"},
                "up":   { "uv": [ 0, 0, 16, 16 ], "texture":"all" },
                "north": { "uv": [ 0, 0, 16, 2 ], "texture":"all","cullface": "north" },
                "south": { "uv": [ 0, 0, 16, 2 ], "texture":"all", "cullface": "south" },
                "west": { "uv": [ 0, 0, 16, 2 ], "texture":"all", "cullface": "west" },
                "east": { "uv": [ 0, 0, 16, 2 ], "texture":"all", "cullface": "east" }
            }
        }, 
        
        {  
            "from": [ 0, 2, 0 ],
            "to": [ 16, 10, 10 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 10 ], "texture":"all", "cullface": "down"},
                "up":   { "uv": [ 0, 0, 16, 10 ], "texture":"all" },
                "north": { "uv": [ 0, 2, 16, 10 ], "texture":"all", "cullface": "north" },
                "south": { "uv": [ 0, 2, 16, 10 ], "texture":"all", "cullface": "south" },
                "west": { "uv": [ 0, 2, 10, 10 ], "texture":"all", "cullface": "west" },
                "east": { "uv": [ 0, 2, 10, 10 ], "texture":"all", "cullface": "east" }
            }
        }, 
        
        {  
            "from": [ 0, 10, 0 ],
            "to": [ 16, 16, 2 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 2 ], "texture":"all", "cullface": "down"},
                "up":   { "uv": [ 0, 0, 16, 2 ] , "texture":"all"},
                "north": { "uv": [ 0, 10, 16, 16 ], "texture":"all", "cullface": "north" },
                "south": { "uv": [ 0, 10, 16, 16 ], "texture":"all", "cullface": "south" },
                "west": { "uv": [ 0, 10, 2, 16 ], "texture":"all", "cullface": "west" },
                "east": { "uv": [ 0, 10, 2, 16 ], "texture":"all", "cullface": "east" }
            }
        }
    ]
}

 

# THIS IS THE BLOCK ITEM MDOEL FILE. IT GOES IN THE assets/shelvesmod/models/item/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.

{
    "parent": "shelvesmod:block/shelfBlock",
    "display": {
        "thirdperson": {
            "rotation": [ 10, -45, 170 ],
            "translation": [ 0, 1.5, -2.75 ],
            "scale": [ 0.375, 0.375, 0.375 ]
        }
    }
}

hw developer in a sw world

Posted

Ok, something I'm doing with my other mod is affecting this one...

When I comment out my other mod, the item model for BlockShelf no longer shows up.

 

new console log, after I commented out my other mod's @Mod line:

 

 

[15:35:30] [main/INFO] [GradleStart]: Extra: []

[15:35:30] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Becky/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]

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

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

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

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

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

[15:35:30] [main/INFO] [FML]: Java is Java HotSpot Client VM, version 1.8.0_31, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre1.8.0_31

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

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

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

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

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

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

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

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

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

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

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

[15:35:34] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[15:35:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[15:35:34] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[15:35:35] [Client thread/INFO]: Setting user: Player246

[15:35:35] [Client thread/INFO]: (Session ID is token:FML:Player246)

[15:35:38] [Client thread/INFO]: LWJGL Version: 2.9.1

[15:35:39] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[15:35:39] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[15:35:39] [Client thread/INFO] [FML]: Searching C:\Users\Becky\Desktop\Forge ModLoader-1.8-8.0.20.1023-1.8-src\eclipse\mods for mods

[15:35:43] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[15:35:43] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, oredetectmod, shelvesmod] at CLIENT

[15:35:43] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, oredetectmod, shelvesmod] at SERVER

[15:35:43] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[15:35:43] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[15:35:43] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[15:35:43] [Client thread/INFO] [FML]: Applying holder lookups

[15:35:43] [Client thread/INFO] [FML]: Holder lookups applied

[15:35:44] [sound Library Loader/INFO]: Starting up SoundSystem...

[15:35:44] [Thread-7/INFO]: Initializing LWJGL OpenAL

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

[15:35:44] [Thread-7/INFO]: OpenAL initialized.

[15:35:44] [sound Library Loader/INFO]: Sound engine started

[15:35:46] [Client thread/WARN]: Unable to load definition shelvesmod:shelfBlock#facing=east

java.lang.RuntimeException: Encountered an exception when loading model definition of 'shelvesmod:shelfBlock#facing=east' from: 'shelvesmod:blockstates/shelfBlock.json' in resourcepack: 'FMLFileResourcePack:Ore Detect Mod'

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

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

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:98) [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:471) [Minecraft.class:?]

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

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

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:85) [start/:?]

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

Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 16 more

Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 16 more

[15:35:46] [Client thread/WARN]: Unable to load definition shelvesmod:shelfBlock#facing=south

java.lang.RuntimeException: Encountered an exception when loading model definition of 'shelvesmod:shelfBlock#facing=south' from: 'shelvesmod:blockstates/shelfBlock.json' in resourcepack: 'FMLFileResourcePack:Ore Detect Mod'

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

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

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:98) [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:471) [Minecraft.class:?]

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

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

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:85) [start/:?]

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

Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 16 more

Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 16 more

[15:35:46] [Client thread/WARN]: Unable to load definition shelvesmod:shelfBlock#facing=west

java.lang.RuntimeException: Encountered an exception when loading model definition of 'shelvesmod:shelfBlock#facing=west' from: 'shelvesmod:blockstates/shelfBlock.json' in resourcepack: 'FMLFileResourcePack:Ore Detect Mod'

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

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

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:98) [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:471) [Minecraft.class:?]

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

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

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:85) [start/:?]

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

Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 16 more

Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 16 more

[15:35:46] [Client thread/WARN]: Unable to load definition shelvesmod:shelfBlock#facing=north

java.lang.RuntimeException: Encountered an exception when loading model definition of 'shelvesmod:shelfBlock#facing=north' from: 'shelvesmod:blockstates/shelfBlock.json' in resourcepack: 'FMLFileResourcePack:Ore Detect Mod'

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

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

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:98) [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:471) [Minecraft.class:?]

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

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

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:85) [start/:?]

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

Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 16 more

Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 16 more

[15:35:47] [Client thread/INFO]: Created: 512x512 textures-atlas

[15:35:49] [Client thread/INFO] [sTDOUT]: [com.rosecotton.oredetect.OreDetectMod:postInit:120]: Called method: postInit

[15:35:49] [Client thread/INFO] [sTDOUT]: [com.rosecotton.shelvesmod.ShelvesMod:postInit:126]: Called method: postInit

[15:35:49] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods

[15:35:49] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[15:35:49] [Client thread/INFO]: SoundSystem shutting down...

[15:35:49] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[15:35:49] [sound Library Loader/INFO]: Starting up SoundSystem...

[15:35:50] [Thread-9/INFO]: Initializing LWJGL OpenAL

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

[15:35:50] [Thread-9/INFO]: OpenAL initialized.

[15:35:50] [sound Library Loader/INFO]: Sound engine started

[15:35:51] [Client thread/WARN]: Unable to load definition shelvesmod:shelfBlock#facing=east

java.lang.RuntimeException: Encountered an exception when loading model definition of 'shelvesmod:shelfBlock#facing=east' from: 'shelvesmod:blockstates/shelfBlock.json' in resourcepack: 'FMLFileResourcePack:Ore Detect Mod'

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

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

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:98) [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:728) [Minecraft.class:?]

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

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

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

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:85) [start/:?]

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

Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 19 more

Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 19 more

[15:35:51] [Client thread/WARN]: Unable to load definition shelvesmod:shelfBlock#facing=south

java.lang.RuntimeException: Encountered an exception when loading model definition of 'shelvesmod:shelfBlock#facing=south' from: 'shelvesmod:blockstates/shelfBlock.json' in resourcepack: 'FMLFileResourcePack:Ore Detect Mod'

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

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

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:98) [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:728) [Minecraft.class:?]

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

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

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

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:85) [start/:?]

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

Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 19 more

Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 19 more

[15:35:51] [Client thread/WARN]: Unable to load definition shelvesmod:shelfBlock#facing=west

java.lang.RuntimeException: Encountered an exception when loading model definition of 'shelvesmod:shelfBlock#facing=west' from: 'shelvesmod:blockstates/shelfBlock.json' in resourcepack: 'FMLFileResourcePack:Ore Detect Mod'

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

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

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:98) [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:728) [Minecraft.class:?]

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

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

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

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:85) [start/:?]

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

Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 19 more

Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 19 more

[15:35:52] [Client thread/WARN]: Unable to load definition shelvesmod:shelfBlock#facing=north

java.lang.RuntimeException: Encountered an exception when loading model definition of 'shelvesmod:shelfBlock#facing=north' from: 'shelvesmod:blockstates/shelfBlock.json' in resourcepack: 'FMLFileResourcePack:Ore Detect Mod'

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

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

at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:98) [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:728) [Minecraft.class:?]

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

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

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

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:85) [start/:?]

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

Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 19 more

Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?]

at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]

at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:35) ~[ModelBlockDefinition.class:?]

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

... 19 more

[15:35:53] [Client thread/INFO]: Created: 512x512 textures-atlas

[15:36:00] [server thread/INFO]: Starting integrated minecraft server version 1.8

[15:36:00] [server thread/INFO]: Generating keypair

[15:36:01] [server thread/ERROR] [fml.ModTracker]: This world was saved with mod testmod01 which appears to be missing, things may not work well

[15:36:01] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[15:36:01] [server thread/INFO] [FML]: Found a missing id from the world testmod01:brickBlock

[15:36:01] [server thread/INFO] [FML]: Found a missing id from the world testmod01:brickBlock

[15:36:01] [server thread/INFO] [FML]: Found a missing id from the world testmod01:brickIngot

[15:36:01] [server thread/ERROR] [FML]: There are unidentified mappings in this world - we are going to attempt to process anyway

[15:36:01] [server thread/ERROR] [FML]: Unidentified block: testmod01:brickBlock, id 198

[15:36:01] [server thread/ERROR] [FML]: Unidentified item: testmod01:brickBlock, id 198

[15:36:01] [server thread/ERROR] [FML]: Unidentified item: testmod01:brickIngot, id 4096

[15:36:17] [server thread/INFO] [FML]: World backup created at C:\Users\Becky\Desktop\Forge ModLoader-1.8-8.0.20.1023-1.8-src\eclipse\saves\Forge_test01-20150303-153616.zip.

[15:36:17] [server thread/ERROR] [FML]: This world contains block and item mappings that may cause world breakage

[15:36:17] [server thread/INFO] [FML]: Applying holder lookups

[15:36:17] [server thread/INFO] [FML]: Holder lookups applied

[15:36:17] [server thread/INFO]: Preparing start region for level 0

[15:36:18] [server thread/INFO]: Preparing spawn area: 33%

[15:36:19] [server thread/INFO]: Changing view distance to 8, from 10

[15:36:20] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 1

[15:36:20] [Netty Server IO #1/INFO] [FML]: Client protocol version 1

[15:36:20] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]

[15:36:20] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established

[15:36:20] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[15:36:20] [server thread/INFO]: Player246[local:E:5184cba5] logged in with entity id 313 at (90.8025175196235, 63.0, 117.21162407136738)

[15:36:20] [server thread/INFO]: Player246 joined the game

[15:36:28] [server thread/INFO]: Player246 has just earned the achievement [Taking Inventory]

[15:36:28] [Client thread/INFO]: [CHAT] Player246 has just earned the achievement [Taking Inventory]

[15:36:32] [server thread/INFO]: Saving and pausing game...

[15:36:32] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[15:36:32] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[15:36:32] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[15:36:36] [server thread/INFO]: Stopping server

[15:36:36] [server thread/INFO]: Saving players

[15:36:36] [server thread/INFO]: Saving worlds

[15:36:36] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[15:36:36] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[15:36:36] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[15:36:36] [server thread/INFO] [FML]: Applying holder lookups

[15:36:36] [server thread/INFO] [FML]: Holder lookups applied

[15:36:36] [Client thread/INFO]: Stopping!

[15:36:36] [Client thread/INFO]: SoundSystem shutting down...

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

Java HotSpot Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

 

package com.becky.testmod01;

//import net.minecraft.init.Blocks;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.SidedProxy;
//import net.minecraftforge.fml.common.NetworkMod;
//import cpw.mods.fml.common.network.NetworkMod;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.common.registry.LanguageRegistry;
import net.minecraftforge.fml.relauncher.Side;

import com.becky.testmod01.ItemBrickIngot;
//import net.minecraftforge.common.MinecraftForge;

//@Mod(modid = Testmod01.MODID, name = Testmod01.MODNAME, version = Testmod01.VERSION) 

//FIND OUT WHY I THOUGHT THIS WAS A GOOD IDEA?  1.7 tutorials... :\
//Maybe not used for 1.8...??
//@NetworkMod(clientSideRequired = true, serverSideRequired = false)




public class Testmod01 
{
    public static Block brickBlock;
    
    public static Item brickIngot;
    
    
    
    //DO WE NEED THIS?  WHAT NEEDS TO BE INCLUDED?  THIS IS FROM 1.8 CODE
    //http://www.wuppy29.com/minecraft/1-8-tutorial/updating-1-7-to-1-8-part-1-setup-mod-file/#sthash.LGfmMFHk.dpbs
    //Testmod01EventHandler handler = new Testmod01EventHandler();

    public static final String MODID = "testmod01";
    public static final String MODNAME = "Becky's First Test Mod 1.8";
    public static final String VERSION = "1.0";
    
    @Instance(value = "testmod01")
    public static Testmod01 instance = new Testmod01();
    
    // Says where the client and server 'proxy' code is loaded.
    @SidedProxy(modId="Testmod01",clientSide="com.becky.testmod01.client.ClientProxy", serverSide="com.becky.testmod01.CommonProxy")

   public static CommonProxy proxy;
    


    
    public class CommonProxy 
    {
    // Common or server stuff here that needs to be overridden on the client
    }
    public class ClientProxy extends CommonProxy 
    {
    // Override common stuff with client specific stuff here
    }
    

    ///START WTIH THE NEXT TWO LINES
    //public final static Block blockBrick = new BlockBrick().setHardness(0.5F).setStepSound(Block.soundTypeGravel)
    //.setBlockName("blockBrick").setCreativeTab(CreativeTabs.tabBlock);
    
   
    @EventHandler
    public void preInit(FMLPreInitializationEvent event) 
    {
    	//System.out.println("Called method: preInit");
    	
    	//event handler registry
    	//FMLCommonHandler.instance().bus().register(handler);
    	//MinecraftForge.EVENT_BUS.register(handler);
    
    	//blocks
    	//START WITH THE NEXT TWO LINES
    	brickBlock = new BlockBrick();
    	//GameRegistry.registerBlock(brickBlock, ((BlockBrick) brickBlock).getName());
    	LanguageRegistry.addName(brickBlock, "Slime Brick");
    	
    
    	//items
    	brickIngot = new ItemBrickIngot();
    	
    
    	GameRegistry.registerItem(brickIngot, ((ItemBrickIngot) brickIngot).getName());
    	LanguageRegistry.addName(brickIngot, "Slime Brick Ingot");
    }

    @EventHandler
    public void init(FMLInitializationEvent event) 
    {
    	//System.out.println("Called method: init");
    
    	if(event.getSide() == Side.CLIENT)
    	{
    		
    		RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
    		renderItem.getItemModelMesher().register(brickIngot, 0, new ModelResourceLocation(Testmod01.MODID + ":" + ((ItemBrickIngot)brickIngot).getName(), "brickIngot"));
    		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(brickIngot,0, new ModelResourceLocation(Testmod01.MODID + ":" + ((ItemBrickIngot)brickIngot).getName(), "inventory"));

    		renderItem.getItemModelMesher().register(Item.getItemFromBlock(brickBlock), 0, new ModelResourceLocation(Testmod01.MODID + ":" + ((BlockBrick)brickBlock).getName(), "brickBlock"));
    		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(brickBlock),0, new ModelResourceLocation(Testmod01.MODID+":"+ ((BlockBrick)brickBlock).getName(), "inventory"));
    		
    		
    	}
    	
    	//recipes
    	GameRegistry.addRecipe(new ItemStack(brickBlock), new Object[]{
    	"AA ",
    	"AA ",
    	"   ",
    	'A', brickIngot
    	});

    	GameRegistry.addShapelessRecipe(new ItemStack(brickIngot, 4), new Object[]
    	{
    	    	brickBlock//new ItemStack(brickBlock, 1, 1)
    	});
    	
    	//I left off the third parameter in ItemStack because it means damage
    	GameRegistry.addSmelting(new ItemStack(brickBlock, 1), new ItemStack(brickIngot, 1), 0.1F);
    	
    	
    }

    @EventHandler
    public void postInit(FMLPostInitializationEvent event) 
    {
    	System.out.println("Called method: postInit");
    }
}

hw developer in a sw world

Posted

Hi

 

The reason is here, I think

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

 

your block is telling minecraft that it only has one property (i.e. FACING), but your model file expects to see two properties (FACING and SECTION).

I'm suspicious of the extra spaces around the comma in your "facing=east , section=middle" too.

 

This error I'm not sure

> Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 13 column 6

Maybe it's caused by the property problem, maybe it's something else (malformed blockstates file).

 

Also, get rid of this line

    private static final String __OBFID = "CL_00000214";

It's used for vanilla classes only to control proper de- and re-obfuscation of the method and field names.

 

-TGG

 

 

 

 

Posted

Thanks, I also worried about the extras spaces in my facing and section properties string...I have removed them.

 

I also put my Test mod 01 back in but my rendered item didn't return - still the pink and black block for the item and the block when placed in invisible.

 

 

Console log (doesn't tell me anything at this point):

 

 

[04:09:03] [main/INFO] [GradleStart]: Extra: []

[04:09:04] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Becky/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]

[04:09:04] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[04:09:04] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[04:09:04] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[04:09:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[04:09:04] [main/INFO] [FML]: Forge Mod Loader version 8.0.20.1023 for Minecraft 1.8 loading

[04:09:04] [main/INFO] [FML]: Java is Java HotSpot Client VM, version 1.8.0_31, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre1.8.0_31

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

[04:09:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[04:09:04] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[04:09:04] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[04:09:04] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[04:09:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[04:09:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[04:09:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

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

[04:09:06] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[04:09:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[04:09:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[04:09:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[04:09:06] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[04:09:07] [Client thread/INFO]: Setting user: Player239

[04:09:07] [Client thread/INFO]: (Session ID is token:FML:Player239)

[04:09:10] [Client thread/INFO]: LWJGL Version: 2.9.1

[04:09:10] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[04:09:10] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[04:09:11] [Client thread/INFO] [FML]: Searching C:\Users\Becky\Desktop\Forge ModLoader-1.8-8.0.20.1023-1.8-src\eclipse\mods for mods

[04:09:29] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load

[04:09:29] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at CLIENT

[04:09:29] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at SERVER

[04:09:29] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Test Mod 01, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[04:09:29] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[04:09:29] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[04:09:29] [Client thread/INFO] [FML]: Applying holder lookups

[04:09:29] [Client thread/INFO] [FML]: Holder lookups applied

[04:09:30] [sound Library Loader/INFO]: Starting up SoundSystem...

[04:09:30] [Thread-7/INFO]: Initializing LWJGL OpenAL

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

[04:09:31] [Thread-7/INFO]: OpenAL initialized.

[04:09:31] [sound Library Loader/INFO]: Sound engine started

[04:09:34] [Client thread/INFO]: Created: 512x512 textures-atlas

[04:09:35] [Client thread/INFO] [sTDOUT]: [com.becky.testmod01.Testmod01:postInit:145]: Called method: postInit

[04:09:35] [Client thread/INFO] [sTDOUT]: [com.rosecotton.oredetect.OreDetectMod:postInit:120]: Called method: postInit

[04:09:35] [Client thread/INFO] [sTDOUT]: [com.rosecotton.shelvesmod.ShelvesMod:postInit:126]: Called method: postInit

[04:09:35] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods

[04:09:35] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Test Mod 01, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[04:09:35] [Client thread/INFO]: SoundSystem shutting down...

[04:09:35] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[04:09:35] [sound Library Loader/INFO]: Starting up SoundSystem...

[04:09:35] [Thread-9/INFO]: Initializing LWJGL OpenAL

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

[04:09:36] [Thread-9/INFO]: OpenAL initialized.

[04:09:36] [sound Library Loader/INFO]: Sound engine started

[04:09:38] [Client thread/INFO]: Created: 512x512 textures-atlas

[04:09:44] [server thread/INFO]: Starting integrated minecraft server version 1.8

[04:09:44] [server thread/INFO]: Generating keypair

[04:09:44] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[04:09:44] [server thread/INFO] [FML]: Injecting new block and item data into this server instance.

[04:09:44] [server thread/INFO] [FML]: Injected new block/item testmod01:brickBlock: 198 (init) -> 200 (map).

[04:09:44] [server thread/INFO] [FML]: Injected new block/item testmod01:brickIngot: 4096 (init) -> 4097 (map).

[04:09:44] [server thread/INFO] [FML]: Injected new block/item testmod01:brickBlock: 198 (init) -> 200 (map).

[04:09:44] [server thread/INFO] [FML]: Applying holder lookups

[04:09:44] [server thread/INFO] [FML]: Holder lookups applied

[04:09:45] [server thread/INFO]: Preparing start region for level 0

[04:09:46] [server thread/INFO]: Preparing spawn area: 33%

[04:09:47] [server thread/INFO]: Changing view distance to 8, from 10

[04:09:48] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 1

[04:09:48] [Netty Server IO #1/INFO] [FML]: Client protocol version 1

[04:09:48] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected]

[04:09:48] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[04:09:48] [server thread/INFO]: Player239[local:E:22df3a4a] logged in with entity id 308 at (90.8025175196235, 63.0, 117.21162407136738)

[04:09:48] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established

[04:09:48] [server thread/INFO]: Player239 joined the game

[04:09:56] [server thread/INFO]: Saving and pausing game...

[04:09:56] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[04:09:56] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[04:09:56] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[04:09:58] [server thread/INFO]: Stopping server

[04:09:58] [server thread/INFO]: Saving players

[04:09:58] [server thread/INFO]: Saving worlds

[04:09:58] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[04:09:58] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[04:09:58] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[04:09:58] [server thread/INFO] [FML]: Applying holder lookups

[04:09:58] [server thread/INFO] [FML]: Holder lookups applied

[04:09:58] [Client thread/INFO]: Stopping!

[04:09:58] [Client thread/INFO]: SoundSystem shutting down...

[04:09:59] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

Java HotSpot Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

[\spoiler]

hw developer in a sw world

Posted

UPDATE: Yes, changing my

 

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

to

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

gets rid of the error stating that it can't render the block's varients (facing=north,south,east,west).

But it doesn't make the block show up.

I'm still not sure why commenting out the @mod line in my Testmod01 made my shelvesmod stop rendering the item form of my block, and why putting Testmod01 back in didn't fix that.  :\

 

I'm getting the same console data as before:

 

 

[04:19:19] [main/INFO] [GradleStart]: Extra: []

[04:19:19] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Becky/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]

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

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

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

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

[04:19:19] [main/INFO] [FML]: Forge Mod Loader version 8.0.20.1023 for Minecraft 1.8 loading

[04:19:19] [main/INFO] [FML]: Java is Java HotSpot Client VM, version 1.8.0_31, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre1.8.0_31

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[04:19:22] [Client thread/INFO]: Setting user: Player554

[04:19:22] [Client thread/INFO]: (Session ID is token:FML:Player554)

[04:19:25] [Client thread/INFO]: LWJGL Version: 2.9.1

[04:19:26] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[04:19:26] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[04:19:26] [Client thread/INFO] [FML]: Searching C:\Users\Becky\Desktop\Forge ModLoader-1.8-8.0.20.1023-1.8-src\eclipse\mods for mods

[04:19:29] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load

[04:19:29] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at CLIENT

[04:19:29] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at SERVER

[04:19:29] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Test Mod 01, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[04:19:29] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[04:19:29] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[04:19:29] [Client thread/INFO] [FML]: Applying holder lookups

[04:19:29] [Client thread/INFO] [FML]: Holder lookups applied

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

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

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

[04:19:31] [Thread-7/INFO]: OpenAL initialized.

[04:19:31] [sound Library Loader/INFO]: Sound engine started

[04:19:33] [Client thread/INFO]: Created: 512x512 textures-atlas

[04:19:34] [Client thread/INFO] [sTDOUT]: [com.becky.testmod01.Testmod01:postInit:142]: Called method: postInit

[04:19:34] [Client thread/INFO] [sTDOUT]: [com.rosecotton.oredetect.OreDetectMod:postInit:120]: Called method: postInit

[04:19:34] [Client thread/INFO] [sTDOUT]: [com.rosecotton.shelvesmod.ShelvesMod:postInit:108]: Called method: postInit

[04:19:34] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods

[04:19:34] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Test Mod 01, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[04:19:34] [Client thread/INFO]: SoundSystem shutting down...

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

[04:19:34] [sound Library Loader/INFO]: Starting up SoundSystem...

[04:19:35] [Thread-9/INFO]: Initializing LWJGL OpenAL

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

[04:19:35] [Thread-9/INFO]: OpenAL initialized.

[04:19:35] [sound Library Loader/INFO]: Sound engine started

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

[04:19:42] [server thread/INFO]: Starting integrated minecraft server version 1.8

[04:19:42] [server thread/INFO]: Generating keypair

[04:19:43] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[04:19:43] [server thread/INFO] [FML]: Applying holder lookups

[04:19:43] [server thread/INFO] [FML]: Holder lookups applied

[04:19:43] [server thread/INFO]: Preparing start region for level 0

[04:19:44] [server thread/INFO]: Preparing spawn area: 38%

[04:19:45] [server thread/INFO]: Changing view distance to 8, from 10

[04:19:46] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 1

[04:19:46] [Netty Server IO #1/INFO] [FML]: Client protocol version 1

[04:19:46] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected]

[04:19:46] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established

[04:19:46] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[04:19:46] [server thread/INFO]: Player554[local:E:9d4a1116] logged in with entity id 307 at (90.8025175196235, 63.0, 117.21162407136738)

[04:19:46] [server thread/INFO]: Player554 joined the game

[04:19:51] [server thread/INFO]: Saving and pausing game...

[04:19:51] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[04:19:51] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[04:19:51] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[04:19:53] [server thread/INFO]: Stopping server

[04:19:53] [server thread/INFO]: Saving players

[04:19:53] [server thread/INFO]: Saving worlds

[04:19:53] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[04:19:53] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[04:19:53] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[04:19:53] [server thread/INFO] [FML]: Applying holder lookups

[04:19:53] [server thread/INFO] [FML]: Holder lookups applied

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

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

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

Java HotSpot Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

hw developer in a sw world

Posted

Hi

 

Your console log looks fine, no relevant errors.

 

  // render using a BakedModel (mbe01_block_simple.json --> mbe01_block_simple_model.json)
  // not strictly required because the default (super method) is 3.
  @Override
  public int getRenderType() {
    return 3;
  }

Your code returns 2, which means "don't render anything, my TileEntitySpecialRenderer will render for me", which of course you don't have.

 

-TGG

 

 

Posted

Oh! I forgot to figure out that 3 meant! I will check that out. Thank you.

 

UPDATE: YES!!!  :)  I commented out my overriding getRenderType() method and now my block renders.

for some reason, the item still doesn't render, though.  That's weird.  I lost that ability when I commented out the @Mod line of my other mod, but even putting it back in, the item still doesn't render.  I'll try to check it out some more because I know that even though I say that removing Testmod01 was the reason the item rendering went away, chances are I messed with something else while trying things I didn't understand.

 

omg omg omg omg I'm so excited!  =)

best. vacation. ever.

 

Thank you, Grey Ghost!!  =)

hw developer in a sw world

Posted

UPDATE:

 

I got the item to render!  I don't know why I had to change this, but I had to add a getName() method to my BlockShelf class and use it when rendering the item shelfBlock.  I had just hard coded in "shelfBlock" but for some reason that didn't work.

 

renderItem.getItemModelMesher().register(Item.getItemFromBlock(shelfBlock), 0, new ModelResourceLocation(ShelvesMod.MODID + ":" + ((BlockShelf) shelfBlock).getName(), "shelfBlock"));
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(shelfBlock),0, new ModelResourceLocation(ShelvesMod.MODID+":"+ "shelfBlock", "inventory"));

hw developer in a sw world

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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