Jump to content

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


RoseCotton

Recommended Posts

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 : oredetectmod@1.0,FML@8.0.20.1023,shelvesmod@1.0,testmod01@1.0,mcp@9.05

[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

Link to comment
Share on other sites

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 : oredetectmod@1.0,FML@8.0.20.1023,shelvesmod@1.0,mcp@9.05

[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

Link to comment
Share on other sites

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

 

 

 

 

Link to comment
Share on other sites

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 : oredetectmod@1.0,FML@8.0.20.1023,shelvesmod@1.0,testmod01@1.0,mcp@9.05

[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

Link to comment
Share on other sites

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 : oredetectmod@1.0,FML@8.0.20.1023,shelvesmod@1.0,testmod01@1.0,mcp@9.05

[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

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

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

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • My modded minecraft world don't go past 100% on the loading screen. My backup still work, but i've made a lot of progress from the point i was that save. i have already checked online and did some suggestions i found, but nothing worked. Here is my latest log + i don´t have crash reports: https://github.com/GmsantosPT/Minecraft-mod-problems/tree/main   Pls Help, Santos
    • Please share a link to your crash report, as explained in the FAQ
    • I have a block already registered in my mod, which I have used in some worlds. The problem arises when in code, I add a property called CURRENT_AGE, when running Minecraft it freezes. In the console it doesn't appear any excpetion except that it stays in this phase: [Render thread/DEBUG] [ne.mi.co.ca.CapabilityManager/CAPABILITIES]: Attempting to automatically register: Lnet/minecraftforge/items/IItemHandler; Does anyone have an idea what it could be? I show the block and its registration public class SoulLichenBlock extends MultifaceBlock implements SimpleWaterloggedBlock, EntityBlock { public static final BooleanProperty WATERLOGGED = BlockStateProperties.WATERLOGGED; public static final IntegerProperty SKILL_LEVEL = IntegerProperty.create("soullichen_level", 0, 30); public static final DirectionProperty FACE = DirectionProperty.create("soullichen_face"); public static final DirectionProperty DIRECTION = DirectionProperty.create("soullichen_direction"); public static final IntegerProperty CURRENT_AGE = BlockStateProperties.AGE_25; private final MultifaceSpreader spreader = new MultifaceSpreader(this); private final MultifaceSpreader.DefaultSpreaderConfig config = new MultifaceSpreader.DefaultSpreaderConfig(this); private LivingEntity owner; //private static final Integer MAX_AGE = 25; public SoulLichenBlock(Properties properties) { super(properties); this.registerDefaultState(this .defaultBlockState() .setValue(WATERLOGGED, Boolean.FALSE) .setValue(SKILL_LEVEL, 0) .setValue(FACE, Direction.DOWN) .setValue(DIRECTION, Direction.DOWN) .trySetValue(CURRENT_AGE, 0) ); } public static ToIntFunction<BlockState> emission(int p_181223_) { return (p_181221_) -> MultifaceBlock.hasAnyFace(p_181221_) ? p_181223_ : 0; } public static boolean hasFace(BlockState p_153901_, @NotNull Direction p_153902_) { BooleanProperty booleanproperty = getFaceProperty(p_153902_); return p_153901_.hasProperty(booleanproperty) && p_153901_.getValue(booleanproperty); } protected void createBlockStateDefinition(StateDefinition.@NotNull Builder<Block, BlockState> stateDefinition) { stateDefinition.add(WATERLOGGED).add(SKILL_LEVEL).add(FACE).add(DIRECTION).add(CURRENT_AGE); super.createBlockStateDefinition(stateDefinition); } public @NotNull BlockState updateShape(BlockState p_153302_, @NotNull Direction p_153303_, @NotNull BlockState p_153304_, @NotNull LevelAccessor p_153305_, @NotNull BlockPos p_153306_, @NotNull BlockPos p_153307_) { if (p_153302_.getValue(WATERLOGGED)) { p_153305_.scheduleTick(p_153306_, Fluids.WATER, Fluids.WATER.getTickDelay(p_153305_)); } return super.updateShape(p_153302_, p_153303_, p_153304_, p_153305_, p_153306_, p_153307_); } @SuppressWarnings("deprecation") public @NotNull FluidState getFluidState(BlockState fluidState) { return fluidState.getValue(WATERLOGGED) ? Fluids.WATER.getSource(false) : super.getFluidState(fluidState); } public boolean propagatesSkylightDown(BlockState p_181225_, @NotNull BlockGetter blockGetter, @NotNull BlockPos blockPos) { return p_181225_.getFluidState().isEmpty(); } public @NotNull MultifaceSpreader getSpreader() { return this.spreader; } public Optional<MultifaceSpreader.SpreadPos> spreadFromRandomFaceTowardRandomDirection( BlockState p_221620_, LevelAccessor p_221621_, BlockPos p_221622_, RandomSource p_221623_, int skillPoints, int age) { return Direction.allShuffled(p_221623_).stream().filter((p_221680_) -> { return this.config.canSpreadFrom(p_221620_, p_221680_); }).map((p_221629_) -> { return this.spreadFromFaceTowardRandomDirection(p_221620_, p_221621_, p_221622_, p_221629_, p_221623_, false, skillPoints, age); }).filter(Optional::isPresent).findFirst().orElse(Optional.empty()); } public Optional<MultifaceSpreader.SpreadPos> spreadFromFaceTowardRandomDirection( BlockState blockState, LevelAccessor levelAccessor, BlockPos blockPos, Direction face, RandomSource randomSource, boolean aBoolean, int skillPoints, int age) { return Direction.allShuffled(randomSource).stream().map((direction) -> spreadFromFaceTowardDirection(blockState, levelAccessor, blockPos, face, direction, aBoolean, skillPoints, age)) .filter(Optional::isPresent) .findFirst() .orElse(Optional.empty()); } public Optional<MultifaceSpreader.SpreadPos> spreadFromFaceTowardDirection( BlockState blockState, LevelAccessor levelAccessor, BlockPos blockPos, Direction face, Direction direction, boolean aBoolean, int skillPoints, int age) { //DevilRpg.LOGGER.debug("BEGIN ==================================== spreadFromFaceTowardDirection skillPoints {}", skillPoints); return skillPoints < 0 ? Optional.empty() : getSpreadFromFaceTowardDirection(blockState, levelAccessor, blockPos, face, direction, this::canSpreadInto) .flatMap((spreadPos) -> { //DevilRpg.LOGGER.debug("END ================================ spreadFromFaceTowardDirection spreadPos {}", spreadPos); return this.spreadToFace(levelAccessor, spreadPos, aBoolean, skillPoints, direction, age); }); } public boolean canSpreadInto(BlockGetter p_221685_, BlockPos p_221686_, MultifaceSpreader.SpreadPos p_221687_) { BlockState blockstate = p_221685_.getBlockState(p_221687_.pos()); return this.stateCanBeReplaced(p_221685_, p_221686_, p_221687_.pos(), p_221687_.face(), blockstate) && isValidStateForPlacement(p_221685_, blockstate, p_221687_.pos(), p_221687_.face()); } protected boolean stateCanBeReplaced(BlockGetter p_221688_, BlockPos p_221689_, BlockPos p_221690_, Direction p_221691_, BlockState p_221692_) { return p_221692_.isAir() || p_221692_.is(this) || p_221692_.is(Blocks.WATER) && p_221692_.getFluidState().isSource(); } public Optional<MultifaceSpreader.SpreadPos> getSpreadFromFaceTowardDirection(BlockState blockState, BlockGetter blockGetter, BlockPos blockPos, Direction face, Direction direction, MultifaceSpreader.SpreadPredicate spreadPredicate) { //DevilRpg.LOGGER.debug("--- getSpreadFromFaceTowardDirection direction.getAxis() == face.getAxis(): {}", direction.getAxis() == face.getAxis()); ArrayList<Direction> directions = new ArrayList<>(); directions.add(direction); if (direction.getAxis() == face.getAxis()) { if (direction.getAxis().isHorizontal()) { directions = Arrays.stream(Direction.values()).filter(dir -> dir.getAxis().isVertical()).collect(Collectors.toCollection(ArrayList::new)); } if (direction.getAxis().isVertical()) { directions = Arrays.stream(Direction.values()).filter(dir -> dir.getAxis().isHorizontal()).collect(Collectors.toCollection(ArrayList::new)); } } for (Direction directionElement : directions) { /*DevilRpg.LOGGER.debug("--->> getSpreadFromFaceTowardDirection config.isOtherBlockValidAsSource(blockState) {} || " + "hasFace(blockState, face) {} && " + "!hasFace(blockState, direction) {}", config.isOtherBlockValidAsSource(blockState), hasFace(blockState, face), !hasFace(blockState, directionElement));*/ if (config.isOtherBlockValidAsSource(blockState) || hasFace(blockState, face) && !hasFace(blockState, directionElement)) { for (MultifaceSpreader.SpreadType multifacespreader$spreadtype : config.getSpreadTypes()) { MultifaceSpreader.SpreadPos multifacespreader$spreadpos = multifacespreader$spreadtype.getSpreadPos(blockPos, directionElement, face); //DevilRpg.LOGGER.debug("--- test SpreadPos: {} direction {} face {} ", multifacespreader$spreadpos, directionElement, face); if (spreadPredicate.test(blockGetter, blockPos, multifacespreader$spreadpos)) { //DevilRpg.LOGGER.debug("--- spreadPredicate success:"); return Optional.of(multifacespreader$spreadpos); } } } } return Optional.empty(); } public boolean isValidStateForPlacement(@NotNull BlockGetter blockGetter, @NotNull BlockState blockState, @NotNull BlockPos blockPos, @NotNull Direction face) { //DevilRpg.LOGGER.debug("------ isValidStateForPlacement 1st condition: {} && ({} || {})", this.isFaceSupported(face), !blockState.is(this), !hasFace(blockState, face)); if (this.isFaceSupported(face) && (!blockState.is(this) || !hasFace(blockState, face))) { BlockPos blockpos = blockPos.relative(face); //DevilRpg.LOGGER.debug("------ isValidStateForPlacement 2nd condition: canAttachTo {} ", secondCondition); return canAttachTo(blockGetter, face, blockpos, blockGetter.getBlockState(blockpos)); } else { return false; } } @Nullable public BlockState getStateForPlacement(@NotNull BlockState blockState, @NotNull BlockGetter blockGetter, @NotNull BlockPos blockPos, @NotNull Direction face, int skillPoints, Direction direction, int age) { //DevilRpg.LOGGER.debug("--- getStateForPlacement"); boolean isNotValidStateForPlacement = !this.isValidStateForPlacement(blockGetter, blockState, blockPos, face); //DevilRpg.LOGGER.debug("------- isNotValidStateForPlacement: {}", isNotValidStateForPlacement); if (isNotValidStateForPlacement) { return null; } else { BlockState blockstate; if (blockState.is(this)) { blockstate = blockState; } else if (this.isWaterloggable() && blockState.getFluidState().isSourceOfType(Fluids.WATER)) { blockstate = this.defaultBlockState().setValue(BlockStateProperties.WATERLOGGED, Boolean.TRUE); } else { blockstate = this.defaultBlockState(); } //DevilRpg.LOGGER.debug("------- getStateForPlacement -> blockStateResult "); return blockstate .setValue(getFaceProperty(face), Boolean.TRUE) .setValue(SKILL_LEVEL, skillPoints).setValue(FACE, face) .setValue(DIRECTION, direction) .setValue(CURRENT_AGE,age) ; } } public Optional<MultifaceSpreader.SpreadPos> spreadToFace(LevelAccessor levelAccessor, MultifaceSpreader.SpreadPos spreadPos, boolean p_221596_, int skillPoints, Direction direction, int age) { BlockState blockstate = levelAccessor.getBlockState(spreadPos.pos()); //DevilRpg.LOGGER.debug("---> spreadToFace blockstate{} direction: {}", blockstate, direction); return this.placeBlock(levelAccessor, spreadPos, blockstate, p_221596_, skillPoints, direction, age) ? Optional.of(spreadPos) : Optional.empty(); } public boolean placeBlock(LevelAccessor p_221702_, MultifaceSpreader.SpreadPos p_221703_, BlockState p_221704_, boolean p_221705_, int skillPoints, Direction direction, int age) { //DevilRpg.LOGGER.debug("---> placeBlock {} direction {} ", p_221703_, direction); BlockState blockstate = this.getStateForPlacement(p_221704_, p_221702_, p_221703_.pos(), p_221703_.face(), skillPoints, direction, age); if (blockstate != null) { if (p_221705_) { p_221702_.getChunk(p_221703_.pos()).markPosForPostprocessing(p_221703_.pos()); } //DevilRpg.LOGGER.debug("------> setBlock"); return p_221702_.setBlock(p_221703_.pos(), blockstate, 2); } else { return false; } } public long spreadFromFaceTowardAllDirections( BlockState blockState, LevelAccessor levelAccessor, BlockPos blockPos, Direction face, boolean aBoolean, int skillPoints, int age) { return Direction.stream().map((p_221656_) -> spreadFromFaceTowardDirection(blockState, levelAccessor, blockPos, face, p_221656_, aBoolean, skillPoints, age)) .filter(Optional::isPresent).count(); } private boolean isWaterloggable() { return this.stateDefinition.getProperties().contains(BlockStateProperties.WATERLOGGED); } @Override public void setPlacedBy(@NotNull Level level, @NotNull BlockPos blockPos, @NotNull BlockState blockState, @Nullable LivingEntity livingEntity, @NotNull ItemStack itemStack) { super.setPlacedBy(level, blockPos, blockState, livingEntity, itemStack); this.setOwner(livingEntity); } public LivingEntity getOwner() { return this.owner; } private void setOwner(LivingEntity livingEntity) { this.owner = livingEntity; } @Deprecated @Override public void entityInside(@NotNull BlockState blockState, @NotNull Level level, @NotNull BlockPos blockPos, @NotNull Entity entity) { if (entity instanceof LivingEntity /*&& entity.getType() != EntityType.BEE*/ && entity.getType() != ModEntities.LICHEN_SEEDBALL.get()) { entity.makeStuckInBlock(blockState, new Vec3(0.8D, 0.75D, 0.8D)); if (!level.isClientSide /*&& (entity.xOld != entity.getX() || entity.zOld != entity.getZ())*/) { // double d0 = Math.abs(entity.getX() - entity.xOld); // double d1 = Math.abs(entity.getZ() - entity.zOld); // if (d0 >= (double) 0.003F || d1 >= (double) 0.003F) { entity.hurt(level.damageSources().playerAttack((Player) owner), 1.0F); // Aplicar aceleración al movimiento double speedBoost = -0.4; // Ajusta este valor según lo rápido que quieras que sea el impulso double motionX = entity.getX() - entity.xOld; double motionZ = entity.getZ() - entity.zOld; double speed = Math.sqrt(motionX * motionX + motionZ * motionZ); //if (speed > 0.0) { entity.setDeltaMovement(entity.getDeltaMovement().multiply( (motionX / speed) * speedBoost, 0.0, (motionZ / speed) * speedBoost )); // } //} } } } @Nullable @Override public BlockEntity newBlockEntity(@NotNull BlockPos pos, @NotNull BlockState state) { return ModEntityBlocks.SOUL_LICHEN_ENTITY_BLOCK.get().create(pos, state); } @Nullable @Override public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level level, @NotNull BlockState blockState, @NotNull BlockEntityType<T> type) { return level.isClientSide ? null : (alevel, pos, aBlockstate, blockEntity) -> { if (blockEntity instanceof SoulLichenBlockEntity soulLichenBlockEntity && alevel.getGameTime() % 5 == 0) { soulLichenBlockEntity.tick(blockState, (ServerLevel) alevel, pos, alevel.getRandom()); //DevilRpg.LOGGER.info("-------->tick. this: {}", this.getClass().getSimpleName()); } }; } }   This is the registration:   public final class ModBlocks { public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, DevilRpg.MODID); ... public static final RegistryObject<SoulLichenBlock> SOUL_LICHEN_BLOCK = BLOCKS.register("soullichen", () -> new SoulLichenBlock( Block.Properties.copy(Blocks.GLOW_LICHEN).lightLevel(SoulLichenBlock.emission(7)).randomTicks() )); }  
    • If you are using AMD/ATI, check for driver updates on their website - do not update via system
    • Hi, Create a new class that extends "Block" class and you need json for it in resources/assets/modid/blockstates directory and resources/assets/modid/models. You can generate json for it using a tool like misodes model generator. Here, atleast, are blocks explained at forge docs.  Don't forge to look at vanilla code, like Magma Block is a good reference if you're trying a "green fire block".  Modid should be replaced with your actual forge mod namespace!
  • Topics

×
×
  • Create New...

Important Information

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