Jump to content

Problems updating to 1.10


alexschopbarteld

Recommended Posts

Hey, i am currently in the process of updating my mod from 1.8 to 1.10, it has been a long process and after finally removing all the errors and following a lot of tutorials i am finally done. Well, i started my game, it crashes on init, i hope someone can help me fixt it.

 

 

modstuff:

 

 

Ref:

 

package com.runecraft;

 

public class Reference {

public static final String MOD_ID = "rc";

public static final String MOD_NAME = "Runecraft";

public static final String VERSION = "1.0";

public static final String CLIENT_PROXY_CLASS = "com.runecraft.proxy.ClientProxy";

public static final String SERVER_PROXY_CLASS = "com.runecraft.proxy.CommonProxy";

}

 

 

 

Main mod init

 

package com.runecraft;

 

 

import com.runecraft.CreativeTabs.RunecraftBlocksTab;

import com.runecraft.CreativeTabs.RunecraftEquipmentTab;

import com.runecraft.CreativeTabs.RunecraftItemsTab;

import com.runecraft.init.RunecraftArmour;

import com.runecraft.init.RunecraftBlocks;

import com.runecraft.init.RunecraftItems;

import com.runecraft.proxy.CommonProxy;

 

import net.minecraftforge.fml.common.Mod;

import net.minecraftforge.fml.common.Mod.EventHandler;

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;

 

 

 

@Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION)

public class Runecraft {

 

@SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)

public static CommonProxy proxy;

 

 

    @Mod.Instance(Reference.MOD_ID)

    public static Runecraft instance;

   

public static final RunecraftBlocksTab Runecraft_Blocks = new RunecraftBlocksTab("Runecraft_Blocks");

public static final RunecraftItemsTab Runecraft_Items = new RunecraftItemsTab("Runecraft_Items");

public static final RunecraftEquipmentTab Runecraft_Equipment = new RunecraftEquipmentTab("Runecraft_Equipment");

 

    public static final String MODID = Reference.MOD_ID;

    public static final String VERSION = Reference.VERSION;

 

 

 

//public static BlockBar

 

@EventHandler

public void preInit(FMLPreInitializationEvent event)

{

RunecraftBlocks.init();

RunecraftBlocks.register();

RunecraftItems.init();

RunecraftItems.register();

RunecraftArmour.init();

RunecraftArmour.register();

}

 

@EventHandler

public void init(FMLInitializationEvent event)

{

proxy.registerRenders();

}

 

@EventHandler

public void postInit(FMLPostInitializationEvent event)

{

 

}

 

}

 

 

 

block classes:

 

blockbar

 

package com.runecraft.blocks;

 

import java.util.List;

 

import com.runecraft.Reference;

import com.runecraft.Runecraft;

import com.runecraft.blocks.item.IMetaBlockName;

import com.runecraft.handlers.EnumHandler.ChipTypes;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockPistonBase;

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

import net.minecraft.block.state.IBlockState;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.util.EnumFacing;

import net.minecraft.util.ResourceLocation;

import net.minecraft.util.math.BlockPos;

import net.minecraft.world.World;

 

public class nieuweBlockBar extends Block implements IMetaBlockName{

 

public static final PropertyEnum TYPE = PropertyEnum.create("type", ChipTypes.class);

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

 

 

 

public nieuweBlockBar(String unlocalizedName) {

super(Material.WOOD);

this.setUnlocalizedName(unlocalizedName);

this.setCreativeTab(Runecraft.Runecraft_Blocks);

this.setRegistryName(new ResourceLocation(Reference.MOD_ID, unlocalizedName));

this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, ChipTypes.BASIC).withProperty(FACING, EnumFacing.NORTH));

 

}

 

@Override

protected BlockStateContainer createBlockState() {

return new BlockStateContainer(this, new IProperty[] {TYPE});

}

 

@Override

public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ,

int meta, EntityLivingBase placer) {

return super.onBlockPlaced(worldIn, pos, BlockPistonBase.getFacingFromEntity(pos, placer), hitX, hitY, hitZ, meta, placer);

}

 

@Override

public int getMetaFromState(IBlockState state) {

ChipTypes type = (ChipTypes) state.getValue(TYPE);

return type.getID();

}

 

@Override

public IBlockState getStateFromMeta(int meta) {

return this.getDefaultState().withProperty(TYPE, ChipTypes.values()[meta]);

}

 

@Override

public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) {

for(int i = 0;i < ChipTypes.values().length; i++) {

list.add(new ItemStack(itemIn, 1, i));

}

}

 

@Override

public String getSpecialName(ItemStack stack) {

return ChipTypes.values()[stack.getItemDamage()].getName();

}

}

 

 

drawers

 

package com.runecraft.blocks;

 

import java.util.List;

 

import com.runecraft.Reference;

import com.runecraft.Runecraft;

import com.runecraft.blocks.item.IMetaBlockName;

import com.runecraft.handlers.EnumHandler.ChipTypes;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockPistonBase;

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

import net.minecraft.block.state.IBlockState;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.util.EnumFacing;

import net.minecraft.util.ResourceLocation;

import net.minecraft.util.math.BlockPos;

import net.minecraft.world.World;

 

public class nieuweDrawers extends Block implements IMetaBlockName {

 

public static final PropertyEnum TYPE = PropertyEnum.create("type", ChipTypes.class);

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

 

 

 

public nieuweDrawers (String unlocalizedName) {

super(Material.WOOD);

this.setUnlocalizedName(unlocalizedName);

this.setCreativeTab(Runecraft.Runecraft_Blocks);

this.setRegistryName(new ResourceLocation(Reference.MOD_ID, unlocalizedName));

this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, ChipTypes.BASIC).withProperty(FACING, EnumFacing.NORTH));

 

}

 

@Override

protected BlockStateContainer createBlockState() {

return new BlockStateContainer(this, new IProperty[] {TYPE});

}

 

@Override

public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ,

int meta, EntityLivingBase placer) {

return super.onBlockPlaced(worldIn, pos, BlockPistonBase.getFacingFromEntity(pos, placer), hitX, hitY, hitZ, meta, placer);

}

 

@Override

public int getMetaFromState(IBlockState state) {

ChipTypes type = (ChipTypes) state.getValue(TYPE);

return type.getID();

}

 

@Override

public IBlockState getStateFromMeta(int meta) {

return this.getDefaultState().withProperty(TYPE, ChipTypes.values()[meta]);

}

 

@Override

public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) {

for(int i = 0;i < ChipTypes.values().length; i++) {

list.add(new ItemStack(itemIn, 1, i));

}

}

 

@Override

public String getSpecialName(ItemStack stack) {

return ChipTypes.values()[stack.getItemDamage()].getName();

}

}

 

 

lantern

 

package com.runecraft.blocks;

 

import java.util.List;

 

import com.runecraft.Reference;

import com.runecraft.Runecraft;

import com.runecraft.blocks.item.IMetaBlockName;

import com.runecraft.handlers.EnumHandler.ChipTypes;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockPistonBase;

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

import net.minecraft.block.state.IBlockState;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.util.EnumFacing;

import net.minecraft.util.ResourceLocation;

import net.minecraft.util.math.BlockPos;

import net.minecraft.world.World;

 

public class nieuweHangingLantern  extends Block implements IMetaBlockName {

 

public static final PropertyEnum TYPE = PropertyEnum.create("type", ChipTypes.class);

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

 

 

 

public nieuweHangingLantern(String unlocalizedName) {

super(Material.WOOD);

this.setUnlocalizedName(unlocalizedName);

this.setCreativeTab(Runecraft.Runecraft_Blocks);

this.setRegistryName(new ResourceLocation(Reference.MOD_ID, unlocalizedName));

this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, ChipTypes.BASIC).withProperty(FACING, EnumFacing.NORTH));

 

}

 

@Override

protected BlockStateContainer createBlockState() {

return new BlockStateContainer(this, new IProperty[] {TYPE});

}

 

@Override

public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ,

int meta, EntityLivingBase placer) {

return super.onBlockPlaced(worldIn, pos, BlockPistonBase.getFacingFromEntity(pos, placer), hitX, hitY, hitZ, meta, placer);

}

 

@Override

public int getMetaFromState(IBlockState state) {

ChipTypes type = (ChipTypes) state.getValue(TYPE);

return type.getID();

}

 

@Override

public IBlockState getStateFromMeta(int meta) {

return this.getDefaultState().withProperty(TYPE, ChipTypes.values()[meta]);

}

 

@Override

public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) {

for(int i = 0;i < ChipTypes.values().length; i++) {

list.add(new ItemStack(itemIn, 1, i));

}

}

 

@Override

public String getSpecialName(ItemStack stack) {

return ChipTypes.values()[stack.getItemDamage()].getName();

}

}

 

 

kruk

 

package com.runecraft.blocks;

 

import java.util.List;

 

import com.runecraft.Reference;

import com.runecraft.Runecraft;

import com.runecraft.blocks.item.IMetaBlockName;

import com.runecraft.handlers.EnumHandler.ChipTypes;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockPistonBase;

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

import net.minecraft.block.state.IBlockState;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.util.EnumFacing;

import net.minecraft.util.ResourceLocation;

import net.minecraft.util.math.BlockPos;

import net.minecraft.world.World;

 

public class nieuwekruk  extends Block implements IMetaBlockName {

 

public static final PropertyEnum TYPE = PropertyEnum.create("type", ChipTypes.class);

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

 

 

 

public nieuwekruk(String unlocalizedName) {

super(Material.WOOD);

this.setUnlocalizedName(unlocalizedName);

this.setCreativeTab(Runecraft.Runecraft_Blocks);

this.setRegistryName(new ResourceLocation(Reference.MOD_ID, unlocalizedName));

this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, ChipTypes.BASIC).withProperty(FACING, EnumFacing.NORTH));

 

}

 

@Override

protected BlockStateContainer createBlockState() {

return new BlockStateContainer(this, new IProperty[] {TYPE});

}

 

@Override

public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ,

int meta, EntityLivingBase placer) {

return super.onBlockPlaced(worldIn, pos, BlockPistonBase.getFacingFromEntity(pos, placer), hitX, hitY, hitZ, meta, placer);

}

 

@Override

public int getMetaFromState(IBlockState state) {

ChipTypes type = (ChipTypes) state.getValue(TYPE);

return type.getID();

}

 

@Override

public IBlockState getStateFromMeta(int meta) {

return this.getDefaultState().withProperty(TYPE, ChipTypes.values()[meta]);

}

 

@Override

public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) {

for(int i = 0;i < ChipTypes.values().length; i++) {

list.add(new ItemStack(itemIn, 1, i));

}

}

 

@Override

public String getSpecialName(ItemStack stack) {

return ChipTypes.values()[stack.getItemDamage()].getName();

}

}

 

 

swordcase

 

package com.runecraft.blocks;

 

import java.util.List;

 

import com.runecraft.Reference;

import com.runecraft.Runecraft;

import com.runecraft.blocks.item.IMetaBlockName;

import com.runecraft.handlers.EnumHandler.ChipTypes;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockPistonBase;

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

import net.minecraft.block.state.IBlockState;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.util.EnumFacing;

import net.minecraft.util.ResourceLocation;

import net.minecraft.util.math.BlockPos;

import net.minecraft.world.World;

 

public class nieuweSwordCase  extends Block implements IMetaBlockName {

 

public static final PropertyEnum TYPE = PropertyEnum.create("type", ChipTypes.class);

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

 

 

 

public nieuweSwordCase(String unlocalizedName) {

super(Material.WOOD);

this.setUnlocalizedName(unlocalizedName);

this.setCreativeTab(Runecraft.Runecraft_Blocks);

this.setRegistryName(new ResourceLocation(Reference.MOD_ID, unlocalizedName));

this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, ChipTypes.BASIC).withProperty(FACING, EnumFacing.NORTH));

 

}

 

@Override

protected BlockStateContainer createBlockState() {

return new BlockStateContainer(this, new IProperty[] {TYPE});

}

 

@Override

public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ,

int meta, EntityLivingBase placer) {

return super.onBlockPlaced(worldIn, pos, BlockPistonBase.getFacingFromEntity(pos, placer), hitX, hitY, hitZ, meta, placer);

}

 

@Override

public int getMetaFromState(IBlockState state) {

ChipTypes type = (ChipTypes) state.getValue(TYPE);

return type.getID();

}

 

@Override

public IBlockState getStateFromMeta(int meta) {

return this.getDefaultState().withProperty(TYPE, ChipTypes.values()[meta]);

}

 

@Override

public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) {

for(int i = 0;i < ChipTypes.values().length; i++) {

list.add(new ItemStack(itemIn, 1, i));

}

}

 

@Override

public String getSpecialName(ItemStack stack) {

return ChipTypes.values()[stack.getItemDamage()].getName();

}

}

 

 

 

 

 

imetablockname

 

package com.runecraft.blocks.item;

 

import net.minecraft.item.ItemStack;

 

public interface IMetaBlockName {

 

 

String getSpecialName(ItemStack stack);

 

}

 

 

itemBlock

 

package com.runecraft.blocks.item;

 

import net.minecraft.block.Block;

import net.minecraft.item.ItemBlock;

import net.minecraft.item.ItemStack;

 

public class ItemBlockBar extends ItemBlock {

 

public ItemBlockBar(Block block) {

super(block);

if(!(block instanceof IMetaBlockName)) {

throw new IllegalArgumentException(String.format("Hey mongool Block %s is niet in IMetaBlockName!", block.getUnlocalizedName()));

}

this.setHasSubtypes(true);

this.setMaxDamage(0);

}

 

@Override

public String getUnlocalizedName(ItemStack stack) {

return super.getUnlocalizedName() + '.' + ((IMetaBlockName) this.block).getSpecialName(stack);

}

 

}

 

 

 

EnumHandler:

 

package com.runecraft.handlers;

 

import net.minecraft.util.IStringSerializable;

 

public class EnumHandler {

 

public static enum ChipTypes implements IStringSerializable {

BASIC("basic", 0),

ADVANCED("advanced", 1);

 

private int ID;

private String name;

 

private ChipTypes(String name, int ID) {

this.ID = ID;

this.name = name;

}

 

@Override

public String getName() {

return null;

}

 

public int getID() {

return ID;

}

 

@Override

public String toString() {

return getName();

}

 

}

 

}

 

 

 

runecraftBlocks(blocksinit)

 

package com.runecraft.init;

 

import com.runecraft.Reference;

import com.runecraft.Runecraft;

import com.runecraft.blocks.nieuweBlockBar;

import com.runecraft.blocks.nieuweDrawers;

import com.runecraft.blocks.nieuweHangingLantern;

import com.runecraft.blocks.nieuweSwordCase;

import com.runecraft.blocks.nieuwekruk;

import com.runecraft.blocks.item.ItemBlockBar;

import com.runecraft.handlers.EnumHandler;

 

import net.minecraft.block.Block;

import net.minecraft.client.renderer.block.model.ModelResourceLocation;

import net.minecraft.item.Item;

import net.minecraft.item.ItemBlock;

import net.minecraftforge.client.model.ModelLoader;

import net.minecraftforge.fml.common.registry.GameRegistry;

 

public class RunecraftBlocks {

 

public static Block bar;

public static Block kruk;

public static Block lantern;

public static Block sword_case;

public static Block Drawers;

 

 

public static void init()

{

bar = new nieuweBlockBar("bar");

kruk = new nieuwekruk("kruk");

lantern = new nieuweHangingLantern("lantern");

sword_case = new nieuweSwordCase("sword_case");

Drawers = new nieuweDrawers("Drawers");

 

 

}

 

public static void register()

{

registerBlock(bar, new ItemBlockBar(bar));

registerBlock(kruk, new ItemBlockBar(kruk));

registerBlock(lantern, new ItemBlockBar(lantern));

registerBlock(sword_case, new ItemBlockBar(sword_case));

registerBlock(Drawers, new ItemBlockBar(Drawers));

 

 

}

 

public static void registerRenders()

{

for(int i = 0; i < EnumHandler.ChipTypes.values().length; i++) {

registerRender(bar, i, "bar_" + EnumHandler.ChipTypes.values().getName());

registerRender(kruk, i, "kruk_" + EnumHandler.ChipTypes.values().getName());

registerRender(lantern, i, "lantern_" + EnumHandler.ChipTypes.values().getName());

registerRender(sword_case, i, "sword_case_" + EnumHandler.ChipTypes.values().getName());

registerRender(Drawers, i, "Drawers_" + EnumHandler.ChipTypes.values().getName());

}

 

}

 

public static void registerBlock(Block block) {

block.setCreativeTab(Runecraft.Runecraft_Blocks);

GameRegistry.register(block);

GameRegistry.register(new ItemBlock(block).setRegistryName(block.getRegistryName()));

}

 

public static void registerBlock(Block block, ItemBlock nieuweBlockBar) {

block.setCreativeTab(Runecraft.Runecraft_Blocks);

GameRegistry.register(block);

GameRegistry.register(nieuweBlockBar.setRegistryName(block.getRegistryName()));

}

 

 

public static void registerRender(Block block, int meta, String string)

{

ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), 0, new ModelResourceLocation(Reference.MOD_ID + ":" + block.getUnlocalizedName().substring(5), "inventory"));

}

 

public static void registerRender1(Block block, int meta, String filename) {

ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), meta, new ModelResourceLocation(Reference.MOD_ID + ":" + block.getUnlocalizedName(), "inventory"));

}

}

 

 

itemchip

 

package com.runecraft.items;

 

import java.util.List;

 

import com.runecraft.Reference;

import com.runecraft.handlers.EnumHandler.ChipTypes;

 

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.util.ResourceLocation;

 

public class ItemChip extends Item {

 

 

public ItemChip(String unlocalizedname) {

this.setUnlocalizedName(unlocalizedname);

this.setRegistryName(new ResourceLocation(Reference.MOD_ID, unlocalizedname));

this.setHasSubtypes(true);

 

}

 

@Override

public void getSubItems(Item item, CreativeTabs tab, List<ItemStack> items) {

for(int i = 0; i < ChipTypes.values().length; i++) {

items.add(new ItemStack(item, 1, i));

}

}

 

@Override

public String getUnlocalizedName(ItemStack stack) {

for(int i = 0; i < ChipTypes.values().length; i++) {

if(stack.getItemDamage() ==i) {

return this.getUnlocalizedName() + "." + ChipTypes.values().getName();

}

else {

continue;

}

}

return this.getUnlocalizedName() + "." + ChipTypes.BASIC.getName();

 

}

}

 

 

 

proxies:

 

common

 

package com.runecraft.proxy;

 

 

public class CommonProxy {

 

public void registerRenders() {

}

 

public void registerModelBakeryStuff() {

 

 

}

 

}

 

 

client

 

package com.runecraft.proxy;

 

import com.runecraft.Reference;

import com.runecraft.init.RunecraftArmour;

import com.runecraft.init.RunecraftBlocks;

import com.runecraft.init.RunecraftItems;

 

import net.minecraft.client.renderer.block.model.ModelBakery;

import net.minecraft.item.Item;

import net.minecraft.util.ResourceLocation;

 

public class ClientProxy extends CommonProxy{

 

@Override

public void registerRenders() {

RunecraftBlocks.registerRenders();

RunecraftItems.registerRenders();

RunecraftArmour.registerRenders();

}

 

@Override

public void registerModelBakeryStuff() {

ModelBakery.registerItemVariants(Item.getItemFromBlock(RunecraftBlocks.bar), new ResourceLocation(Reference.MOD_ID, "block_bar_basic"), new ResourceLocation(Reference.MOD_ID, "block_bar_advanced"));

}

 

}

 

 

 

 

crashreport:

 

[20:44:11] [Client thread/ERROR]: Caught exception from rc

java.lang.ExceptionInInitializerError

at com.runecraft.init.RunecraftBlocks.init(RunecraftBlocks.java:31) ~[bin/:?]

at com.runecraft.Runecraft.preInit(Runecraft.java:45) ~[bin/:?]

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:597) ~[forgeBin-1.10.2-12.18.2.2099.jar:?]

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239) ~[forgeBin-1.10.2-12.18.2.2099.jar:?]

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217) ~[forgeBin-1.10.2-12.18.2.2099.jar:?]

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142) [LoadController.class:?]

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:609) [Loader.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:257) [FMLClientHandler.class:?]

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

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

at net.minecraft.client.main.Main.main(SourceFile:124) [Main.class:?]

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

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

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

Caused by: java.lang.IllegalArgumentException: Multiple values have the same name 'null'

at net.minecraft.block.properties.PropertyEnum.<init>(SourceFile:26) ~[PropertyEnum.class:?]

at net.minecraft.block.properties.PropertyEnum.create(SourceFile:82) ~[PropertyEnum.class:?]

at net.minecraft.block.properties.PropertyEnum.create(SourceFile:74) ~[PropertyEnum.class:?]

at net.minecraft.block.properties.PropertyEnum.create(SourceFile:70) ~[PropertyEnum.class:?]

at com.runecraft.blocks.nieuweBlockBar.<clinit>(nieuweBlockBar.java:29) ~[nieuweBlockBar.class:?]

... 45 more

[20:44:11] [Client thread/INFO]: [net.minecraft.init.Bootstrap:printToSYSOUT:560]: ---- Minecraft Crash Report ----

// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]

 

Time: 17-11-16 20:44

Description: There was a severe problem during mod loading that has caused the game to fail

 

net.minecraftforge.fml.common.LoaderException: java.lang.ExceptionInInitializerError

at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:186)

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:612)

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:257)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:439)

at net.minecraft.client.Minecraft.run(Minecraft.java:351)

at net.minecraft.client.main.Main.main(SourceFile:124)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)

at GradleStart.main(GradleStart.java:26)

Caused by: java.lang.ExceptionInInitializerError

at com.runecraft.init.RunecraftBlocks.init(RunecraftBlocks.java:31)

at com.runecraft.Runecraft.preInit(Runecraft.java:45)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:597)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239)

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142)

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:609)

... 16 more

Caused by: java.lang.IllegalArgumentException: Multiple values have the same name 'null'

at net.minecraft.block.properties.PropertyEnum.<init>(SourceFile:26)

at net.minecraft.block.properties.PropertyEnum.create(SourceFile:82)

at net.minecraft.block.properties.PropertyEnum.create(SourceFile:74)

at net.minecraft.block.properties.PropertyEnum.create(SourceFile:70)

at com.runecraft.blocks.nieuweBlockBar.<clinit>(nieuweBlockBar.java:29)

... 45 more

 

 

 

the crash report is from runecraftblocksinit but i dont know how to fixt it.

 

please help,

 

alex.

Link to comment
Share on other sites

Your enums have this method:

 

@Override
      public String getName() {
         return null;
      }

 

You cannot return null here.

 

Looks like an error on line 31 of your blockInit class

RunecraftBlocks.init();

 

look at that line and or post the block init method in that class

 

Actually, that line is unhelpful. It's just a "new MyBlock()" line.  The important bit is this bit:

 

Caused by: java.lang.IllegalArgumentException: Multiple values have the same name 'null'

  at net.minecraft.block.properties.PropertyEnum.<init>(SourceFile:26)

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

 

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

 

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

Link to comment
Share on other sites

changed return null;

to

return name;

 

fixed  few errors but still gives me these:

 

 

[21:42:25] [Client thread/ERROR]: Caught exception from rc

java.lang.IllegalArgumentException: Cannot set property PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[north, south, west, east]} as it does not exist in BlockStateContainer{block=null, properties=[type]}

at net.minecraft.block.state.BlockStateContainer$StateImplementation.withProperty(BlockStateContainer.java:210) ~[forgeBin-1.10.2-12.18.2.2099.jar:?]

at com.runecraft.blocks.nieuweBlockBar.<init>(nieuweBlockBar.java:39) ~[bin/:?]

at com.runecraft.init.RunecraftBlocks.init(RunecraftBlocks.java:31) ~[bin/:?]

at com.runecraft.Runecraft.preInit(Runecraft.java:45) ~[bin/:?]

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:597) ~[forgeBin-1.10.2-12.18.2.2099.jar:?]

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239) ~[forgeBin-1.10.2-12.18.2.2099.jar:?]

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217) ~[forgeBin-1.10.2-12.18.2.2099.jar:?]

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142) [LoadController.class:?]

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:609) [Loader.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:257) [FMLClientHandler.class:?]

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

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

at net.minecraft.client.main.Main.main(SourceFile:124) [Main.class:?]

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

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

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

[21:42:25] [Client thread/INFO]: [net.minecraft.init.Bootstrap:printToSYSOUT:560]: ---- Minecraft Crash Report ----

// Ouch. That hurt :(

 

Time: 17-11-16 21:42

Description: Initializing game

 

java.lang.IllegalArgumentException: Cannot set property PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[north, south, west, east]} as it does not exist in BlockStateContainer{block=null, properties=[type]}

at net.minecraft.block.state.BlockStateContainer$StateImplementation.withProperty(BlockStateContainer.java:210)

at com.runecraft.blocks.nieuweBlockBar.<init>(nieuweBlockBar.java:39)

at com.runecraft.init.RunecraftBlocks.init(RunecraftBlocks.java:31)

at com.runecraft.Runecraft.preInit(Runecraft.java:45)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:597)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239)

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142)

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:609)

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:257)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:439)

at net.minecraft.client.Minecraft.run(Minecraft.java:351)

at net.minecraft.client.main.Main.main(SourceFile:124)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)

at GradleStart.main(GradleStart.java:26)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Thread: Client thread

Stacktrace:

at net.minecraft.block.state.BlockStateContainer$StateImplementation.withProperty(BlockStateContainer.java:210)

at com.runecraft.blocks.nieuweBlockBar.<init>(nieuweBlockBar.java:39)

at com.runecraft.init.RunecraftBlocks.init(RunecraftBlocks.java:31)

at com.runecraft.Runecraft.preInit(Runecraft.java:45)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:597)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239)

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142)

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:609)

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:257)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:439)

 

-- Initialization --

Details:

Stacktrace:

at net.minecraft.client.Minecraft.run(Minecraft.java:351)

at net.minecraft.client.main.Main.main(SourceFile:124)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)

at GradleStart.main(GradleStart.java:26)

 

Link to comment
Share on other sites

java.lang.IllegalArgumentException: Cannot set property PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[north, south, west, east]} as it does not exist in BlockStateContainer{block=null, properties=[type]}

 

Your BlockStateContainer method doesn't declare that it has a FACING property:

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

You need:

   @Override
   protected BlockStateContainer createBlockState() {
      return new BlockStateContainer(this, new IProperty[] {TYPE, BlockHorizontal.FACING});
   }

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

 

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

 

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

Link to comment
Share on other sites

Join the conversation

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

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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

Announcements



×
×
  • Create New...

Important Information

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